@opentinyvue/vue-checkbox-group 3.21.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -6
- package/package.json +6 -7
- package/src/index.d.ts +2 -2
- package/src/mobile-first.vue.d.ts +15 -15
- package/src/pc.vue.d.ts +15 -15
- package/lib/mobile.js +0 -91
- package/src/mobile.vue.d.ts +0 -59
package/lib/index.js
CHANGED
|
@@ -7,9 +7,8 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
|
-
import MobileTemplate from "./mobile.js";
|
|
13
12
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
14
13
|
var template = function template2(mode) {
|
|
15
14
|
var _process$env;
|
|
@@ -17,9 +16,6 @@ var template = function template2(mode) {
|
|
|
17
16
|
if ("pc" === (tinyMode || mode)) {
|
|
18
17
|
return PcTemplate;
|
|
19
18
|
}
|
|
20
|
-
if ("mobile" === (tinyMode || mode)) {
|
|
21
|
-
return MobileTemplate;
|
|
22
|
-
}
|
|
23
19
|
if ("mobile-first" === (tinyMode || mode)) {
|
|
24
20
|
return MobileFirstTemplate;
|
|
25
21
|
}
|
|
@@ -76,7 +72,7 @@ var CheckboxGroup = defineComponent({
|
|
|
76
72
|
});
|
|
77
73
|
}
|
|
78
74
|
});
|
|
79
|
-
var version = "3.
|
|
75
|
+
var version = "3.undefined";
|
|
80
76
|
CheckboxGroup.model = {
|
|
81
77
|
prop: "modelValue",
|
|
82
78
|
event: "update:modelValue"
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-checkbox-group",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~3.
|
|
11
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
12
|
-
"@opentinyvue/vue-checkbox": "~3.
|
|
13
|
-
"@opentinyvue/vue-checkbox-button": "~3.
|
|
14
|
-
"@opentinyvue/vue-theme
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.21.0"
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-checkbox": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-checkbox-button": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
16
15
|
},
|
|
17
16
|
"license": "MIT",
|
|
18
17
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -86,10 +86,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
86
86
|
}, {
|
|
87
87
|
disabled: boolean;
|
|
88
88
|
type: string;
|
|
89
|
-
tiny_mode_root: boolean;
|
|
90
|
-
_constants: Record<string, any>;
|
|
91
89
|
options: unknown[];
|
|
92
90
|
vertical: boolean;
|
|
91
|
+
tiny_mode_root: boolean;
|
|
92
|
+
_constants: Record<string, any>;
|
|
93
93
|
displayOnly: boolean;
|
|
94
94
|
shape: string;
|
|
95
95
|
}, {}>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
2
|
disabled?: any;
|
|
3
|
-
type?: any;
|
|
4
3
|
fill?: any;
|
|
5
4
|
size?: any;
|
|
5
|
+
type?: any;
|
|
6
|
+
options?: any;
|
|
7
|
+
min?: any;
|
|
8
|
+
max?: any;
|
|
9
|
+
vertical?: any;
|
|
6
10
|
tiny_mode?: any;
|
|
7
11
|
tiny_mode_root?: any;
|
|
8
12
|
tiny_template?: any;
|
|
@@ -11,11 +15,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
15
|
tiny_theme?: any;
|
|
12
16
|
tiny_chart_theme?: any;
|
|
13
17
|
modelValue?: any;
|
|
14
|
-
options?: any;
|
|
15
|
-
vertical?: any;
|
|
16
18
|
displayOnly?: any;
|
|
17
|
-
min?: any;
|
|
18
|
-
max?: any;
|
|
19
19
|
textColor?: any;
|
|
20
20
|
}>, {
|
|
21
21
|
t: (this: any, path: any, options?: any) => any;
|
|
@@ -28,9 +28,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
28
28
|
m: (...cssClasses: any[]) => string;
|
|
29
29
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
30
30
|
disabled?: any;
|
|
31
|
-
type?: any;
|
|
32
31
|
fill?: any;
|
|
33
32
|
size?: any;
|
|
33
|
+
type?: any;
|
|
34
|
+
options?: any;
|
|
35
|
+
min?: any;
|
|
36
|
+
max?: any;
|
|
37
|
+
vertical?: any;
|
|
34
38
|
tiny_mode?: any;
|
|
35
39
|
tiny_mode_root?: any;
|
|
36
40
|
tiny_template?: any;
|
|
@@ -39,17 +43,17 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
39
43
|
tiny_theme?: any;
|
|
40
44
|
tiny_chart_theme?: any;
|
|
41
45
|
modelValue?: any;
|
|
42
|
-
options?: any;
|
|
43
|
-
vertical?: any;
|
|
44
46
|
displayOnly?: any;
|
|
45
|
-
min?: any;
|
|
46
|
-
max?: any;
|
|
47
47
|
textColor?: any;
|
|
48
48
|
}>>>, {
|
|
49
49
|
readonly disabled?: any;
|
|
50
|
-
readonly type?: any;
|
|
51
50
|
readonly fill?: any;
|
|
52
51
|
readonly size?: any;
|
|
52
|
+
readonly type?: any;
|
|
53
|
+
readonly options?: any;
|
|
54
|
+
readonly min?: any;
|
|
55
|
+
readonly max?: any;
|
|
56
|
+
readonly vertical?: any;
|
|
53
57
|
readonly tiny_mode?: any;
|
|
54
58
|
readonly tiny_mode_root?: any;
|
|
55
59
|
readonly tiny_template?: any;
|
|
@@ -58,11 +62,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
58
62
|
readonly tiny_theme?: any;
|
|
59
63
|
readonly tiny_chart_theme?: any;
|
|
60
64
|
readonly modelValue?: any;
|
|
61
|
-
readonly options?: any;
|
|
62
|
-
readonly vertical?: any;
|
|
63
65
|
readonly displayOnly?: any;
|
|
64
|
-
readonly min?: any;
|
|
65
|
-
readonly max?: any;
|
|
66
66
|
readonly textColor?: any;
|
|
67
67
|
}, {}>;
|
|
68
68
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
2
|
disabled?: any;
|
|
3
|
-
type?: any;
|
|
4
3
|
fill?: any;
|
|
5
4
|
size?: any;
|
|
5
|
+
type?: any;
|
|
6
|
+
options?: any;
|
|
7
|
+
min?: any;
|
|
8
|
+
max?: any;
|
|
9
|
+
vertical?: any;
|
|
6
10
|
tiny_mode?: any;
|
|
7
11
|
tiny_mode_root?: any;
|
|
8
12
|
tiny_template?: any;
|
|
@@ -11,12 +15,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
15
|
tiny_theme?: any;
|
|
12
16
|
tiny_chart_theme?: any;
|
|
13
17
|
modelValue?: any;
|
|
14
|
-
options?: any;
|
|
15
|
-
vertical?: any;
|
|
16
18
|
displayOnly?: any;
|
|
17
19
|
shape?: any;
|
|
18
|
-
min?: any;
|
|
19
|
-
max?: any;
|
|
20
20
|
textColor?: any;
|
|
21
21
|
}>, {
|
|
22
22
|
t: (this: any, path: any, options?: any) => any;
|
|
@@ -29,9 +29,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
29
29
|
m: (...cssClasses: any[]) => string;
|
|
30
30
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
31
|
disabled?: any;
|
|
32
|
-
type?: any;
|
|
33
32
|
fill?: any;
|
|
34
33
|
size?: any;
|
|
34
|
+
type?: any;
|
|
35
|
+
options?: any;
|
|
36
|
+
min?: any;
|
|
37
|
+
max?: any;
|
|
38
|
+
vertical?: any;
|
|
35
39
|
tiny_mode?: any;
|
|
36
40
|
tiny_mode_root?: any;
|
|
37
41
|
tiny_template?: any;
|
|
@@ -40,18 +44,18 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
40
44
|
tiny_theme?: any;
|
|
41
45
|
tiny_chart_theme?: any;
|
|
42
46
|
modelValue?: any;
|
|
43
|
-
options?: any;
|
|
44
|
-
vertical?: any;
|
|
45
47
|
displayOnly?: any;
|
|
46
48
|
shape?: any;
|
|
47
|
-
min?: any;
|
|
48
|
-
max?: any;
|
|
49
49
|
textColor?: any;
|
|
50
50
|
}>>>, {
|
|
51
51
|
readonly disabled?: any;
|
|
52
|
-
readonly type?: any;
|
|
53
52
|
readonly fill?: any;
|
|
54
53
|
readonly size?: any;
|
|
54
|
+
readonly type?: any;
|
|
55
|
+
readonly options?: any;
|
|
56
|
+
readonly min?: any;
|
|
57
|
+
readonly max?: any;
|
|
58
|
+
readonly vertical?: any;
|
|
55
59
|
readonly tiny_mode?: any;
|
|
56
60
|
readonly tiny_mode_root?: any;
|
|
57
61
|
readonly tiny_template?: any;
|
|
@@ -60,12 +64,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
60
64
|
readonly tiny_theme?: any;
|
|
61
65
|
readonly tiny_chart_theme?: any;
|
|
62
66
|
readonly modelValue?: any;
|
|
63
|
-
readonly options?: any;
|
|
64
|
-
readonly vertical?: any;
|
|
65
67
|
readonly displayOnly?: any;
|
|
66
68
|
readonly shape?: any;
|
|
67
|
-
readonly min?: any;
|
|
68
|
-
readonly max?: any;
|
|
69
69
|
readonly textColor?: any;
|
|
70
70
|
}, {}>;
|
|
71
71
|
export default _default;
|
package/lib/mobile.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/checkbox-group/vue';
|
|
2
|
-
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
-
import Checkbox from '@opentinyvue/vue-checkbox';
|
|
4
|
-
import '@opentinyvue/vue-theme-mobile/checkbox-group/index.css';
|
|
5
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, renderList, createBlock, mergeProps, createCommentVNode } from 'vue';
|
|
6
|
-
|
|
7
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
-
t && (r = t);
|
|
12
|
-
var o = 0;
|
|
13
|
-
return function() {
|
|
14
|
-
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
-
}
|
|
19
|
-
function _unsupportedIterableToArray(r, a) {
|
|
20
|
-
if (r) {
|
|
21
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function _arrayLikeToArray(r, a) {
|
|
27
|
-
(null == a || a > r.length) && (a = r.length);
|
|
28
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
-
return n;
|
|
30
|
-
}
|
|
31
|
-
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
-
var target = sfc.__vccOpts || sfc;
|
|
33
|
-
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
-
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
-
target[key] = val;
|
|
36
|
-
}
|
|
37
|
-
return target;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
|
-
components: {
|
|
42
|
-
Checkbox
|
|
43
|
-
},
|
|
44
|
-
props: [].concat(props, ["modelValue", "type", "options", "disabled", "vertical", "max", "min", "iconPosition"]),
|
|
45
|
-
setup: function setup$1(props2, context) {
|
|
46
|
-
return setup({
|
|
47
|
-
props: props2,
|
|
48
|
-
context,
|
|
49
|
-
renderless,
|
|
50
|
-
api
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
55
|
-
var _component_checkbox = resolveComponent("checkbox");
|
|
56
|
-
return openBlock(), createElementBlock(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
class: normalizeClass(["tiny-mobile-checkbox-group", _ctx.vertical ? "is-vertical" : ""]),
|
|
60
|
-
role: "group",
|
|
61
|
-
"aria-label": "checkbox-group"
|
|
62
|
-
},
|
|
63
|
-
[renderSlot(_ctx.$slots, "default", {}, function() {
|
|
64
|
-
return [_ctx.type === "checkbox" ? (openBlock(true), createElementBlock(
|
|
65
|
-
Fragment,
|
|
66
|
-
{
|
|
67
|
-
key: 0
|
|
68
|
-
},
|
|
69
|
-
renderList(_ctx.options, function(item, index) {
|
|
70
|
-
return openBlock(), createBlock(
|
|
71
|
-
_component_checkbox,
|
|
72
|
-
mergeProps({
|
|
73
|
-
key: index,
|
|
74
|
-
ref_for: true
|
|
75
|
-
}, item),
|
|
76
|
-
null,
|
|
77
|
-
16
|
|
78
|
-
/* FULL_PROPS */
|
|
79
|
-
);
|
|
80
|
-
}),
|
|
81
|
-
128
|
|
82
|
-
/* KEYED_FRAGMENT */
|
|
83
|
-
)) : createCommentVNode("v-if", true)];
|
|
84
|
-
})],
|
|
85
|
-
2
|
|
86
|
-
/* CLASS */
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
90
|
-
|
|
91
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
-
disabled?: any;
|
|
3
|
-
type?: any;
|
|
4
|
-
tiny_mode?: any;
|
|
5
|
-
tiny_mode_root?: any;
|
|
6
|
-
tiny_template?: any;
|
|
7
|
-
tiny_renderless?: any;
|
|
8
|
-
_constants?: any;
|
|
9
|
-
tiny_theme?: any;
|
|
10
|
-
tiny_chart_theme?: any;
|
|
11
|
-
modelValue?: any;
|
|
12
|
-
options?: any;
|
|
13
|
-
vertical?: any;
|
|
14
|
-
min?: any;
|
|
15
|
-
max?: any;
|
|
16
|
-
iconPosition?: any;
|
|
17
|
-
}>, {
|
|
18
|
-
t: (this: any, path: any, options?: any) => any;
|
|
19
|
-
vm: any;
|
|
20
|
-
f: (props: any, attrs?: {}) => {};
|
|
21
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
22
|
-
d: (props: any) => void;
|
|
23
|
-
dp: (props: any) => void;
|
|
24
|
-
gcls: (key: any) => any;
|
|
25
|
-
m: (...cssClasses: any[]) => string;
|
|
26
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
27
|
-
disabled?: any;
|
|
28
|
-
type?: any;
|
|
29
|
-
tiny_mode?: any;
|
|
30
|
-
tiny_mode_root?: any;
|
|
31
|
-
tiny_template?: any;
|
|
32
|
-
tiny_renderless?: any;
|
|
33
|
-
_constants?: any;
|
|
34
|
-
tiny_theme?: any;
|
|
35
|
-
tiny_chart_theme?: any;
|
|
36
|
-
modelValue?: any;
|
|
37
|
-
options?: any;
|
|
38
|
-
vertical?: any;
|
|
39
|
-
min?: any;
|
|
40
|
-
max?: any;
|
|
41
|
-
iconPosition?: any;
|
|
42
|
-
}>>>, {
|
|
43
|
-
readonly disabled?: any;
|
|
44
|
-
readonly type?: any;
|
|
45
|
-
readonly tiny_mode?: any;
|
|
46
|
-
readonly tiny_mode_root?: any;
|
|
47
|
-
readonly tiny_template?: any;
|
|
48
|
-
readonly tiny_renderless?: any;
|
|
49
|
-
readonly _constants?: any;
|
|
50
|
-
readonly tiny_theme?: any;
|
|
51
|
-
readonly tiny_chart_theme?: any;
|
|
52
|
-
readonly modelValue?: any;
|
|
53
|
-
readonly options?: any;
|
|
54
|
-
readonly vertical?: any;
|
|
55
|
-
readonly min?: any;
|
|
56
|
-
readonly max?: any;
|
|
57
|
-
readonly iconPosition?: any;
|
|
58
|
-
}, {}>;
|
|
59
|
-
export default _default;
|