@silver-formily/element-plus 2.3.0 → 2.4.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 -32
- package/README.md +32 -32
- package/esm/__builtins__/configs/index.mjs.map +1 -1
- package/esm/__builtins__/index.mjs +12 -11
- package/esm/__builtins__/shared/index.mjs +11 -10
- 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.mjs.map +1 -1
- package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.d.ts +1 -0
- package/esm/__builtins__/shared/utils.mjs +23 -17
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/array-base/index.mjs +56 -52
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/symbols.mjs.map +1 -1
- package/esm/array-base/utils.d.ts +0 -1
- package/esm/array-base/utils.mjs +45 -46
- package/esm/array-base/utils.mjs.map +1 -1
- package/esm/array-cards/index.mjs +36 -33
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-collapse/index.mjs +39 -37
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/utils.mjs +9 -2
- package/esm/array-collapse/utils.mjs.map +1 -1
- package/esm/array-items/index.mjs +38 -34
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-list-tabs/index.mjs +38 -36
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/utils.mjs +12 -5
- package/esm/array-list-tabs/utils.mjs.map +1 -1
- package/esm/array-table/index.mjs +63 -60
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/utils.mjs +18 -11
- package/esm/array-table/utils.mjs.map +1 -1
- package/esm/array-tabs/index.mjs +28 -25
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/autocomplete/index.mjs +24 -18
- package/esm/autocomplete/index.mjs.map +1 -1
- package/esm/cascader/index.mjs +22 -18
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/index.mjs +20 -16
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/color-picker/index.mjs +9 -6
- package/esm/color-picker/index.mjs.map +1 -1
- package/esm/color-picker-panel/index.mjs +9 -6
- package/esm/color-picker-panel/index.mjs.map +1 -1
- package/esm/date-picker/index.mjs +14 -11
- 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 +14 -11
- package/esm/date-picker-panel/index.mjs.map +1 -1
- package/esm/editable/editable.d.ts +2 -0
- package/esm/editable/index.d.ts +1 -0
- package/esm/editable/index.mjs +71 -66
- 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/form-button-group.d.ts +9 -0
- package/esm/form-button-group/index.d.ts +15 -0
- package/esm/form-button-group/index.mjs +47 -28
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/utils.mjs +9 -2
- package/esm/form-button-group/utils.mjs.map +1 -1
- package/esm/form-collapse/index.mjs +21 -18
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-collapse/utils.mjs.map +1 -1
- package/esm/form-dialog/index.mjs +22 -22
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-drawer/index.mjs +21 -21
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-grid/hooks.mjs.map +1 -1
- package/esm/form-grid/index.mjs +26 -22
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-item/index.d.ts +1 -0
- package/esm/form-item/index.mjs +102 -99
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/types.d.ts +4 -0
- package/esm/form-item/utils.mjs.map +1 -1
- package/esm/form-layout/form-layout.mjs +14 -10
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/utils.mjs +23 -23
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/index.mjs +30 -27
- 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.mjs +24 -22
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/utils.mjs.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.mjs +82 -78
- package/esm/index.mjs.map +1 -1
- package/esm/input/index.mjs +30 -26
- package/esm/input/index.mjs.map +1 -1
- package/esm/input-number/index.mjs +11 -8
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/input-tag/index.mjs +20 -16
- package/esm/input-tag/index.mjs.map +1 -1
- package/esm/mention/index.mjs +24 -20
- 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.map +1 -1
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/index.mjs +57 -53
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/utils.mjs.map +1 -1
- package/esm/query-form/default-components.d.ts +5 -0
- package/esm/query-form/default-components.mjs +47 -0
- package/esm/query-form/default-components.mjs.map +1 -0
- package/esm/query-form/hooks.d.ts +25 -0
- package/esm/query-form/hooks.mjs +29 -0
- package/esm/query-form/hooks.mjs.map +1 -0
- package/esm/query-form/index.d.ts +117 -0
- package/esm/query-form/index.mjs +337 -0
- package/esm/query-form/index.mjs.map +1 -0
- package/esm/query-form/query-form-light.d.ts +27 -0
- package/esm/query-form/query-form.d.ts +52 -0
- package/esm/query-form/types.d.ts +44 -0
- package/esm/query-form/types.mjs +2 -0
- package/esm/query-form/types.mjs.map +1 -0
- package/esm/query-form-item/index.d.ts +151 -0
- package/esm/query-form-item/index.mjs +188 -0
- package/esm/query-form-item/index.mjs.map +1 -0
- package/esm/query-form-item/query-form-item.d.ts +96 -0
- package/esm/query-form-item/types.d.ts +46 -0
- package/esm/query-form-item/types.mjs +2 -0
- package/esm/query-form-item/types.mjs.map +1 -0
- package/esm/radio/index.mjs +29 -25
- package/esm/radio/index.mjs.map +1 -1
- package/esm/rate/index.mjs +13 -10
- package/esm/rate/index.mjs.map +1 -1
- package/esm/reset/index.mjs.map +1 -1
- package/esm/segmented/index.mjs +16 -12
- package/esm/segmented/index.mjs.map +1 -1
- package/esm/select/index.mjs +26 -22
- package/esm/select/index.mjs.map +1 -1
- package/esm/select-table/index.mjs +36 -33
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/shared/overlay-elements.mjs +14 -11
- package/esm/shared/overlay-elements.mjs.map +1 -1
- package/esm/slider/index.mjs +13 -10
- package/esm/slider/index.mjs.map +1 -1
- package/esm/styles/form-button-group/index.css +1 -1
- package/esm/styles/form-item/index.css +1 -1
- package/esm/styles/query-form/index.css +1 -0
- package/esm/styles/query-form-item/index.css +1 -0
- package/esm/submit/index.mjs.map +1 -1
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.mjs +9 -6
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.mjs +9 -6
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.mjs +33 -29
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/utils.mjs.map +1 -1
- package/esm/tree-select/index.mjs +18 -14
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/upload/index.mjs +10 -7
- package/esm/upload/index.mjs.map +1 -1
- package/esm/vendor/lodash.mjs +751 -663
- package/esm/vendor/lodash.mjs.map +1 -1
- package/esm/vendor/sizes.mjs.map +1 -1
- package/package.json +115 -115
package/esm/index.mjs
CHANGED
|
@@ -1,99 +1,103 @@
|
|
|
1
1
|
import { ArrayCards as e } from "./array-cards/index.mjs";
|
|
2
|
-
import { ArrayCollapse as
|
|
2
|
+
import { ArrayCollapse as t } 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
6
|
import { ArrayTabs as i } 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
|
-
import { Checkbox as
|
|
10
|
-
import { ColorPicker as
|
|
11
|
-
import { ColorPickerPanel as
|
|
12
|
-
import { DatePicker as
|
|
9
|
+
import { Checkbox as S } from "./checkbox/index.mjs";
|
|
10
|
+
import { ColorPicker as y } from "./color-picker/index.mjs";
|
|
11
|
+
import { ColorPickerPanel as C } from "./color-picker-panel/index.mjs";
|
|
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 {
|
|
15
|
+
import { _ as h } from "./form/form.mjs";
|
|
16
|
+
import { FormButtonGroup as E } from "./form-button-group/index.mjs";
|
|
17
|
+
import { FormCollapse as L, FormCollapseItem as M } from "./form-collapse/index.mjs";
|
|
18
|
+
import { FormDialog as _ } from "./form-dialog/index.mjs";
|
|
19
|
+
import { FormDrawer as N } from "./form-drawer/index.mjs";
|
|
20
|
+
import { FormGrid as j } from "./form-grid/index.mjs";
|
|
21
|
+
import { FormBaseItem as z, FormItem as H, fieldFeedbackMapper as J } from "./form-item/index.mjs";
|
|
22
|
+
import { _ as O } from "./form-layout/form-layout.mjs";
|
|
23
|
+
import { FormStep as W } from "./form-step/index.mjs";
|
|
24
|
+
import { composeFormTab as Y, composeFormTab as Z } from "./form-tab/index.mjs";
|
|
25
|
+
import { Input as rr } from "./input/index.mjs";
|
|
26
|
+
import { InputNumber as er } from "./input-number/index.mjs";
|
|
27
|
+
import { InputTag as tr } from "./input-tag/index.mjs";
|
|
28
|
+
import { Mention as fr } from "./mention/index.mjs";
|
|
29
|
+
import { Password as ar } from "./password/index.mjs";
|
|
30
|
+
import { PreviewText as sr } from "./preview-text/index.mjs";
|
|
31
|
+
import { QueryForm as ir } from "./query-form/index.mjs";
|
|
32
|
+
import { QueryFormItem as Tr } from "./query-form-item/index.mjs";
|
|
33
|
+
import { Radio as dr } from "./radio/index.mjs";
|
|
34
|
+
import { Rate as Sr } from "./rate/index.mjs";
|
|
35
|
+
import { Reset as yr } from "./reset/index.mjs";
|
|
36
|
+
import { Segmented as Cr } from "./segmented/index.mjs";
|
|
37
|
+
import { Select as kr } from "./select/index.mjs";
|
|
38
|
+
import { SelectTable as wr } from "./select-table/index.mjs";
|
|
39
|
+
import { Slider as gr } from "./slider/index.mjs";
|
|
40
|
+
import { ElSpace as hr } from "element-plus";
|
|
41
|
+
import { Submit as Er } from "./submit/index.mjs";
|
|
42
|
+
import { Switch as Lr } from "./switch/index.mjs";
|
|
43
|
+
import { TimePicker as Qr } from "./time-picker/index.mjs";
|
|
44
|
+
import { TimeSelect as vr } from "./time-select/index.mjs";
|
|
45
|
+
import { Transfer as Ur } from "./transfer/index.mjs";
|
|
46
|
+
import { Tree as qr } from "./tree/index.mjs";
|
|
47
|
+
import { TreeSelect as Hr } from "./tree-select/index.mjs";
|
|
48
|
+
import { Upload as Kr } from "./upload/index.mjs";
|
|
47
49
|
export {
|
|
48
50
|
e as ArrayCards,
|
|
49
|
-
|
|
51
|
+
t as ArrayCollapse,
|
|
50
52
|
f as ArrayItems,
|
|
51
53
|
a as ArrayListTabs,
|
|
52
54
|
s as ArrayTable,
|
|
53
55
|
i as ArrayTabs,
|
|
54
56
|
T as Autocomplete,
|
|
55
57
|
d as Cascader,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
S as Checkbox,
|
|
59
|
+
y as ColorPicker,
|
|
60
|
+
C as ColorPickerPanel,
|
|
61
|
+
k as DatePicker,
|
|
60
62
|
w as DatePickerPanel,
|
|
61
63
|
g as Editable,
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
64
|
+
h as Form,
|
|
65
|
+
z as FormBaseItem,
|
|
66
|
+
E as FormButtonGroup,
|
|
67
|
+
L as FormCollapse,
|
|
68
|
+
M as FormCollapseItem,
|
|
69
|
+
_ as FormDialog,
|
|
70
|
+
N as FormDrawer,
|
|
71
|
+
j as FormGrid,
|
|
72
|
+
H as FormItem,
|
|
73
|
+
O as FormLayout,
|
|
74
|
+
W as FormStep,
|
|
75
|
+
Y as FormTab,
|
|
76
|
+
rr as Input,
|
|
77
|
+
er as InputNumber,
|
|
78
|
+
tr as InputTag,
|
|
79
|
+
fr as Mention,
|
|
80
|
+
ar as Password,
|
|
81
|
+
sr as PreviewText,
|
|
82
|
+
ir as QueryForm,
|
|
83
|
+
Tr as QueryFormItem,
|
|
84
|
+
dr as Radio,
|
|
85
|
+
Sr as Rate,
|
|
86
|
+
yr as Reset,
|
|
87
|
+
Cr as Segmented,
|
|
88
|
+
kr as Select,
|
|
89
|
+
wr as SelectTable,
|
|
90
|
+
gr as Slider,
|
|
91
|
+
hr as Space,
|
|
92
|
+
Er as Submit,
|
|
93
|
+
Lr as Switch,
|
|
94
|
+
Qr as TimePicker,
|
|
95
|
+
vr as TimeSelect,
|
|
96
|
+
Ur as Transfer,
|
|
97
|
+
qr as Tree,
|
|
98
|
+
Hr as TreeSelect,
|
|
99
|
+
Kr as Upload,
|
|
100
|
+
Z as composeFormTab,
|
|
101
|
+
J as fieldFeedbackMapper
|
|
98
102
|
};
|
|
99
103
|
//# sourceMappingURL=index.mjs.map
|
package/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm/input/index.mjs
CHANGED
|
@@ -1,65 +1,69 @@
|
|
|
1
1
|
import { connect as s, mapProps as a } from "@silver-formily/vue";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { ElInput as d } from "element-plus";
|
|
3
|
+
import "@formily/reactive";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { defineComponent as l, useSlots as c, createBlock as y, openBlock as x, unref as p, normalizeProps as I, guardReactiveProps as k, createSlots as v, withCtx as r, renderSlot as o } from "vue";
|
|
6
|
+
import { mapReadPretty as i } from "../__builtins__/shared/transform-component.mjs";
|
|
5
7
|
import { useCleanAttrs as P, composeExport as _ } from "../__builtins__/shared/utils.mjs";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
+
import { PreviewText as m } from "../preview-text/index.mjs";
|
|
9
|
+
import "@formily/core";
|
|
10
|
+
import "@silver-formily/reactive-vue";
|
|
11
|
+
const f = /* @__PURE__ */ l({
|
|
8
12
|
name: "FInput",
|
|
9
13
|
inheritAttrs: !1,
|
|
10
14
|
__name: "input",
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
13
|
-
return (
|
|
15
|
+
setup(n) {
|
|
16
|
+
const e = c(), { props: u } = P();
|
|
17
|
+
return (t, A) => (x(), y(p(d), I(k(p(u))), v({ _: 2 }, [
|
|
14
18
|
e.prefix ? {
|
|
15
19
|
name: "prefix",
|
|
16
|
-
fn:
|
|
17
|
-
|
|
20
|
+
fn: r(() => [
|
|
21
|
+
o(t.$slots, "prefix")
|
|
18
22
|
]),
|
|
19
23
|
key: "0"
|
|
20
24
|
} : void 0,
|
|
21
25
|
e.suffix ? {
|
|
22
26
|
name: "suffix",
|
|
23
|
-
fn:
|
|
24
|
-
|
|
27
|
+
fn: r(() => [
|
|
28
|
+
o(t.$slots, "suffix")
|
|
25
29
|
]),
|
|
26
30
|
key: "1"
|
|
27
31
|
} : void 0,
|
|
28
32
|
e.prepend ? {
|
|
29
33
|
name: "prepend",
|
|
30
|
-
fn:
|
|
31
|
-
|
|
34
|
+
fn: r(() => [
|
|
35
|
+
o(t.$slots, "prepend")
|
|
32
36
|
]),
|
|
33
37
|
key: "2"
|
|
34
38
|
} : void 0,
|
|
35
39
|
e.append ? {
|
|
36
40
|
name: "append",
|
|
37
|
-
fn:
|
|
38
|
-
|
|
41
|
+
fn: r(() => [
|
|
42
|
+
o(t.$slots, "append")
|
|
39
43
|
]),
|
|
40
44
|
key: "3"
|
|
41
45
|
} : void 0
|
|
42
46
|
]), 1040));
|
|
43
47
|
}
|
|
44
48
|
}), $ = s(
|
|
45
|
-
|
|
49
|
+
f,
|
|
46
50
|
a({
|
|
47
51
|
readOnly: "readonly"
|
|
48
52
|
}),
|
|
49
|
-
|
|
53
|
+
i(m.Input)
|
|
50
54
|
), h = s(
|
|
51
|
-
|
|
52
|
-
a((
|
|
53
|
-
...
|
|
54
|
-
readonly:
|
|
55
|
+
f,
|
|
56
|
+
a((n) => ({
|
|
57
|
+
...n,
|
|
58
|
+
readonly: n.readOnly,
|
|
55
59
|
type: "textarea"
|
|
56
60
|
})),
|
|
57
|
-
|
|
58
|
-
),
|
|
61
|
+
i(m.Input)
|
|
62
|
+
), F = _($, {
|
|
59
63
|
TextArea: h
|
|
60
64
|
});
|
|
61
65
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
F as Input,
|
|
67
|
+
F as default
|
|
64
68
|
};
|
|
65
69
|
//# sourceMappingURL=index.mjs.map
|
package/esm/input/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/input/input.vue","../../src/input/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\
|
|
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 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 >\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 '@silver-formily/vue'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FInput from './input.vue'\n\nconst InnerInput = connect<typeof FInput>(\n FInput,\n mapProps({\n readOnly: 'readonly',\n }),\n mapReadPretty(PreviewText.Input),\n)\n\nconst TextArea = connect<typeof FInput>(\n FInput,\n mapProps((props) => {\n return {\n ...props,\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":["slots","_useSlots","inputProps","useCleanAttrs","_openBlock","_createBlock","_unref","_createSlots","_renderSlot","_ctx","InnerInput","connect","FInput","mapProps","mapReadPretty","PreviewText","TextArea","props","Input","composeExport"],"mappings":";;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,EAAA,GAOR,EAAE,OAAOC,EAAA,IAAeC,EAAA;sBAI5BC,KAAAC,EAeUC,UAdAA,EAAAJ,CAAA,CAAU,CAAA,GAAAK,EAAA,EAAA,GAAA,KAAA;AAAA,MAEFP,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBQ,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;IC5BtBC,IAAaC;AAAA,EACjBC;AAAAA,EACAC,EAAS;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AAAA,EACDC,EAAcC,EAAY,KAAK;AACjC,GAEMC,IAAWL;AAAA,EACfC;AAAAA,EACAC,EAAS,CAACI,OACD;AAAA,IACL,GAAGA;AAAA,IACH,UAAUA,EAAM;AAAA,IAChB,MAAM;AAAA,EAAA,EAET;AAAA,EACDH,EAAcC,EAAY,KAAK;AACjC,GAEaG,IAAQC,EAAcT,GAAY;AAAA,EAC7C,UAAAM;AACF,CAAC;"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { connect as r, mapProps as t } from "@silver-formily/vue";
|
|
2
|
-
import { ElInputNumber as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { ElInputNumber as m } from "element-plus";
|
|
3
|
+
import "@formily/reactive";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "vue";
|
|
6
|
+
import { mapReadPretty as p } from "../__builtins__/shared/transform-component.mjs";
|
|
7
|
+
import { PreviewText as e } from "../preview-text/index.mjs";
|
|
8
|
+
const f = r(
|
|
9
|
+
m,
|
|
7
10
|
t(
|
|
8
11
|
{
|
|
9
12
|
readOnly: "readonly"
|
|
@@ -12,10 +15,10 @@ const u = r(
|
|
|
12
15
|
controlsPosition: o.controlsPosition ?? "right"
|
|
13
16
|
})
|
|
14
17
|
),
|
|
15
|
-
|
|
18
|
+
p(e.Input)
|
|
16
19
|
);
|
|
17
20
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
f as InputNumber,
|
|
22
|
+
f as default
|
|
20
23
|
};
|
|
21
24
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/input-number/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/input-number/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElInputNumber } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\n\nexport type InputNumberProps = typeof ElInputNumber\n\nexport const InputNumber = connect<typeof ElInputNumber>(\n ElInputNumber,\n mapProps(\n {\n readOnly: 'readonly',\n },\n (props) => {\n return {\n controlsPosition: props.controlsPosition ?? 'right',\n }\n },\n ),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default InputNumber\n"],"names":["InputNumber","connect","ElInputNumber","mapProps","props","mapReadPretty","PreviewText"],"mappings":";;;;;;;AAOO,MAAMA,IAAcC;AAAA,EACzBC;AAAA,EACAC;AAAA,IACE;AAAA,MACE,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACC,OACQ;AAAA,MACL,kBAAkBA,EAAM,oBAAoB;AAAA,IAAA;AAAA,EAEhD;AAAA,EAEFC,EAAcC,EAAY,KAAK;AACjC;"}
|
package/esm/input-tag/index.mjs
CHANGED
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { useField as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { mapReadPretty as
|
|
1
|
+
import { useField as f, connect as l, mapProps as u } from "@silver-formily/vue";
|
|
2
|
+
import { ElInputTag as d } from "element-plus";
|
|
3
|
+
import "@formily/reactive";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { defineComponent as c, useSlots as g, createBlock as x, openBlock as y, unref as o, normalizeProps as n, guardReactiveProps as s, createSlots as P, withCtx as r, renderSlot as i } from "vue";
|
|
6
|
+
import { mapReadPretty as _ } from "../__builtins__/shared/transform-component.mjs";
|
|
7
|
+
import { PreviewText as k } from "../preview-text/index.mjs";
|
|
8
|
+
import "@formily/core";
|
|
9
|
+
import "@silver-formily/reactive-vue";
|
|
10
|
+
import { useCleanAttrs as v } from "../__builtins__/shared/utils.mjs";
|
|
7
11
|
const T = /* @__PURE__ */ c({
|
|
8
12
|
name: "FInputTag",
|
|
9
13
|
inheritAttrs: !1,
|
|
10
14
|
__name: "input-tag",
|
|
11
15
|
setup(S) {
|
|
12
|
-
const e = g(), { props:
|
|
13
|
-
return (t, h) => (y(), x(o(
|
|
16
|
+
const e = g(), { props: p } = v(), a = f();
|
|
17
|
+
return (t, h) => (y(), x(o(d), n(s(o(p))), P({ _: 2 }, [
|
|
14
18
|
e.tag ? {
|
|
15
19
|
name: "tag",
|
|
16
|
-
fn: r((
|
|
17
|
-
|
|
20
|
+
fn: r((m) => [
|
|
21
|
+
i(t.$slots, "tag", n(s({ ...m, field: o(a) })))
|
|
18
22
|
]),
|
|
19
23
|
key: "0"
|
|
20
24
|
} : void 0,
|
|
21
25
|
e.prefix ? {
|
|
22
26
|
name: "prefix",
|
|
23
27
|
fn: r(() => [
|
|
24
|
-
|
|
28
|
+
i(t.$slots, "prefix")
|
|
25
29
|
]),
|
|
26
30
|
key: "1"
|
|
27
31
|
} : void 0,
|
|
28
32
|
e.suffix ? {
|
|
29
33
|
name: "suffix",
|
|
30
34
|
fn: r(() => [
|
|
31
|
-
|
|
35
|
+
i(t.$slots, "suffix")
|
|
32
36
|
]),
|
|
33
37
|
key: "2"
|
|
34
38
|
} : void 0
|
|
35
39
|
]), 1040));
|
|
36
40
|
}
|
|
37
|
-
}),
|
|
41
|
+
}), E = l(
|
|
38
42
|
T,
|
|
39
43
|
u({ readOnly: "readonly", disabled: !0 }),
|
|
40
|
-
|
|
44
|
+
_(k.Select, { multiple: !0 })
|
|
41
45
|
);
|
|
42
46
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
E as InputTag,
|
|
48
|
+
E as default
|
|
45
49
|
};
|
|
46
50
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/input-tag/input-tag.vue","../../src/input-tag/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/input-tag/input-tag.vue","../../src/input-tag/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport { useField } from '@silver-formily/vue'\nimport { ElInputTag } from 'element-plus'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FInputTag',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n tag?: (scope: { value: string, index: number, field: Field | undefined }) => any\n prefix?: () => any\n suffix?: () => any\n}>()\n\nconst { props: inputTagProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\n</script>\n\n<template>\n <ElInputTag v-bind=\"inputTagProps\">\n <template v-if=\"slots.tag\" #tag=\"slotProps\">\n <slot name=\"tag\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\n </template>\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 </ElInputTag>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FInputTag from './input-tag.vue'\n\nexport const InputTag = connect<typeof FInputTag>(\n FInputTag,\n mapProps({ readOnly: 'readonly', disabled: true }),\n mapReadPretty(PreviewText.Select, { multiple: true }),\n)\n\nexport default InputTag\n"],"names":["slots","_useSlots","inputTagProps","useCleanAttrs","fieldRef","useField","_openBlock","_createBlock","_unref","_createSlots","_withCtx","slotProps","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps","InputTag","connect","FInputTag","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;;;;;AAWA,UAAMA,IAAQC,EAAA,GAMR,EAAE,OAAOC,EAAA,IAAkBC,EAAA,GAC3BC,IAAWC,EAAA;sBAIfC,KAAAC,EAUaC,UAVOA,EAAAN,CAAA,CAAa,CAAA,GAAAO,EAAA,EAAA,GAAA,KAAA;AAAA,MACfT,EAAM;cAAM;AAAA,QAC1B,IAAAU,EAAA,CAD+BC,MAAS;AAAA,UACxCC,EAA8DC,EAAA,QAAA,OAAAC,EAAAC,EAAA,EAAA,GAAhCJ,GAAS,OAASH,EAAAJ,CAAA,EAAA,CAAQ,CAAA,CAAA;AAAA,QAAA;;;MAE1CJ,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBY,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERb,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBY,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;ICzBfG,IAAWC;AAAA,EACtBC;AAAAA,EACAC,EAAS,EAAE,UAAU,YAAY,UAAU,IAAM;AAAA,EACjDC,EAAcC,EAAY,QAAQ,EAAE,UAAU,IAAM;AACtD;"}
|
package/esm/mention/index.mjs
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
import { useField as u, connect as c, mapProps as v } from "@silver-formily/vue";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { mapReadPretty as
|
|
2
|
+
import { ElMention as y } from "element-plus";
|
|
3
|
+
import "@formily/reactive";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { defineComponent as k, useSlots as h, computed as $, createBlock as P, openBlock as S, unref as i, normalizeProps as p, guardReactiveProps as l, createSlots as g, withCtx as n, renderSlot as r } from "vue";
|
|
6
|
+
import { mapReadPretty as b } from "../__builtins__/shared/transform-component.mjs";
|
|
7
|
+
import { PreviewText as M } from "../preview-text/index.mjs";
|
|
8
|
+
import "@formily/core";
|
|
9
|
+
import "@silver-formily/reactive-vue";
|
|
10
|
+
import { useCleanAttrs as w } from "../__builtins__/shared/utils.mjs";
|
|
7
11
|
const C = /* @__PURE__ */ k({
|
|
8
12
|
name: "FMention",
|
|
9
13
|
inheritAttrs: !1,
|
|
10
14
|
__name: "mention",
|
|
11
15
|
setup(R) {
|
|
12
|
-
const o = h(), { props: d } =
|
|
13
|
-
const e = d.value, { onSearch:
|
|
14
|
-
return
|
|
16
|
+
const o = h(), { props: d } = w(), t = u(), f = $(() => {
|
|
17
|
+
const e = d.value, { onSearch: s } = e;
|
|
18
|
+
return s ? {
|
|
15
19
|
...e,
|
|
16
|
-
onSearch(
|
|
17
|
-
return
|
|
18
|
-
|
|
20
|
+
onSearch(a, m) {
|
|
21
|
+
return s(
|
|
22
|
+
a,
|
|
19
23
|
m,
|
|
20
24
|
t.value
|
|
21
25
|
);
|
|
22
26
|
}
|
|
23
27
|
} : e;
|
|
24
28
|
});
|
|
25
|
-
return (e,
|
|
29
|
+
return (e, s) => (S(), P(i(y), p(l(f.value)), g({ _: 2 }, [
|
|
26
30
|
o.prefix ? {
|
|
27
31
|
name: "prefix",
|
|
28
32
|
fn: n(() => [
|
|
@@ -54,21 +58,21 @@ const C = /* @__PURE__ */ k({
|
|
|
54
58
|
o.header ? {
|
|
55
59
|
name: "header",
|
|
56
60
|
fn: n(() => [
|
|
57
|
-
r(e.$slots, "header", { field:
|
|
61
|
+
r(e.$slots, "header", { field: i(t) })
|
|
58
62
|
]),
|
|
59
63
|
key: "4"
|
|
60
64
|
} : void 0,
|
|
61
65
|
o.footer ? {
|
|
62
66
|
name: "footer",
|
|
63
67
|
fn: n(() => [
|
|
64
|
-
r(e.$slots, "footer", { field:
|
|
68
|
+
r(e.$slots, "footer", { field: i(t) })
|
|
65
69
|
]),
|
|
66
70
|
key: "5"
|
|
67
71
|
} : void 0,
|
|
68
72
|
o.label ? {
|
|
69
73
|
name: "label",
|
|
70
|
-
fn: n((
|
|
71
|
-
r(e.$slots, "label", p(l({ ...
|
|
74
|
+
fn: n((a) => [
|
|
75
|
+
r(e.$slots, "label", p(l({ ...a, field: i(t) })))
|
|
72
76
|
]),
|
|
73
77
|
key: "6"
|
|
74
78
|
} : void 0,
|
|
@@ -81,13 +85,13 @@ const C = /* @__PURE__ */ k({
|
|
|
81
85
|
} : void 0
|
|
82
86
|
]), 1040));
|
|
83
87
|
}
|
|
84
|
-
}),
|
|
88
|
+
}), j = c(
|
|
85
89
|
C,
|
|
86
90
|
v({ dataSource: "options", readOnly: "readonly", loading: !0, disabled: !0 }),
|
|
87
|
-
|
|
91
|
+
b(M.Input)
|
|
88
92
|
);
|
|
89
93
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
j as Mention,
|
|
95
|
+
j as default
|
|
92
96
|
};
|
|
93
97
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/mention/mention.vue","../../src/mention/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/mention/mention.vue","../../src/mention/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport type { MentionOption } from 'element-plus/es/components/mention'\nimport { useField } from '@silver-formily/vue'\nimport { ElMention } from 'element-plus'\nimport { computed } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FMention',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n label?: (scope: { item: MentionOption, index: number, field: Field | undefined }) => any\n header?: (scope: { field: Field | undefined }) => any\n footer?: (scope: { field: Field | undefined }) => any\n loading?: () => any\n prefix?: () => any\n suffix?: () => any\n prepend?: () => any\n append?: () => any\n}>()\n\nconst { props: rawMentionProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\n\nconst mentionProps = computed(() => {\n const props = rawMentionProps.value\n const { onSearch } = props\n if (!onSearch) {\n return props\n }\n\n return {\n ...props,\n onSearch(pattern: string, prefix: string) {\n return (onSearch as (pattern: string, prefix: string, field?: Field) => any)(\n pattern,\n prefix,\n fieldRef.value,\n )\n },\n }\n})\n</script>\n\n<template>\n <ElMention v-bind=\"mentionProps\">\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 <template v-if=\"slots.header\" #header>\n <slot name=\"header\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.footer\" #footer>\n <slot name=\"footer\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.label\" #label=\"slotProps\">\n <slot name=\"label\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\n </template>\n <template v-if=\"slots.loading\" #loading>\n <slot name=\"loading\" />\n </template>\n </ElMention>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FMention from './mention.vue'\n\nexport const Mention = connect<typeof FMention>(\n FMention,\n mapProps({ dataSource: 'options', readOnly: 'readonly', loading: true, disabled: true }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default Mention\n"],"names":["slots","_useSlots","rawMentionProps","useCleanAttrs","fieldRef","useField","mentionProps","computed","props","onSearch","pattern","prefix","_openBlock","_createBlock","_unref","_createSlots","_renderSlot","_ctx","_withCtx","slotProps","_normalizeProps","_guardReactiveProps","Mention","connect","FMention","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,EAAA,GAWR,EAAE,OAAOC,EAAA,IAAoBC,EAAA,GAC7BC,IAAWC,EAAA,GAEXC,IAAeC,EAAS,MAAM;AAClC,YAAMC,IAAQN,EAAgB,OACxB,EAAE,UAAAO,MAAaD;AACrB,aAAKC,IAIE;AAAA,QACL,GAAGD;AAAA,QACH,SAASE,GAAiBC,GAAgB;AACxC,iBAAQF;AAAA,YACNC;AAAA,YACAC;AAAA,YACAP,EAAS;AAAA,UAAA;AAAA,QAEb;AAAA,MAAA,IAXOI;AAAA,IAaX,CAAC;sBAICI,KAAAC,EAyBYC,UAzBOR,EAAA,KAAY,CAAA,GAAAS,EAAA,EAAA,GAAA,KAAA;AAAA,MACbf,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBgB,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETjB,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAS;AAAA,cAC7B,MAAwC;AAAA,UAAxCgB,EAAwCC,EAAA,QAAA,UAAA,EAAnB,OAAOH,EAAAV,CAAA,EAAA,CAAQ;AAAA,QAAA;;;MAEtBJ,EAAM;cAAS;AAAA,cAC7B,MAAwC;AAAA,UAAxCgB,EAAwCC,EAAA,QAAA,UAAA,EAAnB,OAAOH,EAAAV,CAAA,EAAA,CAAQ;AAAA,QAAA;;;MAEtBJ,EAAM;cAAQ;AAAA,QAC5B,IAAAkB,EAAA,CADmCC,MAAS;AAAA,UAC5CH,EAAgEC,EAAA,QAAA,SAAAG,EAAAC,EAAA,EAAA,GAAhCF,GAAS,OAASL,EAAAV,CAAA,EAAA,CAAQ,CAAA,CAAA;AAAA,QAAA;;;MAE5CJ,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBgB,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;IClEhBK,IAAUC;AAAA,EACrBC;AAAAA,EACAC,EAAS,EAAE,YAAY,WAAW,UAAU,YAAY,SAAS,IAAM,UAAU,IAAM;AAAA,EACvFC,EAAcC,EAAY,KAAK;AACjC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jumper.mjs","sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"jumper.mjs","sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\nimport { componentSizes } from 'element-plus'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["paginationJumperProps","buildProps","componentSizes"],"mappings":";;AAKO,MAAMA,IAAwBC,EAAW;AAAA,EAC9C,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQC;AAAA,EAAA;AAEZ,CAAU;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["paginationNextProps","buildProps","iconPropType"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"names":["paginationPagerProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AACZ,CAAU;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prev.mjs","sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"prev.mjs","sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Prev from './prev.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationPrevProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n prevText: {\n type: String,\n },\n prevIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport const paginationPrevEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type PaginationPrevProps = ExtractPropTypes<typeof paginationPrevProps>\n\nexport type PrevInstance = InstanceType<typeof Prev> & unknown\n"],"names":["paginationPrevProps","buildProps","iconPropType","paginationPrevEmits","evt"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU,GAEGC,IAAsB;AAAA,EACjC,OAAO,CAACC,MAAoBA,aAAe;AAC7C;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"total.mjs","sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\
|
|
1
|
+
{"version":3,"file":"total.mjs","sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Total from './total.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total> & unknown\n"],"names":["paginationTotalProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAU;"}
|