feat: 完成申请审批数字组件封装

This commit is contained in:
范鹏 2025-01-13 18:56:05 +08:00
parent 207a55e525
commit a8a9f0863a
2 changed files with 15 additions and 1 deletions

View File

@ -34,6 +34,15 @@
type="checkbox"
:columns="columns"
></SelectPicker>
<wd-divider color="#bcbfbe"></wd-divider>
<Input
:id="4"
type="number"
title="数字"
:required="true"
placeholder="数字"
@change="inputChange"
></Input>
</view>
</view>
</template>

View File

@ -6,9 +6,10 @@
</view>
<view class="pt-2">
<wd-input
:type="type"
custom-class="!bg-transparent"
:placeholder="placeholder"
:maxlength="30"
:maxlength="type === 'text' ? 30 : 15"
v-model="text"
@input="change(id, $event)"
></wd-input>
@ -26,6 +27,10 @@
type: Number,
required: true
},
type: {
type: String,
default: 'text'
},
required: {
type: Boolean,
default: false