@opentinyvue/vue-form 2.22.0 → 3.22.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 +60 -72
- package/lib/pc.js +66 -75
- package/package.json +3 -3
- package/src/index.d.ts +241 -1
- package/src/mobile-first.vue.d.ts +97 -1
- package/src/pc.vue.d.ts +110 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/form/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
4
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createBlock, createCommentVNode } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hook = injectStyles;
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
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;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
36
40
|
components: {
|
|
37
41
|
TinyTooltip: Tooltip
|
|
38
42
|
},
|
|
@@ -51,52 +55,36 @@ var __vue2_script = defineComponent({
|
|
|
51
55
|
});
|
|
52
56
|
}
|
|
53
57
|
});
|
|
54
|
-
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
on: {
|
|
68
|
-
"submit": function submit($event) {
|
|
69
|
-
$event.preventDefault();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, [_vm._t("default"), _vm.displayOnly ? _c("tiny-tooltip", {
|
|
73
|
-
ref: "tooltip",
|
|
74
|
-
attrs: {
|
|
75
|
-
"popper-class": _vm.tooltipConfig.popperClass || "absolute",
|
|
76
|
-
"manual": true,
|
|
77
|
-
"effect": _vm.tooltipConfig.effect || "light",
|
|
78
|
-
"content": _vm.state.displayedValue,
|
|
79
|
-
"placement": _vm.tooltipConfig.placement || "top"
|
|
58
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
+
var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
|
|
60
|
+
return openBlock(), createElementBlock(
|
|
61
|
+
"form",
|
|
62
|
+
{
|
|
63
|
+
"data-tag": "tiny-form",
|
|
64
|
+
class: normalizeClass(["w-full overflow-hidden", {
|
|
65
|
+
"overflow-x-visible": _ctx.labelPosition === "top" && !_ctx.hideRequiredAsterisk,
|
|
66
|
+
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4": _ctx.inline
|
|
67
|
+
}]),
|
|
68
|
+
onSubmit: _cache[1] || (_cache[1] = withModifiers(function() {
|
|
69
|
+
}, ["prevent"]))
|
|
80
70
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
71
|
+
[renderSlot(_ctx.$slots, "default"), _ctx.displayOnly ? (openBlock(), createBlock(_component_tiny_tooltip, {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref: "tooltip",
|
|
74
|
+
modelValue: _ctx.state.tooltipVisible,
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
76
|
+
return _ctx.state.tooltipVisible = $event;
|
|
77
|
+
}),
|
|
78
|
+
"popper-class": _ctx.tooltipConfig.popperClass || "absolute",
|
|
79
|
+
manual: true,
|
|
80
|
+
effect: _ctx.tooltipConfig.effect || "light",
|
|
81
|
+
content: _ctx.state.displayedValue,
|
|
82
|
+
placement: _ctx.tooltipConfig.placement || "top"
|
|
83
|
+
}, null, 8, ["modelValue", "popper-class", "effect", "content", "placement"])) : createCommentVNode("v-if", true)],
|
|
84
|
+
34
|
|
85
|
+
/* CLASS, NEED_HYDRATION */
|
|
86
|
+
);
|
|
97
87
|
}
|
|
98
|
-
var mobileFirst = /* @__PURE__ */
|
|
99
|
-
return __component__.exports;
|
|
100
|
-
}();
|
|
88
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
101
89
|
|
|
102
90
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -3,38 +3,42 @@ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
|
3
3
|
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
4
4
|
import '@opentinyvue/vue-theme/form/index.css';
|
|
5
5
|
import '@opentinyvue/vue-theme/form-item/index.css';
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createBlock, mergeProps, 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 = /* @__PURE__ */ defineComponent({
|
|
38
42
|
components: {
|
|
39
43
|
TinyTooltip: Tooltip
|
|
40
44
|
},
|
|
@@ -48,55 +52,42 @@ var __vue2_script = defineComponent({
|
|
|
48
52
|
});
|
|
49
53
|
}
|
|
50
54
|
});
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"submit": function submit($event) {
|
|
70
|
-
$event.preventDefault();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, [_vm._t("default"), _vm.overflowTitle ? _c("tiny-tooltip", _vm._b({
|
|
74
|
-
ref: "tooltip",
|
|
75
|
-
attrs: {
|
|
76
|
-
"manual": true,
|
|
77
|
-
"effect": _vm.tooltipConfig.effect || "light",
|
|
78
|
-
"content": _vm.state.displayedValue,
|
|
79
|
-
"placement": _vm.tooltipConfig.placement || "top"
|
|
55
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
|
+
var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
|
|
57
|
+
return openBlock(), createElementBlock(
|
|
58
|
+
"form",
|
|
59
|
+
{
|
|
60
|
+
class: normalizeClass(["tiny-form", [_ctx.labelPosition ? "tiny-form--label-" + _ctx.labelPosition : "", {
|
|
61
|
+
"tiny-form--inline": _ctx.inline
|
|
62
|
+
}, {
|
|
63
|
+
"label-align": _ctx.labelAlign
|
|
64
|
+
}, {
|
|
65
|
+
"has-required": _ctx.state.hasRequired
|
|
66
|
+
}, {
|
|
67
|
+
"asterisk-form": _ctx.labelPosition === "top" && !_ctx.state.hideRequiredAsterisk
|
|
68
|
+
}, {
|
|
69
|
+
"is-display-only": _ctx.state.isDisplayOnly
|
|
70
|
+
}]]),
|
|
71
|
+
onSubmit: _cache[1] || (_cache[1] = withModifiers(function() {
|
|
72
|
+
}, ["prevent"]))
|
|
80
73
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
74
|
+
[renderSlot(_ctx.$slots, "default"), _ctx.overflowTitle ? (openBlock(), createBlock(_component_tiny_tooltip, mergeProps({
|
|
75
|
+
key: 0,
|
|
76
|
+
ref: "tooltip",
|
|
77
|
+
modelValue: _ctx.state.tooltipVisible,
|
|
78
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
79
|
+
return _ctx.state.tooltipVisible = $event;
|
|
80
|
+
})
|
|
81
|
+
}, _ctx.tooltipConfig, {
|
|
82
|
+
manual: true,
|
|
83
|
+
effect: _ctx.tooltipConfig.effect || "light",
|
|
84
|
+
content: _ctx.state.displayedValue,
|
|
85
|
+
placement: _ctx.tooltipConfig.placement || "top"
|
|
86
|
+
}), null, 16, ["modelValue", "effect", "content", "placement"])) : createCommentVNode("v-if", true)],
|
|
87
|
+
34
|
|
88
|
+
/* CLASS, NEED_HYDRATION */
|
|
89
|
+
);
|
|
97
90
|
}
|
|
98
|
-
var pc = /* @__PURE__ */
|
|
99
|
-
return __component__.exports;
|
|
100
|
-
}();
|
|
91
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
101
92
|
|
|
102
93
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.22.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.22.0",
|
|
11
11
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
12
|
-
"@opentinyvue/vue-tooltip": "~
|
|
12
|
+
"@opentinyvue/vue-tooltip": "~3.22.0",
|
|
13
13
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
package/src/index.d.ts
CHANGED
|
@@ -105,5 +105,245 @@ export declare const formProps: {
|
|
|
105
105
|
tiny_theme: StringConstructor;
|
|
106
106
|
tiny_chart_theme: ObjectConstructor;
|
|
107
107
|
};
|
|
108
|
-
declare const _default:
|
|
108
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
109
|
+
model: ObjectConstructor;
|
|
110
|
+
rules: ObjectConstructor;
|
|
111
|
+
inlineMessage: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
messageType: StringConstructor;
|
|
116
|
+
statusIcon: BooleanConstructor;
|
|
117
|
+
showMessage: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
validatePosition: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
size: StringConstructor;
|
|
126
|
+
disabled: BooleanConstructor;
|
|
127
|
+
validateOnRuleChange: {
|
|
128
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
129
|
+
validator: (value: string | boolean) => boolean;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
hideRequiredAsterisk: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: undefined;
|
|
135
|
+
};
|
|
136
|
+
labelPosition: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
validator: (value: string) => boolean;
|
|
140
|
+
};
|
|
141
|
+
labelWidth: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
labelAlign: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
contentOffset: NumberConstructor;
|
|
150
|
+
labelSuffix: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
inline: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
responsiveLayout: {
|
|
159
|
+
type: BooleanConstructor;
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
validateType: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
validator(value: string): boolean;
|
|
166
|
+
};
|
|
167
|
+
validateIcon: ObjectConstructor;
|
|
168
|
+
manual: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
appendToBody: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
popperOptions: {
|
|
177
|
+
type: ObjectConstructor;
|
|
178
|
+
default: () => {};
|
|
179
|
+
};
|
|
180
|
+
displayOnly: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
showAutoWidth: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
showEmptyValue: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
validateTag: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
overflowTitle: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
wrapFragment: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
tooltipConfig: {
|
|
205
|
+
type: ObjectConstructor;
|
|
206
|
+
default: () => {};
|
|
207
|
+
};
|
|
208
|
+
tiny_mode: StringConstructor;
|
|
209
|
+
tiny_mode_root: BooleanConstructor;
|
|
210
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
211
|
+
tiny_renderless: FunctionConstructor;
|
|
212
|
+
tiny_theme: StringConstructor;
|
|
213
|
+
tiny_chart_theme: ObjectConstructor;
|
|
214
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
215
|
+
[key: string]: any;
|
|
216
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
217
|
+
model: ObjectConstructor;
|
|
218
|
+
rules: ObjectConstructor;
|
|
219
|
+
inlineMessage: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: undefined;
|
|
222
|
+
};
|
|
223
|
+
messageType: StringConstructor;
|
|
224
|
+
statusIcon: BooleanConstructor;
|
|
225
|
+
showMessage: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
validatePosition: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
default: string;
|
|
232
|
+
};
|
|
233
|
+
size: StringConstructor;
|
|
234
|
+
disabled: BooleanConstructor;
|
|
235
|
+
validateOnRuleChange: {
|
|
236
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
237
|
+
validator: (value: string | boolean) => boolean;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
hideRequiredAsterisk: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
default: undefined;
|
|
243
|
+
};
|
|
244
|
+
labelPosition: {
|
|
245
|
+
type: StringConstructor;
|
|
246
|
+
default: string;
|
|
247
|
+
validator: (value: string) => boolean;
|
|
248
|
+
};
|
|
249
|
+
labelWidth: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
labelAlign: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
contentOffset: NumberConstructor;
|
|
258
|
+
labelSuffix: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
inline: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
responsiveLayout: {
|
|
267
|
+
type: BooleanConstructor;
|
|
268
|
+
default: boolean;
|
|
269
|
+
};
|
|
270
|
+
validateType: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
default: string;
|
|
273
|
+
validator(value: string): boolean;
|
|
274
|
+
};
|
|
275
|
+
validateIcon: ObjectConstructor;
|
|
276
|
+
manual: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
280
|
+
appendToBody: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
default: undefined;
|
|
283
|
+
};
|
|
284
|
+
popperOptions: {
|
|
285
|
+
type: ObjectConstructor;
|
|
286
|
+
default: () => {};
|
|
287
|
+
};
|
|
288
|
+
displayOnly: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: boolean;
|
|
291
|
+
};
|
|
292
|
+
showAutoWidth: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: boolean;
|
|
295
|
+
};
|
|
296
|
+
showEmptyValue: {
|
|
297
|
+
type: BooleanConstructor;
|
|
298
|
+
default: boolean;
|
|
299
|
+
};
|
|
300
|
+
validateTag: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: boolean;
|
|
303
|
+
};
|
|
304
|
+
overflowTitle: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
wrapFragment: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: string;
|
|
311
|
+
};
|
|
312
|
+
tooltipConfig: {
|
|
313
|
+
type: ObjectConstructor;
|
|
314
|
+
default: () => {};
|
|
315
|
+
};
|
|
316
|
+
tiny_mode: StringConstructor;
|
|
317
|
+
tiny_mode_root: BooleanConstructor;
|
|
318
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
319
|
+
tiny_renderless: FunctionConstructor;
|
|
320
|
+
tiny_theme: StringConstructor;
|
|
321
|
+
tiny_chart_theme: ObjectConstructor;
|
|
322
|
+
}>>, {
|
|
323
|
+
disabled: boolean;
|
|
324
|
+
appendToBody: boolean;
|
|
325
|
+
manual: boolean;
|
|
326
|
+
tiny_mode_root: boolean;
|
|
327
|
+
popperOptions: Record<string, any>;
|
|
328
|
+
displayOnly: boolean;
|
|
329
|
+
showEmptyValue: boolean;
|
|
330
|
+
tooltipConfig: Record<string, any>;
|
|
331
|
+
showAutoWidth: boolean;
|
|
332
|
+
overflowTitle: boolean;
|
|
333
|
+
inline: boolean;
|
|
334
|
+
inlineMessage: boolean;
|
|
335
|
+
labelWidth: string;
|
|
336
|
+
showMessage: boolean;
|
|
337
|
+
validatePosition: string;
|
|
338
|
+
validateType: string;
|
|
339
|
+
statusIcon: boolean;
|
|
340
|
+
validateTag: boolean;
|
|
341
|
+
wrapFragment: string;
|
|
342
|
+
labelSuffix: string;
|
|
343
|
+
validateOnRuleChange: string | boolean;
|
|
344
|
+
hideRequiredAsterisk: boolean;
|
|
345
|
+
labelPosition: string;
|
|
346
|
+
responsiveLayout: boolean;
|
|
347
|
+
labelAlign: boolean;
|
|
348
|
+
}, {}>;
|
|
109
349
|
export default _default;
|
|
@@ -1,2 +1,98 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
disabled?: any;
|
|
3
|
+
size?: any;
|
|
4
|
+
appendToBody?: any;
|
|
5
|
+
manual?: any;
|
|
6
|
+
tiny_mode?: any;
|
|
7
|
+
tiny_mode_root?: any;
|
|
8
|
+
tiny_template?: any;
|
|
9
|
+
tiny_renderless?: any;
|
|
10
|
+
_constants?: any;
|
|
11
|
+
tiny_theme?: any;
|
|
12
|
+
tiny_chart_theme?: any;
|
|
13
|
+
model?: any;
|
|
14
|
+
popperOptions?: any;
|
|
15
|
+
displayOnly?: any;
|
|
16
|
+
showEmptyValue?: any;
|
|
17
|
+
tooltipConfig?: any;
|
|
18
|
+
inline?: any;
|
|
19
|
+
rules?: any;
|
|
20
|
+
messageType?: any;
|
|
21
|
+
inlineMessage?: any;
|
|
22
|
+
labelWidth?: any;
|
|
23
|
+
showMessage?: any;
|
|
24
|
+
validateType?: any;
|
|
25
|
+
validateIcon?: any;
|
|
26
|
+
statusIcon?: any;
|
|
27
|
+
labelSuffix?: any;
|
|
28
|
+
validateOnRuleChange?: any;
|
|
29
|
+
hideRequiredAsterisk?: any;
|
|
30
|
+
labelPosition?: any;
|
|
31
|
+
contentOffset?: any;
|
|
32
|
+
responsiveLayout?: any;
|
|
33
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
34
|
+
disabled?: any;
|
|
35
|
+
size?: any;
|
|
36
|
+
appendToBody?: any;
|
|
37
|
+
manual?: any;
|
|
38
|
+
tiny_mode?: any;
|
|
39
|
+
tiny_mode_root?: any;
|
|
40
|
+
tiny_template?: any;
|
|
41
|
+
tiny_renderless?: any;
|
|
42
|
+
_constants?: any;
|
|
43
|
+
tiny_theme?: any;
|
|
44
|
+
tiny_chart_theme?: any;
|
|
45
|
+
model?: any;
|
|
46
|
+
popperOptions?: any;
|
|
47
|
+
displayOnly?: any;
|
|
48
|
+
showEmptyValue?: any;
|
|
49
|
+
tooltipConfig?: any;
|
|
50
|
+
inline?: any;
|
|
51
|
+
rules?: any;
|
|
52
|
+
messageType?: any;
|
|
53
|
+
inlineMessage?: any;
|
|
54
|
+
labelWidth?: any;
|
|
55
|
+
showMessage?: any;
|
|
56
|
+
validateType?: any;
|
|
57
|
+
validateIcon?: any;
|
|
58
|
+
statusIcon?: any;
|
|
59
|
+
labelSuffix?: any;
|
|
60
|
+
validateOnRuleChange?: any;
|
|
61
|
+
hideRequiredAsterisk?: any;
|
|
62
|
+
labelPosition?: any;
|
|
63
|
+
contentOffset?: any;
|
|
64
|
+
responsiveLayout?: any;
|
|
65
|
+
}>>>, {
|
|
66
|
+
readonly disabled?: any;
|
|
67
|
+
readonly size?: any;
|
|
68
|
+
readonly appendToBody?: any;
|
|
69
|
+
readonly manual?: 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 model?: any;
|
|
78
|
+
readonly popperOptions?: any;
|
|
79
|
+
readonly displayOnly?: any;
|
|
80
|
+
readonly showEmptyValue?: any;
|
|
81
|
+
readonly tooltipConfig?: any;
|
|
82
|
+
readonly inline?: any;
|
|
83
|
+
readonly rules?: any;
|
|
84
|
+
readonly messageType?: any;
|
|
85
|
+
readonly inlineMessage?: any;
|
|
86
|
+
readonly labelWidth?: any;
|
|
87
|
+
readonly showMessage?: any;
|
|
88
|
+
readonly validateType?: any;
|
|
89
|
+
readonly validateIcon?: any;
|
|
90
|
+
readonly statusIcon?: any;
|
|
91
|
+
readonly labelSuffix?: any;
|
|
92
|
+
readonly validateOnRuleChange?: any;
|
|
93
|
+
readonly hideRequiredAsterisk?: any;
|
|
94
|
+
readonly labelPosition?: any;
|
|
95
|
+
readonly contentOffset?: any;
|
|
96
|
+
readonly responsiveLayout?: any;
|
|
97
|
+
}, {}>;
|
|
2
98
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,111 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IFormApi } from '@opentinyvue/vue-renderless/types/form.type';
|
|
2
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
|
+
disabled?: any;
|
|
4
|
+
size?: any;
|
|
5
|
+
appendToBody?: any;
|
|
6
|
+
manual?: 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
|
+
model?: any;
|
|
15
|
+
popperOptions?: any;
|
|
16
|
+
displayOnly?: any;
|
|
17
|
+
showEmptyValue?: any;
|
|
18
|
+
tooltipConfig?: any;
|
|
19
|
+
showAutoWidth?: any;
|
|
20
|
+
overflowTitle?: any;
|
|
21
|
+
inline?: any;
|
|
22
|
+
rules?: any;
|
|
23
|
+
messageType?: any;
|
|
24
|
+
inlineMessage?: any;
|
|
25
|
+
labelWidth?: any;
|
|
26
|
+
showMessage?: any;
|
|
27
|
+
validateType?: any;
|
|
28
|
+
validateIcon?: any;
|
|
29
|
+
statusIcon?: any;
|
|
30
|
+
validateTag?: any;
|
|
31
|
+
labelSuffix?: any;
|
|
32
|
+
validateOnRuleChange?: any;
|
|
33
|
+
hideRequiredAsterisk?: any;
|
|
34
|
+
labelPosition?: any;
|
|
35
|
+
contentOffset?: any;
|
|
36
|
+
responsiveLayout?: any;
|
|
37
|
+
labelAlign?: any;
|
|
38
|
+
}>, IFormApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
39
|
+
disabled?: any;
|
|
40
|
+
size?: any;
|
|
41
|
+
appendToBody?: any;
|
|
42
|
+
manual?: any;
|
|
43
|
+
tiny_mode?: any;
|
|
44
|
+
tiny_mode_root?: any;
|
|
45
|
+
tiny_template?: any;
|
|
46
|
+
tiny_renderless?: any;
|
|
47
|
+
_constants?: any;
|
|
48
|
+
tiny_theme?: any;
|
|
49
|
+
tiny_chart_theme?: any;
|
|
50
|
+
model?: any;
|
|
51
|
+
popperOptions?: any;
|
|
52
|
+
displayOnly?: any;
|
|
53
|
+
showEmptyValue?: any;
|
|
54
|
+
tooltipConfig?: any;
|
|
55
|
+
showAutoWidth?: any;
|
|
56
|
+
overflowTitle?: any;
|
|
57
|
+
inline?: any;
|
|
58
|
+
rules?: any;
|
|
59
|
+
messageType?: any;
|
|
60
|
+
inlineMessage?: any;
|
|
61
|
+
labelWidth?: any;
|
|
62
|
+
showMessage?: any;
|
|
63
|
+
validateType?: any;
|
|
64
|
+
validateIcon?: any;
|
|
65
|
+
statusIcon?: any;
|
|
66
|
+
validateTag?: any;
|
|
67
|
+
labelSuffix?: any;
|
|
68
|
+
validateOnRuleChange?: any;
|
|
69
|
+
hideRequiredAsterisk?: any;
|
|
70
|
+
labelPosition?: any;
|
|
71
|
+
contentOffset?: any;
|
|
72
|
+
responsiveLayout?: any;
|
|
73
|
+
labelAlign?: any;
|
|
74
|
+
}>>>, {
|
|
75
|
+
readonly disabled?: any;
|
|
76
|
+
readonly size?: any;
|
|
77
|
+
readonly appendToBody?: any;
|
|
78
|
+
readonly manual?: any;
|
|
79
|
+
readonly tiny_mode?: any;
|
|
80
|
+
readonly tiny_mode_root?: any;
|
|
81
|
+
readonly tiny_template?: any;
|
|
82
|
+
readonly tiny_renderless?: any;
|
|
83
|
+
readonly _constants?: any;
|
|
84
|
+
readonly tiny_theme?: any;
|
|
85
|
+
readonly tiny_chart_theme?: any;
|
|
86
|
+
readonly model?: any;
|
|
87
|
+
readonly popperOptions?: any;
|
|
88
|
+
readonly displayOnly?: any;
|
|
89
|
+
readonly showEmptyValue?: any;
|
|
90
|
+
readonly tooltipConfig?: any;
|
|
91
|
+
readonly showAutoWidth?: any;
|
|
92
|
+
readonly overflowTitle?: any;
|
|
93
|
+
readonly inline?: any;
|
|
94
|
+
readonly rules?: any;
|
|
95
|
+
readonly messageType?: any;
|
|
96
|
+
readonly inlineMessage?: any;
|
|
97
|
+
readonly labelWidth?: any;
|
|
98
|
+
readonly showMessage?: any;
|
|
99
|
+
readonly validateType?: any;
|
|
100
|
+
readonly validateIcon?: any;
|
|
101
|
+
readonly statusIcon?: any;
|
|
102
|
+
readonly validateTag?: any;
|
|
103
|
+
readonly labelSuffix?: any;
|
|
104
|
+
readonly validateOnRuleChange?: any;
|
|
105
|
+
readonly hideRequiredAsterisk?: any;
|
|
106
|
+
readonly labelPosition?: any;
|
|
107
|
+
readonly contentOffset?: any;
|
|
108
|
+
readonly responsiveLayout?: any;
|
|
109
|
+
readonly labelAlign?: any;
|
|
110
|
+
}, {}>;
|
|
2
111
|
export default _default;
|