@opentiny/vue-switch
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -53,4 +53,4 @@ function _extends() { | ||
showText: { | ||
type: Boolean, | ||
default: false | ||
type: Boolean || void 0, | ||
default: void 0 | ||
}, | ||
@@ -57,0 +57,0 @@ falseColor: String, |
@@ -75,3 +75,3 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue"; | ||
return _c("span", { | ||
class: [_vm.state.wrapClasses, _vm.showText ? "tiny-switch__text" : ""], | ||
class: [_vm.state.wrapClasses, _vm.state.showText ? "tiny-switch__text" : ""], | ||
attrs: { | ||
@@ -90,3 +90,3 @@ "tabindex": _vm.tabindex | ||
class: _vm.state.innerClasses | ||
}, [!_vm.mini && _vm.showText ? _c("div", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() { | ||
}, [!_vm.mini && _vm.state.showText ? _c("div", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() { | ||
return [_vm._v("ON")]; | ||
@@ -93,0 +93,0 @@ }) : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("close", function() { |
{ | ||
"name": "@opentiny/vue-switch", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.8.2", | ||
"@opentiny/vue-common": "~2.8.2" | ||
"@opentiny/vue-renderless": "~3.8.3", | ||
"@opentiny/vue-common": "~2.8.3" | ||
}, | ||
@@ -11,0 +12,0 @@ "license": "MIT", |
@@ -1,2 +0,127 @@ | ||
declare const _default: any; | ||
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
_constants: { | ||
type: ObjectConstructor; | ||
default: () => { | ||
PC_PREFIXCLS: string; | ||
MOBILE_PREFIXCLS: string; | ||
Mode: string; | ||
prefixcls(mode: any): string; | ||
}; | ||
}; | ||
disabled: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
showText: { | ||
type: BooleanConstructor; | ||
default: undefined; | ||
}; | ||
falseColor: StringConstructor; | ||
falseValue: { | ||
type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; | ||
default: boolean; | ||
}; | ||
mini: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
modelValue: { | ||
type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; | ||
default: boolean; | ||
}; | ||
size: (NumberConstructor | StringConstructor)[]; | ||
tabindex: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
trueColor: StringConstructor; | ||
trueValue: { | ||
type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; | ||
default: boolean; | ||
}; | ||
beforeChange: FunctionConstructor; | ||
displayOnly: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, { | ||
modelValue: string | number | boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
tabindex: string; | ||
disabled: boolean; | ||
mini: boolean; | ||
displayOnly: boolean; | ||
showText: boolean; | ||
falseValue: string | number | boolean; | ||
trueValue: string | number | boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
size?: string | number | undefined; | ||
beforeChange?: Function | undefined; | ||
falseColor?: string | undefined; | ||
trueColor?: string | undefined; | ||
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{ | ||
modelValue: string | number | boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
tabindex: string; | ||
disabled: boolean; | ||
mini: boolean; | ||
displayOnly: boolean; | ||
showText: boolean; | ||
falseValue: string | number | boolean; | ||
trueValue: string | number | boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
size?: string | number | undefined; | ||
beforeChange?: Function | undefined; | ||
falseColor?: string | undefined; | ||
trueColor?: string | undefined; | ||
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
modelValue: string | number | boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
tabindex: string; | ||
disabled: boolean; | ||
mini: boolean; | ||
displayOnly: boolean; | ||
showText: boolean; | ||
falseValue: string | number | boolean; | ||
trueValue: string | number | boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
size?: string | number | undefined; | ||
beforeChange?: Function | undefined; | ||
falseColor?: string | undefined; | ||
trueColor?: string | undefined; | ||
}, { | ||
modelValue: string | number | boolean; | ||
_constants: Record<string, any>; | ||
tabindex: string; | ||
disabled: boolean; | ||
mini: boolean; | ||
displayOnly: boolean; | ||
showText: boolean; | ||
falseValue: string | number | boolean; | ||
trueValue: string | number | boolean; | ||
}, true>); | ||
export default _default; |
@@ -1,2 +0,12 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
export default _sfc_main; |
@@ -1,2 +0,30 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{ | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{ | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
export default _sfc_main; |
@@ -1,2 +0,30 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{ | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{ | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
export default _sfc_main; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30774
764