feat:设备使用记录
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
* @Author : LQ
|
||||
* @Description :
|
||||
* @version : 1.0
|
||||
* @version : 3.0
|
||||
* @Date : 2021-08-20 16:44:21
|
||||
* @LastAuthor : LQ
|
||||
* @lastTime : 2021-08-20 16:54:47
|
||||
* @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
|
||||
* @LastAuthor : jry
|
||||
* @lastTime : 2025-12-19 08:55:21
|
||||
* @FilePath : /uview-plus/libs/config/props/checkboxGroup.js
|
||||
*/
|
||||
export default {
|
||||
// checkbox-group组件
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
/**
|
||||
* checkboxGroup 复选框组
|
||||
* @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便
|
||||
* @tutorial https://ijry.github.io/uview-plus/components/checkbox.html
|
||||
* @tutorial https://uview-plus.jiangruyi.com/components/checkbox.html
|
||||
* @property {String} name 标识符
|
||||
* @property {Array} value 绑定的值
|
||||
* @property {String} shape 形状,circle-圆形,square-方形 (默认 'square' )
|
||||
@@ -100,8 +100,7 @@
|
||||
values.push(child.name)
|
||||
}
|
||||
})
|
||||
// 发出事件
|
||||
this.$emit('change', values)
|
||||
|
||||
// 修改通过v-model绑定的值
|
||||
// #ifdef VUE3
|
||||
this.$emit("update:modelValue", values);
|
||||
@@ -109,13 +108,17 @@
|
||||
// #ifdef VUE2
|
||||
this.$emit("input", values);
|
||||
// #endif
|
||||
// 放在最后更新,否则change事件传出去的values不会更新
|
||||
this.$emit('change', values, {
|
||||
isChecked: childInstance.$data['isChecked'],
|
||||
name: childInstance.$props['name'] // 当前变动的checkbox的name值
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "../../libs/css/components.scss";
|
||||
|
||||
.u-checkbox-group {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user