@silver-formily/element-plus 2.0.1 → 2.1.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/LICENSE +21 -21
- package/README.en-US.md +32 -0
- package/README.md +32 -35
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/index.mjs +15 -16
- package/esm/__builtins__/shared/hooks.mjs.map +1 -1
- package/esm/__builtins__/shared/index.mjs +11 -12
- 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 +2 -6
- package/esm/__builtins__/shared/transform-component.mjs +16 -33
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +10 -10
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/array-base/index.mjs +76 -73
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/utils.mjs +33 -29
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/index.mjs +56 -54
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-collapse/index.mjs +64 -62
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/utils.mjs +8 -2
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/index.mjs +53 -47
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-list-tabs/index.mjs +36 -34
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/utils.mjs +11 -5
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/array-table.d.ts +28 -0
- package/esm/array-table/index.d.ts +28 -0
- package/esm/array-table/index.mjs +126 -123
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/types.d.ts +1 -0
- package/esm/array-table/utils.mjs +18 -12
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/index.mjs +19 -17
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/cascader/index.mjs +26 -24
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.d.ts +1 -4
- package/esm/checkbox/index.d.ts +442 -379
- package/esm/checkbox/index.mjs +19 -16
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/date-picker/index.mjs +14 -12
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/editable/editable.d.ts +16 -12
- package/esm/editable/index.d.ts +8 -6
- package/esm/editable/index.mjs +113 -113
- package/esm/editable/index.mjs.map +1 -1
- package/esm/form/form.mjs +6 -6
- package/esm/form/form.mjs.map +1 -1
- package/esm/form-button-group/index.mjs +33 -29
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/utils.mjs +8 -2
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/index.mjs +43 -42
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/index.d.ts +1 -1
- package/esm/form-dialog/index.mjs +22 -22
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +6 -6
- package/esm/form-drawer/index.d.ts +1 -1
- package/esm/form-drawer/index.mjs +21 -21
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +6 -6
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.d.ts +1 -183
- package/esm/form-grid/index.mjs +23 -20
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-item/form-item.d.ts +2 -1
- package/esm/form-item/index.d.ts +12 -6
- package/esm/form-item/index.mjs +157 -151
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/types.d.ts +0 -1
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.d.ts +0 -1
- package/esm/form-layout/form-layout.mjs +56 -51
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/types.d.ts +0 -2
- package/esm/form-layout/utils.d.ts +3 -3
- package/esm/form-layout/utils.mjs +55 -45
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/index.mjs +38 -34
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-step/utils.mjs.map +1 -1
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +1 -26
- package/esm/form-tab/index.mjs +36 -35
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.mjs +58 -58
- package/esm/input/index.mjs +23 -20
- package/esm/input/index.mjs.map +1 -1
- package/esm/input-number/index.d.ts +258 -147
- package/esm/input-number/index.mjs +9 -7
- package/esm/input-number/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 +109 -110
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/index.mjs +35 -32
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/radio/index.d.ts +344 -194
- package/esm/radio/index.mjs +28 -25
- package/esm/radio/index.mjs.map +1 -1
- package/esm/reset/index.d.ts +1 -62
- package/esm/reset/index.mjs +1 -1
- package/esm/reset/index.mjs.map +1 -1
- package/esm/select/index.mjs +23 -20
- package/esm/select/index.mjs.map +1 -1
- package/esm/select-table/index.d.ts +28 -0
- package/esm/select-table/index.mjs +59 -55
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.d.ts +56 -0
- package/esm/submit/index.d.ts +1 -47
- package/esm/submit/index.mjs +1 -1
- package/esm/submit/index.mjs.map +1 -1
- package/esm/switch/index.d.ts +225 -189
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.mjs +8 -6
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +163 -103
- package/esm/time-select/index.mjs +8 -6
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +196 -115
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.mjs +43 -40
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.mjs +20 -17
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/upload/index.d.ts +404 -399
- package/esm/upload/index.mjs +9 -7
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.d.ts +800 -790
- package/esm/vendor/icon.mjs.map +1 -1
- package/esm/vendor/lodash.mjs +12 -20
- package/esm/vendor/lodash.mjs.map +1 -1
- package/esm/vendor/runtime.mjs +29 -24
- package/esm/vendor/runtime.mjs.map +1 -1
- package/esm/vendor/shared.esm-bundler.mjs +2 -2
- 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 +113 -114
package/esm/checkbox/index.mjs
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { connect as _, mapProps as y } from "@silver-formily/vue";
|
|
2
2
|
import { ElCheckboxButton as S, ElCheckbox as h, ElCheckboxGroup as g, version as E } from "element-plus";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { defineComponent as T, computed as c, useSlots as A, createBlock as a, openBlock as o, unref as n, normalizeProps as B, guardReactiveProps as G, withCtx as l, createElementBlock as m, Fragment as i, renderList as f, resolveDynamicComponent as b, mergeProps as d, createTextVNode as w, toDisplayString as D, renderSlot as F } from "vue";
|
|
4
|
+
import "@formily/reactive";
|
|
5
|
+
import { mapReadPretty as I } from "../__builtins__/shared/transform-component.mjs";
|
|
6
|
+
import { useCleanAttrs as L, composeExport as N } from "../__builtins__/shared/utils.mjs";
|
|
7
|
+
import { PreviewText as O } from "../preview-text/index.mjs";
|
|
5
8
|
import { isPlainObj as k } from "@formily/shared";
|
|
6
|
-
import { lt as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const j = /* @__PURE__ */
|
|
9
|
+
import { lt as R } from "../__builtins__/shared/simple-version-compare.mjs";
|
|
10
|
+
import "@formily/core";
|
|
11
|
+
import "@silver-formily/reactive-vue";
|
|
12
|
+
const j = /* @__PURE__ */ T({
|
|
10
13
|
name: "FCheckboxGroup",
|
|
11
14
|
inheritAttrs: !1,
|
|
12
15
|
__name: "checkbox-group",
|
|
@@ -21,7 +24,7 @@ const j = /* @__PURE__ */ A({
|
|
|
21
24
|
}
|
|
22
25
|
},
|
|
23
26
|
setup(x) {
|
|
24
|
-
const
|
|
27
|
+
const p = x, s = c(() => p.optionType === "button" ? S : h), C = R(E, "2.6.0"), u = c(() => p.options.map((e) => {
|
|
25
28
|
if (!k(e))
|
|
26
29
|
return {
|
|
27
30
|
label: e,
|
|
@@ -32,17 +35,17 @@ const j = /* @__PURE__ */ A({
|
|
|
32
35
|
...e,
|
|
33
36
|
label: e.value
|
|
34
37
|
} : e;
|
|
35
|
-
})), v =
|
|
36
|
-
return (e, V) => (o(), a(
|
|
38
|
+
})), v = A(), { props: P } = L();
|
|
39
|
+
return (e, V) => (o(), a(n(g), B(G(n(P))), {
|
|
37
40
|
default: l(() => [
|
|
38
|
-
|
|
41
|
+
n(v).option ? (o(!0), m(i, { key: 1 }, f(u.value, (t, r) => (o(), a(b(s.value), d({ key: r }, { ref_for: !0 }, t), {
|
|
39
42
|
default: l(() => [
|
|
40
|
-
|
|
43
|
+
F(e.$slots, "option", { option: t })
|
|
41
44
|
]),
|
|
42
45
|
_: 2
|
|
43
46
|
}, 1040))), 128)) : (o(!0), m(i, { key: 0 }, f(u.value, (t, r) => (o(), a(b(s.value), d({ key: r }, { ref_for: !0 }, t), {
|
|
44
47
|
default: l(() => [
|
|
45
|
-
D(
|
|
48
|
+
w(D(n(k)(p.options[r]) ? p.options[r]?.label : t.label), 1)
|
|
46
49
|
]),
|
|
47
50
|
_: 2
|
|
48
51
|
}, 1040))), 128))
|
|
@@ -53,7 +56,7 @@ const j = /* @__PURE__ */ A({
|
|
|
53
56
|
}), z = _(
|
|
54
57
|
j,
|
|
55
58
|
y({ dataSource: "options", disabled: !0 }),
|
|
56
|
-
|
|
59
|
+
I(O.Select, {
|
|
57
60
|
multiple: !0
|
|
58
61
|
})
|
|
59
62
|
), H = _(
|
|
@@ -61,11 +64,11 @@ const j = /* @__PURE__ */ A({
|
|
|
61
64
|
y({
|
|
62
65
|
disabled: !0
|
|
63
66
|
})
|
|
64
|
-
),
|
|
67
|
+
), ee = N(H, {
|
|
65
68
|
Group: z
|
|
66
69
|
});
|
|
67
70
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
ee as Checkbox,
|
|
72
|
+
ee as default
|
|
70
73
|
};
|
|
71
74
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/checkbox/checkbox-group.vue","../../src/checkbox/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/checkbox/checkbox-group.vue","../../src/checkbox/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { CheckboxProps } from 'element-plus'\nimport type { PropType } from 'vue'\nimport { isPlainObj } from '@formily/shared'\nimport { ElCheckbox, ElCheckboxButton, ElCheckboxGroup, version } from 'element-plus'\nimport { computed, useSlots } from 'vue'\nimport { lt, useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FCheckboxGroup',\n inheritAttrs: false,\n})\n\nconst props = defineProps({\n options: {\n type: Array as PropType<Array<CheckboxProps>>,\n default: () => [],\n },\n optionType: {\n type: String as PropType<'default' | 'button'>,\n default: 'default',\n },\n})\n\nconst OptionType = computed(() => {\n return props.optionType === 'button' ? ElCheckboxButton : ElCheckbox\n})\nconst IS_LESS_THAN_2_6_0 = lt(version, '2.6.0')\nconst compatiableProps = computed(() => {\n return props.options.map((option) => {\n if (!isPlainObj(option)) {\n return {\n label: option,\n value: option,\n }\n }\n /* istanbul ignore if -- @preserve */\n if (IS_LESS_THAN_2_6_0) {\n return {\n ...option,\n label: option.value,\n }\n }\n return option\n })\n})\n\nconst slots = useSlots()\nconst { props: checkboxProps } = useCleanAttrs()\n</script>\n\n<template>\n <ElCheckboxGroup v-bind=\"checkboxProps\">\n <template v-if=\"!slots.option\">\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n {{ isPlainObj(props.options[index]) ? props.options[index]?.label : option.label }}\n </component>\n </template>\n <template v-else>\n <component :is=\"OptionType\" v-for=\"(option, index) of compatiableProps\" :key=\"index\" v-bind=\"option\">\n <slot name=\"option\" :option=\"option\" />\n </component>\n </template>\n </ElCheckboxGroup>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { ElCheckbox } from 'element-plus'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FCheckboxGroup from './checkbox-group.vue'\n\nconst CheckboxGroup = connect<typeof FCheckboxGroup>(\n FCheckboxGroup,\n mapProps({ dataSource: 'options', disabled: true }),\n mapReadPretty(PreviewText.Select, {\n multiple: true,\n }),\n)\n\nconst InnerCheckbox = connect<typeof ElCheckbox>(\n ElCheckbox,\n mapProps({\n disabled: true,\n }),\n)\n\nexport const Checkbox = composeExport(InnerCheckbox, {\n Group: CheckboxGroup,\n})\n\nexport default Checkbox\n"],"names":["props","__props","OptionType","computed","ElCheckboxButton","ElCheckbox","IS_LESS_THAN_2_6_0","lt","version","compatiableProps","option","isPlainObj","slots","useSlots","checkboxProps","useCleanAttrs","_openBlock","_createBlock","_unref","_createElementBlock","_Fragment","_renderList","index","_resolveDynamicComponent","_mergeProps","_renderSlot","_ctx","_createTextVNode","_toDisplayString","CheckboxGroup","connect","FCheckboxGroup","mapProps","mapReadPretty","PreviewText","InnerCheckbox","Checkbox","composeExport"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAWRC,IAAaC,EAAS,MACnBH,EAAM,eAAe,WAAWI,IAAmBC,CAC3D,GACKC,IAAqBC,EAAGC,GAAS,OAAO,GACxCC,IAAmBN,EAAS,MACzBH,EAAM,QAAQ,IAAI,CAACU,MAAW;AACnC,UAAI,CAACC,EAAWD,CAAM;AACpB,eAAO;AAAA,UACL,OAAOA;AAAA,UACP,OAAOA;AAAA,QAAA;AAAA,MAEX;AAEA,aAAIJ,IACK;AAAA,QACL,GAAGI;AAAA,QACH,OAAOA,EAAO;AAAA,MAAA,IAGXA;AAAA,IACT,CAAC,CACF,GAEKE,IAAQC,EAAA,GACR,EAAE,OAAOC,EAAA,IAAkBC,EAAA;sBAI/BC,EAAA,GAAAC,EAWkBC,UAXOA,EAAAJ,CAAA,CAAa,CAAA,GAAA;AAAA,iBACpC,MAIW;AAAA,QAJMI,EAAAN,CAAA,EAAM,UAMrBI,EAAA,EAAA,GAAAG,EAEYC,GAAA,EAAA,KAAA,KAAAC,EAF0CZ,EAAA,OAAgB,CAAlCC,GAAQY,YAA5CL,EAEYM,EAFIrB,OAAU,GAA1BsB,EAEY,EAF6D,KAAKF,KAAK,EAAA,SAAA,GAAA,GAAUZ,CAAM,GAAA;AAAA,qBACjG,MAAuC;AAAA,YAAvCe,EAAuCC,EAAA,QAAA,UAAA,EAAlB,QAAAhB,GAAc;AAAA,UAAA;;6BANrCM,EAAA,EAAA,GAAAG,EAEYC,GAAA,EAAA,KAAA,KAAAC,EAF0CZ,EAAA,OAAgB,CAAlCC,GAAQY,YAA5CL,EAEYM,EAFIrB,OAAU,GAA1BsB,EAEY,EAF6D,KAAKF,KAAK,EAAA,SAAA,GAAA,GAAUZ,CAAM,GAAA;AAAA,qBACjG,MAAmF;AAAA,YAAhFiB,EAAAC,EAAAV,EAAAP,CAAA,EAAWX,EAAM,QAAQsB,CAAK,CAAA,IAAKtB,EAAM,QAAQsB,CAAK,GAAG,QAAQZ,EAAO,KAAK,GAAA,CAAA;AAAA,UAAA;;;;;;;ICjDlFmB,IAAgBC;AAAA,EACpBC;AAAAA,EACAC,EAAS,EAAE,YAAY,WAAW,UAAU,IAAM;AAAA,EAClDC,EAAcC,EAAY,QAAQ;AAAA,IAChC,UAAU;AAAA,EAAA,CACX;AACH,GAEMC,IAAgBL;AAAA,EACpBzB;AAAA,EACA2B,EAAS;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AACH,GAEaI,KAAWC,EAAcF,GAAe;AAAA,EACnD,OAAON;AACT,CAAC;"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { connect as r, mapProps as m } from "@silver-formily/vue";
|
|
2
|
-
import { ElDatePicker as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { ElDatePicker as o } from "element-plus";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "@formily/reactive";
|
|
5
|
+
import { mapReadPretty as n } from "../__builtins__/shared/transform-component.mjs";
|
|
6
|
+
import { PreviewText as c } from "../preview-text/index.mjs";
|
|
7
|
+
function t(e = "date", a = "format") {
|
|
8
|
+
if (e === "week" && a === "format")
|
|
7
9
|
return "[Week] ww";
|
|
8
10
|
switch (e) {
|
|
9
11
|
case "year":
|
|
@@ -25,8 +27,8 @@ function a(e = "date", t = "format") {
|
|
|
25
27
|
return "YYYY-MM-DD HH:mm:ss";
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
+
const l = r(
|
|
31
|
+
o,
|
|
30
32
|
m(
|
|
31
33
|
{
|
|
32
34
|
readOnly: "readonly",
|
|
@@ -35,14 +37,14 @@ const d = r(
|
|
|
35
37
|
},
|
|
36
38
|
(e) => ({
|
|
37
39
|
...e,
|
|
38
|
-
format: e.format ||
|
|
39
|
-
valueFormat: e.valueFormat ||
|
|
40
|
+
format: e.format || t(e.type),
|
|
41
|
+
valueFormat: e.valueFormat || t(e.type, "valueFormat")
|
|
40
42
|
})
|
|
41
43
|
),
|
|
42
|
-
c
|
|
44
|
+
n(c.DatePicker)
|
|
43
45
|
);
|
|
44
46
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
l as DatePicker,
|
|
48
|
+
l as default
|
|
47
49
|
};
|
|
48
50
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/date-picker/index.ts"],"sourcesContent":["import type { DatePickerProps } from 'element-plus'\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/date-picker/index.ts"],"sourcesContent":["import type { DatePickerProps } from 'element-plus'\nimport { connect, mapProps } from '@silver-formily/vue'\nimport { ElDatePicker } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\n\nfunction getDefaultFormat(type: DatePickerProps['type'] = 'date', formatType = 'format') {\n if (type === 'week' && formatType === 'format') {\n return '[Week] ww'\n }\n else {\n switch (type) {\n case 'year':\n case 'years':\n case 'yearrange': {\n return 'YYYY'\n }\n case 'month':\n case 'months':\n case 'monthrange': {\n return 'YYYY-MM'\n }\n case 'week': {\n return 'ww'\n }\n case 'date':\n case 'dates':\n case 'daterange': {\n return 'YYYY-MM-DD'\n }\n case 'datetime':\n case 'datetimerange': {\n return 'YYYY-MM-DD HH:mm:ss'\n }\n }\n }\n}\n\nexport const DatePicker = connect<typeof ElDatePicker>(\n ElDatePicker,\n mapProps(\n {\n readOnly: 'readonly',\n disabled: true,\n editable: true,\n },\n (props: any) => {\n return {\n ...props,\n format: props.format || getDefaultFormat(props.type),\n valueFormat:\n props.valueFormat || getDefaultFormat(props.type, 'valueFormat'),\n }\n },\n ),\n mapReadPretty(PreviewText.DatePicker),\n)\n\nexport default DatePicker\n"],"names":["getDefaultFormat","type","formatType","DatePicker","connect","ElDatePicker","mapProps","props","mapReadPretty","PreviewText"],"mappings":";;;;;;AAMA,SAASA,EAAiBC,IAAgC,QAAQC,IAAa,UAAU;AACvF,MAAID,MAAS,UAAUC,MAAe;AACpC,WAAO;AAGP,UAAQD,GAAA;AAAA,IACN,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IAET,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IAET,KAAK;AACH,aAAO;AAAA,IAET,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,IAET,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,EACT;AAGN;AAEO,MAAME,IAAaC;AAAA,EACxBC;AAAA,EACAC;AAAA,IACE;AAAA,MACE,UAAU;AAAA,MACV,UAAU;AAAA,MACV,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACC,OACQ;AAAA,MACL,GAAGA;AAAA,MACH,QAAQA,EAAM,UAAUP,EAAiBO,EAAM,IAAI;AAAA,MACnD,aACEA,EAAM,eAAeP,EAAiBO,EAAM,MAAM,aAAa;AAAA,IAAA;AAAA,EAErE;AAAA,EAEFC,EAAcC,EAAY,UAAU;AACtC;"}
|
|
@@ -14,9 +14,10 @@ declare function __VLS_template(): {
|
|
|
14
14
|
$: import('vue').ComponentInternalInstance;
|
|
15
15
|
$data: {};
|
|
16
16
|
$props: Partial<{
|
|
17
|
+
asterisk: boolean;
|
|
17
18
|
colon: boolean;
|
|
19
|
+
labelWrap: boolean;
|
|
18
20
|
fullness: boolean;
|
|
19
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
20
21
|
}> & Omit<{
|
|
21
22
|
readonly label?: string;
|
|
22
23
|
readonly for?: string;
|
|
@@ -33,7 +34,6 @@ declare function __VLS_template(): {
|
|
|
33
34
|
readonly labelWrap?: boolean;
|
|
34
35
|
readonly labelWidth?: number;
|
|
35
36
|
readonly wrapperWidth?: number;
|
|
36
|
-
readonly wrapperWrap?: boolean;
|
|
37
37
|
readonly labelCol?: number;
|
|
38
38
|
readonly wrapperCol?: number;
|
|
39
39
|
readonly fullness?: boolean;
|
|
@@ -41,7 +41,7 @@ declare function __VLS_template(): {
|
|
|
41
41
|
readonly layout?: "vertical" | "horizontal" | "inline" | ("vertical" | "horizontal" | "inline")[];
|
|
42
42
|
readonly feedbackLayout?: "loose" | "terse" | "popover";
|
|
43
43
|
readonly tooltipLayout?: "icon" | "text";
|
|
44
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "colon" | "
|
|
44
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "asterisk" | "colon" | "labelWrap" | "fullness">;
|
|
45
45
|
$attrs: {
|
|
46
46
|
[x: string]: unknown;
|
|
47
47
|
};
|
|
@@ -57,9 +57,10 @@ declare function __VLS_template(): {
|
|
|
57
57
|
$options: import('vue').ComponentOptionsBase<Readonly<IFormItemProps> & Readonly<{}>, {
|
|
58
58
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
59
59
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
60
|
+
asterisk: boolean;
|
|
60
61
|
colon: boolean;
|
|
62
|
+
labelWrap: boolean;
|
|
61
63
|
fullness: boolean;
|
|
62
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
63
64
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
64
65
|
beforeCreate?: (() => void) | (() => void)[];
|
|
65
66
|
created?: (() => void) | (() => void)[];
|
|
@@ -81,10 +82,11 @@ declare function __VLS_template(): {
|
|
|
81
82
|
$nextTick: typeof nextTick;
|
|
82
83
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
83
84
|
} & Readonly<{
|
|
85
|
+
asterisk: boolean;
|
|
84
86
|
colon: boolean;
|
|
87
|
+
labelWrap: boolean;
|
|
85
88
|
fullness: boolean;
|
|
86
|
-
|
|
87
|
-
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("colon" | "fullness" | "feedbackLayout") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
89
|
+
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("asterisk" | "colon" | "labelWrap" | "fullness") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
88
90
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
89
91
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
90
92
|
$slots: any;
|
|
@@ -102,9 +104,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
102
104
|
$: import('vue').ComponentInternalInstance;
|
|
103
105
|
$data: {};
|
|
104
106
|
$props: Partial<{
|
|
107
|
+
asterisk: boolean;
|
|
105
108
|
colon: boolean;
|
|
109
|
+
labelWrap: boolean;
|
|
106
110
|
fullness: boolean;
|
|
107
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
108
111
|
}> & Omit<{
|
|
109
112
|
readonly label?: string;
|
|
110
113
|
readonly for?: string;
|
|
@@ -121,7 +124,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
121
124
|
readonly labelWrap?: boolean;
|
|
122
125
|
readonly labelWidth?: number;
|
|
123
126
|
readonly wrapperWidth?: number;
|
|
124
|
-
readonly wrapperWrap?: boolean;
|
|
125
127
|
readonly labelCol?: number;
|
|
126
128
|
readonly wrapperCol?: number;
|
|
127
129
|
readonly fullness?: boolean;
|
|
@@ -129,7 +131,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
129
131
|
readonly layout?: "vertical" | "horizontal" | "inline" | ("vertical" | "horizontal" | "inline")[];
|
|
130
132
|
readonly feedbackLayout?: "loose" | "terse" | "popover";
|
|
131
133
|
readonly tooltipLayout?: "icon" | "text";
|
|
132
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "colon" | "
|
|
134
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "asterisk" | "colon" | "labelWrap" | "fullness">;
|
|
133
135
|
$attrs: {
|
|
134
136
|
[x: string]: unknown;
|
|
135
137
|
};
|
|
@@ -145,9 +147,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
145
147
|
$options: import('vue').ComponentOptionsBase<Readonly<IFormItemProps> & Readonly<{}>, {
|
|
146
148
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
147
149
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
150
|
+
asterisk: boolean;
|
|
148
151
|
colon: boolean;
|
|
152
|
+
labelWrap: boolean;
|
|
149
153
|
fullness: boolean;
|
|
150
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
151
154
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
152
155
|
beforeCreate?: (() => void) | (() => void)[];
|
|
153
156
|
created?: (() => void) | (() => void)[];
|
|
@@ -169,10 +172,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
169
172
|
$nextTick: typeof nextTick;
|
|
170
173
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
171
174
|
} & Readonly<{
|
|
175
|
+
asterisk: boolean;
|
|
172
176
|
colon: boolean;
|
|
177
|
+
labelWrap: boolean;
|
|
173
178
|
fullness: boolean;
|
|
174
|
-
|
|
175
|
-
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("colon" | "fullness" | "feedbackLayout") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
179
|
+
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("asterisk" | "colon" | "labelWrap" | "fullness") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
176
180
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
177
181
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
178
182
|
$slots: any;
|
package/esm/editable/index.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export declare const Editable: {
|
|
|
14
14
|
$: import('vue').ComponentInternalInstance;
|
|
15
15
|
$data: {};
|
|
16
16
|
$props: Partial<{
|
|
17
|
+
asterisk: boolean;
|
|
17
18
|
colon: boolean;
|
|
19
|
+
labelWrap: boolean;
|
|
18
20
|
fullness: boolean;
|
|
19
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
20
21
|
}> & Omit<{
|
|
21
22
|
readonly label?: string;
|
|
22
23
|
readonly for?: string;
|
|
@@ -33,7 +34,6 @@ export declare const Editable: {
|
|
|
33
34
|
readonly labelWrap?: boolean;
|
|
34
35
|
readonly labelWidth?: number;
|
|
35
36
|
readonly wrapperWidth?: number;
|
|
36
|
-
readonly wrapperWrap?: boolean;
|
|
37
37
|
readonly labelCol?: number;
|
|
38
38
|
readonly wrapperCol?: number;
|
|
39
39
|
readonly fullness?: boolean;
|
|
@@ -41,7 +41,7 @@ export declare const Editable: {
|
|
|
41
41
|
readonly layout?: "vertical" | "horizontal" | "inline" | ("vertical" | "horizontal" | "inline")[];
|
|
42
42
|
readonly feedbackLayout?: "loose" | "terse" | "popover";
|
|
43
43
|
readonly tooltipLayout?: "icon" | "text";
|
|
44
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "colon" | "
|
|
44
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "asterisk" | "colon" | "labelWrap" | "fullness">;
|
|
45
45
|
$attrs: {
|
|
46
46
|
[x: string]: unknown;
|
|
47
47
|
};
|
|
@@ -57,9 +57,10 @@ export declare const Editable: {
|
|
|
57
57
|
$options: import('vue').ComponentOptionsBase<Readonly<IFormItemProps> & Readonly<{}>, {
|
|
58
58
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
59
59
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
60
|
+
asterisk: boolean;
|
|
60
61
|
colon: boolean;
|
|
62
|
+
labelWrap: boolean;
|
|
61
63
|
fullness: boolean;
|
|
62
|
-
feedbackLayout: "loose" | "terse" | "popover";
|
|
63
64
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
64
65
|
beforeCreate?: (() => void) | (() => void)[];
|
|
65
66
|
created?: (() => void) | (() => void)[];
|
|
@@ -81,10 +82,11 @@ export declare const Editable: {
|
|
|
81
82
|
$nextTick: typeof import('vue').nextTick;
|
|
82
83
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
83
84
|
} & Readonly<{
|
|
85
|
+
asterisk: boolean;
|
|
84
86
|
colon: boolean;
|
|
87
|
+
labelWrap: boolean;
|
|
85
88
|
fullness: boolean;
|
|
86
|
-
|
|
87
|
-
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("colon" | "fullness" | "feedbackLayout") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
89
|
+
}> & Omit<Readonly<IFormItemProps> & Readonly<{}>, ("asterisk" | "colon" | "labelWrap" | "fullness") | "feedbackTooltipRef"> & import('vue').ShallowUnwrapRef<{
|
|
88
90
|
feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
|
|
89
91
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
90
92
|
$slots: any;
|