|
@@ -8,7 +8,9 @@ export default {
|
|
|
name: "com-switcher",
|
|
|
props: {
|
|
|
name: String,
|
|
|
- value: Number,
|
|
|
+ value: {
|
|
|
+ required: true,
|
|
|
+ },
|
|
|
disable: Boolean
|
|
|
},
|
|
|
// data() {
|
|
@@ -20,7 +22,7 @@ export default {
|
|
|
onClick() {
|
|
|
this.$emit("change", Number(!this.value), this.name);
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|