12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import { defineMixin } from '../../libs/vue'
- import defProps from '../../libs/config/props.js'
- export const props = defineMixin({
- props: {
-
- loading: {
- type: Boolean,
- default: () => defProps.switch.loading
- },
-
- disabled: {
- type: Boolean,
- default: () => defProps.switch.disabled
- },
-
- size: {
- type: [String, Number],
- default: () => defProps.switch.size
- },
-
- activeColor: {
- type: String,
- default: () => defProps.switch.activeColor
- },
-
- inactiveColor: {
- type: String,
- default: () => defProps.switch.inactiveColor
- },
-
-
- modelValue: {
- type: [Boolean, String, Number],
- default: () => defProps.switch.value
- },
-
-
- value: {
- type: [Boolean, String, Number],
- default: () => defProps.switch.value
- },
-
-
- activeValue: {
- type: [String, Number, Boolean],
- default: () => defProps.switch.activeValue
- },
-
- inactiveValue: {
- type: [String, Number, Boolean],
- default: () => defProps.switch.inactiveValue
- },
-
- asyncChange: {
- type: Boolean,
- default: () => defProps.switch.asyncChange
- },
-
- space: {
- type: [String, Number],
- default: () => defProps.switch.space
- }
- }
- })
|