@silver-formily/element-plus 0.0.1-alpha.0 → 0.0.1-alpha.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/package.json +1 -1
- package/esm/__builtins__/configs/index.d.ts +0 -1
- package/esm/__builtins__/configs/index.mjs +0 -5
- package/esm/__builtins__/configs/index.mjs.map +0 -1
- package/esm/__builtins__/index.d.ts +0 -2
- package/esm/__builtins__/index.mjs +0 -27
- package/esm/__builtins__/index.mjs.map +0 -1
- package/esm/__builtins__/shared/hooks.d.ts +0 -7
- package/esm/__builtins__/shared/hooks.mjs +0 -59
- package/esm/__builtins__/shared/hooks.mjs.map +0 -1
- package/esm/__builtins__/shared/index.d.ts +0 -7
- package/esm/__builtins__/shared/index.mjs +0 -25
- package/esm/__builtins__/shared/index.mjs.map +0 -1
- package/esm/__builtins__/shared/load-config-provider.d.ts +0 -2
- package/esm/__builtins__/shared/load-config-provider.mjs +0 -13
- package/esm/__builtins__/shared/load-config-provider.mjs.map +0 -1
- package/esm/__builtins__/shared/loading.d.ts +0 -12
- package/esm/__builtins__/shared/loading.mjs +0 -49
- package/esm/__builtins__/shared/loading.mjs.map +0 -1
- package/esm/__builtins__/shared/simple-version-compare.d.ts +0 -2
- package/esm/__builtins__/shared/simple-version-compare.mjs +0 -18
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +0 -1
- package/esm/__builtins__/shared/transform-component.d.ts +0 -8
- package/esm/__builtins__/shared/transform-component.mjs +0 -50
- package/esm/__builtins__/shared/transform-component.mjs.map +0 -1
- package/esm/__builtins__/shared/types.d.ts +0 -2
- package/esm/__builtins__/shared/types.mjs +0 -2
- package/esm/__builtins__/shared/types.mjs.map +0 -1
- package/esm/__builtins__/shared/utils.d.ts +0 -8
- package/esm/__builtins__/shared/utils.mjs +0 -34
- package/esm/__builtins__/shared/utils.mjs.map +0 -1
- package/esm/array-base/array-base-addition.d.ts +0 -5
- package/esm/array-base/array-base-index.d.ts +0 -19
- package/esm/array-base/array-base-inner.d.ts +0 -18
- package/esm/array-base/array-base-item.d.ts +0 -18
- package/esm/array-base/array-base-move-down.d.ts +0 -18
- package/esm/array-base/array-base-move-up.d.ts +0 -18
- package/esm/array-base/array-base-remove.d.ts +0 -18
- package/esm/array-base/array-base-sort-handle.d.ts +0 -2
- package/esm/array-base/index.d.ts +0 -114
- package/esm/array-base/index.mjs +0 -225
- package/esm/array-base/index.mjs.map +0 -1
- package/esm/array-base/symbols.d.ts +0 -4
- package/esm/array-base/symbols.mjs +0 -6
- package/esm/array-base/symbols.mjs.map +0 -1
- package/esm/array-base/types.d.ts +0 -28
- package/esm/array-base/types.mjs +0 -2
- package/esm/array-base/types.mjs.map +0 -1
- package/esm/array-base/utils.d.ts +0 -18
- package/esm/array-base/utils.mjs +0 -88
- package/esm/array-base/utils.mjs.map +0 -1
- package/esm/array-cards/array-cards.d.ts +0 -13
- package/esm/array-cards/index.d.ts +0 -122
- package/esm/array-cards/index.mjs +0 -119
- package/esm/array-cards/index.mjs.map +0 -1
- package/esm/array-collapse/array-collapse-item.d.ts +0 -18
- package/esm/array-collapse/array-collapse.d.ts +0 -16
- package/esm/array-collapse/index.d.ts +0 -134
- package/esm/array-collapse/index.mjs +0 -180
- package/esm/array-collapse/index.mjs.map +0 -1
- package/esm/array-collapse/utils.d.ts +0 -1
- package/esm/array-collapse/utils.mjs +0 -12
- package/esm/array-collapse/utils.mjs.map +0 -1
- package/esm/array-items/array-items-item.d.ts +0 -30
- package/esm/array-items/array-items.d.ts +0 -2
- package/esm/array-items/index.d.ts +0 -130
- package/esm/array-items/index.mjs +0 -105
- package/esm/array-items/index.mjs.map +0 -1
- package/esm/array-list-tabs/array-list-tabs.d.ts +0 -31
- package/esm/array-list-tabs/index.d.ts +0 -83
- package/esm/array-list-tabs/index.mjs +0 -183
- package/esm/array-list-tabs/index.mjs.map +0 -1
- package/esm/array-list-tabs/utils.d.ts +0 -3
- package/esm/array-list-tabs/utils.mjs +0 -16
- package/esm/array-list-tabs/utils.mjs.map +0 -1
- package/esm/array-table/index.mjs +0 -230
- package/esm/array-table/index.mjs.map +0 -1
- package/esm/array-table/types.d.ts +0 -6
- package/esm/array-table/types.mjs +0 -2
- package/esm/array-table/types.mjs.map +0 -1
- package/esm/array-table/utils.d.ts +0 -5
- package/esm/array-table/utils.mjs +0 -26
- package/esm/array-table/utils.mjs.map +0 -1
- package/esm/array-tabs/array-tabs.d.ts +0 -2
- package/esm/array-tabs/index.d.ts +0 -2
- package/esm/array-tabs/index.mjs +0 -88
- package/esm/array-tabs/index.mjs.map +0 -1
- package/esm/cascader/cascader.d.ts +0 -30
- package/esm/cascader/index.d.ts +0 -41
- package/esm/cascader/index.mjs +0 -54
- package/esm/cascader/index.mjs.map +0 -1
- package/esm/checkbox/checkbox-group.d.ts +0 -58
- package/esm/checkbox/index.d.ts +0 -716
- package/esm/checkbox/index.mjs +0 -86
- package/esm/checkbox/index.mjs.map +0 -1
- package/esm/date-picker/index.d.ts +0 -2
- package/esm/date-picker/index.mjs +0 -57
- package/esm/date-picker/index.mjs.map +0 -1
- package/esm/editable/editable-popover.d.ts +0 -25
- package/esm/editable/editable.d.ts +0 -187
- package/esm/editable/index.d.ts +0 -147
- package/esm/editable/index.mjs +0 -231
- package/esm/editable/index.mjs.map +0 -1
- package/esm/form/form.d.ts +0 -46
- package/esm/form/form.mjs +0 -77
- package/esm/form/form.mjs.map +0 -1
- package/esm/form/index.d.ts +0 -1
- package/esm/form/index.mjs +0 -6
- package/esm/form/index.mjs.map +0 -1
- package/esm/form-button-group/form-button-group-sticky.d.ts +0 -17
- package/esm/form-button-group/form-button-group.d.ts +0 -48
- package/esm/form-button-group/index.d.ts +0 -87
- package/esm/form-button-group/index.mjs +0 -90
- package/esm/form-button-group/index.mjs.map +0 -1
- package/esm/form-button-group/utils.d.ts +0 -1
- package/esm/form-button-group/utils.mjs +0 -12
- package/esm/form-button-group/utils.mjs.map +0 -1
- package/esm/form-collapse/form-collapse.d.ts +0 -18
- package/esm/form-collapse/index.d.ts +0 -45
- package/esm/form-collapse/index.mjs +0 -103
- package/esm/form-collapse/index.mjs.map +0 -1
- package/esm/form-collapse/utils.d.ts +0 -31
- package/esm/form-collapse/utils.mjs +0 -54
- package/esm/form-collapse/utils.mjs.map +0 -1
- package/esm/form-dialog/dialog-content.d.ts +0 -60
- package/esm/form-dialog/index.d.ts +0 -4
- package/esm/form-dialog/index.mjs +0 -209
- package/esm/form-dialog/index.mjs.map +0 -1
- package/esm/form-dialog/types.d.ts +0 -32
- package/esm/form-dialog/types.mjs +0 -2
- package/esm/form-dialog/types.mjs.map +0 -1
- package/esm/form-drawer/drawer-content.d.ts +0 -60
- package/esm/form-drawer/index.d.ts +0 -4
- package/esm/form-drawer/index.mjs +0 -203
- package/esm/form-drawer/index.mjs.map +0 -1
- package/esm/form-drawer/types.d.ts +0 -32
- package/esm/form-drawer/types.mjs +0 -2
- package/esm/form-drawer/types.mjs.map +0 -1
- package/esm/form-grid/form-grid-column.d.ts +0 -29
- package/esm/form-grid/form-grid.d.ts +0 -101
- package/esm/form-grid/hooks.d.ts +0 -4
- package/esm/form-grid/hooks.mjs +0 -7
- package/esm/form-grid/hooks.mjs.map +0 -1
- package/esm/form-grid/index.d.ts +0 -182
- package/esm/form-grid/index.mjs +0 -106
- package/esm/form-grid/index.mjs.map +0 -1
- package/esm/form-item/form-item.d.ts +0 -18
- package/esm/form-item/index.d.ts +0 -70
- package/esm/form-item/index.mjs +0 -346
- package/esm/form-item/index.mjs.map +0 -1
- package/esm/form-item/types.d.ts +0 -25
- package/esm/form-item/types.mjs +0 -2
- package/esm/form-item/types.mjs.map +0 -1
- package/esm/form-item/utils.d.ts +0 -3
- package/esm/form-item/utils.mjs +0 -18
- package/esm/form-item/utils.mjs.map +0 -1
- package/esm/form-layout/form-layout.d.ts +0 -32
- package/esm/form-layout/form-layout.mjs +0 -86
- package/esm/form-layout/form-layout.mjs.map +0 -1
- package/esm/form-layout/index.d.ts +0 -1
- package/esm/form-layout/index.mjs +0 -6
- package/esm/form-layout/index.mjs.map +0 -1
- package/esm/form-layout/types.d.ts +0 -43
- package/esm/form-layout/types.mjs +0 -2
- package/esm/form-layout/types.mjs.map +0 -1
- package/esm/form-layout/utils.d.ts +0 -57
- package/esm/form-layout/utils.mjs +0 -109
- package/esm/form-layout/utils.mjs.map +0 -1
- package/esm/form-step/form-step-pane.d.ts +0 -2
- package/esm/form-step/form-step.d.ts +0 -5
- package/esm/form-step/index.d.ts +0 -24
- package/esm/form-step/index.mjs +0 -96
- package/esm/form-step/index.mjs.map +0 -1
- package/esm/form-step/types.d.ts +0 -21
- package/esm/form-step/types.mjs +0 -2
- package/esm/form-step/types.mjs.map +0 -1
- package/esm/form-step/utils.d.ts +0 -11
- package/esm/form-step/utils.mjs +0 -66
- package/esm/form-step/utils.mjs.map +0 -1
- package/esm/form-tab/form-tab.d.ts +0 -7
- package/esm/form-tab/hooks.d.ts +0 -7
- package/esm/form-tab/hooks.mjs +0 -32
- package/esm/form-tab/hooks.mjs.map +0 -1
- package/esm/form-tab/index.d.ts +0 -28
- package/esm/form-tab/index.mjs +0 -80
- package/esm/form-tab/index.mjs.map +0 -1
- package/esm/form-tab/types.d.ts +0 -12
- package/esm/form-tab/types.mjs +0 -2
- package/esm/form-tab/types.mjs.map +0 -1
- package/esm/form-tab/utils.d.ts +0 -4
- package/esm/form-tab/utils.mjs +0 -14
- package/esm/form-tab/utils.mjs.map +0 -1
- package/esm/index.d.ts +0 -37
- package/esm/index.mjs +0 -81
- package/esm/index.mjs.map +0 -1
- package/esm/input/index.d.ts +0 -84
- package/esm/input/index.mjs +0 -77
- package/esm/input/index.mjs.map +0 -1
- package/esm/input/input.d.ts +0 -32
- package/esm/input-number/index.d.ts +0 -4
- package/esm/input-number/index.mjs +0 -30
- package/esm/input-number/index.mjs.map +0 -1
- package/esm/pagination/components/jumper.d.ts +0 -16
- package/esm/pagination/components/jumper.mjs +0 -12
- package/esm/pagination/components/jumper.mjs.map +0 -1
- package/esm/pagination/components/next.d.ts +0 -42
- package/esm/pagination/components/next.mjs +0 -23
- package/esm/pagination/components/next.mjs.map +0 -1
- package/esm/pagination/components/pager.d.ts +0 -42
- package/esm/pagination/components/pager.mjs +0 -23
- package/esm/pagination/components/pager.mjs.map +0 -1
- package/esm/pagination/components/prev.d.ts +0 -39
- package/esm/pagination/components/prev.mjs +0 -22
- package/esm/pagination/components/prev.mjs.map +0 -1
- package/esm/pagination/components/sizes.d.ts +0 -56
- package/esm/pagination/components/sizes.mjs +0 -7
- package/esm/pagination/components/sizes.mjs.map +0 -1
- package/esm/pagination/components/total.d.ts +0 -8
- package/esm/pagination/components/total.mjs +0 -11
- package/esm/pagination/components/total.mjs.map +0 -1
- package/esm/pagination/pagination.d.ts +0 -128
- package/esm/pagination/pagination.mjs +0 -631
- package/esm/pagination/pagination.mjs.map +0 -1
- package/esm/password/index.d.ts +0 -86
- package/esm/password/index.mjs +0 -14
- package/esm/password/index.mjs.map +0 -1
- package/esm/preview-text/cascader.d.ts +0 -5
- package/esm/preview-text/date-picker.d.ts +0 -5
- package/esm/preview-text/index.d.ts +0 -102
- package/esm/preview-text/index.mjs +0 -321
- package/esm/preview-text/index.mjs.map +0 -1
- package/esm/preview-text/input.d.ts +0 -28
- package/esm/preview-text/preview.d.ts +0 -18
- package/esm/preview-text/select.d.ts +0 -5
- package/esm/preview-text/time-picker.d.ts +0 -5
- package/esm/preview-text/tree.d.ts +0 -22
- package/esm/preview-text/utils.d.ts +0 -14
- package/esm/preview-text/utils.mjs +0 -16
- package/esm/preview-text/utils.mjs.map +0 -1
- package/esm/radio/index.d.ts +0 -634
- package/esm/radio/index.mjs +0 -80
- package/esm/radio/index.mjs.map +0 -1
- package/esm/radio/radio-group.d.ts +0 -44
- package/esm/reset/index.d.ts +0 -63
- package/esm/reset/index.mjs +0 -48
- package/esm/reset/index.mjs.map +0 -1
- package/esm/reset/reset.d.ts +0 -45
- package/esm/select/index.d.ts +0 -142
- package/esm/select/index.mjs +0 -132
- package/esm/select/index.mjs.map +0 -1
- package/esm/select/select.d.ts +0 -50
- package/esm/select-table/index.mjs +0 -204
- package/esm/select-table/index.mjs.map +0 -1
- package/esm/select-table/types.d.ts +0 -14
- package/esm/select-table/types.mjs +0 -2
- package/esm/select-table/types.mjs.map +0 -1
- package/esm/space/index.d.ts +0 -1
- package/esm/space/index.mjs +0 -6
- package/esm/space/index.mjs.map +0 -1
- package/esm/styles/array-base/index.css +0 -1
- package/esm/styles/array-cards/index.css +0 -1
- package/esm/styles/array-collapse/index.css +0 -1
- package/esm/styles/array-items/index.css +0 -1
- package/esm/styles/array-list-tabs/index.css +0 -1
- package/esm/styles/array-table/index.css +0 -1
- package/esm/styles/array-tabs/index.css +0 -1
- package/esm/styles/editable/index.css +0 -1
- package/esm/styles/form-button-group/index.css +0 -1
- package/esm/styles/form-collapse/index.css +0 -1
- package/esm/styles/form-grid/index.css +0 -1
- package/esm/styles/form-item/index.css +0 -1
- package/esm/styles/form-tab/index.css +0 -1
- package/esm/styles/preview-text/index.css +0 -1
- package/esm/styles/radio/index.css +0 -1
- package/esm/styles/select-table/index.css +0 -1
- package/esm/submit/index.d.ts +0 -48
- package/esm/submit/index.mjs +0 -47
- package/esm/submit/index.mjs.map +0 -1
- package/esm/submit/submit.d.ts +0 -36
- package/esm/switch/index.d.ts +0 -4
- package/esm/switch/index.mjs +0 -19
- package/esm/switch/index.mjs.map +0 -1
- package/esm/time-picker/index.d.ts +0 -4
- package/esm/time-picker/index.mjs +0 -21
- package/esm/time-picker/index.mjs.map +0 -1
- package/esm/time-select/index.d.ts +0 -2
- package/esm/time-select/index.mjs +0 -21
- package/esm/time-select/index.mjs.map +0 -1
- package/esm/transfer/index.d.ts +0 -1509
- package/esm/transfer/index.mjs +0 -11
- package/esm/transfer/index.mjs.map +0 -1
- package/esm/tree/index.d.ts +0 -42
- package/esm/tree/index.mjs +0 -105
- package/esm/tree/index.mjs.map +0 -1
- package/esm/tree/tree.d.ts +0 -20
- package/esm/tree/types.d.ts +0 -13
- package/esm/tree/types.mjs +0 -2
- package/esm/tree/types.mjs.map +0 -1
- package/esm/tree/utils.d.ts +0 -45
- package/esm/tree/utils.mjs +0 -161
- package/esm/tree/utils.mjs.map +0 -1
- package/esm/tree-select/index.d.ts +0 -32
- package/esm/tree-select/index.mjs +0 -51
- package/esm/tree-select/index.mjs.map +0 -1
- package/esm/tree-select/tree-select.d.ts +0 -17
- package/esm/upload/index.d.ts +0 -889
- package/esm/upload/index.mjs +0 -185
- package/esm/upload/index.mjs.map +0 -1
- package/esm/upload/upload.d.ts +0 -1613
- package/esm/vendor/icon.mjs +0 -11
- package/esm/vendor/icon.mjs.map +0 -1
- package/esm/vendor/lodash.mjs +0 -1400
- package/esm/vendor/lodash.mjs.map +0 -1
- package/esm/vendor/runtime.mjs +0 -29
- package/esm/vendor/runtime.mjs.map +0 -1
- package/esm/vendor/shared.esm-bundler.mjs +0 -14
- package/esm/vendor/shared.esm-bundler.mjs.map +0 -1
- package/esm/vendor/sizes.mjs +0 -27
- package/esm/vendor/sizes.mjs.map +0 -1
- package/esm/vendor/types.mjs +0 -19
- package/esm/vendor/types.mjs.map +0 -1
package/esm/form-step/utils.mjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { observable as i, action as a, model as m } from "@formily/reactive";
|
|
2
|
-
function b(u = 0) {
|
|
3
|
-
const e = i({
|
|
4
|
-
form: null,
|
|
5
|
-
field: null,
|
|
6
|
-
steps: []
|
|
7
|
-
}), n = a.bound((s) => {
|
|
8
|
-
const r = e.steps[s];
|
|
9
|
-
for (const { name: o } of e.steps)
|
|
10
|
-
e.form.query(`${e.field.address}.${o}`).take((p) => {
|
|
11
|
-
o === r.name ? p.setDisplay("visible") : p.setDisplay("hidden");
|
|
12
|
-
});
|
|
13
|
-
}), t = m({
|
|
14
|
-
connect(s, r) {
|
|
15
|
-
e.steps = s, e.form = r == null ? void 0 : r.form, e.field = r;
|
|
16
|
-
},
|
|
17
|
-
current: u,
|
|
18
|
-
setCurrent(s) {
|
|
19
|
-
t.current = s;
|
|
20
|
-
},
|
|
21
|
-
get allowNext() {
|
|
22
|
-
return t.current < e.steps.length - 1;
|
|
23
|
-
},
|
|
24
|
-
get allowBack() {
|
|
25
|
-
return t.current > 0;
|
|
26
|
-
},
|
|
27
|
-
async next() {
|
|
28
|
-
try {
|
|
29
|
-
await e.form.validate(), c();
|
|
30
|
-
} catch {
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
async back() {
|
|
34
|
-
l();
|
|
35
|
-
},
|
|
36
|
-
async submit(s) {
|
|
37
|
-
var r, o;
|
|
38
|
-
return (o = (r = e.form) == null ? void 0 : r.submit) == null ? void 0 : o.call(r, s);
|
|
39
|
-
}
|
|
40
|
-
}), c = a.bound(() => {
|
|
41
|
-
/* istanbul ignore else -- @preserve */
|
|
42
|
-
t.allowNext && (n(t.current + 1), t.setCurrent(t.current + 1));
|
|
43
|
-
}), l = a.bound(() => {
|
|
44
|
-
/* istanbul ignore else -- @preserve */
|
|
45
|
-
t.allowBack && (n(t.current - 1), t.setCurrent(t.current - 1));
|
|
46
|
-
});
|
|
47
|
-
return t;
|
|
48
|
-
}
|
|
49
|
-
function x(u) {
|
|
50
|
-
const e = [];
|
|
51
|
-
return u.mapProperties((n, t) => {
|
|
52
|
-
/* istanbul ignore else -- @preserve */
|
|
53
|
-
var c;
|
|
54
|
-
((c = n["x-component"]) == null ? void 0 : c.indexOf("StepPane")) > -1 && e.push({
|
|
55
|
-
name: t,
|
|
56
|
-
props: n["x-component-props"],
|
|
57
|
-
schema: n,
|
|
58
|
-
slots: n["x-content"]
|
|
59
|
-
});
|
|
60
|
-
}), e;
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
b as createFormStep,
|
|
64
|
-
x as parseSteps
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../src/form-step/utils.ts"],"sourcesContent":["import type { Schema, SchemaKey } from '@formily/json-schema'\nimport type { Slots } from 'vue'\nimport type { FormStepEnv, IFormStep } from './types'\nimport { action, model, observable } from '@formily/reactive'\n\nexport interface SchemaStep {\n name: SchemaKey\n props: any\n schema: Schema\n slots: Slots\n}\n\nexport function createFormStep(defaultCurrent = 0): IFormStep {\n const env: FormStepEnv = observable({\n form: null,\n field: null,\n steps: [],\n })\n\n const setDisplay = action.bound((target: number) => {\n const currentStep = env.steps[target]\n for (const { name } of env.steps) {\n env.form.query(`${env.field.address}.${name}`).take((field) => {\n if (name === currentStep.name) {\n field.setDisplay('visible')\n }\n else {\n field.setDisplay('hidden')\n }\n })\n }\n })\n\n const formStep: IFormStep = model({\n connect(steps, field) {\n env.steps = steps\n env.form = field?.form\n env.field = field\n },\n current: defaultCurrent,\n setCurrent(key: number) {\n formStep.current = key\n },\n get allowNext() {\n return formStep.current < env.steps.length - 1\n },\n get allowBack() {\n return formStep.current > 0\n },\n async next() {\n try {\n await env.form.validate()\n // eslint-disable-next-line ts/no-use-before-define\n next()\n }\n catch {}\n },\n async back() {\n // eslint-disable-next-line ts/no-use-before-define\n back()\n },\n async submit(onSubmit) {\n return env.form?.submit?.(onSubmit)\n },\n })\n\n const next = action.bound(() => {\n /* istanbul ignore else -- @preserve */\n if (formStep.allowNext) {\n setDisplay(formStep.current + 1)\n formStep.setCurrent(formStep.current + 1)\n }\n })\n\n const back = action.bound(() => {\n /* istanbul ignore else -- @preserve */\n if (formStep.allowBack) {\n setDisplay(formStep.current - 1)\n formStep.setCurrent(formStep.current - 1)\n }\n })\n return formStep\n}\n\nexport function parseSteps(schema: Schema) {\n const steps: SchemaStep[] = []\n schema.mapProperties((schema, name) => {\n /* istanbul ignore else -- @preserve */\n if (schema['x-component']?.indexOf('StepPane') > -1) {\n steps.push({\n name,\n props: schema['x-component-props'],\n schema,\n slots: schema['x-content'],\n })\n }\n })\n return steps\n}\n"],"names":["createFormStep","defaultCurrent","env","observable","setDisplay","action","target","currentStep","name","field","formStep","model","steps","key","next","back","onSubmit","_b","_a","parseSteps","schema"],"mappings":";AAYO,SAASA,EAAeC,IAAiB,GAAc;AAC5D,QAAMC,IAAmBC,EAAW;AAAA,IAClC,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO,CAAA;AAAA,EAAC,CACT,GAEKC,IAAaC,EAAO,MAAM,CAACC,MAAmB;AAClD,UAAMC,IAAcL,EAAI,MAAMI,CAAM;AACpC,eAAW,EAAE,MAAAE,OAAUN,EAAI;AACzB,MAAAA,EAAI,KAAK,MAAM,GAAGA,EAAI,MAAM,OAAO,IAAIM,CAAI,EAAE,EAAE,KAAK,CAACC,MAAU;AAC7D,QAAID,MAASD,EAAY,OACvBE,EAAM,WAAW,SAAS,IAG1BA,EAAM,WAAW,QAAQ;AAAA,MAE7B,CAAC;AAAA,EAEL,CAAC,GAEKC,IAAsBC,EAAM;AAAA,IAChC,QAAQC,GAAOH,GAAO;AACpB,MAAAP,EAAI,QAAQU,GACZV,EAAI,OAAOO,KAAA,gBAAAA,EAAO,MAClBP,EAAI,QAAQO;AAAA,IACd;AAAA,IACA,SAASR;AAAA,IACT,WAAWY,GAAa;AACtB,MAAAH,EAAS,UAAUG;AAAA,IACrB;AAAA,IACA,IAAI,YAAY;AACd,aAAOH,EAAS,UAAUR,EAAI,MAAM,SAAS;AAAA,IAC/C;AAAA,IACA,IAAI,YAAY;AACd,aAAOQ,EAAS,UAAU;AAAA,IAC5B;AAAA,IACA,MAAM,OAAO;AACX,UAAI;AACF,cAAMR,EAAI,KAAK,SAAA,GAEfY,EAAA;AAAA,MACF,QACM;AAAA,MAAC;AAAA,IACT;AAAA,IACA,MAAM,OAAO;AAEX,MAAAC,EAAA;AAAA,IACF;AAAA,IACA,MAAM,OAAOC,GAAU;;AACrB,cAAOC,KAAAC,IAAAhB,EAAI,SAAJ,gBAAAgB,EAAU,WAAV,gBAAAD,EAAA,KAAAC,GAAmBF;AAAA,IAC5B;AAAA,EAAA,CACD,GAEKF,IAAOT,EAAO,MAAM,MAAM;AAAA,IAAA;AAE9B,IAAIK,EAAS,cACXN,EAAWM,EAAS,UAAU,CAAC,GAC/BA,EAAS,WAAWA,EAAS,UAAU,CAAC;AAAA,EAE5C,CAAC,GAEKK,IAAOV,EAAO,MAAM,MAAM;AAAA,IAAA;AAE9B,IAAIK,EAAS,cACXN,EAAWM,EAAS,UAAU,CAAC,GAC/BA,EAAS,WAAWA,EAAS,UAAU,CAAC;AAAA,EAE5C,CAAC;AACD,SAAOA;AACT;AAEO,SAASS,EAAWC,GAAgB;AACzC,QAAMR,IAAsB,CAAA;AAC5B,SAAAQ,EAAO,cAAc,CAACA,GAAQZ,MAAS;AAAA,IAAA;;AAErC,MAAIY,IAAAA,EAAO,aAAa,MAApBA,gBAAAA,EAAuB,QAAQ,eAAc,MAC/CR,EAAM,KAAK;AAAA,MACT,MAAAJ;AAAA,MACA,OAAOY,EAAO,mBAAmB;AAAA,MACjC,QAAAA;AAAAA,MACA,OAAOA,EAAO,WAAW;AAAA,IAAA,CAC1B;AAAA,EAEL,CAAC,GACMR;AACT;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IFormTabProps } from './types.ts';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<IFormTabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
input: (...args: any[]) => void;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<IFormTabProps> & Readonly<{
|
|
5
|
-
onInput?: (...args: any[]) => any;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
export default _default;
|
package/esm/form-tab/hooks.d.ts
DELETED
package/esm/form-tab/hooks.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { observable as i, reaction as l } from "@formily/reactive";
|
|
2
|
-
import { useField as d, useFieldSchema as b } from "@formily/vue";
|
|
3
|
-
function v() {
|
|
4
|
-
const r = d(), s = b(), a = i([]);
|
|
5
|
-
return l(() => {
|
|
6
|
-
var t;
|
|
7
|
-
return (t = s.value) == null ? void 0 : t.mapProperties((n, e) => {
|
|
8
|
-
const o = r.value.query(r.value.address.concat(e)).take();
|
|
9
|
-
return o == null ? void 0 : o.display;
|
|
10
|
-
});
|
|
11
|
-
}, () => {
|
|
12
|
-
var p;
|
|
13
|
-
a.length = 0, (p = s.value) == null || p.mapProperties((t, n) => {
|
|
14
|
-
var o, u;
|
|
15
|
-
const e = r.value.query(r.value.address.concat(n)).take();
|
|
16
|
-
(e == null ? void 0 : e.display) === "none" || (e == null ? void 0 : e.display) === "hidden" || ((o = t["x-component"]) == null ? void 0 : o.indexOf("TabPane")) > -1 && a.push({
|
|
17
|
-
name: n,
|
|
18
|
-
props: {
|
|
19
|
-
name: ((u = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : u.name) || n,
|
|
20
|
-
...t == null ? void 0 : t["x-component-props"]
|
|
21
|
-
},
|
|
22
|
-
schema: t
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
}, {
|
|
26
|
-
fireImmediately: !0
|
|
27
|
-
}), a;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
v as useTabs
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=hooks.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.mjs","sources":["../../src/form-tab/hooks.ts"],"sourcesContent":["import type { Schema, SchemaKey } from '@formily/json-schema'\nimport { observable, reaction } from '@formily/reactive'\nimport { useField, useFieldSchema } from '@formily/vue'\n\nexport type Tabs = { name: SchemaKey, props: any, schema: Schema }[]\n\nexport function useTabs() {\n const tabsField = useField()\n const schema = useFieldSchema()\n const tabs: Tabs = observable([])\n reaction(() => {\n const tabDisplayStatus = schema.value?.mapProperties((schema, name) => {\n const field = tabsField.value\n .query(tabsField.value.address.concat(name))\n .take()\n return field?.display\n })\n return tabDisplayStatus\n }, () => {\n tabs.length = 0\n schema.value?.mapProperties((schema, name) => {\n const field = tabsField.value\n .query(tabsField.value.address.concat(name))\n .take()\n if (field?.display === 'none' || field?.display === 'hidden')\n return\n\n if (schema['x-component']?.indexOf('TabPane') > -1) {\n tabs.push({\n name,\n props: {\n name: schema?.['x-component-props']?.name || name,\n ...schema?.['x-component-props'],\n },\n schema,\n })\n }\n })\n }, {\n fireImmediately: true,\n })\n\n return tabs\n}\n"],"names":["useTabs","tabsField","useField","schema","useFieldSchema","tabs","observable","reaction","_a","name","field"],"mappings":";;AAMO,SAASA,IAAU;AACxB,QAAMC,IAAYC,EAAA,GACZC,IAASC,EAAA,GACTC,IAAaC,EAAW,EAAE;AAChC,SAAAC,EAAS,MAAM;;AAOb,YANyBC,IAAAL,EAAO,UAAP,gBAAAK,EAAc,cAAc,CAACL,GAAQM,MAAS;AACrE,YAAMC,IAAQT,EAAU,MACrB,MAAMA,EAAU,MAAM,QAAQ,OAAOQ,CAAI,CAAC,EAC1C,KAAA;AACH,aAAOC,KAAA,gBAAAA,EAAO;AAAA,IAChB;AAAA,EAEF,GAAG,MAAM;;AACP,IAAAL,EAAK,SAAS,IACdG,IAAAL,EAAO,UAAP,QAAAK,EAAc,cAAc,CAACL,GAAQM,MAAS;;AAC5C,YAAMC,IAAQT,EAAU,MACrB,MAAMA,EAAU,MAAM,QAAQ,OAAOQ,CAAI,CAAC,EAC1C,KAAA;AACH,OAAIC,KAAA,gBAAAA,EAAO,aAAY,WAAUA,KAAA,gBAAAA,EAAO,aAAY,cAGhDP,IAAAA,EAAO,aAAa,MAApBA,gBAAAA,EAAuB,QAAQ,cAAa,MAC9CE,EAAK,KAAK;AAAA,QACR,MAAAI;AAAA,QACA,OAAO;AAAA,UACL,QAAMN,IAAAA,KAAAA,gBAAAA,EAAS,yBAATA,gBAAAA,EAA+B,SAAQM;AAAA,UAC7C,GAAGN,KAAAA,gBAAAA,EAAS;AAAA,QAAmB;AAAA,QAEjC,QAAAA;AAAAA,MAAA,CACD;AAAA,IAEL;AAAA,EACF,GAAG;AAAA,IACD,iBAAiB;AAAA,EAAA,CAClB,GAEME;AACT;"}
|
package/esm/form-tab/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createFormTab } from './utils';
|
|
2
|
-
export declare const composeFormTab: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').IFormTabProps> & Readonly<{
|
|
4
|
-
onInput?: (...args: any[]) => any;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
input: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./types').IFormTabProps> & Readonly<{
|
|
15
|
-
onInput?: (...args: any[]) => any;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./types').IFormTabProps> & Readonly<{
|
|
21
|
-
onInput?: (...args: any[]) => any;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
input: (...args: any[]) => void;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
25
|
-
createFormTab: typeof createFormTab;
|
|
26
|
-
};
|
|
27
|
-
export { composeFormTab as FormTab };
|
|
28
|
-
export default composeFormTab;
|
package/esm/form-tab/index.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { observer as B } from "@formily/reactive-vue";
|
|
2
|
-
import { defineComponent as K, computed as w, ref as $, watch as L, createBlock as i, openBlock as l, unref as t, withCtx as u, createElementBlock as b, Fragment as T, renderList as N, mergeProps as R, normalizeClass as V, createTextVNode as y, toDisplayString as _, createVNode as q } from "vue";
|
|
3
|
-
import { ElTabs as z, ElTabPane as A, ElBadge as D } from "element-plus";
|
|
4
|
-
import { reaction as I, observable as P } from "@formily/reactive";
|
|
5
|
-
import "@formily/core";
|
|
6
|
-
import { useField as S, RecursionField as j } from "@formily/vue";
|
|
7
|
-
import { composeExport as G } from "../__builtins__/shared/utils.mjs";
|
|
8
|
-
import { stylePrefix as H } from "../__builtins__/configs/index.mjs";
|
|
9
|
-
import { useTabs as J } from "./hooks.mjs";
|
|
10
|
-
import { createFormTab as h } from "./utils.mjs";
|
|
11
|
-
import '../styles/form-tab/index.css';const M = /* @__PURE__ */ K({
|
|
12
|
-
name: "FFormTab",
|
|
13
|
-
__name: "form-tab",
|
|
14
|
-
props: {
|
|
15
|
-
formTab: null,
|
|
16
|
-
value: null
|
|
17
|
-
},
|
|
18
|
-
emits: ["input"],
|
|
19
|
-
setup(F, { emit: g }) {
|
|
20
|
-
var p;
|
|
21
|
-
const m = F, x = g, c = S(), C = `${H}-form-tab`, s = w(() => m.formTab ?? h()), r = J(), n = $((m == null ? void 0 : m.value) ?? s.value.activeKey ?? ((p = r == null ? void 0 : r[0]) == null ? void 0 : p.name));
|
|
22
|
-
I(() => r.length, () => {
|
|
23
|
-
var e;
|
|
24
|
-
!r.some((a) => a.name === n.value) && (n.value = (e = r == null ? void 0 : r[0]) == null ? void 0 : e.name);
|
|
25
|
-
}, {
|
|
26
|
-
fireImmediately: !0
|
|
27
|
-
}), L(() => s.value.activeKey, (e) => {
|
|
28
|
-
n.value = e;
|
|
29
|
-
});
|
|
30
|
-
const f = P.computed(() => r.map((e) => c.value.form.queryFeedbacks({
|
|
31
|
-
type: "error",
|
|
32
|
-
address: `${c.value.address}.${e.name}.*`
|
|
33
|
-
}).length));
|
|
34
|
-
function E(e) {
|
|
35
|
-
/* istanbul ignore if -- @preserve */
|
|
36
|
-
var a, o;
|
|
37
|
-
typeof e == "string" && (x("input", e), (o = (a = s.value).setActiveKey) == null || o.call(a, e));
|
|
38
|
-
}
|
|
39
|
-
return (e, a) => (l(), i(t(z), {
|
|
40
|
-
"model-value": n.value,
|
|
41
|
-
style: { width: "100%" },
|
|
42
|
-
onTabChange: E
|
|
43
|
-
}, {
|
|
44
|
-
default: u(() => [
|
|
45
|
-
(l(!0), b(T, null, N(t(r), ({ props: o, schema: k, name: d }, v) => (l(), i(t(A), R({ key: d }, { ref_for: !0 }, o), {
|
|
46
|
-
default: u(() => [
|
|
47
|
-
q(t(j), {
|
|
48
|
-
schema: k,
|
|
49
|
-
name: d
|
|
50
|
-
}, null, 8, ["schema", "name"])
|
|
51
|
-
]),
|
|
52
|
-
label: u(() => [
|
|
53
|
-
t(f).value[v] !== 0 ? (l(), i(t(D), {
|
|
54
|
-
key: 0,
|
|
55
|
-
class: V(C),
|
|
56
|
-
value: t(f).value[v]
|
|
57
|
-
}, {
|
|
58
|
-
default: u(() => [
|
|
59
|
-
y(_(o.label), 1)
|
|
60
|
-
]),
|
|
61
|
-
_: 2
|
|
62
|
-
}, 1032, ["value"])) : (l(), b(T, { key: 1 }, [
|
|
63
|
-
y(_(o.label), 1)
|
|
64
|
-
], 64))
|
|
65
|
-
]),
|
|
66
|
-
_: 2
|
|
67
|
-
}, 1040))), 128))
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["model-value"]));
|
|
71
|
-
}
|
|
72
|
-
}), O = B(M), ae = G(O, {
|
|
73
|
-
createFormTab: h
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
ae as FormTab,
|
|
77
|
-
ae as composeFormTab,
|
|
78
|
-
ae as default
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/form-tab/form-tab.vue","../../src/form-tab/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { IFormTabProps } from './types.ts'\nimport { observable, reaction } from '@formily/reactive'\nimport { RecursionField, useField } from '@formily/vue'\nimport { ElBadge, ElTabPane, ElTabs } from 'element-plus'\nimport { computed, ref, watch } from 'vue'\nimport { stylePrefix } from '../__builtins__'\nimport { useTabs } from './hooks'\nimport { createFormTab } from './utils'\n\ndefineOptions({\n name: 'FFormTab',\n})\n\nconst props = defineProps({\n formTab: null,\n value: null\n})\nconst emit = defineEmits(['input'])\n\nconst field = useField()\nconst prefixCls = `${stylePrefix}-form-tab`\nconst formTabRef = computed(() => props.formTab ?? createFormTab())\nconst tabs = useTabs()\nconst _activeKey = ref(props?.value ?? formTabRef.value.activeKey ?? tabs?.[0]?.name)\n\nreaction(() => {\n return tabs.length\n}, () => {\n !tabs.some(tab => tab.name === _activeKey.value) && (_activeKey.value = tabs?.[0]?.name)\n}, {\n fireImmediately: true,\n})\nwatch(() => formTabRef.value.activeKey, (val) => {\n _activeKey.value = val\n})\n\nconst errorList = observable.computed(() => {\n return tabs.map((tab) => {\n return field.value.form.queryFeedbacks({\n type: 'error',\n address: `${field.value.address}.${tab.name}.*`,\n }).length\n })\n})\n\nfunction handleTabChange(key: string) {\n /* istanbul ignore if -- @preserve */\n if (typeof key !== 'string')\n return\n emit('input', key)\n formTabRef.value.setActiveKey?.(key)\n}\n</script>\n\n<template>\n <ElTabs\n :model-value=\"_activeKey\"\n style=\"width: 100%;\"\n @tab-change=\"handleTabChange\"\n >\n <ElTabPane\n v-for=\"({ props: tabProps, schema, name }, key) in tabs\"\n :key=\"name\"\n v-bind=\"tabProps\"\n >\n <template #default>\n <RecursionField :schema=\"schema\" :name=\"name\" />\n </template>\n <template #label>\n <ElBadge\n v-if=\"errorList.value[key] !== 0\"\n :class=\"prefixCls\"\n :value=\"errorList.value[key]\"\n >\n {{ tabProps.label }}\n </ElBadge>\n <template v-else>\n {{ tabProps.label }}\n </template>\n </template>\n </ElTabPane>\n </ElTabs>\n</template>\n","import { observer } from '@formily/reactive-vue'\nimport { composeExport } from '../__builtins__'\nimport FFormTab from './form-tab.vue'\nimport { createFormTab } from './utils'\nimport './style.scss'\n\nconst FormTab = observer(FFormTab)\n\nexport const composeFormTab = composeExport(FormTab, {\n createFormTab,\n})\n\nexport { composeFormTab as FormTab }\nexport default composeFormTab\n"],"names":["props","__props","emit","__emit","field","useField","prefixCls","stylePrefix","formTabRef","computed","createFormTab","tabs","useTabs","_activeKey","ref","_a","reaction","tab","watch","val","errorList","observable","handleTabChange","key","_b","_createBlock","_unref","ElTabs","_createElementBlock","_Fragment","_renderList","tabProps","schema","name","_openBlock","_mergeProps","_createVNode","RecursionField","ElBadge","_createTextVNode","_toDisplayString","FormTab","observer","FFormTab","composeFormTab","composeExport"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcA,UAAMA,IAAQC,GAIRC,IAAOC,GAEPC,IAAQC,EAAA,GACRC,IAAY,GAAGC,CAAW,aAC1BC,IAAaC,EAAS,MAAMT,EAAM,WAAWU,GAAe,GAC5DC,IAAOC,EAAA,GACPC,IAAaC,GAAId,KAAA,gBAAAA,EAAO,UAASQ,EAAW,MAAM,eAAaO,IAAAJ,KAAA,gBAAAA,EAAO,OAAP,gBAAAI,EAAW,KAAI;AAEpF,IAAAC,EAAS,MACAL,EAAK,QACX,MAAM;;AACP,OAACA,EAAK,KAAK,CAAAM,MAAOA,EAAI,SAASJ,EAAW,KAAK,MAAMA,EAAW,SAAQE,IAAAJ,KAAA,gBAAAA,EAAO,OAAP,gBAAAI,EAAW;AAAA,IACrF,GAAG;AAAA,MACD,iBAAiB;AAAA,IAAA,CAClB,GACDG,EAAM,MAAMV,EAAW,MAAM,WAAW,CAACW,MAAQ;AAC/C,MAAAN,EAAW,QAAQM;AAAA,IACrB,CAAC;AAED,UAAMC,IAAYC,EAAW,SAAS,MAC7BV,EAAK,IAAI,CAACM,MACRb,EAAM,MAAM,KAAK,eAAe;AAAA,MACrC,MAAM;AAAA,MACN,SAAS,GAAGA,EAAM,MAAM,OAAO,IAAIa,EAAI,IAAI;AAAA,IAAA,CAC5C,EAAE,MACJ,CACF;AAED,aAASK,EAAgBC,GAAa;AAAA,MAAA;;AAEpC,MAAI,OAAOA,KAAQ,aAEnBrB,EAAK,SAASqB,CAAG,IACjBC,KAAAT,IAAAP,EAAW,OAAM,iBAAjB,QAAAgB,EAAA,KAAAT,GAAgCQ;AAAA,IAClC;2BAIEE,EA0BSC,EAAAC,CAAA,GAAA;AAAA,MAzBN,eAAad,EAAA;AAAA,MACd,OAAA,EAAA,OAAA,OAAA;AAAA,MACC,aAAYS;AAAA,IAAA;iBAGX,MAAwD;AAAA,gBAD1DM,EAoBYC,GAAA,MAAAC,EAnByCJ,MAAI,CAAA,EAAA,OAAtCK,GAAU,QAAAC,GAAQ,MAAAC,EAAA,GAAQV,OAD7CW,KAAAT,EAoBYC,MApBZS,EAoBY,EAlBT,KAAKF,EAAA,oBACEF,CAAQ,GAAA;AAAA,UAEL,WACT,MAAgD;AAAA,YAAhDK,EAAgDV,EAAAW,CAAA,GAAA;AAAA,cAA/B,QAAAL;AAAA,cAAiB,MAAAC;AAAA,YAAA;;UAEzB,SADP,MAMQ;AAAA,YAHFP,EAAAN,CAAA,EAAU,MAAMG,CAAG,MAAA,UAD3BE,EAMUC,EAAAY,CAAA,GAAA;AAAA;cAJP,SAAOhC,CAAS;AAAA,cAChB,OAAOoB,EAAAN,CAAA,EAAU,MAAMG,CAAG;AAAA,YAAA;yBAE3B,MAAoB;AAAA,gBAAjBgB,EAAAC,EAAAT,EAAS,KAAK,GAAA,CAAA;AAAA,cAAA;;yCAEnBH,EAEWC,GAAA,EAAA,KAAA,KAAA;AAAA,cADNU,EAAAC,EAAAT,EAAS,KAAK,GAAA,CAAA;AAAA,YAAA;;;;;;;;ICxErBU,IAAUC,EAASC,CAAQ,GAEpBC,KAAiBC,EAAcJ,GAAS;AAAA,EACnD,eAAA/B;AACF,CAAC;"}
|
package/esm/form-tab/types.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface IFormTab {
|
|
2
|
-
name: string;
|
|
3
|
-
activeKey: string;
|
|
4
|
-
setActiveKey: (key: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface IFormTabProps {
|
|
7
|
-
formTab?: IFormTab;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
}
|
|
10
|
-
export interface IFormTabPaneProps {
|
|
11
|
-
key: string | number;
|
|
12
|
-
}
|
package/esm/form-tab/types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/esm/form-tab/utils.d.ts
DELETED
package/esm/form-tab/utils.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../src/form-tab/utils.ts"],"sourcesContent":["import { model } from '@formily/reactive'\n\nexport function createFormTab(defaultActiveKey?: string) {\n const formTab = model({\n activeKey: defaultActiveKey,\n setActiveKey(key: string) {\n formTab.activeKey = key\n },\n })\n return formTab\n}\n"],"names":["createFormTab","defaultActiveKey","formTab","model","key"],"mappings":";AAEO,SAASA,EAAcC,GAA2B;AACvD,QAAMC,IAAUC,EAAM;AAAA,IACpB,WAAWF;AAAA,IACX,aAAaG,GAAa;AACxB,MAAAF,EAAQ,YAAYE;AAAA,IACtB;AAAA,EAAA,CACD;AACD,SAAOF;AACT;"}
|
package/esm/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export * from './array-cards';
|
|
2
|
-
export * from './array-collapse';
|
|
3
|
-
export * from './array-items';
|
|
4
|
-
export * from './array-list-tabs';
|
|
5
|
-
export * from './array-table';
|
|
6
|
-
export * from './array-tabs';
|
|
7
|
-
export * from './cascader';
|
|
8
|
-
export * from './checkbox';
|
|
9
|
-
export * from './date-picker';
|
|
10
|
-
export * from './editable';
|
|
11
|
-
export * from './form';
|
|
12
|
-
export * from './form-button-group';
|
|
13
|
-
export * from './form-collapse';
|
|
14
|
-
export * from './form-dialog';
|
|
15
|
-
export * from './form-drawer';
|
|
16
|
-
export * from './form-grid';
|
|
17
|
-
export * from './form-item';
|
|
18
|
-
export * from './form-layout';
|
|
19
|
-
export * from './form-step';
|
|
20
|
-
export * from './form-tab';
|
|
21
|
-
export * from './input';
|
|
22
|
-
export * from './input-number';
|
|
23
|
-
export * from './password';
|
|
24
|
-
export * from './preview-text';
|
|
25
|
-
export * from './radio';
|
|
26
|
-
export * from './reset';
|
|
27
|
-
export * from './select';
|
|
28
|
-
export * from './select-table';
|
|
29
|
-
export * from './space';
|
|
30
|
-
export * from './submit';
|
|
31
|
-
export * from './switch';
|
|
32
|
-
export * from './time-picker';
|
|
33
|
-
export * from './time-select';
|
|
34
|
-
export * from './transfer';
|
|
35
|
-
export * from './tree';
|
|
36
|
-
export * from './tree-select';
|
|
37
|
-
export * from './upload';
|
package/esm/index.mjs
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ArrayCards as e } from "./array-cards/index.mjs";
|
|
2
|
-
import { ArrayCollapse as t } from "./array-collapse/index.mjs";
|
|
3
|
-
import { ArrayItems as f } from "./array-items/index.mjs";
|
|
4
|
-
import { ArrayListTabs as a } from "./array-list-tabs/index.mjs";
|
|
5
|
-
import { ArrayTable as l } from "./array-table/index.mjs";
|
|
6
|
-
import { ArrayTabs as c } from "./array-tabs/index.mjs";
|
|
7
|
-
import { Cascader as T } from "./cascader/index.mjs";
|
|
8
|
-
import { Checkbox as d } from "./checkbox/index.mjs";
|
|
9
|
-
import { DatePicker as u } from "./date-picker/index.mjs";
|
|
10
|
-
import { Editable as A } from "./editable/index.mjs";
|
|
11
|
-
import { _ as I } from "./form/form.mjs";
|
|
12
|
-
import { FormButtonGroup as n } from "./form-button-group/index.mjs";
|
|
13
|
-
import { FormCollapse as P, FormCollapseItem as D } from "./form-collapse/index.mjs";
|
|
14
|
-
import { FormDialog as B } from "./form-dialog/index.mjs";
|
|
15
|
-
import { FormDrawer as G } from "./form-drawer/index.mjs";
|
|
16
|
-
import { FormGrid as R } from "./form-grid/index.mjs";
|
|
17
|
-
import { FormBaseItem as g, FormItem as v, fieldFeedbackMapper as M } from "./form-item/index.mjs";
|
|
18
|
-
import { _ as U } from "./form-layout/form-layout.mjs";
|
|
19
|
-
import { FormStep as q } from "./form-step/index.mjs";
|
|
20
|
-
import { composeFormTab as H, composeFormTab as J } from "./form-tab/index.mjs";
|
|
21
|
-
import { Input as O } from "./input/index.mjs";
|
|
22
|
-
import { InputNumber as V } from "./input-number/index.mjs";
|
|
23
|
-
import { Password as X } from "./password/index.mjs";
|
|
24
|
-
import { PreviewText as Z } from "./preview-text/index.mjs";
|
|
25
|
-
import { Radio as rr } from "./radio/index.mjs";
|
|
26
|
-
import { Reset as er } from "./reset/index.mjs";
|
|
27
|
-
import { Select as tr } from "./select/index.mjs";
|
|
28
|
-
import { SelectTable as fr } from "./select-table/index.mjs";
|
|
29
|
-
import { ElSpace as ar } from "element-plus";
|
|
30
|
-
import { Submit as lr } from "./submit/index.mjs";
|
|
31
|
-
import { Switch as cr } from "./switch/index.mjs";
|
|
32
|
-
import { TimePicker as Tr } from "./time-picker/index.mjs";
|
|
33
|
-
import { TimeSelect as dr } from "./time-select/index.mjs";
|
|
34
|
-
import { Transfer as ur } from "./transfer/index.mjs";
|
|
35
|
-
import { Tree as Ar } from "./tree/index.mjs";
|
|
36
|
-
import { TreeSelect as Ir } from "./tree-select/index.mjs";
|
|
37
|
-
import { Upload as nr } from "./upload/index.mjs";
|
|
38
|
-
export {
|
|
39
|
-
e as ArrayCards,
|
|
40
|
-
t as ArrayCollapse,
|
|
41
|
-
f as ArrayItems,
|
|
42
|
-
a as ArrayListTabs,
|
|
43
|
-
l as ArrayTable,
|
|
44
|
-
c as ArrayTabs,
|
|
45
|
-
T as Cascader,
|
|
46
|
-
d as Checkbox,
|
|
47
|
-
u as DatePicker,
|
|
48
|
-
A as Editable,
|
|
49
|
-
I as Form,
|
|
50
|
-
g as FormBaseItem,
|
|
51
|
-
n as FormButtonGroup,
|
|
52
|
-
P as FormCollapse,
|
|
53
|
-
D as FormCollapseItem,
|
|
54
|
-
B as FormDialog,
|
|
55
|
-
G as FormDrawer,
|
|
56
|
-
R as FormGrid,
|
|
57
|
-
v as FormItem,
|
|
58
|
-
U as FormLayout,
|
|
59
|
-
q as FormStep,
|
|
60
|
-
H as FormTab,
|
|
61
|
-
O as Input,
|
|
62
|
-
V as InputNumber,
|
|
63
|
-
X as Password,
|
|
64
|
-
Z as PreviewText,
|
|
65
|
-
rr as Radio,
|
|
66
|
-
er as Reset,
|
|
67
|
-
tr as Select,
|
|
68
|
-
fr as SelectTable,
|
|
69
|
-
ar as Space,
|
|
70
|
-
lr as Submit,
|
|
71
|
-
cr as Switch,
|
|
72
|
-
Tr as TimePicker,
|
|
73
|
-
dr as TimeSelect,
|
|
74
|
-
ur as Transfer,
|
|
75
|
-
Ar as Tree,
|
|
76
|
-
Ir as TreeSelect,
|
|
77
|
-
nr as Upload,
|
|
78
|
-
J as composeFormTab,
|
|
79
|
-
M as fieldFeedbackMapper
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=index.mjs.map
|
package/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/input/index.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export declare const Input: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
value?: string | number;
|
|
4
|
-
}> & Readonly<{
|
|
5
|
-
onChange?: (value: string | number) => any;
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
-
change: (value: string | number) => any;
|
|
8
|
-
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
-
P: {};
|
|
10
|
-
B: {};
|
|
11
|
-
D: {};
|
|
12
|
-
C: {};
|
|
13
|
-
M: {};
|
|
14
|
-
Defaults: {};
|
|
15
|
-
}, Readonly<{
|
|
16
|
-
value?: string | number;
|
|
17
|
-
}> & Readonly<{
|
|
18
|
-
onChange?: (value: string | number) => any;
|
|
19
|
-
}>, {}, {}, {}, {}, {}>;
|
|
20
|
-
__isFragment?: never;
|
|
21
|
-
__isTeleport?: never;
|
|
22
|
-
__isSuspense?: never;
|
|
23
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
24
|
-
value?: string | number;
|
|
25
|
-
}> & Readonly<{
|
|
26
|
-
onChange?: (value: string | number) => any;
|
|
27
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
28
|
-
change: (value: string | number) => any;
|
|
29
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
30
|
-
$slots: Readonly<{
|
|
31
|
-
prefix?: () => any;
|
|
32
|
-
suffix?: () => any;
|
|
33
|
-
prepend?: () => any;
|
|
34
|
-
append?: () => any;
|
|
35
|
-
}> & {
|
|
36
|
-
prefix?: () => any;
|
|
37
|
-
suffix?: () => any;
|
|
38
|
-
prepend?: () => any;
|
|
39
|
-
append?: () => any;
|
|
40
|
-
};
|
|
41
|
-
}) & {
|
|
42
|
-
TextArea: {
|
|
43
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
44
|
-
value?: string | number;
|
|
45
|
-
}> & Readonly<{
|
|
46
|
-
onChange?: (value: string | number) => any;
|
|
47
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
48
|
-
change: (value: string | number) => any;
|
|
49
|
-
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
50
|
-
P: {};
|
|
51
|
-
B: {};
|
|
52
|
-
D: {};
|
|
53
|
-
C: {};
|
|
54
|
-
M: {};
|
|
55
|
-
Defaults: {};
|
|
56
|
-
}, Readonly<{
|
|
57
|
-
value?: string | number;
|
|
58
|
-
}> & Readonly<{
|
|
59
|
-
onChange?: (value: string | number) => any;
|
|
60
|
-
}>, {}, {}, {}, {}, {}>;
|
|
61
|
-
__isFragment?: never;
|
|
62
|
-
__isTeleport?: never;
|
|
63
|
-
__isSuspense?: never;
|
|
64
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
65
|
-
value?: string | number;
|
|
66
|
-
}> & Readonly<{
|
|
67
|
-
onChange?: (value: string | number) => any;
|
|
68
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
69
|
-
change: (value: string | number) => any;
|
|
70
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
71
|
-
$slots: Readonly<{
|
|
72
|
-
prefix?: () => any;
|
|
73
|
-
suffix?: () => any;
|
|
74
|
-
prepend?: () => any;
|
|
75
|
-
append?: () => any;
|
|
76
|
-
}> & {
|
|
77
|
-
prefix?: () => any;
|
|
78
|
-
suffix?: () => any;
|
|
79
|
-
prepend?: () => any;
|
|
80
|
-
append?: () => any;
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
export default Input;
|
package/esm/input/index.mjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { connect as s, mapProps as m } from "@formily/vue";
|
|
2
|
-
import { defineComponent as x, useSlots as I, createBlock as k, openBlock as P, unref as a, mergeProps as $, createSlots as g, withCtx as n, renderSlot as r } from "vue";
|
|
3
|
-
import { ElInput as h } from "element-plus";
|
|
4
|
-
import "@formily/reactive";
|
|
5
|
-
import { mapReadPretty as l } from "../__builtins__/shared/transform-component.mjs";
|
|
6
|
-
import { useCleanAttrs as A, composeExport as C } from "../__builtins__/shared/utils.mjs";
|
|
7
|
-
import { PreviewText as i } from "../preview-text/index.mjs";
|
|
8
|
-
import "@formily/core";
|
|
9
|
-
import "@formily/reactive-vue";
|
|
10
|
-
const u = /* @__PURE__ */ x({
|
|
11
|
-
name: "FInput",
|
|
12
|
-
inheritAttrs: !1,
|
|
13
|
-
__name: "input",
|
|
14
|
-
props: {
|
|
15
|
-
value: null
|
|
16
|
-
},
|
|
17
|
-
emits: ["change"],
|
|
18
|
-
setup(e, { emit: d }) {
|
|
19
|
-
const f = e, c = d, t = I(), { props: v } = A();
|
|
20
|
-
return (o, p) => (P(), k(a(h), $(a(v), {
|
|
21
|
-
"model-value": f.value,
|
|
22
|
-
"onUpdate:modelValue": p[0] || (p[0] = (y) => c("change", y))
|
|
23
|
-
}), g({ _: 2 }, [
|
|
24
|
-
t.prefix ? {
|
|
25
|
-
name: "prefix",
|
|
26
|
-
fn: n(() => [
|
|
27
|
-
r(o.$slots, "prefix")
|
|
28
|
-
]),
|
|
29
|
-
key: "0"
|
|
30
|
-
} : void 0,
|
|
31
|
-
t.suffix ? {
|
|
32
|
-
name: "suffix",
|
|
33
|
-
fn: n(() => [
|
|
34
|
-
r(o.$slots, "suffix")
|
|
35
|
-
]),
|
|
36
|
-
key: "1"
|
|
37
|
-
} : void 0,
|
|
38
|
-
t.prepend ? {
|
|
39
|
-
name: "prepend",
|
|
40
|
-
fn: n(() => [
|
|
41
|
-
r(o.$slots, "prepend")
|
|
42
|
-
]),
|
|
43
|
-
key: "2"
|
|
44
|
-
} : void 0,
|
|
45
|
-
t.append ? {
|
|
46
|
-
name: "append",
|
|
47
|
-
fn: n(() => [
|
|
48
|
-
r(o.$slots, "append")
|
|
49
|
-
]),
|
|
50
|
-
key: "3"
|
|
51
|
-
} : void 0
|
|
52
|
-
]), 1040, ["model-value"]));
|
|
53
|
-
}
|
|
54
|
-
}), S = s(
|
|
55
|
-
u,
|
|
56
|
-
m({
|
|
57
|
-
value: "modelValue",
|
|
58
|
-
readOnly: "readonly"
|
|
59
|
-
}),
|
|
60
|
-
l(i.Input)
|
|
61
|
-
), V = s(
|
|
62
|
-
u,
|
|
63
|
-
m((e) => ({
|
|
64
|
-
...e,
|
|
65
|
-
modelValue: e.value,
|
|
66
|
-
readonly: e.readOnly,
|
|
67
|
-
type: "textarea"
|
|
68
|
-
})),
|
|
69
|
-
l(i.Input)
|
|
70
|
-
), b = C(S, {
|
|
71
|
-
TextArea: V
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
b as Input,
|
|
75
|
-
b as default
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=index.mjs.map
|
package/esm/input/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/input/input.vue","../../src/input/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ElInput } from 'element-plus'\nimport { useCleanAttrs } from '../__builtins__/index'\n\ndefineOptions({\n name: 'FInput',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n value: null\n})\n\nconst emit = defineEmits([\"change\"])\n\nconst slots = defineSlots<{\n prefix?: () => any\n suffix?: () => any\n prepend?: () => any\n append?: () => any\n}>()\n\nconst { props: inputProps } = useCleanAttrs()\n</script>\n\n<template>\n <ElInput\n v-bind=\"inputProps\"\n :model-value=\"props.value\"\n @update:model-value=\"(val) => emit('change', val)\"\n >\n <template v-if=\"slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n <template v-if=\"slots.prepend\" #prepend>\n <slot name=\"prepend\" />\n </template>\n <template v-if=\"slots.append\" #append>\n <slot name=\"append\" />\n </template>\n </ElInput>\n</template>\n","import { connect, mapProps } from '@formily/vue'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FInput from './input.vue'\n\nconst InnerInput = connect(\n FInput,\n mapProps({\n value: 'modelValue',\n readOnly: 'readonly',\n }),\n mapReadPretty(PreviewText.Input),\n)\n\nconst TextArea = connect(\n FInput,\n mapProps((props) => {\n return {\n ...props,\n modelValue: props.value,\n readonly: props.readOnly,\n type: 'textarea',\n }\n }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport const Input = composeExport(InnerInput, {\n TextArea,\n})\n\nexport default Input\n"],"names":["props","__props","emit","__emit","slots","_useSlots","inputProps","useCleanAttrs","_createBlock","_unref","ElInput","_mergeProps","_cache","val","_renderSlot","_ctx","InnerInput","connect","FInput","mapProps","mapReadPretty","PreviewText","TextArea","Input","composeExport"],"mappings":";;;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAIRC,IAAOC,GAEPC,IAAQC,EAAA,GAOR,EAAE,OAAOC,EAAA,IAAeC,EAAA;2BAI5BC,EAiBUC,EAAAC,CAAA,GAjBVC,EAiBUF,EAAAH,CAAA,GAhBU;AAAA,MACjB,eAAaN,EAAM;AAAA,MACnB,uBAAkBY,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAGC,MAAQX,YAAeW,CAAG;AAAA,IAAA;MAEhCT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBU,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERX,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBU,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERX,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBU,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETX,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBU,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;ICpCtBC,IAAaC;AAAA,EACjBC;AAAAA,EACAC,EAAS;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AAAA,EACDC,EAAcC,EAAY,KAAK;AACjC,GAEMC,IAAWL;AAAA,EACfC;AAAAA,EACAC,EAAS,CAACnB,OACD;AAAA,IACL,GAAGA;AAAA,IACH,YAAYA,EAAM;AAAA,IAClB,UAAUA,EAAM;AAAA,IAChB,MAAM;AAAA,EAAA,EAET;AAAA,EACDoB,EAAcC,EAAY,KAAK;AACjC,GAEaE,IAAQC,EAAcR,GAAY;AAAA,EAC7C,UAAAM;AACF,CAAC;"}
|
package/esm/input/input.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
value?: string | number;
|
|
3
|
-
};
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: Readonly<{
|
|
7
|
-
prefix?: () => any;
|
|
8
|
-
suffix?: () => any;
|
|
9
|
-
prepend?: () => any;
|
|
10
|
-
append?: () => any;
|
|
11
|
-
}> & {
|
|
12
|
-
prefix?: () => any;
|
|
13
|
-
suffix?: () => any;
|
|
14
|
-
prepend?: () => any;
|
|
15
|
-
append?: () => any;
|
|
16
|
-
};
|
|
17
|
-
refs: {};
|
|
18
|
-
rootEl: any;
|
|
19
|
-
};
|
|
20
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
|
-
change: (value: string | number) => any;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
onChange?: (value: string | number) => any;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
-
export default _default;
|
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|