feat: 首次提交
This commit is contained in:
37
components/firstui/fui-form-field/fui-form-field.vue
Normal file
37
components/firstui/fui-form-field/fui-form-field.vue
Normal file
@ -0,0 +1,37 @@
|
||||
<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司(手机号:1 86 140 725 4 9,身份证尾号:5A07X5)专用,请尊重知识产权,勿私下传播,违者追究法律责任。-->
|
||||
<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>
|
Reference in New Issue
Block a user