@silver-formily/element-plus 2.4.0 → 3.0.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/README.en-US.md +32 -32
- package/README.md +32 -32
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/index.mjs +18 -18
- package/esm/__builtins__/shared/loading.mjs.map +1 -1
- package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
- package/esm/__builtins__/shared/transform-component.d.ts +1 -1
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +0 -2
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/array-base/index.mjs +59 -63
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/symbols.mjs +1 -1
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/utils.mjs +31 -38
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/index.mjs +33 -36
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-collapse/index.mjs +38 -43
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/utils.mjs +2 -9
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/index.mjs +34 -38
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-list-tabs/index.mjs +39 -41
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/utils.mjs +5 -12
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/index.mjs +63 -68
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/utils.mjs +11 -18
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/index.mjs +25 -29
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/autocomplete/autocomplete.d.ts +16 -16
- package/esm/autocomplete/index.d.ts +8 -8
- package/esm/autocomplete/index.mjs +18 -24
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/index.mjs +18 -22
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/index.d.ts +27 -27
- package/esm/checkbox/index.mjs +21 -30
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.mjs +6 -9
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.mjs +6 -9
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.mjs +11 -14
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/date-picker/utils.mjs.map +1 -1
- package/esm/date-picker-panel/index.mjs +11 -14
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable.d.ts +12 -12
- package/esm/editable/index.d.ts +6 -6
- package/esm/editable/index.mjs +49 -58
- package/esm/editable/index.mjs.map +1 -1
- package/esm/env.d.d.ts +1 -0
- package/esm/form/form.mjs +10 -10
- package/esm/form/form.mjs.map +1 -1
- package/esm/form-button-group/index.mjs +14 -25
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/utils.mjs +2 -9
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/index.mjs +19 -22
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/utils.mjs +0 -2
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/index.mjs +63 -70
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-drawer/index.mjs +62 -69
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-grid/form-grid.d.ts +2 -2
- package/esm/form-grid/hooks.d.ts +1 -2
- package/esm/form-grid/hooks.mjs +4 -11
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.mjs +39 -40
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-item/index.mjs +57 -65
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/types.d.ts +8 -6
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +12 -16
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/utils.mjs +2 -2
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/index.mjs +27 -30
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/utils.mjs +0 -3
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/hooks.d.ts +2 -1
- package/esm/form-tab/hooks.mjs +13 -20
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.mjs +38 -41
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.mjs +76 -76
- package/esm/input/index.mjs +26 -30
- package/esm/input/index.mjs.map +1 -1
- package/esm/input-number/index.d.ts +15 -15
- package/esm/input-number/index.mjs +8 -11
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.mjs +16 -20
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/mention/index.mjs +20 -24
- package/esm/mention/index.mjs.map +1 -1
- package/esm/pagination/components/jumper.mjs.map +1 -1
- package/esm/pagination/components/next.mjs.map +1 -1
- package/esm/pagination/components/pager.mjs.map +1 -1
- package/esm/pagination/components/prev.mjs.map +1 -1
- package/esm/pagination/components/total.mjs.map +1 -1
- package/esm/pagination/pagination.mjs +1 -1
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/index.mjs +27 -40
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/utils.mjs +1 -1
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.mjs.map +1 -1
- package/esm/query-form/hooks.mjs.map +1 -1
- package/esm/query-form/index.d.ts +3 -3
- package/esm/query-form/index.mjs +55 -61
- package/esm/query-form/index.mjs.map +1 -1
- package/esm/query-form/query-form.d.ts +1 -1
- package/esm/query-form/types.d.ts +1 -1
- package/esm/query-form-item/index.mjs +37 -44
- package/esm/query-form-item/index.mjs.map +1 -1
- package/esm/radio/index.d.ts +18 -18
- package/esm/radio/index.mjs +30 -39
- package/esm/radio/index.mjs.map +1 -1
- package/esm/rate/index.mjs +10 -13
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.mjs +2 -2
- package/esm/reset/index.mjs.map +1 -1
- package/esm/segmented/index.mjs +13 -17
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/select/index.d.ts +16 -16
- package/esm/select/index.mjs +22 -26
- package/esm/select/index.mjs.map +1 -1
- package/esm/select-table/index.d.ts +6 -6
- package/esm/select-table/index.mjs +16 -21
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.d.ts +2 -2
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/slider/index.mjs +10 -13
- package/esm/slider/index.mjs.map +1 -1
- package/esm/styles/form-grid/index.css +1 -1
- package/esm/submit/index.mjs +3 -3
- package/esm/submit/index.mjs.map +1 -1
- package/esm/switch/index.d.ts +9 -9
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.mjs +6 -9
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +12 -12
- package/esm/time-select/index.mjs +6 -9
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +12 -12
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.mjs +29 -33
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/utils.mjs +0 -2
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.mjs +14 -18
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/upload/index.d.ts +12 -12
- package/esm/upload/index.mjs +10 -13
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.d.ts +24 -24
- package/esm/vendor/icon.mjs.map +1 -1
- package/esm/vendor/lodash.mjs +111 -85
- package/esm/vendor/lodash.mjs.map +1 -1
- package/esm/vendor/runtime.mjs +23 -29
- package/esm/vendor/runtime.mjs.map +1 -1
- package/esm/vendor/shared.esm-bundler.mjs +2 -7
- package/esm/vendor/shared.esm-bundler.mjs.map +1 -1
- package/esm/vendor/sizes.mjs.map +1 -1
- package/esm/vendor/types.mjs +5 -5
- package/esm/vendor/types.mjs.map +1 -1
- package/package.json +56 -82
- package/LICENSE +0 -21
package/esm/form-step/index.mjs
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "@formily/reactive";
|
|
3
|
-
import "@vueuse/core";
|
|
4
|
-
import { defineComponent as $, renderSlot as B, computed as E, createElementBlock as o, openBlock as r, normalizeClass as N, createVNode as O, unref as t, mergeProps as h, withCtx as u, Fragment as c, renderList as x, createBlock as a, createSlots as V, resolveDynamicComponent as _, createTextVNode as v, toDisplayString as y, createCommentVNode as b } from "vue";
|
|
5
|
-
import "@formily/core";
|
|
6
|
-
import { useObserver as A } from "@silver-formily/reactive-vue";
|
|
7
|
-
import { useField as D, useFieldSchema as R, RecursionField as j } from "@silver-formily/vue";
|
|
8
|
-
import { composeExport as w } from "../__builtins__/shared/utils.mjs";
|
|
1
|
+
import { defineComponent as $, renderSlot as g, computed as P, openBlock as r, createElementBlock as o, normalizeClass as B, createVNode as E, unref as t, mergeProps as h, withCtx as u, Fragment as c, renderList as x, createBlock as m, createSlots as N, resolveDynamicComponent as _, createTextVNode as v, toDisplayString as y, createCommentVNode as O } from "vue";
|
|
9
2
|
import { isObj as k } from "@formily/shared";
|
|
3
|
+
import { useObserver as V } from "@silver-formily/reactive-vue";
|
|
4
|
+
import { useField as b, useFieldSchema as A, RecursionField as D } from "@silver-formily/vue";
|
|
5
|
+
import { ElSteps as R, ElStep as j } from "element-plus";
|
|
6
|
+
import { parseSteps as w, createFormStep as C } from "./utils.mjs";
|
|
10
7
|
import { stylePrefix as z } from "../__builtins__/configs/index.mjs";
|
|
11
|
-
import {
|
|
8
|
+
import { composeExport as L } from "../__builtins__/shared/utils.mjs";
|
|
12
9
|
const T = $({
|
|
13
10
|
name: "FFormStepPane",
|
|
14
11
|
inheritAttrs: !1
|
|
15
12
|
}), q = (n, i) => {
|
|
16
|
-
const
|
|
17
|
-
for (const [
|
|
18
|
-
|
|
19
|
-
return
|
|
13
|
+
const a = n.__vccOpts || n;
|
|
14
|
+
for (const [s, p] of i)
|
|
15
|
+
a[s] = p;
|
|
16
|
+
return a;
|
|
20
17
|
};
|
|
21
|
-
function G(n, i,
|
|
22
|
-
return
|
|
18
|
+
function G(n, i, a, s, p, f) {
|
|
19
|
+
return g(n.$slots, "default");
|
|
23
20
|
}
|
|
24
21
|
const H = /* @__PURE__ */ q(T, [["render", G]]), I = /* @__PURE__ */ $({
|
|
25
22
|
name: "FFormStep",
|
|
@@ -31,23 +28,23 @@ const H = /* @__PURE__ */ q(T, [["render", G]]), I = /* @__PURE__ */ $({
|
|
|
31
28
|
},
|
|
32
29
|
setup(n) {
|
|
33
30
|
const i = n;
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
i.formStep.connect?.(f,
|
|
37
|
-
const F =
|
|
31
|
+
V();
|
|
32
|
+
const a = b().value, s = `${z}-form-step`, p = A(), f = w(p.value);
|
|
33
|
+
i.formStep.connect?.(f, a);
|
|
34
|
+
const F = P(() => i.active ?? i.formStep?.current ?? 0);
|
|
38
35
|
return (S, J) => (r(), o("div", {
|
|
39
|
-
class:
|
|
36
|
+
class: B(s)
|
|
40
37
|
}, [
|
|
41
|
-
|
|
38
|
+
E(t(R), h(S.$attrs, {
|
|
42
39
|
active: F.value,
|
|
43
40
|
style: [{ marginBottom: "10px" }]
|
|
44
41
|
}), {
|
|
45
42
|
default: u(() => [
|
|
46
|
-
(r(!0), o(c, null, x(t(f), ({ props: l, slots: e }, d) => (r(),
|
|
43
|
+
(r(!0), o(c, null, x(t(f), ({ props: l, slots: e }, d) => (r(), m(t(j), h({ key: d }, { ref_for: !0 }, l), N({ _: 2 }, [
|
|
47
44
|
e?.title ? {
|
|
48
45
|
name: "title",
|
|
49
46
|
fn: u(() => [
|
|
50
|
-
t(k)(e.title) ? (r(),
|
|
47
|
+
t(k)(e.title) ? (r(), m(_(e.title), { key: 0 })) : (r(), o(c, { key: 1 }, [
|
|
51
48
|
v(y(e.title), 1)
|
|
52
49
|
], 64))
|
|
53
50
|
]),
|
|
@@ -56,7 +53,7 @@ const H = /* @__PURE__ */ q(T, [["render", G]]), I = /* @__PURE__ */ $({
|
|
|
56
53
|
e?.icon ? {
|
|
57
54
|
name: "icon",
|
|
58
55
|
fn: u(() => [
|
|
59
|
-
t(k)(e.icon) ? (r(),
|
|
56
|
+
t(k)(e.icon) ? (r(), m(_(e.icon), { key: 0 })) : (r(), o(c, { key: 1 }, [
|
|
60
57
|
v(y(e.icon), 1)
|
|
61
58
|
], 64))
|
|
62
59
|
]),
|
|
@@ -65,7 +62,7 @@ const H = /* @__PURE__ */ q(T, [["render", G]]), I = /* @__PURE__ */ $({
|
|
|
65
62
|
e?.description ? {
|
|
66
63
|
name: "description",
|
|
67
64
|
fn: u(() => [
|
|
68
|
-
t(k)(e.description) ? (r(),
|
|
65
|
+
t(k)(e.description) ? (r(), m(_(e.description), { key: 0 })) : (r(), o(c, { key: 1 }, [
|
|
69
66
|
v(y(e.description), 1)
|
|
70
67
|
], 64))
|
|
71
68
|
]),
|
|
@@ -76,20 +73,20 @@ const H = /* @__PURE__ */ q(T, [["render", G]]), I = /* @__PURE__ */ $({
|
|
|
76
73
|
_: 1
|
|
77
74
|
}, 16, ["active"]),
|
|
78
75
|
(r(!0), o(c, null, x(t(f), ({ name: l, schema: e }, d) => (r(), o(c, { key: l }, [
|
|
79
|
-
d === F.value ? (r(),
|
|
76
|
+
d === F.value ? (r(), m(t(D), {
|
|
80
77
|
key: 0,
|
|
81
78
|
name: l,
|
|
82
79
|
schema: e
|
|
83
|
-
}, null, 8, ["name", "schema"])) :
|
|
80
|
+
}, null, 8, ["name", "schema"])) : O("", !0)
|
|
84
81
|
], 64))), 128))
|
|
85
82
|
]));
|
|
86
83
|
}
|
|
87
|
-
}),
|
|
84
|
+
}), ee = L(I, {
|
|
88
85
|
StepPane: H,
|
|
89
86
|
createFormStep: C
|
|
90
87
|
});
|
|
91
88
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
ee as FormStep,
|
|
90
|
+
ee as default
|
|
94
91
|
};
|
|
95
92
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/form-step/form-step-pane.vue","../../src/form-step/form-step.vue","../../src/form-step/index.ts"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent } from 'vue'\n\nexport default defineComponent({\n name: 'FFormStepPane',\n inheritAttrs: false,\n})\n</script>\n\n<template>\n <slot />\n</template>\n","<script setup lang=\"ts\">\nimport type { VoidField } from '@formily/core'\nimport type { IFormStepProps } from './types'\nimport { isObj } from '@formily/shared'\nimport { useObserver } from '@silver-formily/reactive-vue'\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\nimport { ElStep, ElSteps } from 'element-plus'\nimport { computed } from 'vue'\nimport { stylePrefix } from '../__builtins__'\nimport { createFormStep, parseSteps } from './utils'\n\ndefineOptions({\n name: 'FFormStep',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<IFormStepProps>(), {\n formStep: () => createFormStep(),\n})\n\nuseObserver()\n\nconst field = useField<VoidField>().value\nconst prefixCls = `${stylePrefix}-form-step`\nconst fieldSchemaRef = useFieldSchema()\n\nconst steps = parseSteps(fieldSchemaRef.value)\n\nprops.formStep.connect?.(steps, field)\n\nconst current = computed(() => props.active ?? props.formStep?.current ?? 0)\n</script>\n\n<template>\n <div :class=\"prefixCls\">\n <ElSteps\n v-bind=\"$attrs\"\n :active=\"current\"\n :style=\"[{ marginBottom: '10px' }]\"\n >\n <ElStep\n v-for=\"({ props: stepProps, slots: stepSlots }, key) of steps\"\n :key=\"key\"\n v-bind=\"stepProps\"\n >\n <template v-if=\"stepSlots?.title\" #title>\n <template v-if=\"isObj(stepSlots.title)\">\n <component :is=\"stepSlots.title\" />\n </template>\n <template v-else>\n {{ stepSlots.title }}\n </template>\n </template>\n <template v-if=\"stepSlots?.icon\" #icon>\n <template v-if=\"isObj(stepSlots.icon)\">\n <component :is=\"stepSlots.icon\" />\n </template>\n <template v-else>\n {{ stepSlots.icon }}\n </template>\n </template>\n <template v-if=\"stepSlots?.description\" #description>\n <template v-if=\"isObj(stepSlots.description)\">\n <component :is=\"stepSlots.description\" />\n </template>\n <template v-else>\n {{ stepSlots.description }}\n </template>\n </template>\n </ElStep>\n </ElSteps>\n\n <template v-for=\"({ name, schema }, key) of steps\" :key=\"name\">\n <RecursionField\n v-if=\"key === current\"\n :name=\"name\"\n :schema=\"schema\"\n />\n </template>\n </div>\n</template>\n","import { composeExport } from '../__builtins__'\nimport FFormStepPane from './form-step-pane.vue'\nimport FFormStep from './form-step.vue'\nimport { createFormStep } from './utils'\n\nexport const FormStep = composeExport(FFormStep, {\n StepPane: FFormStepPane,\n createFormStep,\n})\n\nexport default FormStep\n"],"names":["_sfc_main$1","defineComponent","_renderSlot","_ctx","props","__props","useObserver","field","useField","prefixCls","stylePrefix","fieldSchemaRef","useFieldSchema","steps","parseSteps","current","computed","_createElementBlock","_createVNode","_unref","ElSteps","_mergeProps","_openBlock","_Fragment","stepProps","stepSlots","key","_createBlock","_createSlots","isObj","_resolveDynamicComponent","_createTextVNode","_toDisplayString","name","schema","RecursionField","FormStep","composeExport","FFormStep","FFormStepPane","createFormStep"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/form-step/form-step-pane.vue","../../src/form-step/form-step-pane.vue","../../src/form-step/form-step.vue","../../src/form-step/index.ts"],"sourcesContent":["<script lang=\"ts\">\r\nimport { defineComponent } from 'vue'\r\n\r\nexport default defineComponent({\r\n name: 'FFormStepPane',\r\n inheritAttrs: false,\r\n})\r\n</script>\r\n\r\n<template>\r\n <slot />\r\n</template>\r\n","<script lang=\"ts\">\r\nimport { defineComponent } from 'vue'\r\n\r\nexport default defineComponent({\r\n name: 'FFormStepPane',\r\n inheritAttrs: false,\r\n})\r\n</script>\r\n\r\n<template>\r\n <slot />\r\n</template>\r\n","<script setup lang=\"ts\">\r\nimport type { VoidField } from '@formily/core'\r\nimport type { IFormStepProps } from './types'\r\nimport { isObj } from '@formily/shared'\r\nimport { useObserver } from '@silver-formily/reactive-vue'\r\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\r\nimport { ElStep, ElSteps } from 'element-plus'\r\nimport { computed } from 'vue'\r\nimport { stylePrefix } from '../__builtins__'\r\nimport { createFormStep, parseSteps } from './utils'\r\n\r\ndefineOptions({\r\n name: 'FFormStep',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst props = withDefaults(defineProps<IFormStepProps>(), {\r\n formStep: () => createFormStep(),\r\n})\r\n\r\nuseObserver()\r\n\r\nconst field = useField<VoidField>().value\r\nconst prefixCls = `${stylePrefix}-form-step`\r\nconst fieldSchemaRef = useFieldSchema()\r\n\r\nconst steps = parseSteps(fieldSchemaRef.value)\r\n\r\nprops.formStep.connect?.(steps, field)\r\n\r\nconst current = computed(() => props.active ?? props.formStep?.current ?? 0)\r\n</script>\r\n\r\n<template>\r\n <div :class=\"prefixCls\">\r\n <ElSteps\r\n v-bind=\"$attrs\"\r\n :active=\"current\"\r\n :style=\"[{ marginBottom: '10px' }]\"\r\n >\r\n <ElStep\r\n v-for=\"({ props: stepProps, slots: stepSlots }, key) of steps\"\r\n :key=\"key\"\r\n v-bind=\"stepProps\"\r\n >\r\n <template v-if=\"stepSlots?.title\" #title>\r\n <template v-if=\"isObj(stepSlots.title)\">\r\n <component :is=\"stepSlots.title\" />\r\n </template>\r\n <template v-else>\r\n {{ stepSlots.title }}\r\n </template>\r\n </template>\r\n <template v-if=\"stepSlots?.icon\" #icon>\r\n <template v-if=\"isObj(stepSlots.icon)\">\r\n <component :is=\"stepSlots.icon\" />\r\n </template>\r\n <template v-else>\r\n {{ stepSlots.icon }}\r\n </template>\r\n </template>\r\n <template v-if=\"stepSlots?.description\" #description>\r\n <template v-if=\"isObj(stepSlots.description)\">\r\n <component :is=\"stepSlots.description\" />\r\n </template>\r\n <template v-else>\r\n {{ stepSlots.description }}\r\n </template>\r\n </template>\r\n </ElStep>\r\n </ElSteps>\r\n\r\n <template v-for=\"({ name, schema }, key) of steps\" :key=\"name\">\r\n <RecursionField\r\n v-if=\"key === current\"\r\n :name=\"name\"\r\n :schema=\"schema\"\r\n />\r\n </template>\r\n </div>\r\n</template>\r\n","import { composeExport } from '../__builtins__'\r\nimport FFormStepPane from './form-step-pane.vue'\r\nimport FFormStep from './form-step.vue'\r\nimport { createFormStep } from './utils'\r\n\r\nexport const FormStep = composeExport(FFormStep, {\r\n StepPane: FFormStepPane,\r\n createFormStep,\r\n})\r\n\r\nexport default FormStep\r\n"],"names":["_sfc_main$1","defineComponent","_renderSlot","_ctx","props","__props","useObserver","field","useField","prefixCls","stylePrefix","fieldSchemaRef","useFieldSchema","steps","parseSteps","current","computed","_createElementBlock","_createVNode","_unref","ElSteps","_mergeProps","_openBlock","_Fragment","stepProps","stepSlots","key","_createBlock","_createSlots","isObj","_resolveDynamicComponent","_createTextVNode","_toDisplayString","name","schema","RecursionField","FormStep","composeExport","FFormStep","FFormStepPane","createFormStep"],"mappings":";;;;;;;;AAGA,MAAAA,IAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;;;;;;;SCICC,EAAQC,EAAA,QAAA,SAAA;;;;;;;;;;;ACMV,UAAMC,IAAQC;AAId,IAAAC,EAAA;AAEA,UAAMC,IAAQC,IAAsB,OAC9BC,IAAY,GAAGC,CAAW,cAC1BC,IAAiBC,EAAA,GAEjBC,IAAQC,EAAWH,EAAe,KAAK;AAE7C,IAAAP,EAAM,SAAS,UAAUS,GAAON,CAAK;AAErC,UAAMQ,IAAUC,EAAS,MAAMZ,EAAM,UAAUA,EAAM,UAAU,WAAW,CAAC;2BAIzEa,EA6CM,OAAA;AAAA,MA7CA,SAAOR,CAAS;AAAA,IAAA;MACpBS,EAmCUC,EAAAC,CAAA,GAnCVC,EAmCUlB,EAAA,QAlCM;AAAA,QACb,QAAQY,EAAA;AAAA,QACR,OAAO,CAAA,EAAA,cAAA,QAAA;AAAA,MAAA;mBAGN,MAA8D;AAAA,WADhEO,EAAA,EAAA,GAAAL,EA6BSM,WA5BiDJ,EAAAN,CAAA,GAAK,CAAA,EAAA,OAA5CW,GAAS,OAASC,EAAA,GAAaC,OADlDJ,EAAA,GAAAK,EA6BSR,MA7BTE,EA6BS,EA3BN,KAAAK,EAAA,oBACOF,CAAS,GAAAI,EAAA,EAAA,GAAA,KAAA;AAAA,YAEDH,GAAW;oBAAQ;AAAA,oBACjC,MAEW;AAAA,gBAFKN,EAAAU,CAAA,EAAMJ,EAAU,KAAK,UACnCE,EAAmCG,EAAnBL,EAAU,KAAK,GAAA,EAAA,KAAA,EAAA,CAAA,WAEjCR,EAEWM,GAAA,EAAA,KAAA,KAAA;AAAA,kBADNQ,EAAAC,EAAAP,EAAU,KAAK,GAAA,CAAA;AAAA,gBAAA;;;;YAGNA,GAAW;oBAAO;AAAA,oBAChC,MAEW;AAAA,gBAFKN,EAAAU,CAAA,EAAMJ,EAAU,IAAI,UAClCE,EAAkCG,EAAlBL,EAAU,IAAI,GAAA,EAAA,KAAA,EAAA,CAAA,WAEhCR,EAEWM,GAAA,EAAA,KAAA,KAAA;AAAA,kBADNQ,EAAAC,EAAAP,EAAU,IAAI,GAAA,CAAA;AAAA,gBAAA;;;;YAGLA,GAAW;oBAAc;AAAA,oBACvC,MAEW;AAAA,gBAFKN,EAAAU,CAAA,EAAMJ,EAAU,WAAW,UACzCE,EAAyCG,EAAzBL,EAAU,WAAW,GAAA,EAAA,KAAA,EAAA,CAAA,WAEvCR,EAEWM,GAAA,EAAA,KAAA,KAAA;AAAA,kBADNQ,EAAAC,EAAAP,EAAU,WAAW,GAAA,CAAA;AAAA,gBAAA;;;;;;;;OAMhCH,EAAA,EAAA,GAAAL,EAMWM,WANiCJ,EAAAN,CAAA,GAAK,CAAA,EAA7B,MAAAoB,GAAM,QAAAC,EAAA,GAAUR,wBAAqBO,KAAI;AAAA,QAEnDP,MAAQX,EAAA,cADhBY,EAIER,EAAAgB,CAAA,GAAA;AAAA;UAFC,MAAAF;AAAA,UACA,QAAAC;AAAA,QAAA;;;;ICvEIE,KAAWC,EAAcC,GAAW;AAAA,EAC/C,UAAUC;AAAA,EACV,gBAAAC;AACF,CAAC;"}
|
package/esm/form-step/utils.mjs
CHANGED
|
@@ -37,10 +37,8 @@ function d(o = 0) {
|
|
|
37
37
|
return e.form?.submit?.(n);
|
|
38
38
|
}
|
|
39
39
|
}), p = c.bound(() => {
|
|
40
|
-
/* istanbul ignore else -- @preserve */
|
|
41
40
|
t.allowNext && (r(t.current + 1), t.setCurrent(t.current + 1));
|
|
42
41
|
}), l = c.bound(() => {
|
|
43
|
-
/* istanbul ignore else -- @preserve */
|
|
44
42
|
t.allowBack && (r(t.current - 1), t.setCurrent(t.current - 1));
|
|
45
43
|
});
|
|
46
44
|
return t;
|
|
@@ -48,7 +46,6 @@ function d(o = 0) {
|
|
|
48
46
|
function b(o) {
|
|
49
47
|
const e = [];
|
|
50
48
|
return o.mapProperties((r, t) => {
|
|
51
|
-
/* istanbul ignore else -- @preserve */
|
|
52
49
|
r["x-component"]?.indexOf("StepPane") > -1 && e.push({
|
|
53
50
|
name: t,
|
|
54
51
|
props: r["x-component-props"],
|
|
@@ -1 +1 @@
|
|
|
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","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,GAAO,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,aAAOd,EAAI,MAAM,SAASc,CAAQ;AAAA,IACpC;AAAA,EAAA,CACD,GAEKF,IAAOT,EAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../src/form-step/utils.ts"],"sourcesContent":["import type { Schema, SchemaKey } from '@formily/json-schema'\r\nimport type { Slots } from 'vue'\r\nimport type { FormStepEnv, IFormStep } from './types'\r\nimport { action, model, observable } from '@formily/reactive'\r\n\r\nexport interface SchemaStep {\r\n name: SchemaKey\r\n props: any\r\n schema: Schema\r\n slots: Slots\r\n}\r\n\r\nexport function createFormStep(defaultCurrent = 0): IFormStep {\r\n const env: FormStepEnv = observable({\r\n form: null,\r\n field: null,\r\n steps: [],\r\n })\r\n\r\n const setDisplay = action.bound((target: number) => {\r\n const currentStep = env.steps[target]\r\n for (const { name } of env.steps) {\r\n env.form.query(`${env.field.address}.${name}`).take((field) => {\r\n if (name === currentStep.name) {\r\n field.setDisplay('visible')\r\n }\r\n else {\r\n field.setDisplay('hidden')\r\n }\r\n })\r\n }\r\n })\r\n\r\n const formStep: IFormStep = model({\r\n connect(steps, field) {\r\n env.steps = steps\r\n env.form = field?.form\r\n env.field = field\r\n },\r\n current: defaultCurrent,\r\n setCurrent(key: number) {\r\n formStep.current = key\r\n },\r\n get allowNext() {\r\n return formStep.current < env.steps.length - 1\r\n },\r\n get allowBack() {\r\n return formStep.current > 0\r\n },\r\n async next() {\r\n try {\r\n await env.form.validate()\r\n // eslint-disable-next-line ts/no-use-before-define\r\n next()\r\n }\r\n catch {}\r\n },\r\n async back() {\r\n // eslint-disable-next-line ts/no-use-before-define\r\n back()\r\n },\r\n async submit(onSubmit) {\r\n return env.form?.submit?.(onSubmit)\r\n },\r\n })\r\n\r\n const next = action.bound(() => {\r\n /* istanbul ignore else -- @preserve */\r\n if (formStep.allowNext) {\r\n setDisplay(formStep.current + 1)\r\n formStep.setCurrent(formStep.current + 1)\r\n }\r\n })\r\n\r\n const back = action.bound(() => {\r\n /* istanbul ignore else -- @preserve */\r\n if (formStep.allowBack) {\r\n setDisplay(formStep.current - 1)\r\n formStep.setCurrent(formStep.current - 1)\r\n }\r\n })\r\n return formStep\r\n}\r\n\r\nexport function parseSteps(schema: Schema) {\r\n const steps: SchemaStep[] = []\r\n schema.mapProperties((schema, name) => {\r\n /* istanbul ignore else -- @preserve */\r\n if (schema['x-component']?.indexOf('StepPane') > -1) {\r\n steps.push({\r\n name,\r\n props: schema['x-component-props'],\r\n schema,\r\n slots: schema['x-content'],\r\n })\r\n }\r\n })\r\n return steps\r\n}\r\n"],"names":["createFormStep","defaultCurrent","env","observable","setDisplay","action","target","currentStep","name","field","formStep","model","steps","key","next","back","onSubmit","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,GAAO,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,aAAOd,EAAI,MAAM,SAASc,CAAQ;AAAA,IACpC;AAAA,EAAA,CACD,GAEKF,IAAOT,EAAO,MAAM,MAAM;AAE9B,IAAIK,EAAS,cACXN,EAAWM,EAAS,UAAU,CAAC,GAC/BA,EAAS,WAAWA,EAAS,UAAU,CAAC;AAAA,EAE5C,CAAC,GAEKK,IAAOV,EAAO,MAAM,MAAM;AAE9B,IAAIK,EAAS,cACXN,EAAWM,EAAS,UAAU,CAAC,GAC/BA,EAAS,WAAWA,EAAS,UAAU,CAAC;AAAA,EAE5C,CAAC;AACD,SAAOA;AACT;AAEO,SAASO,EAAWC,GAAgB;AACzC,QAAMN,IAAsB,CAAA;AAC5B,SAAAM,EAAO,cAAc,CAACA,GAAQV,MAAS;AAErC,IAAIU,EAAO,aAAa,GAAG,QAAQ,UAAU,IAAI,MAC/CN,EAAM,KAAK;AAAA,MACT,MAAAJ;AAAA,MACA,OAAOU,EAAO,mBAAmB;AAAA,MACjC,QAAAA;AAAAA,MACA,OAAOA,EAAO,WAAW;AAAA,IAAA,CAC1B;AAAA,EAEL,CAAC,GACMN;AACT;"}
|
package/esm/form-tab/hooks.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { GeneralField } from '@formily/core';
|
|
1
2
|
import { Schema, SchemaKey } from '@formily/json-schema';
|
|
2
3
|
export type Tabs = {
|
|
3
4
|
name: SchemaKey;
|
|
4
5
|
props: any;
|
|
5
6
|
schema: Schema;
|
|
6
7
|
}[];
|
|
7
|
-
export declare function useTabs(): Tabs;
|
|
8
|
+
export declare function useTabs(tabField: GeneralField, schema: Schema): Tabs;
|
package/esm/form-tab/hooks.mjs
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
schema: e
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
}, {
|
|
18
|
-
fireImmediately: !0
|
|
19
|
-
}), o;
|
|
1
|
+
function r(n, a) {
|
|
2
|
+
return a.mapProperties((s, e) => ({
|
|
3
|
+
name: e,
|
|
4
|
+
props: {
|
|
5
|
+
name: s?.["x-component-props"]?.name || e,
|
|
6
|
+
...s?.["x-component-props"]
|
|
7
|
+
},
|
|
8
|
+
schema: s
|
|
9
|
+
})).filter((s) => {
|
|
10
|
+
const e = n.query(n.address.concat(s.name)).take();
|
|
11
|
+
return e?.display === "none" || e?.display === "hidden" ? !1 : s?.schema?.["x-component"]?.includes("TabPane") ?? !1;
|
|
12
|
+
});
|
|
20
13
|
}
|
|
21
14
|
export {
|
|
22
|
-
|
|
15
|
+
r as useTabs
|
|
23
16
|
};
|
|
24
17
|
//# sourceMappingURL=hooks.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.mjs","sources":["../../src/form-tab/hooks.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"hooks.mjs","sources":["../../src/form-tab/hooks.ts"],"sourcesContent":["import type { GeneralField } from '@formily/core'\r\nimport type { Schema, SchemaKey } from '@formily/json-schema'\r\n\r\nexport type Tabs = { name: SchemaKey, props: any, schema: Schema }[]\r\n\r\nexport function useTabs(tabField: GeneralField, schema: Schema) {\r\n const schemaList = schema.mapProperties((item, name) => ({\r\n name,\r\n props: {\r\n name: item?.['x-component-props']?.name || name,\r\n ...item?.['x-component-props'],\r\n },\r\n schema: item,\r\n }))\r\n\r\n const tabs: Tabs = schemaList.filter((item) => {\r\n const field = tabField.query(tabField.address.concat(item.name)).take()\r\n const isHidden = field?.display === 'none' || field?.display === 'hidden'\r\n if (isHidden)\r\n return false\r\n return item?.schema?.['x-component']?.includes('TabPane') ?? false\r\n })\r\n\r\n return tabs\r\n}\r\n"],"names":["useTabs","tabField","schema","item","name","field"],"mappings":"AAKO,SAASA,EAAQC,GAAwBC,GAAgB;AAkB9D,SAjBmBA,EAAO,cAAc,CAACC,GAAMC,OAAU;AAAA,IACvD,MAAAA;AAAA,IACA,OAAO;AAAA,MACL,MAAMD,IAAO,mBAAmB,GAAG,QAAQC;AAAA,MAC3C,GAAGD,IAAO,mBAAmB;AAAA,IAAA;AAAA,IAE/B,QAAQA;AAAA,EAAA,EACR,EAE4B,OAAO,CAACA,MAAS;AAC7C,UAAME,IAAQJ,EAAS,MAAMA,EAAS,QAAQ,OAAOE,EAAK,IAAI,CAAC,EAAE,KAAA;AAEjE,WADiBE,GAAO,YAAY,UAAUA,GAAO,YAAY,WAExD,KACFF,GAAM,SAAS,aAAa,GAAG,SAAS,SAAS,KAAK;AAAA,EAC/D,CAAC;AAGH;"}
|
package/esm/form-tab/index.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { formilyComputed as
|
|
2
|
-
import {
|
|
3
|
-
import { reaction as
|
|
4
|
-
import "@
|
|
5
|
-
import {
|
|
6
|
-
import "@formily/core";
|
|
7
|
-
import { useField as I, RecursionField as P } from "@silver-formily/vue";
|
|
8
|
-
import { composeExport as S } from "../__builtins__/shared/utils.mjs";
|
|
9
|
-
import { stylePrefix as j } from "../__builtins__/configs/index.mjs";
|
|
1
|
+
import { formilyComputed as p, observer as k } from "@silver-formily/reactive-vue";
|
|
2
|
+
import { defineComponent as B, computed as K, ref as w, watch as $, openBlock as t, createBlock as n, unref as a, withCtx as l, createElementBlock as v, Fragment as b, renderList as L, mergeProps as N, normalizeClass as R, createTextVNode as h, toDisplayString as T, createVNode as S } from "vue";
|
|
3
|
+
import { reaction as q } from "@formily/reactive";
|
|
4
|
+
import { useField as z, useFieldSchema as A, RecursionField as D } from "@silver-formily/vue";
|
|
5
|
+
import { ElTabs as I, ElTabPane as P, ElBadge as j } from "element-plus";
|
|
10
6
|
import { useTabs as G } from "./hooks.mjs";
|
|
11
7
|
import { createFormTab as y } from "./utils.mjs";
|
|
12
|
-
import
|
|
8
|
+
import { stylePrefix as H } from "../__builtins__/configs/index.mjs";
|
|
9
|
+
import { composeExport as J } from "../__builtins__/shared/utils.mjs";
|
|
10
|
+
import '../styles/form-tab/index.css';const M = /* @__PURE__ */ B({
|
|
13
11
|
name: "FFormTab",
|
|
14
12
|
__name: "form-tab",
|
|
15
13
|
props: {
|
|
@@ -17,48 +15,47 @@ import '../styles/form-tab/index.css';const H = /* @__PURE__ */ $({
|
|
|
17
15
|
modelValue: {}
|
|
18
16
|
},
|
|
19
17
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
!
|
|
18
|
+
setup(F, { emit: _ }) {
|
|
19
|
+
const c = F, g = _, m = z(), x = A(), C = `${H}-form-tab`, u = K(() => c.formTab ?? y()), r = p(() => G(m.value, x.value)), o = w(c?.modelValue ?? u.value.activeKey ?? r.value?.[0]?.name);
|
|
20
|
+
q(() => r.value.length, () => {
|
|
21
|
+
!r.value.some((e) => e.name === o.value) && (o.value = r.value?.[0]?.name);
|
|
24
22
|
}, {
|
|
25
23
|
fireImmediately: !0
|
|
26
|
-
}),
|
|
27
|
-
|
|
24
|
+
}), $(() => u.value.activeKey, (e) => {
|
|
25
|
+
o.value = e;
|
|
28
26
|
});
|
|
29
|
-
const
|
|
27
|
+
const i = p(() => r.value.map((e) => m.value.form.queryFeedbacks({
|
|
30
28
|
type: "error",
|
|
31
|
-
address: `${
|
|
29
|
+
address: `${m.value.address}.${e.name}.*`
|
|
32
30
|
}).length));
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
typeof e == "string" && (F("update:modelValue", e), l.value.setActiveKey?.(e));
|
|
31
|
+
function V(e) {
|
|
32
|
+
typeof e == "string" && (g("update:modelValue", e), u.value.setActiveKey?.(e));
|
|
36
33
|
}
|
|
37
|
-
return (e,
|
|
38
|
-
"model-value":
|
|
34
|
+
return (e, Q) => (t(), n(a(I), {
|
|
35
|
+
"model-value": o.value,
|
|
39
36
|
style: { width: "100%" },
|
|
40
|
-
onTabChange:
|
|
37
|
+
onTabChange: V
|
|
41
38
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
(
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
schema:
|
|
39
|
+
default: l(() => [
|
|
40
|
+
(t(!0), v(b, null, L(a(r), ({ props: s, schema: E, name: f }, d) => (t(), n(a(P), N({ key: f }, { ref_for: !0 }, s), {
|
|
41
|
+
default: l(() => [
|
|
42
|
+
S(a(D), {
|
|
43
|
+
schema: E,
|
|
47
44
|
name: f
|
|
48
45
|
}, null, 8, ["schema", "name"])
|
|
49
46
|
]),
|
|
50
|
-
label:
|
|
51
|
-
|
|
47
|
+
label: l(() => [
|
|
48
|
+
a(i)[d] !== 0 ? (t(), n(a(j), {
|
|
52
49
|
key: 0,
|
|
53
|
-
class:
|
|
54
|
-
value:
|
|
50
|
+
class: R(C),
|
|
51
|
+
value: a(i)[d]
|
|
55
52
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
53
|
+
default: l(() => [
|
|
54
|
+
h(T(s.label), 1)
|
|
58
55
|
]),
|
|
59
56
|
_: 2
|
|
60
|
-
}, 1032, ["value"])) : (
|
|
61
|
-
|
|
57
|
+
}, 1032, ["value"])) : (t(), v(b, { key: 1 }, [
|
|
58
|
+
h(T(s.label), 1)
|
|
62
59
|
], 64))
|
|
63
60
|
]),
|
|
64
61
|
_: 2
|
|
@@ -67,12 +64,12 @@ import '../styles/form-tab/index.css';const H = /* @__PURE__ */ $({
|
|
|
67
64
|
_: 1
|
|
68
65
|
}, 8, ["model-value"]));
|
|
69
66
|
}
|
|
70
|
-
}),
|
|
67
|
+
}), O = k(M), oe = J(O, {
|
|
71
68
|
createFormTab: y
|
|
72
69
|
});
|
|
73
70
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
oe as FormTab,
|
|
72
|
+
oe as composeFormTab,
|
|
73
|
+
oe as default
|
|
77
74
|
};
|
|
78
75
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
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 { reaction } from '@formily/reactive'\nimport { formilyComputed } from '@silver-formily/reactive-vue'\nimport { RecursionField, useField } from '@silver-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<IFormTabProps>()\nconst emit = defineEmits(['update:modelValue'])\n\nconst field = useField()\nconst prefixCls = `${stylePrefix}-form-tab`\nconst formTabRef = computed(() => props.formTab ?? createFormTab())\nconst tabs = useTabs()\nconst _activeKey = ref(props?.modelValue ?? 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 = formilyComputed(() => {\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('update:modelValue', 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=\"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/form-tab/form-tab.vue","../../src/form-tab/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport type { IFormTabProps } from './types.ts'\r\nimport { reaction } from '@formily/reactive'\r\nimport { formilyComputed } from '@silver-formily/reactive-vue'\r\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\r\nimport { ElBadge, ElTabPane, ElTabs } from 'element-plus'\r\nimport { computed, ref, watch } from 'vue'\r\nimport { stylePrefix } from '../__builtins__'\r\nimport { useTabs } from './hooks'\r\nimport { createFormTab } from './utils'\r\n\r\ndefineOptions({\r\n name: 'FFormTab',\r\n})\r\n\r\nconst props = defineProps<IFormTabProps>()\r\nconst emit = defineEmits(['update:modelValue'])\r\n\r\nconst field = useField()\r\nconst schema = useFieldSchema()\r\nconst prefixCls = `${stylePrefix}-form-tab`\r\nconst formTabRef = computed(() => props.formTab ?? createFormTab())\r\nconst tabs = formilyComputed(() => useTabs(field.value, schema.value))\r\nconst _activeKey = ref(props?.modelValue ?? formTabRef.value.activeKey ?? tabs.value?.[0]?.name)\r\n\r\nreaction(() => {\r\n return tabs.value.length\r\n}, () => {\r\n !tabs.value.some(tab => tab.name === _activeKey.value) && (_activeKey.value = tabs.value?.[0]?.name)\r\n}, {\r\n fireImmediately: true,\r\n})\r\nwatch(() => formTabRef.value.activeKey, (val) => {\r\n _activeKey.value = val\r\n})\r\n\r\nconst errorList = formilyComputed(() => {\r\n return tabs.value.map((tab) => {\r\n return field.value.form.queryFeedbacks({\r\n type: 'error',\r\n address: `${field.value.address}.${tab.name}.*`,\r\n }).length\r\n })\r\n})\r\n\r\nfunction handleTabChange(key: string) {\r\n /* istanbul ignore if -- @preserve */\r\n if (typeof key !== 'string')\r\n return\r\n emit('update:modelValue', key)\r\n formTabRef.value.setActiveKey?.(key)\r\n}\r\n</script>\r\n\r\n<template>\r\n <ElTabs\r\n :model-value=\"_activeKey\"\r\n style=\"width: 100%;\"\r\n @tab-change=\"handleTabChange\"\r\n >\r\n <ElTabPane\r\n v-for=\"({ props: tabProps, schema: tabSchema, name }, key) in tabs\"\r\n :key=\"name\"\r\n v-bind=\"tabProps\"\r\n >\r\n <template #default>\r\n <RecursionField :schema=\"tabSchema\" :name=\"name\" />\r\n </template>\r\n <template #label>\r\n <ElBadge\r\n v-if=\"errorList[key] !== 0\"\r\n :class=\"prefixCls\"\r\n :value=\"errorList[key]\"\r\n >\r\n {{ tabProps.label }}\r\n </ElBadge>\r\n <template v-else>\r\n {{ tabProps.label }}\r\n </template>\r\n </template>\r\n </ElTabPane>\r\n </ElTabs>\r\n</template>\r\n","import { observer } from '@silver-formily/reactive-vue'\r\nimport { composeExport } from '../__builtins__'\r\nimport FFormTab from './form-tab.vue'\r\nimport { createFormTab } from './utils'\r\nimport './style.scss'\r\n\r\nconst FormTab = observer(FFormTab)\r\n\r\nexport const composeFormTab = composeExport(FormTab, {\r\n createFormTab,\r\n})\r\n\r\nexport { composeFormTab as FormTab }\r\nexport default composeFormTab\r\n"],"names":["props","__props","emit","__emit","field","useField","schema","useFieldSchema","prefixCls","stylePrefix","formTabRef","computed","createFormTab","tabs","formilyComputed","useTabs","_activeKey","ref","reaction","tab","watch","val","errorList","handleTabChange","key","_createBlock","_unref","ElTabs","_createElementBlock","_Fragment","_renderList","tabProps","tabSchema","name","_openBlock","_mergeProps","_createVNode","RecursionField","ElBadge","_createTextVNode","_toDisplayString","FormTab","observer","FFormTab","composeFormTab","composeExport"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,UAAMA,IAAQC,GACRC,IAAOC,GAEPC,IAAQC,EAAA,GACRC,IAASC,EAAA,GACTC,IAAY,GAAGC,CAAW,aAC1BC,IAAaC,EAAS,MAAMX,EAAM,WAAWY,GAAe,GAC5DC,IAAOC,EAAgB,MAAMC,EAAQX,EAAM,OAAOE,EAAO,KAAK,CAAC,GAC/DU,IAAaC,EAAIjB,GAAO,cAAcU,EAAW,MAAM,aAAaG,EAAK,QAAQ,CAAC,GAAG,IAAI;AAE/F,IAAAK,EAAS,MACAL,EAAK,MAAM,QACjB,MAAM;AACP,OAACA,EAAK,MAAM,KAAK,CAAAM,MAAOA,EAAI,SAASH,EAAW,KAAK,MAAMA,EAAW,QAAQH,EAAK,QAAQ,CAAC,GAAG;AAAA,IACjG,GAAG;AAAA,MACD,iBAAiB;AAAA,IAAA,CAClB,GACDO,EAAM,MAAMV,EAAW,MAAM,WAAW,CAACW,MAAQ;AAC/C,MAAAL,EAAW,QAAQK;AAAA,IACrB,CAAC;AAED,UAAMC,IAAYR,EAAgB,MACzBD,EAAK,MAAM,IAAI,CAACM,MACdf,EAAM,MAAM,KAAK,eAAe;AAAA,MACrC,MAAM;AAAA,MACN,SAAS,GAAGA,EAAM,MAAM,OAAO,IAAIe,EAAI,IAAI;AAAA,IAAA,CAC5C,EAAE,MACJ,CACF;AAED,aAASI,EAAgBC,GAAa;AAEpC,MAAI,OAAOA,KAAQ,aAEnBtB,EAAK,qBAAqBsB,CAAG,GAC7Bd,EAAW,MAAM,eAAec,CAAG;AAAA,IACrC;2BAIEC,EA0BSC,EAAAC,CAAA,GAAA;AAAA,MAzBN,eAAaX,EAAA;AAAA,MACd,OAAA,EAAA,OAAA,OAAA;AAAA,MACC,aAAYO;AAAA,IAAA;iBAGX,MAAmE;AAAA,gBADrEK,EAoBYC,GAAA,MAAAC,EAnBoDJ,MAAI,CAAA,EAAA,OAAjDK,WAAkBC,GAAW,MAAAC,EAAA,GAAQT,OADxDU,KAAAT,EAoBYC,MApBZS,EAoBY,EAlBT,KAAKF,EAAA,oBACEF,CAAQ,GAAA;AAAA,UAEL,WACT,MAAmD;AAAA,YAAnDK,EAAmDV,EAAAW,CAAA,GAAA;AAAA,cAAlC,QAAQL;AAAA,cAAY,MAAAC;AAAA,YAAA;;UAE5B,SACT,MAMU;AAAA,YALFP,EAAAJ,CAAA,EAAUE,CAAG,MAAA,UADrBC,EAMUC,EAAAY,CAAA,GAAA;AAAA;cAJP,SAAO9B,CAAS;AAAA,cAChB,OAAOkB,EAAAJ,CAAA,EAAUE,CAAG;AAAA,YAAA;yBAErB,MAAoB;AAAA,gBAAjBe,EAAAC,EAAAT,EAAS,KAAK,GAAA,CAAA;AAAA,cAAA;;yCAEnBH,EAEWC,GAAA,EAAA,KAAA,KAAA;AAAA,cADNU,EAAAC,EAAAT,EAAS,KAAK,GAAA,CAAA;AAAA,YAAA;;;;;;;;ICvErBU,IAAUC,EAASC,CAAQ,GAEpBC,KAAiBC,EAAcJ,GAAS;AAAA,EACnD,eAAA7B;AACF,CAAC;"}
|
|
@@ -1 +1 @@
|
|
|
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;"}
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../src/form-tab/utils.ts"],"sourcesContent":["import { model } from '@formily/reactive'\r\n\r\nexport function createFormTab(defaultActiveKey?: string) {\r\n const formTab = model({\r\n activeKey: defaultActiveKey,\r\n setActiveKey(key: string) {\r\n formTab.activeKey = key\r\n },\r\n })\r\n return formTab\r\n}\r\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.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ArrayCards as e } from "./array-cards/index.mjs";
|
|
2
|
-
import { ArrayCollapse as
|
|
2
|
+
import { ArrayCollapse as m } from "./array-collapse/index.mjs";
|
|
3
3
|
import { ArrayItems as f } from "./array-items/index.mjs";
|
|
4
4
|
import { ArrayListTabs as a } from "./array-list-tabs/index.mjs";
|
|
5
5
|
import { ArrayTable as s } from "./array-table/index.mjs";
|
|
6
|
-
import { ArrayTabs as
|
|
6
|
+
import { ArrayTabs as c } from "./array-tabs/index.mjs";
|
|
7
7
|
import { Autocomplete as T } from "./autocomplete/index.mjs";
|
|
8
8
|
import { Cascader as d } from "./cascader/index.mjs";
|
|
9
9
|
import { Checkbox as S } from "./checkbox/index.mjs";
|
|
@@ -12,47 +12,47 @@ import { ColorPickerPanel as C } from "./color-picker-panel/index.mjs";
|
|
|
12
12
|
import { DatePicker as k } from "./date-picker/index.mjs";
|
|
13
13
|
import { DatePickerPanel as w } from "./date-picker-panel/index.mjs";
|
|
14
14
|
import { Editable as g } from "./editable/index.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
15
|
+
import { FormButtonGroup as h } from "./form-button-group/index.mjs";
|
|
16
|
+
import { FormCollapse as E, FormCollapseItem as G } from "./form-collapse/index.mjs";
|
|
17
|
+
import { FormDialog as M } from "./form-dialog/index.mjs";
|
|
18
|
+
import { FormDrawer as _ } from "./form-drawer/index.mjs";
|
|
19
|
+
import { FormGrid as N } from "./form-grid/index.mjs";
|
|
20
|
+
import { FormBaseItem as j, FormItem as q, fieldFeedbackMapper as z } from "./form-item/index.mjs";
|
|
21
|
+
import { FormStep as J } from "./form-step/index.mjs";
|
|
22
|
+
import { FormTab as O, FormTab as V } from "./form-tab/index.mjs";
|
|
23
|
+
import { Input as X } from "./input/index.mjs";
|
|
24
|
+
import { InputNumber as Z } from "./input-number/index.mjs";
|
|
25
|
+
import { InputTag as rr } from "./input-tag/index.mjs";
|
|
26
|
+
import { Mention as er } from "./mention/index.mjs";
|
|
27
|
+
import { Password as mr } from "./password/index.mjs";
|
|
28
|
+
import { PreviewText as fr } from "./preview-text/index.mjs";
|
|
29
|
+
import { QueryForm as ar } from "./query-form/index.mjs";
|
|
30
|
+
import { QueryFormItem as sr } from "./query-form-item/index.mjs";
|
|
31
|
+
import { Radio as cr } from "./radio/index.mjs";
|
|
32
|
+
import { Rate as Tr } from "./rate/index.mjs";
|
|
33
|
+
import { Reset as dr } from "./reset/index.mjs";
|
|
34
|
+
import { Segmented as Sr } from "./segmented/index.mjs";
|
|
35
|
+
import { Select as yr } from "./select/index.mjs";
|
|
36
|
+
import { SelectTable as Cr } from "./select-table/index.mjs";
|
|
37
|
+
import { Slider as kr } from "./slider/index.mjs";
|
|
38
|
+
import { Submit as wr } from "./submit/index.mjs";
|
|
39
|
+
import { Switch as gr } from "./switch/index.mjs";
|
|
40
|
+
import { TimePicker as hr } from "./time-picker/index.mjs";
|
|
41
|
+
import { TimeSelect as Er } from "./time-select/index.mjs";
|
|
42
|
+
import { Transfer as Lr } from "./transfer/index.mjs";
|
|
43
|
+
import { Tree as Qr } from "./tree/index.mjs";
|
|
44
|
+
import { TreeSelect as vr } from "./tree-select/index.mjs";
|
|
45
|
+
import { Upload as Ur } from "./upload/index.mjs";
|
|
46
|
+
import { _ as qr } from "./form/form.mjs";
|
|
47
|
+
import { _ as Hr } from "./form-layout/form-layout.mjs";
|
|
48
|
+
import { ElSpace as Kr } from "element-plus";
|
|
49
49
|
export {
|
|
50
50
|
e as ArrayCards,
|
|
51
|
-
|
|
51
|
+
m as ArrayCollapse,
|
|
52
52
|
f as ArrayItems,
|
|
53
53
|
a as ArrayListTabs,
|
|
54
54
|
s as ArrayTable,
|
|
55
|
-
|
|
55
|
+
c as ArrayTabs,
|
|
56
56
|
T as Autocomplete,
|
|
57
57
|
d as Cascader,
|
|
58
58
|
S as Checkbox,
|
|
@@ -61,43 +61,43 @@ export {
|
|
|
61
61
|
k as DatePicker,
|
|
62
62
|
w as DatePickerPanel,
|
|
63
63
|
g as Editable,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
64
|
+
qr as Form,
|
|
65
|
+
j as FormBaseItem,
|
|
66
|
+
h as FormButtonGroup,
|
|
67
|
+
E as FormCollapse,
|
|
68
|
+
G as FormCollapseItem,
|
|
69
|
+
M as FormDialog,
|
|
70
|
+
_ as FormDrawer,
|
|
71
|
+
N as FormGrid,
|
|
72
|
+
q as FormItem,
|
|
73
|
+
Hr as FormLayout,
|
|
74
|
+
J as FormStep,
|
|
75
|
+
O as FormTab,
|
|
76
|
+
X as Input,
|
|
77
|
+
Z as InputNumber,
|
|
78
|
+
rr as InputTag,
|
|
79
|
+
er as Mention,
|
|
80
|
+
mr as Password,
|
|
81
|
+
fr as PreviewText,
|
|
82
|
+
ar as QueryForm,
|
|
83
|
+
sr as QueryFormItem,
|
|
84
|
+
cr as Radio,
|
|
85
|
+
Tr as Rate,
|
|
86
|
+
dr as Reset,
|
|
87
|
+
Sr as Segmented,
|
|
88
|
+
yr as Select,
|
|
89
|
+
Cr as SelectTable,
|
|
90
|
+
kr as Slider,
|
|
91
|
+
Kr as Space,
|
|
92
|
+
wr as Submit,
|
|
93
|
+
gr as Switch,
|
|
94
|
+
hr as TimePicker,
|
|
95
|
+
Er as TimeSelect,
|
|
96
|
+
Lr as Transfer,
|
|
97
|
+
Qr as Tree,
|
|
98
|
+
vr as TreeSelect,
|
|
99
|
+
Ur as Upload,
|
|
100
|
+
V as composeFormTab,
|
|
101
|
+
z as fieldFeedbackMapper
|
|
102
102
|
};
|
|
103
103
|
//# sourceMappingURL=index.mjs.map
|