@opentinyvue/vue-checkbox 2.21.0 → 3.21.0
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 +1 -1
- package/lib/mobile-first.js +141 -173
- package/lib/mobile.js +111 -152
- package/lib/pc.js +131 -178
- package/package.json +4 -4
- package/src/index.d.ts +139 -2
- package/src/mobile-first.vue.d.ts +89 -1
- package/src/mobile.vue.d.ts +75 -1
- package/src/pc.vue.d.ts +84 -1
package/lib/pc.js
CHANGED
|
@@ -3,38 +3,42 @@ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
|
3
3
|
import '@opentinyvue/vue-theme/checkbox/index.css';
|
|
4
4
|
import { iconHalfselect, iconCheckedSur, iconCheck } from '@opentinyvue/vue-icon';
|
|
5
5
|
import { AutoTip } from '@opentinyvue/vue-directive';
|
|
6
|
+
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, withDirectives, withModifiers, vModelCheckbox, createBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
6
7
|
|
|
7
|
-
function
|
|
8
|
-
var
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
9
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
11
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
12
|
+
t && (r = t);
|
|
13
|
+
var o = 0;
|
|
14
|
+
return function() {
|
|
15
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
16
|
+
};
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var originalRender = options.render;
|
|
22
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
23
|
-
hook.call(context);
|
|
24
|
-
return originalRender(h, context);
|
|
25
|
-
};
|
|
26
|
-
} else {
|
|
27
|
-
var existing = options.beforeCreate;
|
|
28
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
29
|
-
}
|
|
18
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
|
+
}
|
|
20
|
+
function _unsupportedIterableToArray(r, a) {
|
|
21
|
+
if (r) {
|
|
22
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
23
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
24
|
+
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;
|
|
30
25
|
}
|
|
31
|
-
return {
|
|
32
|
-
exports: scriptExports,
|
|
33
|
-
options
|
|
34
|
-
};
|
|
35
26
|
}
|
|
27
|
+
function _arrayLikeToArray(r, a) {
|
|
28
|
+
(null == a || a > r.length) && (a = r.length);
|
|
29
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
33
|
+
var target = sfc.__vccOpts || sfc;
|
|
34
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
35
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
36
|
+
target[key] = val;
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
36
40
|
|
|
37
|
-
var
|
|
41
|
+
var _sfc_main = defineComponent({
|
|
38
42
|
// tiny 新增。 renderless中,没有emit('click')的地方。 此处勿声明,否则会造成丢失click事件。
|
|
39
43
|
emits: ["update:modelValue", "change", "complete"],
|
|
40
44
|
directives: {
|
|
@@ -55,162 +59,111 @@ var __vue2_script = defineComponent({
|
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
var _hoisted_1 = ["id"];
|
|
63
|
+
var _hoisted_2 = ["role", "aria-checked"];
|
|
64
|
+
var _hoisted_3 = ["tabindex", "aria-hidden", "name", "disabled", "true-value", "false-value"];
|
|
65
|
+
var _hoisted_4 = ["tabindex", "aria-hidden", "disabled", "value", "name"];
|
|
66
|
+
var _hoisted_5 = {
|
|
67
|
+
class: "tiny-checkbox__inner"
|
|
68
|
+
};
|
|
69
|
+
var _hoisted_6 = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "tiny-checkbox__label tiny-checkbox-display-only"
|
|
72
|
+
};
|
|
73
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74
|
+
var _component_icon_halfselect = resolveComponent("icon-halfselect");
|
|
75
|
+
var _component_icon_checked_sur = resolveComponent("icon-checked-sur");
|
|
76
|
+
var _component_icon_check = resolveComponent("icon-check");
|
|
77
|
+
var _directive_auto_tip = resolveDirective("auto-tip");
|
|
78
|
+
return openBlock(), createElementBlock("label", mergeProps({
|
|
79
|
+
class: ["tiny-checkbox", [_ctx.border && _ctx.state.checkboxSize ? "tiny-checkbox--" + _ctx.state.checkboxSize : "", {
|
|
80
|
+
"is-disabled": _ctx.state.isDisabled || _ctx.state.isDisplayOnly
|
|
66
81
|
}, {
|
|
67
|
-
"is-bordered":
|
|
82
|
+
"is-bordered": _ctx.border
|
|
68
83
|
}, {
|
|
69
|
-
"is-checked":
|
|
84
|
+
"is-checked": _ctx.state.isChecked
|
|
70
85
|
}, {
|
|
71
|
-
"is-group-display-only":
|
|
86
|
+
"is-group-display-only": _ctx.state.isGroupDisplayOnly
|
|
72
87
|
}, {
|
|
73
|
-
"is-display-only":
|
|
88
|
+
"is-display-only": _ctx.state.isDisplayOnly
|
|
74
89
|
}, {
|
|
75
|
-
"is-filter":
|
|
76
|
-
}],
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"is-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"aria-hidden": _vm.indeterminate ? "true" : "false",
|
|
152
|
-
"disabled": _vm.state.isDisabled || _vm.state.isDisplayOnly,
|
|
153
|
-
"name": _vm.name
|
|
154
|
-
},
|
|
155
|
-
domProps: {
|
|
156
|
-
"value": _vm.label,
|
|
157
|
-
"checked": Array.isArray(_vm.state.model) ? _vm._i(_vm.state.model, _vm.label) > -1 : _vm.state.model
|
|
158
|
-
},
|
|
159
|
-
on: {
|
|
160
|
-
"change": [function($event) {
|
|
161
|
-
var $$a = _vm.state.model, $$el = $event.target, $$c = $$el.checked ? true : false;
|
|
162
|
-
if (Array.isArray($$a)) {
|
|
163
|
-
var $$v = _vm.label, $$i = _vm._i($$a, $$v);
|
|
164
|
-
if ($$el.checked) {
|
|
165
|
-
$$i < 0 && _vm.$set(_vm.state, "model", $$a.concat([$$v]));
|
|
166
|
-
} else {
|
|
167
|
-
$$i > -1 && _vm.$set(_vm.state, "model", $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
168
|
-
}
|
|
169
|
-
} else {
|
|
170
|
-
_vm.$set(_vm.state, "model", $$c);
|
|
171
|
-
}
|
|
172
|
-
}, function($event) {
|
|
173
|
-
$event.stopPropagation();
|
|
174
|
-
return _vm.handleChange.apply(null, arguments);
|
|
175
|
-
}],
|
|
176
|
-
"focus": function focus($event) {
|
|
177
|
-
_vm.state.focus = true;
|
|
178
|
-
},
|
|
179
|
-
"blur": function blur($event) {
|
|
180
|
-
_vm.state.focus = false;
|
|
181
|
-
},
|
|
182
|
-
"click": function click($event) {
|
|
183
|
-
$event.stopPropagation();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}), _c("span", {
|
|
187
|
-
staticClass: "tiny-checkbox__inner"
|
|
188
|
-
}, [_vm.indeterminate && _vm.state.shape !== "filter" ? _c("icon-halfselect", {
|
|
189
|
-
staticClass: "tiny-svg-size icon-halfselect"
|
|
190
|
-
}) : _vm.state.isChecked ? _c("icon-checked-sur", {
|
|
191
|
-
staticClass: "tiny-svg-size icon-checked-sur"
|
|
192
|
-
}) : _c("icon-check", {
|
|
193
|
-
staticClass: "tiny-svg-size icon-check"
|
|
194
|
-
})], 1)]), _vm.slots.default && _vm.slots.default() || _vm.state.isShowText ? _c("span", {
|
|
195
|
-
directives: [{
|
|
196
|
-
name: "auto-tip",
|
|
197
|
-
rawName: "v-auto-tip"
|
|
198
|
-
}],
|
|
199
|
-
staticClass: "tiny-checkbox__label tiny-checkbox-display-only"
|
|
200
|
-
}, [_vm._t("default", function() {
|
|
201
|
-
return [_vm._v(_vm._s(_vm.state.showText))];
|
|
202
|
-
})], 2) : _vm._e()]);
|
|
203
|
-
};
|
|
204
|
-
var staticRenderFns = [];
|
|
205
|
-
var __cssModules = {};
|
|
206
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
207
|
-
function __vue2_injectStyles(context) {
|
|
208
|
-
for (var o in __cssModules) {
|
|
209
|
-
this[o] = __cssModules[o];
|
|
210
|
-
}
|
|
90
|
+
"is-filter": _ctx.state.shape === "filter"
|
|
91
|
+
}]],
|
|
92
|
+
id: _ctx.id,
|
|
93
|
+
tabindex: "-1"
|
|
94
|
+
}, _ctx.a(_ctx.$attrs, ["class", "style", "onClick"], true)), [createElementVNode("span", {
|
|
95
|
+
class: normalizeClass(["tiny-checkbox__input", {
|
|
96
|
+
"is-disabled": _ctx.state.isDisabled || _ctx.state.isDisplayOnly,
|
|
97
|
+
"is-checked": _ctx.state.isChecked,
|
|
98
|
+
"is-indeterminate": _ctx.indeterminate,
|
|
99
|
+
"is-focus": _ctx.state.focus
|
|
100
|
+
}]),
|
|
101
|
+
role: _ctx.indeterminate ? "checkbox" : void 0,
|
|
102
|
+
"aria-checked": _ctx.indeterminate ? "mixed" : false
|
|
103
|
+
}, [_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "tiny-checkbox__original",
|
|
106
|
+
type: "checkbox",
|
|
107
|
+
tabindex: _ctx.tabindex,
|
|
108
|
+
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
109
|
+
name: _ctx.name,
|
|
110
|
+
disabled: _ctx.state.isDisabled || _ctx.state.isDisplayOnly,
|
|
111
|
+
"true-value": _ctx.trueLabel,
|
|
112
|
+
"false-value": _ctx.falseLabel,
|
|
113
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
114
|
+
return _ctx.state.model = $event;
|
|
115
|
+
}),
|
|
116
|
+
onChange: _cache[1] || (_cache[1] = withModifiers(function() {
|
|
117
|
+
return _ctx.handleChange && _ctx.handleChange.apply(_ctx, arguments);
|
|
118
|
+
}, ["stop"])),
|
|
119
|
+
onFocus: _cache[2] || (_cache[2] = function($event) {
|
|
120
|
+
return _ctx.state.focus = true;
|
|
121
|
+
}),
|
|
122
|
+
onBlur: _cache[3] || (_cache[3] = function($event) {
|
|
123
|
+
return _ctx.state.focus = false;
|
|
124
|
+
}),
|
|
125
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(function() {
|
|
126
|
+
}, ["stop"]))
|
|
127
|
+
}, null, 40, _hoisted_3)), [[vModelCheckbox, _ctx.state.model]]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
128
|
+
key: 1,
|
|
129
|
+
class: "tiny-checkbox__original",
|
|
130
|
+
type: "checkbox",
|
|
131
|
+
tabindex: _ctx.tabindex,
|
|
132
|
+
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
133
|
+
disabled: _ctx.state.isDisabled || _ctx.state.isDisplayOnly,
|
|
134
|
+
value: _ctx.label,
|
|
135
|
+
name: _ctx.name,
|
|
136
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = function($event) {
|
|
137
|
+
return _ctx.state.model = $event;
|
|
138
|
+
}),
|
|
139
|
+
onChange: _cache[6] || (_cache[6] = withModifiers(function() {
|
|
140
|
+
return _ctx.handleChange && _ctx.handleChange.apply(_ctx, arguments);
|
|
141
|
+
}, ["stop"])),
|
|
142
|
+
onFocus: _cache[7] || (_cache[7] = function($event) {
|
|
143
|
+
return _ctx.state.focus = true;
|
|
144
|
+
}),
|
|
145
|
+
onBlur: _cache[8] || (_cache[8] = function($event) {
|
|
146
|
+
return _ctx.state.focus = false;
|
|
147
|
+
}),
|
|
148
|
+
onClick: _cache[9] || (_cache[9] = withModifiers(function() {
|
|
149
|
+
}, ["stop"]))
|
|
150
|
+
}, null, 40, _hoisted_4)), [[vModelCheckbox, _ctx.state.model]]), createElementVNode("span", _hoisted_5, [_ctx.indeterminate && _ctx.state.shape !== "filter" ? (openBlock(), createBlock(_component_icon_halfselect, {
|
|
151
|
+
key: 0,
|
|
152
|
+
class: "tiny-svg-size icon-halfselect"
|
|
153
|
+
})) : _ctx.state.isChecked ? (openBlock(), createBlock(_component_icon_checked_sur, {
|
|
154
|
+
key: 1,
|
|
155
|
+
class: "tiny-svg-size icon-checked-sur"
|
|
156
|
+
})) : (openBlock(), createBlock(_component_icon_check, {
|
|
157
|
+
key: 2,
|
|
158
|
+
class: "tiny-svg-size icon-check"
|
|
159
|
+
}))])], 10, _hoisted_2), _ctx.slots.default && _ctx.slots.default() || _ctx.state.isShowText ? withDirectives((openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, function() {
|
|
160
|
+
return [createTextVNode(
|
|
161
|
+
toDisplayString(_ctx.state.showText),
|
|
162
|
+
1
|
|
163
|
+
/* TEXT */
|
|
164
|
+
)];
|
|
165
|
+
})])), [[_directive_auto_tip]]) : createCommentVNode("v-if", true)], 16, _hoisted_1);
|
|
211
166
|
}
|
|
212
|
-
var pc = /* @__PURE__ */
|
|
213
|
-
return __component__.exports;
|
|
214
|
-
}();
|
|
167
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
215
168
|
|
|
216
169
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-checkbox",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
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": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
11
11
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
12
|
-
"@opentinyvue/vue-directive": "~
|
|
13
|
-
"@opentinyvue/vue-icon": "~
|
|
12
|
+
"@opentinyvue/vue-directive": "~3.21.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~3.21.0",
|
|
14
14
|
"@opentinyvue/vue-theme-mobile": "~3.21.0",
|
|
15
15
|
"@opentinyvue/vue-theme": "~3.21.0"
|
|
16
16
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const checkboxProps: {
|
|
|
38
38
|
border: BooleanConstructor;
|
|
39
39
|
size: StringConstructor;
|
|
40
40
|
text: StringConstructor;
|
|
41
|
-
customClass: (StringConstructor |
|
|
41
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
42
42
|
validateEvent: {
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
@@ -67,5 +67,142 @@ export declare const checkboxProps: {
|
|
|
67
67
|
tiny_theme: StringConstructor;
|
|
68
68
|
tiny_chart_theme: ObjectConstructor;
|
|
69
69
|
};
|
|
70
|
-
declare const _default:
|
|
70
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
71
|
+
_constants: {
|
|
72
|
+
type: ObjectConstructor;
|
|
73
|
+
default: () => {
|
|
74
|
+
FORM_ITEM: string;
|
|
75
|
+
FORM_CHANGE: string;
|
|
76
|
+
CHECKBOX: string;
|
|
77
|
+
CHECKBOX_GROUP: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
modelValue: {
|
|
81
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
|
+
label: {
|
|
85
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
indeterminate: BooleanConstructor;
|
|
89
|
+
disabled: BooleanConstructor;
|
|
90
|
+
checked: BooleanConstructor;
|
|
91
|
+
name: StringConstructor;
|
|
92
|
+
trueLabel: (StringConstructor | NumberConstructor)[];
|
|
93
|
+
falseLabel: (StringConstructor | NumberConstructor)[];
|
|
94
|
+
id: StringConstructor;
|
|
95
|
+
controls: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
border: BooleanConstructor;
|
|
100
|
+
size: StringConstructor;
|
|
101
|
+
text: StringConstructor;
|
|
102
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
103
|
+
validateEvent: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
events: {
|
|
108
|
+
type: ObjectConstructor;
|
|
109
|
+
default: () => {};
|
|
110
|
+
};
|
|
111
|
+
displayOnly: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
iconPosition: PropType<IconPosition>;
|
|
116
|
+
shape: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
tabindex: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
tiny_mode: StringConstructor;
|
|
125
|
+
tiny_mode_root: BooleanConstructor;
|
|
126
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
127
|
+
tiny_renderless: FunctionConstructor;
|
|
128
|
+
tiny_theme: StringConstructor;
|
|
129
|
+
tiny_chart_theme: ObjectConstructor;
|
|
130
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
133
|
+
_constants: {
|
|
134
|
+
type: ObjectConstructor;
|
|
135
|
+
default: () => {
|
|
136
|
+
FORM_ITEM: string;
|
|
137
|
+
FORM_CHANGE: string;
|
|
138
|
+
CHECKBOX: string;
|
|
139
|
+
CHECKBOX_GROUP: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
modelValue: {
|
|
143
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
label: {
|
|
147
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
indeterminate: BooleanConstructor;
|
|
151
|
+
disabled: BooleanConstructor;
|
|
152
|
+
checked: BooleanConstructor;
|
|
153
|
+
name: StringConstructor;
|
|
154
|
+
trueLabel: (StringConstructor | NumberConstructor)[];
|
|
155
|
+
falseLabel: (StringConstructor | NumberConstructor)[];
|
|
156
|
+
id: StringConstructor;
|
|
157
|
+
controls: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
border: BooleanConstructor;
|
|
162
|
+
size: StringConstructor;
|
|
163
|
+
text: StringConstructor;
|
|
164
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
165
|
+
validateEvent: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
events: {
|
|
170
|
+
type: ObjectConstructor;
|
|
171
|
+
default: () => {};
|
|
172
|
+
};
|
|
173
|
+
displayOnly: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
iconPosition: PropType<IconPosition>;
|
|
178
|
+
shape: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
tabindex: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
default: string;
|
|
185
|
+
};
|
|
186
|
+
tiny_mode: StringConstructor;
|
|
187
|
+
tiny_mode_root: BooleanConstructor;
|
|
188
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
189
|
+
tiny_renderless: FunctionConstructor;
|
|
190
|
+
tiny_theme: StringConstructor;
|
|
191
|
+
tiny_chart_theme: ObjectConstructor;
|
|
192
|
+
}>>, {
|
|
193
|
+
label: string | number | boolean;
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
tiny_mode_root: boolean;
|
|
196
|
+
_constants: Record<string, any>;
|
|
197
|
+
modelValue: string | number | boolean;
|
|
198
|
+
tabindex: string;
|
|
199
|
+
border: boolean;
|
|
200
|
+
events: Record<string, any>;
|
|
201
|
+
validateEvent: boolean;
|
|
202
|
+
displayOnly: boolean;
|
|
203
|
+
shape: string;
|
|
204
|
+
checked: boolean;
|
|
205
|
+
indeterminate: boolean;
|
|
206
|
+
controls: string;
|
|
207
|
+
}, {}>;
|
|
71
208
|
export default _default;
|
|
@@ -1,2 +1,90 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
name?: any;
|
|
3
|
+
label?: any;
|
|
4
|
+
disabled?: any;
|
|
5
|
+
text?: any;
|
|
6
|
+
size?: any;
|
|
7
|
+
tiny_mode?: any;
|
|
8
|
+
tiny_mode_root?: any;
|
|
9
|
+
tiny_template?: any;
|
|
10
|
+
tiny_renderless?: any;
|
|
11
|
+
_constants?: any;
|
|
12
|
+
tiny_theme?: any;
|
|
13
|
+
tiny_chart_theme?: any;
|
|
14
|
+
modelValue?: any;
|
|
15
|
+
border?: any;
|
|
16
|
+
customClass?: any;
|
|
17
|
+
events?: any;
|
|
18
|
+
validateEvent?: any;
|
|
19
|
+
displayOnly?: any;
|
|
20
|
+
id?: any;
|
|
21
|
+
checked?: any;
|
|
22
|
+
indeterminate?: any;
|
|
23
|
+
trueLabel?: any;
|
|
24
|
+
falseLabel?: any;
|
|
25
|
+
controls?: any;
|
|
26
|
+
}>, {
|
|
27
|
+
t: (this: any, path: any, options?: any) => any;
|
|
28
|
+
vm: any;
|
|
29
|
+
f: (props: any, attrs?: {}) => {};
|
|
30
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
31
|
+
d: (props: any) => void;
|
|
32
|
+
dp: (props: any) => void;
|
|
33
|
+
gcls: (key: any) => any;
|
|
34
|
+
m: (...cssClasses: any[]) => string;
|
|
35
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "complete")[], "change" | "update:modelValue" | "complete", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
36
|
+
name?: any;
|
|
37
|
+
label?: any;
|
|
38
|
+
disabled?: any;
|
|
39
|
+
text?: any;
|
|
40
|
+
size?: any;
|
|
41
|
+
tiny_mode?: any;
|
|
42
|
+
tiny_mode_root?: any;
|
|
43
|
+
tiny_template?: any;
|
|
44
|
+
tiny_renderless?: any;
|
|
45
|
+
_constants?: any;
|
|
46
|
+
tiny_theme?: any;
|
|
47
|
+
tiny_chart_theme?: any;
|
|
48
|
+
modelValue?: any;
|
|
49
|
+
border?: any;
|
|
50
|
+
customClass?: any;
|
|
51
|
+
events?: any;
|
|
52
|
+
validateEvent?: any;
|
|
53
|
+
displayOnly?: any;
|
|
54
|
+
id?: any;
|
|
55
|
+
checked?: any;
|
|
56
|
+
indeterminate?: any;
|
|
57
|
+
trueLabel?: any;
|
|
58
|
+
falseLabel?: any;
|
|
59
|
+
controls?: any;
|
|
60
|
+
}>>> & {
|
|
61
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
readonly name?: any;
|
|
66
|
+
readonly label?: any;
|
|
67
|
+
readonly disabled?: any;
|
|
68
|
+
readonly text?: any;
|
|
69
|
+
readonly size?: any;
|
|
70
|
+
readonly tiny_mode?: any;
|
|
71
|
+
readonly tiny_mode_root?: any;
|
|
72
|
+
readonly tiny_template?: any;
|
|
73
|
+
readonly tiny_renderless?: any;
|
|
74
|
+
readonly _constants?: any;
|
|
75
|
+
readonly tiny_theme?: any;
|
|
76
|
+
readonly tiny_chart_theme?: any;
|
|
77
|
+
readonly modelValue?: any;
|
|
78
|
+
readonly border?: any;
|
|
79
|
+
readonly customClass?: any;
|
|
80
|
+
readonly events?: any;
|
|
81
|
+
readonly validateEvent?: any;
|
|
82
|
+
readonly displayOnly?: any;
|
|
83
|
+
readonly id?: any;
|
|
84
|
+
readonly checked?: any;
|
|
85
|
+
readonly indeterminate?: any;
|
|
86
|
+
readonly trueLabel?: any;
|
|
87
|
+
readonly falseLabel?: any;
|
|
88
|
+
readonly controls?: any;
|
|
89
|
+
}, {}>;
|
|
2
90
|
export default _default;
|