更新记录
1.0.3(2023-04-07) 下载此版本
更新车牌号校验问题
1.0.2(2022-05-07) 下载此版本
1.readme文档更新 2.删除按钮未显示bug处理
1.0.1(2022-05-07) 下载此版本
其他平台支持
查看更多平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | - | - | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | - | - | - | √ | - | √ | √ |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
cowain-add-license
添加车牌功能
使用
<template>
<view class="content">
<button type="default" @click="addLicenseDialog">添加车牌</button>
<cowain-add-licensee v-if="showLicenseDialog" @onCancel='cancelLicenseDialog' @onOk='okLicense'/>
</view>
</template>
<script>
export default {
data() {
return {
showLicenseDialog: false, //是否显示添加车牌的dialog
}
},
methods: {
//显示添加车牌
addLicenseDialog() {
this.showLicenseDialog = true;
},
//取消添加车牌
cancelLicenseDialog() {
this.showLicenseDialog = false;
},
//添加车牌成功
okLicense(license) {
console.log(license);
},
}
}
</script>
<style lang="less">
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
</style>