@opentiny/vue-checkbox
Advanced tools
Comparing version 2.10.0 to 2.11.0-alpha.0
@@ -15,3 +15,3 @@ function _extends() { | ||
} | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common"; | ||
import PcTemplate from "./pc.js"; | ||
@@ -38,45 +38,54 @@ import MobileTemplate from "./mobile.js"; | ||
}; | ||
var checkboxProps = _extends({}, $props, { | ||
_constants: { | ||
type: Object, | ||
default: function _default() { | ||
return $constants; | ||
} | ||
}, | ||
modelValue: { | ||
type: [String, Number, Boolean] | ||
}, | ||
label: { | ||
type: [String, Number, Boolean], | ||
default: "" | ||
}, | ||
indeterminate: Boolean, | ||
disabled: Boolean, | ||
checked: Boolean, | ||
name: String, | ||
trueLabel: [String, Number], | ||
falseLabel: [String, Number], | ||
/* | ||
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系 | ||
*/ | ||
id: String, | ||
/* | ||
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系 | ||
*/ | ||
controls: { | ||
type: String, | ||
default: "" | ||
}, | ||
border: Boolean, | ||
size: String, | ||
text: String, | ||
validateEvent: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
events: { | ||
type: Object, | ||
default: function _default2() { | ||
return {}; | ||
} | ||
}, | ||
displayOnly: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}); | ||
var Checkbox = defineComponent({ | ||
name: $prefix + "Checkbox", | ||
props: _extends({}, $props, { | ||
_constants: { | ||
type: Object, | ||
default: function _default() { | ||
return $constants; | ||
} | ||
}, | ||
modelValue: {}, | ||
label: {}, | ||
indeterminate: Boolean, | ||
disabled: Boolean, | ||
checked: Boolean, | ||
name: String, | ||
trueLabel: [String, Number], | ||
falseLabel: [String, Number], | ||
/* | ||
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系 | ||
*/ | ||
id: String, | ||
/* | ||
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系 | ||
*/ | ||
controls: String, | ||
border: Boolean, | ||
size: String, | ||
text: String, | ||
validateEvent: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
events: { | ||
type: Object, | ||
default: function _default2() { | ||
return {}; | ||
} | ||
}, | ||
displayOnly: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}), | ||
props: checkboxProps, | ||
setup: function setup(props, context) { | ||
@@ -90,3 +99,3 @@ return $setup({ | ||
}); | ||
var version = "2.10.0"; | ||
var version = "2.11.0-alpha.0"; | ||
Checkbox.model = { | ||
@@ -93,0 +102,0 @@ prop: "modelValue", |
@@ -106,3 +106,3 @@ import { renderless, api } from "@opentiny/vue-renderless/checkbox/vue"; | ||
attrs: { | ||
"role": _vm.indeterminate ? "checkbox" : false, | ||
"role": _vm.indeterminate ? "checkbox" : void 0, | ||
"aria-checked": _vm.indeterminate ? "mixed" : false | ||
@@ -109,0 +109,0 @@ } |
{ | ||
"name": "@opentiny/vue-checkbox", | ||
"version": "2.10.0", | ||
"version": "2.11.0-alpha.0", | ||
"description": "", | ||
@@ -10,4 +10,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~2.10.0", | ||
"@opentiny/vue-renderless": "~3.10.0" | ||
"@opentiny/vue-common": "~2.11.0", | ||
"@opentiny/vue-renderless": "~3.11.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -1,2 +0,8 @@ | ||
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, {}, {}, { | ||
export declare const $constants: { | ||
FORM_ITEM: string; | ||
FORM_CHANGE: string; | ||
CHECKBOX: string; | ||
CHECKBOX_GROUP: string; | ||
}; | ||
export declare const checkboxProps: { | ||
_constants: { | ||
@@ -11,4 +17,9 @@ type: ObjectConstructor; | ||
}; | ||
modelValue: {}; | ||
label: {}; | ||
modelValue: { | ||
type: (StringConstructor | BooleanConstructor | NumberConstructor)[]; | ||
}; | ||
label: { | ||
type: (StringConstructor | BooleanConstructor | NumberConstructor)[]; | ||
default: string; | ||
}; | ||
indeterminate: BooleanConstructor; | ||
@@ -21,3 +32,6 @@ disabled: BooleanConstructor; | ||
id: StringConstructor; | ||
controls: StringConstructor; | ||
controls: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
border: BooleanConstructor; | ||
@@ -44,83 +58,4 @@ size: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, { | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
border: boolean; | ||
validateEvent: boolean; | ||
displayOnly: boolean; | ||
events: Record<string, any>; | ||
checked: boolean; | ||
indeterminate: boolean; | ||
} & { | ||
label?: unknown; | ||
name?: string | undefined; | ||
text?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
modelValue?: unknown; | ||
id?: string | undefined; | ||
size?: string | undefined; | ||
controls?: string | undefined; | ||
trueLabel?: string | number | undefined; | ||
falseLabel?: string | number | undefined; | ||
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{ | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
border: boolean; | ||
validateEvent: boolean; | ||
displayOnly: boolean; | ||
events: Record<string, any>; | ||
checked: boolean; | ||
indeterminate: boolean; | ||
} & { | ||
label?: unknown; | ||
name?: string | undefined; | ||
text?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
modelValue?: unknown; | ||
id?: string | undefined; | ||
size?: string | undefined; | ||
controls?: string | undefined; | ||
trueLabel?: string | number | undefined; | ||
falseLabel?: string | number | undefined; | ||
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, { | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
border: boolean; | ||
validateEvent: boolean; | ||
displayOnly: boolean; | ||
events: Record<string, any>; | ||
checked: boolean; | ||
indeterminate: boolean; | ||
} & { | ||
label?: unknown; | ||
name?: string | undefined; | ||
text?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
modelValue?: unknown; | ||
id?: string | undefined; | ||
size?: string | undefined; | ||
controls?: string | undefined; | ||
trueLabel?: string | number | undefined; | ||
falseLabel?: string | number | undefined; | ||
}, { | ||
_constants: Record<string, any>; | ||
validateEvent: boolean; | ||
displayOnly: boolean; | ||
events: Record<string, any>; | ||
}, true>); | ||
}; | ||
declare const _default: any; | ||
export default _default; |
@@ -1,12 +0,2 @@ | ||
declare const _default: 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>); | ||
declare const _default: any; | ||
export default _default; |
@@ -1,30 +0,2 @@ | ||
declare const _default: 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>); | ||
declare const _default: any; | ||
export default _default; |
@@ -1,30 +0,2 @@ | ||
declare const _default: 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>); | ||
declare const _default: any; | ||
export default _default; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
29433
824
2
+ Added@opentiny/vue-common@2.11.0(transitive)
+ Added@opentiny/vue-locale@2.11.0(transitive)
+ Added@opentiny/vue-renderless@3.11.8(transitive)
+ Added@opentiny/vue-theme@3.11.6(transitive)
+ Added@opentiny/vue-theme-mobile@3.11.1(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
- Removed@opentiny/vue-common@2.10.0(transitive)
- Removed@opentiny/vue-locale@2.10.0(transitive)
- Removed@opentiny/vue-renderless@3.10.7(transitive)
- Removed@opentiny/vue-theme@3.10.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.10.1(transitive)
Updated@opentiny/vue-common@~2.11.0