更新记录
1.0.0(2024-06-24)
无
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
HBuilderX 3.8.0 app-vue app-nvue |
√ |
√ |
√ |
√ |
√ |
√ |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
√ |
√ |
√ |
√ |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
代码块
<template>
<view class="cu-form-group">
<view class="title" @tap="plateShow = true">车牌号</view>
<input placeholder="请点此输入" disabled="inputDisabled" @tap="plateShow = true" v-model.trim="plateNo" />
<heimaojp v-if="plateShow" :plate="plateNo" @export="setPlate" @close="plateShow = false" />
</view>
</template>
<script>
import heimaojp from '@/components/heimaojp-tag/heimaojp-tag.vue';
export default {
components: {
heimaojp
},
data() {
return {
plateNo: '',
plateShow: false,
inputDisabled: true
};
},
onLoad() {},
methods: {
setPlate(plate) {
if (plate.length >= 7) this.plateNo = plate;
this.plateShow = false;
}
}
};
</script>
<style>
.cu-form-group {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
background-color: #ffffff;
padding: 1upx 30upx;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
align-items: center;
min-height: 100upx;
justify-content: space-between;
}
</style>