const picker = ref(null) con...">
美文网首页
uni-data-picker 级联组件优化

uni-data-picker 级联组件优化

作者: 可乐小子 | 来源:发表于2024-12-02 13:38 被阅读0次

<view class="select-super" @click="showPicker">
<uni-data-picker ref="picker" class="text-area" placeholder="请选择年级/班级" popup-title="请选择所在年级和班级"
:localdata="classLevelArray" v-model="classes" @change="onchange" @nodeclick="onnodeclick"
@popupopened="onpopupopened" @popupclosed="onpopupclosed">
</uni-data-picker>
</view>

const picker = ref(null)

const showPicker = () => {
picker.value.show()
//this.$refs.picker.show();

}

为触发事件,
方法二:

.text-area {
height: 94rpx;
width: 100%;
}

把级联组件撑开

相关文章

网友评论

      本文标题:uni-data-picker 级联组件优化

      本文链接:https://www.haomeiwen.com/subject/myxesjtx.html