@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
68 lines (67 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const SwitchSizeTypes = ["medium", "small"];
const switchProps = {
/**
* 双向绑定值
*/
modelValue: {
type: [String, Number, Boolean]
},
/**
* 非受控状态时,默认是否选中
*/
defaultChecked: {
type: Boolean,
default: false
},
/**
* 选中状态对应值
*/
checkedValue: {
type: [String, Number, Boolean],
default: true
},
/**
* 未选中状态对应值
*/
uncheckedValue: {
type: [String, Number, Boolean],
default: false
},
/**
* 开关尺寸 SwitchSizeT
*/
size: {
type: String,
default: "medium"
},
/**
* 圆角值 RoundT
*/
round: {
type: String
},
/**
* 是否禁用
*/
disabled: {
type: Boolean,
default: false
},
/**
* 是否加载中
*/
loading: {
type: Boolean,
default: false
},
/**
* 状态改变前的钩子函数
*/
beforeChange: {
type: Function
}
};
exports.SwitchSizeTypes = SwitchSizeTypes;
exports.switchProps = switchProps;