@opentinyvue/vue-form 3.21.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 +2 -6
- package/package.json +5 -6
- package/src/index.d.ts +2 -2
- package/src/mobile-first.vue.d.ts +6 -6
- package/src/pc.vue.d.ts +9 -9
- package/lib/mobile.js +0 -70
- package/src/mobile.vue.d.ts +0 -90
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
|
}
|
|
@@ -149,7 +145,7 @@ var Form = defineComponent({
|
|
|
149
145
|
});
|
|
150
146
|
}
|
|
151
147
|
});
|
|
152
|
-
var version = "3.
|
|
148
|
+
var version = "3.22.0";
|
|
153
149
|
Form.install = function(Vue) {
|
|
154
150
|
Vue.component(Form.name, Form);
|
|
155
151
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-form",
|
|
3
|
-
"version": "3.
|
|
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": "~3.
|
|
11
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
12
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
13
|
-
"@opentinyvue/vue-theme
|
|
14
|
-
"@opentinyvue/vue-theme": "~3.21.0"
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-tooltip": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
15
14
|
},
|
|
16
15
|
"license": "MIT",
|
|
17
16
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -321,9 +321,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
321
321
|
tiny_chart_theme: ObjectConstructor;
|
|
322
322
|
}>>, {
|
|
323
323
|
disabled: boolean;
|
|
324
|
-
tiny_mode_root: boolean;
|
|
325
324
|
appendToBody: boolean;
|
|
326
325
|
manual: boolean;
|
|
326
|
+
tiny_mode_root: boolean;
|
|
327
327
|
popperOptions: Record<string, any>;
|
|
328
328
|
displayOnly: boolean;
|
|
329
329
|
showEmptyValue: boolean;
|
|
@@ -343,7 +343,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
343
343
|
validateOnRuleChange: string | boolean;
|
|
344
344
|
hideRequiredAsterisk: boolean;
|
|
345
345
|
labelPosition: string;
|
|
346
|
-
labelAlign: boolean;
|
|
347
346
|
responsiveLayout: boolean;
|
|
347
|
+
labelAlign: boolean;
|
|
348
348
|
}, {}>;
|
|
349
349
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
2
|
disabled?: any;
|
|
3
3
|
size?: any;
|
|
4
|
+
appendToBody?: any;
|
|
5
|
+
manual?: any;
|
|
4
6
|
tiny_mode?: any;
|
|
5
7
|
tiny_mode_root?: any;
|
|
6
8
|
tiny_template?: any;
|
|
@@ -8,9 +10,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
8
10
|
_constants?: any;
|
|
9
11
|
tiny_theme?: any;
|
|
10
12
|
tiny_chart_theme?: any;
|
|
11
|
-
appendToBody?: any;
|
|
12
13
|
model?: any;
|
|
13
|
-
manual?: any;
|
|
14
14
|
popperOptions?: any;
|
|
15
15
|
displayOnly?: any;
|
|
16
16
|
showEmptyValue?: any;
|
|
@@ -33,6 +33,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
33
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
34
|
disabled?: any;
|
|
35
35
|
size?: any;
|
|
36
|
+
appendToBody?: any;
|
|
37
|
+
manual?: any;
|
|
36
38
|
tiny_mode?: any;
|
|
37
39
|
tiny_mode_root?: any;
|
|
38
40
|
tiny_template?: any;
|
|
@@ -40,9 +42,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
40
42
|
_constants?: any;
|
|
41
43
|
tiny_theme?: any;
|
|
42
44
|
tiny_chart_theme?: any;
|
|
43
|
-
appendToBody?: any;
|
|
44
45
|
model?: any;
|
|
45
|
-
manual?: any;
|
|
46
46
|
popperOptions?: any;
|
|
47
47
|
displayOnly?: any;
|
|
48
48
|
showEmptyValue?: any;
|
|
@@ -65,6 +65,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
65
65
|
}>>>, {
|
|
66
66
|
readonly disabled?: any;
|
|
67
67
|
readonly size?: any;
|
|
68
|
+
readonly appendToBody?: any;
|
|
69
|
+
readonly manual?: any;
|
|
68
70
|
readonly tiny_mode?: any;
|
|
69
71
|
readonly tiny_mode_root?: any;
|
|
70
72
|
readonly tiny_template?: any;
|
|
@@ -72,9 +74,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
72
74
|
readonly _constants?: any;
|
|
73
75
|
readonly tiny_theme?: any;
|
|
74
76
|
readonly tiny_chart_theme?: any;
|
|
75
|
-
readonly appendToBody?: any;
|
|
76
77
|
readonly model?: any;
|
|
77
|
-
readonly manual?: any;
|
|
78
78
|
readonly popperOptions?: any;
|
|
79
79
|
readonly displayOnly?: any;
|
|
80
80
|
readonly showEmptyValue?: any;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { IFormApi } from '@opentinyvue/vue-renderless/types/form.type';
|
|
|
2
2
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
3
|
disabled?: any;
|
|
4
4
|
size?: any;
|
|
5
|
+
appendToBody?: any;
|
|
6
|
+
manual?: any;
|
|
5
7
|
tiny_mode?: any;
|
|
6
8
|
tiny_mode_root?: any;
|
|
7
9
|
tiny_template?: any;
|
|
@@ -9,9 +11,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
9
11
|
_constants?: any;
|
|
10
12
|
tiny_theme?: any;
|
|
11
13
|
tiny_chart_theme?: any;
|
|
12
|
-
appendToBody?: any;
|
|
13
14
|
model?: any;
|
|
14
|
-
manual?: any;
|
|
15
15
|
popperOptions?: any;
|
|
16
16
|
displayOnly?: any;
|
|
17
17
|
showEmptyValue?: any;
|
|
@@ -32,12 +32,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
32
32
|
validateOnRuleChange?: any;
|
|
33
33
|
hideRequiredAsterisk?: any;
|
|
34
34
|
labelPosition?: any;
|
|
35
|
-
labelAlign?: any;
|
|
36
35
|
contentOffset?: any;
|
|
37
36
|
responsiveLayout?: any;
|
|
37
|
+
labelAlign?: any;
|
|
38
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
39
|
disabled?: any;
|
|
40
40
|
size?: any;
|
|
41
|
+
appendToBody?: any;
|
|
42
|
+
manual?: any;
|
|
41
43
|
tiny_mode?: any;
|
|
42
44
|
tiny_mode_root?: any;
|
|
43
45
|
tiny_template?: any;
|
|
@@ -45,9 +47,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
45
47
|
_constants?: any;
|
|
46
48
|
tiny_theme?: any;
|
|
47
49
|
tiny_chart_theme?: any;
|
|
48
|
-
appendToBody?: any;
|
|
49
50
|
model?: any;
|
|
50
|
-
manual?: any;
|
|
51
51
|
popperOptions?: any;
|
|
52
52
|
displayOnly?: any;
|
|
53
53
|
showEmptyValue?: any;
|
|
@@ -68,12 +68,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
68
68
|
validateOnRuleChange?: any;
|
|
69
69
|
hideRequiredAsterisk?: any;
|
|
70
70
|
labelPosition?: any;
|
|
71
|
-
labelAlign?: any;
|
|
72
71
|
contentOffset?: any;
|
|
73
72
|
responsiveLayout?: any;
|
|
73
|
+
labelAlign?: any;
|
|
74
74
|
}>>>, {
|
|
75
75
|
readonly disabled?: any;
|
|
76
76
|
readonly size?: any;
|
|
77
|
+
readonly appendToBody?: any;
|
|
78
|
+
readonly manual?: any;
|
|
77
79
|
readonly tiny_mode?: any;
|
|
78
80
|
readonly tiny_mode_root?: any;
|
|
79
81
|
readonly tiny_template?: any;
|
|
@@ -81,9 +83,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
81
83
|
readonly _constants?: any;
|
|
82
84
|
readonly tiny_theme?: any;
|
|
83
85
|
readonly tiny_chart_theme?: any;
|
|
84
|
-
readonly appendToBody?: any;
|
|
85
86
|
readonly model?: any;
|
|
86
|
-
readonly manual?: any;
|
|
87
87
|
readonly popperOptions?: any;
|
|
88
88
|
readonly displayOnly?: any;
|
|
89
89
|
readonly showEmptyValue?: any;
|
|
@@ -104,8 +104,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
104
104
|
readonly validateOnRuleChange?: any;
|
|
105
105
|
readonly hideRequiredAsterisk?: any;
|
|
106
106
|
readonly labelPosition?: any;
|
|
107
|
-
readonly labelAlign?: any;
|
|
108
107
|
readonly contentOffset?: any;
|
|
109
108
|
readonly responsiveLayout?: any;
|
|
109
|
+
readonly labelAlign?: any;
|
|
110
110
|
}, {}>;
|
|
111
111
|
export default _default;
|
package/lib/mobile.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/form/vue';
|
|
2
|
-
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
-
import '@opentinyvue/vue-theme-mobile/form/index.css';
|
|
4
|
-
import '@opentinyvue/vue-theme-mobile/form-item/index.css';
|
|
5
|
-
import { openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot } 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
|
-
props: [].concat(props, ["validatePosition", "validateOnRuleChange", "hideRequiredAsterisk", "model", "rules", "inlineMessage", "messageType", "statusIcon", "labelPosition", "labelAlign", "showMessage", "size", "disabled", "labelWidth", "contentOffset", "labelSuffix", "inline", "responsiveLayout", "validateType", "validateIcon", "manual"]),
|
|
42
|
-
setup: function setup$1(props2, context) {
|
|
43
|
-
return setup({
|
|
44
|
-
props: props2,
|
|
45
|
-
context,
|
|
46
|
-
renderless,
|
|
47
|
-
api
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
|
-
return openBlock(), createElementBlock(
|
|
53
|
-
"form",
|
|
54
|
-
{
|
|
55
|
-
class: normalizeClass(["tiny-mobile-form", [_ctx.labelPosition ? "tiny-mobile-form--label-" + _ctx.labelPosition : "", {
|
|
56
|
-
"tiny-mobile-form--inline": _ctx.inline
|
|
57
|
-
}, {
|
|
58
|
-
"label-align": _ctx.labelAlign
|
|
59
|
-
}]]),
|
|
60
|
-
onSubmit: _cache[0] || (_cache[0] = withModifiers(function() {
|
|
61
|
-
}, ["prevent"]))
|
|
62
|
-
},
|
|
63
|
-
[renderSlot(_ctx.$slots, "default")],
|
|
64
|
-
34
|
|
65
|
-
/* CLASS, NEED_HYDRATION */
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
69
|
-
|
|
70
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
tiny_mode?: any;
|
|
6
|
-
tiny_mode_root?: any;
|
|
7
|
-
tiny_template?: any;
|
|
8
|
-
tiny_renderless?: any;
|
|
9
|
-
_constants?: any;
|
|
10
|
-
tiny_theme?: any;
|
|
11
|
-
tiny_chart_theme?: any;
|
|
12
|
-
model?: any;
|
|
13
|
-
manual?: any;
|
|
14
|
-
inline?: any;
|
|
15
|
-
rules?: any;
|
|
16
|
-
messageType?: any;
|
|
17
|
-
inlineMessage?: any;
|
|
18
|
-
labelWidth?: any;
|
|
19
|
-
showMessage?: any;
|
|
20
|
-
validatePosition?: any;
|
|
21
|
-
validateType?: any;
|
|
22
|
-
validateIcon?: any;
|
|
23
|
-
statusIcon?: any;
|
|
24
|
-
labelSuffix?: any;
|
|
25
|
-
validateOnRuleChange?: any;
|
|
26
|
-
hideRequiredAsterisk?: any;
|
|
27
|
-
labelPosition?: any;
|
|
28
|
-
labelAlign?: any;
|
|
29
|
-
contentOffset?: any;
|
|
30
|
-
responsiveLayout?: any;
|
|
31
|
-
}>, 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<{
|
|
32
|
-
disabled?: any;
|
|
33
|
-
size?: any;
|
|
34
|
-
tiny_mode?: any;
|
|
35
|
-
tiny_mode_root?: any;
|
|
36
|
-
tiny_template?: any;
|
|
37
|
-
tiny_renderless?: any;
|
|
38
|
-
_constants?: any;
|
|
39
|
-
tiny_theme?: any;
|
|
40
|
-
tiny_chart_theme?: any;
|
|
41
|
-
model?: any;
|
|
42
|
-
manual?: any;
|
|
43
|
-
inline?: any;
|
|
44
|
-
rules?: any;
|
|
45
|
-
messageType?: any;
|
|
46
|
-
inlineMessage?: any;
|
|
47
|
-
labelWidth?: any;
|
|
48
|
-
showMessage?: any;
|
|
49
|
-
validatePosition?: any;
|
|
50
|
-
validateType?: any;
|
|
51
|
-
validateIcon?: any;
|
|
52
|
-
statusIcon?: any;
|
|
53
|
-
labelSuffix?: any;
|
|
54
|
-
validateOnRuleChange?: any;
|
|
55
|
-
hideRequiredAsterisk?: any;
|
|
56
|
-
labelPosition?: any;
|
|
57
|
-
labelAlign?: any;
|
|
58
|
-
contentOffset?: any;
|
|
59
|
-
responsiveLayout?: any;
|
|
60
|
-
}>>>, {
|
|
61
|
-
readonly disabled?: any;
|
|
62
|
-
readonly size?: any;
|
|
63
|
-
readonly tiny_mode?: any;
|
|
64
|
-
readonly tiny_mode_root?: any;
|
|
65
|
-
readonly tiny_template?: any;
|
|
66
|
-
readonly tiny_renderless?: any;
|
|
67
|
-
readonly _constants?: any;
|
|
68
|
-
readonly tiny_theme?: any;
|
|
69
|
-
readonly tiny_chart_theme?: any;
|
|
70
|
-
readonly model?: any;
|
|
71
|
-
readonly manual?: any;
|
|
72
|
-
readonly inline?: any;
|
|
73
|
-
readonly rules?: any;
|
|
74
|
-
readonly messageType?: any;
|
|
75
|
-
readonly inlineMessage?: any;
|
|
76
|
-
readonly labelWidth?: any;
|
|
77
|
-
readonly showMessage?: any;
|
|
78
|
-
readonly validatePosition?: any;
|
|
79
|
-
readonly validateType?: any;
|
|
80
|
-
readonly validateIcon?: any;
|
|
81
|
-
readonly statusIcon?: any;
|
|
82
|
-
readonly labelSuffix?: any;
|
|
83
|
-
readonly validateOnRuleChange?: any;
|
|
84
|
-
readonly hideRequiredAsterisk?: any;
|
|
85
|
-
readonly labelPosition?: any;
|
|
86
|
-
readonly labelAlign?: any;
|
|
87
|
-
readonly contentOffset?: any;
|
|
88
|
-
readonly responsiveLayout?: any;
|
|
89
|
-
}, {}>;
|
|
90
|
-
export default _default;
|