You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
887 B
37 lines
887 B
<!--本文件由FirstUI授权予内蒙古晟誉网络科技有限责任公司(手机号: 1 51 4 82 28 1 08,身份证尾号:1R6T39)专用,请尊重知识产权,勿私下传播,违者追究法律责任。-->
|
|
<template>
|
|
<view :class="{'fui-form__field':hidden}">
|
|
<slot></slot>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
//此组件只为form表单提交传递数据使用,暂时用于微信小程序/百度小程序/QQ小程序
|
|
export default {
|
|
emits: ['input', 'update:modelValue'],
|
|
name: "fui-form-field",
|
|
behaviors: ['uni://form-field'],
|
|
props: {
|
|
//是否为隐藏域
|
|
hidden: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
value: {
|
|
type: [Number, String, Array],
|
|
default: ''
|
|
},
|
|
modelValue: {
|
|
type: [Number, String, Array],
|
|
default: ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.fui-form__field {
|
|
display: none;
|
|
opacity: 0;
|
|
}
|
|
</style>
|