@silver-formily/element-plus 2.2.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.
Files changed (205) hide show
  1. package/LICENSE +21 -21
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/esm/__builtins__/configs/index.mjs.map +1 -1
  5. package/esm/__builtins__/index.mjs +18 -21
  6. package/esm/__builtins__/index.mjs.map +1 -1
  7. package/esm/__builtins__/shared/index.d.ts +0 -1
  8. package/esm/__builtins__/shared/index.mjs +18 -21
  9. package/esm/__builtins__/shared/index.mjs.map +1 -1
  10. package/esm/__builtins__/shared/loading.mjs +5 -5
  11. package/esm/__builtins__/shared/loading.mjs.map +1 -1
  12. package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
  13. package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
  14. package/esm/__builtins__/shared/use-enter-submit.d.ts +9 -0
  15. package/esm/__builtins__/shared/use-enter-submit.mjs +25 -0
  16. package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -0
  17. package/esm/__builtins__/shared/utils.d.ts +1 -0
  18. package/esm/__builtins__/shared/utils.mjs +23 -17
  19. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  20. package/esm/array-base/index.mjs +56 -52
  21. package/esm/array-base/index.mjs.map +1 -1
  22. package/esm/array-base/symbols.mjs.map +1 -1
  23. package/esm/array-base/utils.d.ts +0 -1
  24. package/esm/array-base/utils.mjs +45 -46
  25. package/esm/array-base/utils.mjs.map +1 -1
  26. package/esm/array-cards/index.mjs +36 -33
  27. package/esm/array-cards/index.mjs.map +1 -1
  28. package/esm/array-collapse/index.mjs +39 -37
  29. package/esm/array-collapse/index.mjs.map +1 -1
  30. package/esm/array-collapse/utils.mjs +9 -2
  31. package/esm/array-collapse/utils.mjs.map +1 -1
  32. package/esm/array-items/index.mjs +38 -34
  33. package/esm/array-items/index.mjs.map +1 -1
  34. package/esm/array-list-tabs/index.mjs +38 -36
  35. package/esm/array-list-tabs/index.mjs.map +1 -1
  36. package/esm/array-list-tabs/utils.mjs +12 -5
  37. package/esm/array-list-tabs/utils.mjs.map +1 -1
  38. package/esm/array-table/index.mjs +63 -60
  39. package/esm/array-table/index.mjs.map +1 -1
  40. package/esm/array-table/utils.mjs +18 -11
  41. package/esm/array-table/utils.mjs.map +1 -1
  42. package/esm/array-tabs/index.mjs +28 -25
  43. package/esm/array-tabs/index.mjs.map +1 -1
  44. package/esm/autocomplete/autocomplete.d.ts +1222 -0
  45. package/esm/autocomplete/index.d.ts +639 -0
  46. package/esm/autocomplete/index.mjs +116 -0
  47. package/esm/autocomplete/index.mjs.map +1 -0
  48. package/esm/cascader/index.mjs +22 -18
  49. package/esm/cascader/index.mjs.map +1 -1
  50. package/esm/checkbox/index.d.ts +42 -42
  51. package/esm/checkbox/index.mjs +20 -16
  52. package/esm/checkbox/index.mjs.map +1 -1
  53. package/esm/color-picker/index.d.ts +210 -0
  54. package/esm/color-picker/index.mjs +17 -0
  55. package/esm/color-picker/index.mjs.map +1 -0
  56. package/esm/color-picker-panel/index.d.ts +129 -0
  57. package/esm/color-picker-panel/index.mjs +25 -0
  58. package/esm/color-picker-panel/index.mjs.map +1 -0
  59. package/esm/date-picker/index.mjs +18 -37
  60. package/esm/date-picker/index.mjs.map +1 -1
  61. package/esm/date-picker/utils.d.ts +4 -0
  62. package/esm/date-picker/utils.mjs +27 -0
  63. package/esm/date-picker/utils.mjs.map +1 -0
  64. package/esm/date-picker-panel/index.d.ts +143 -0
  65. package/esm/date-picker-panel/index.mjs +30 -0
  66. package/esm/date-picker-panel/index.mjs.map +1 -0
  67. package/esm/editable/editable.d.ts +2 -0
  68. package/esm/editable/index.d.ts +1 -0
  69. package/esm/editable/index.mjs +71 -66
  70. package/esm/editable/index.mjs.map +1 -1
  71. package/esm/env.d.mjs +2 -0
  72. package/esm/env.d.mjs.map +1 -0
  73. package/esm/form/form.mjs +6 -6
  74. package/esm/form/form.mjs.map +1 -1
  75. package/esm/form-button-group/form-button-group.d.ts +10 -1
  76. package/esm/form-button-group/index.d.ts +18 -3
  77. package/esm/form-button-group/index.mjs +47 -28
  78. package/esm/form-button-group/index.mjs.map +1 -1
  79. package/esm/form-button-group/utils.mjs +9 -2
  80. package/esm/form-button-group/utils.mjs.map +1 -1
  81. package/esm/form-collapse/index.mjs +21 -18
  82. package/esm/form-collapse/index.mjs.map +1 -1
  83. package/esm/form-collapse/utils.mjs.map +1 -1
  84. package/esm/form-dialog/dialog-content.d.ts +789 -3
  85. package/esm/form-dialog/index.mjs +97 -86
  86. package/esm/form-dialog/index.mjs.map +1 -1
  87. package/esm/form-dialog/types.d.ts +1 -0
  88. package/esm/form-drawer/drawer-content.d.ts +919 -3
  89. package/esm/form-drawer/index.mjs +92 -82
  90. package/esm/form-drawer/index.mjs.map +1 -1
  91. package/esm/form-drawer/types.d.ts +1 -0
  92. package/esm/form-grid/hooks.mjs.map +1 -1
  93. package/esm/form-grid/index.mjs +26 -22
  94. package/esm/form-grid/index.mjs.map +1 -1
  95. package/esm/form-item/index.d.ts +1 -0
  96. package/esm/form-item/index.mjs +102 -99
  97. package/esm/form-item/index.mjs.map +1 -1
  98. package/esm/form-item/types.d.ts +4 -0
  99. package/esm/form-item/utils.mjs.map +1 -1
  100. package/esm/form-layout/form-layout.mjs +18 -14
  101. package/esm/form-layout/form-layout.mjs.map +1 -1
  102. package/esm/form-layout/utils.mjs +23 -23
  103. package/esm/form-layout/utils.mjs.map +1 -1
  104. package/esm/form-step/index.mjs +30 -27
  105. package/esm/form-step/index.mjs.map +1 -1
  106. package/esm/form-step/utils.mjs.map +1 -1
  107. package/esm/form-tab/hooks.mjs.map +1 -1
  108. package/esm/form-tab/index.mjs +24 -22
  109. package/esm/form-tab/index.mjs.map +1 -1
  110. package/esm/form-tab/utils.mjs.map +1 -1
  111. package/esm/index.d.ts +8 -0
  112. package/esm/index.mjs +90 -74
  113. package/esm/index.mjs.map +1 -1
  114. package/esm/input/index.mjs +30 -26
  115. package/esm/input/index.mjs.map +1 -1
  116. package/esm/input-number/index.d.ts +21 -21
  117. package/esm/input-number/index.mjs +11 -8
  118. package/esm/input-number/index.mjs.map +1 -1
  119. package/esm/input-tag/index.d.ts +32 -0
  120. package/esm/input-tag/index.mjs +50 -0
  121. package/esm/input-tag/index.mjs.map +1 -0
  122. package/esm/input-tag/input-tag.d.ts +32 -0
  123. package/esm/mention/index.d.ts +50 -0
  124. package/esm/mention/index.mjs +97 -0
  125. package/esm/mention/index.mjs.map +1 -0
  126. package/esm/mention/mention.d.ts +51 -0
  127. package/esm/pagination/components/jumper.mjs.map +1 -1
  128. package/esm/pagination/components/next.mjs.map +1 -1
  129. package/esm/pagination/components/pager.mjs.map +1 -1
  130. package/esm/pagination/components/prev.mjs.map +1 -1
  131. package/esm/pagination/components/total.mjs.map +1 -1
  132. package/esm/pagination/pagination.mjs.map +1 -1
  133. package/esm/password/index.mjs.map +1 -1
  134. package/esm/preview-text/color-picker.d.ts +5 -0
  135. package/esm/preview-text/index.d.ts +5 -0
  136. package/esm/preview-text/index.mjs +184 -145
  137. package/esm/preview-text/index.mjs.map +1 -1
  138. package/esm/preview-text/utils.mjs.map +1 -1
  139. package/esm/query-form/default-components.d.ts +5 -0
  140. package/esm/query-form/default-components.mjs +47 -0
  141. package/esm/query-form/default-components.mjs.map +1 -0
  142. package/esm/query-form/hooks.d.ts +25 -0
  143. package/esm/query-form/hooks.mjs +29 -0
  144. package/esm/query-form/hooks.mjs.map +1 -0
  145. package/esm/query-form/index.d.ts +117 -0
  146. package/esm/query-form/index.mjs +337 -0
  147. package/esm/query-form/index.mjs.map +1 -0
  148. package/esm/query-form/query-form-light.d.ts +27 -0
  149. package/esm/query-form/query-form.d.ts +52 -0
  150. package/esm/query-form/types.d.ts +44 -0
  151. package/esm/query-form/types.mjs +2 -0
  152. package/esm/query-form/types.mjs.map +1 -0
  153. package/esm/query-form-item/index.d.ts +151 -0
  154. package/esm/query-form-item/index.mjs +188 -0
  155. package/esm/query-form-item/index.mjs.map +1 -0
  156. package/esm/query-form-item/query-form-item.d.ts +96 -0
  157. package/esm/query-form-item/types.d.ts +46 -0
  158. package/esm/query-form-item/types.mjs +2 -0
  159. package/esm/query-form-item/types.mjs.map +1 -0
  160. package/esm/radio/index.d.ts +36 -36
  161. package/esm/radio/index.mjs +29 -25
  162. package/esm/radio/index.mjs.map +1 -1
  163. package/esm/rate/index.mjs +13 -10
  164. package/esm/rate/index.mjs.map +1 -1
  165. package/esm/reset/index.mjs.map +1 -1
  166. package/esm/segmented/index.mjs +16 -12
  167. package/esm/segmented/index.mjs.map +1 -1
  168. package/esm/select/index.mjs +26 -22
  169. package/esm/select/index.mjs.map +1 -1
  170. package/esm/select-table/index.mjs +36 -33
  171. package/esm/select-table/index.mjs.map +1 -1
  172. package/esm/shared/overlay-elements.d.ts +6 -0
  173. package/esm/shared/overlay-elements.mjs +19 -0
  174. package/esm/shared/overlay-elements.mjs.map +1 -0
  175. package/esm/slider/index.mjs +13 -10
  176. package/esm/slider/index.mjs.map +1 -1
  177. package/esm/styles/form-button-group/index.css +1 -1
  178. package/esm/styles/form-item/index.css +1 -1
  179. package/esm/styles/preview-text/index.css +1 -1
  180. package/esm/styles/query-form/index.css +1 -0
  181. package/esm/styles/query-form-item/index.css +1 -0
  182. package/esm/submit/index.mjs.map +1 -1
  183. package/esm/switch/index.d.ts +12 -12
  184. package/esm/switch/index.mjs.map +1 -1
  185. package/esm/time-picker/index.mjs +9 -6
  186. package/esm/time-picker/index.mjs.map +1 -1
  187. package/esm/time-select/index.mjs +9 -6
  188. package/esm/time-select/index.mjs.map +1 -1
  189. package/esm/transfer/index.mjs.map +1 -1
  190. package/esm/tree/index.mjs +33 -29
  191. package/esm/tree/index.mjs.map +1 -1
  192. package/esm/tree/utils.mjs.map +1 -1
  193. package/esm/tree-select/index.mjs +18 -14
  194. package/esm/tree-select/index.mjs.map +1 -1
  195. package/esm/upload/index.d.ts +1 -1
  196. package/esm/upload/index.mjs +10 -7
  197. package/esm/upload/index.mjs.map +1 -1
  198. package/esm/upload/upload.d.ts +2 -2
  199. package/esm/vendor/lodash.mjs +751 -663
  200. package/esm/vendor/lodash.mjs.map +1 -1
  201. package/esm/vendor/sizes.mjs.map +1 -1
  202. package/package.json +115 -113
  203. package/esm/__builtins__/shared/hooks.d.ts +0 -7
  204. package/esm/__builtins__/shared/hooks.mjs +0 -59
  205. package/esm/__builtins__/shared/hooks.mjs.map +0 -1
package/esm/index.mjs CHANGED
@@ -2,86 +2,102 @@ import { ArrayCards as e } from "./array-cards/index.mjs";
2
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
- import { ArrayTable as l } from "./array-table/index.mjs";
6
- import { ArrayTabs as c } from "./array-tabs/index.mjs";
7
- import { Cascader as T } from "./cascader/index.mjs";
8
- import { Checkbox as d } from "./checkbox/index.mjs";
9
- import { DatePicker as u } from "./date-picker/index.mjs";
10
- import { Editable as A } from "./editable/index.mjs";
11
- import { FormButtonGroup as I } from "./form-button-group/index.mjs";
12
- import { FormCollapse as k, FormCollapseItem as w } from "./form-collapse/index.mjs";
13
- import { FormDialog as D } from "./form-dialog/index.mjs";
14
- import { FormDrawer as g } from "./form-drawer/index.mjs";
15
- import { FormGrid as B } from "./form-grid/index.mjs";
16
- import { FormBaseItem as G, FormItem as L, fieldFeedbackMapper as _ } from "./form-item/index.mjs";
17
- import { FormStep as M } from "./form-step/index.mjs";
18
- import { composeFormTab as U, composeFormTab as j } from "./form-tab/index.mjs";
19
- import { Input as z } from "./input/index.mjs";
20
- import { InputNumber as J } from "./input-number/index.mjs";
21
- import { Password as O } from "./password/index.mjs";
22
- import { PreviewText as V } from "./preview-text/index.mjs";
23
- import { Radio as X } from "./radio/index.mjs";
24
- import { Rate as Z } from "./rate/index.mjs";
25
- import { Reset as rr } from "./reset/index.mjs";
26
- import { Segmented as er } from "./segmented/index.mjs";
27
- import { Select as tr } from "./select/index.mjs";
28
- import { SelectTable as fr } from "./select-table/index.mjs";
29
- import { Slider as ar } from "./slider/index.mjs";
30
- import { Submit as lr } from "./submit/index.mjs";
31
- import { Switch as cr } from "./switch/index.mjs";
32
- import { TimePicker as Tr } from "./time-picker/index.mjs";
33
- import { TimeSelect as dr } from "./time-select/index.mjs";
34
- import { Transfer as ur } from "./transfer/index.mjs";
35
- import { Tree as Ar } from "./tree/index.mjs";
36
- import { TreeSelect as Ir } from "./tree-select/index.mjs";
37
- import { Upload as kr } from "./upload/index.mjs";
38
- import { _ as Pr } from "./form/form.mjs";
39
- import { _ as Rr } from "./form-layout/form-layout.mjs";
5
+ import { ArrayTable as s } from "./array-table/index.mjs";
6
+ import { ArrayTabs as i } from "./array-tabs/index.mjs";
7
+ import { Autocomplete as T } from "./autocomplete/index.mjs";
8
+ import { Cascader as d } from "./cascader/index.mjs";
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
+ import { DatePickerPanel as w } from "./date-picker-panel/index.mjs";
14
+ import { Editable as g } from "./editable/index.mjs";
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
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";
41
49
  export {
42
50
  e as ArrayCards,
43
51
  t as ArrayCollapse,
44
52
  f as ArrayItems,
45
53
  a as ArrayListTabs,
46
- l as ArrayTable,
47
- c as ArrayTabs,
48
- T as Cascader,
49
- d as Checkbox,
50
- u as DatePicker,
51
- A as Editable,
52
- Pr as Form,
53
- G as FormBaseItem,
54
- I as FormButtonGroup,
55
- k as FormCollapse,
56
- w as FormCollapseItem,
57
- D as FormDialog,
58
- g as FormDrawer,
59
- B as FormGrid,
60
- L as FormItem,
61
- Rr as FormLayout,
62
- M as FormStep,
63
- U as FormTab,
64
- z as Input,
65
- J as InputNumber,
66
- O as Password,
67
- V as PreviewText,
68
- X as Radio,
69
- Z as Rate,
70
- rr as Reset,
71
- er as Segmented,
72
- tr as Select,
73
- fr as SelectTable,
74
- ar as Slider,
54
+ s as ArrayTable,
55
+ i as ArrayTabs,
56
+ T as Autocomplete,
57
+ d as Cascader,
58
+ S as Checkbox,
59
+ y as ColorPicker,
60
+ C as ColorPickerPanel,
61
+ k as DatePicker,
62
+ w as DatePickerPanel,
63
+ g as Editable,
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,
75
91
  hr as Space,
76
- lr as Submit,
77
- cr as Switch,
78
- Tr as TimePicker,
79
- dr as TimeSelect,
80
- ur as Transfer,
81
- Ar as Tree,
82
- Ir as TreeSelect,
83
- kr as Upload,
84
- j as composeFormTab,
85
- _ as fieldFeedbackMapper
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
86
102
  };
87
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,65 +1,69 @@
1
1
  import { connect as s, mapProps as a } from "@silver-formily/vue";
2
- import { PreviewText as i } from "../preview-text/index.mjs";
3
- import { defineComponent as d, useSlots as l, createBlock as c, openBlock as y, unref as p, normalizeProps as x, guardReactiveProps as I, createSlots as k, withCtx as t, renderSlot as r } from "vue";
4
- import { ElInput as v } from "element-plus";
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 { mapReadPretty as f } from "../__builtins__/shared/transform-component.mjs";
7
- const m = /* @__PURE__ */ d({
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(o) {
12
- const e = l(), { props: u } = P();
13
- return (n, A) => (y(), c(p(v), x(I(p(u))), k({ _: 2 }, [
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: t(() => [
17
- r(n.$slots, "prefix")
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: t(() => [
24
- r(n.$slots, "suffix")
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: t(() => [
31
- r(n.$slots, "prepend")
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: t(() => [
38
- r(n.$slots, "append")
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
- m,
49
+ f,
46
50
  a({
47
51
  readOnly: "readonly"
48
52
  }),
49
- f(i.Input)
53
+ i(m.Input)
50
54
  ), h = s(
51
- m,
52
- a((o) => ({
53
- ...o,
54
- readonly: o.readOnly,
55
+ f,
56
+ a((n) => ({
57
+ ...n,
58
+ readonly: n.readOnly,
55
59
  type: "textarea"
56
60
  })),
57
- f(i.Input)
58
- ), R = _($, {
61
+ i(m.Input)
62
+ ), F = _($, {
59
63
  TextArea: h
60
64
  });
61
65
  export {
62
- R as Input,
63
- R as default
66
+ F as Input,
67
+ F as default
64
68
  };
65
69
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/input/input.vue","../../src/input/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport { ElInput } from 'element-plus'\r\nimport { useCleanAttrs } from '../__builtins__/index'\r\n\r\ndefineOptions({\r\n name: 'FInput',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst slots = defineSlots<{\r\n prefix?: () => any\r\n suffix?: () => any\r\n prepend?: () => any\r\n append?: () => any\r\n}>()\r\n\r\nconst { props: inputProps } = useCleanAttrs()\r\n</script>\r\n\r\n<template>\r\n <ElInput\r\n v-bind=\"inputProps\"\r\n >\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\" />\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\" />\r\n </template>\r\n <template v-if=\"slots.prepend\" #prepend>\r\n <slot name=\"prepend\" />\r\n </template>\r\n <template v-if=\"slots.append\" #append>\r\n <slot name=\"append\" />\r\n </template>\r\n </ElInput>\r\n</template>\r\n","import { connect, mapProps } from '@silver-formily/vue'\r\nimport { composeExport, mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\nimport FInput from './input.vue'\r\n\r\nconst InnerInput = connect<typeof FInput>(\r\n FInput,\r\n mapProps({\r\n readOnly: 'readonly',\r\n }),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nconst TextArea = connect<typeof FInput>(\r\n FInput,\r\n mapProps((props) => {\r\n return {\r\n ...props,\r\n readonly: props.readOnly,\r\n type: 'textarea',\r\n }\r\n }),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nexport const Input = composeExport(InnerInput, {\r\n TextArea,\r\n})\r\n\r\nexport default Input\r\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
+ {"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;"}
@@ -9,13 +9,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
9
9
  size: {
10
10
  type: import('vue').PropType<"" | "small" | "default" | "large">;
11
11
  };
12
- max: {
13
- type: import('vue').PropType<number>;
14
- default: number;
12
+ align: {
13
+ type: import('vue').PropType<"center" | "left" | "right">;
14
+ default: string;
15
15
  };
16
16
  name: {
17
17
  type: import('vue').PropType<string>;
18
18
  };
19
+ max: {
20
+ type: import('vue').PropType<number>;
21
+ default: number;
22
+ };
19
23
  disabled: {
20
24
  type: import('vue').PropType<boolean>;
21
25
  default: undefined;
@@ -30,10 +34,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
30
34
  modelValue: {
31
35
  type: import('vue').PropType<number>;
32
36
  };
33
- align: {
34
- type: import('vue').PropType<"center" | "left" | "right">;
35
- default: string;
36
- };
37
37
  ariaLabel: {
38
38
  type: import('vue').PropType<string>;
39
39
  };
@@ -119,13 +119,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
119
119
  size: {
120
120
  type: import('vue').PropType<"" | "small" | "default" | "large">;
121
121
  };
122
- max: {
123
- type: import('vue').PropType<number>;
124
- default: number;
122
+ align: {
123
+ type: import('vue').PropType<"center" | "left" | "right">;
124
+ default: string;
125
125
  };
126
126
  name: {
127
127
  type: import('vue').PropType<string>;
128
128
  };
129
+ max: {
130
+ type: import('vue').PropType<number>;
131
+ default: number;
132
+ };
129
133
  disabled: {
130
134
  type: import('vue').PropType<boolean>;
131
135
  default: undefined;
@@ -140,10 +144,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
140
144
  modelValue: {
141
145
  type: import('vue').PropType<number>;
142
146
  };
143
- align: {
144
- type: import('vue').PropType<"center" | "left" | "right">;
145
- default: string;
146
- };
147
147
  ariaLabel: {
148
148
  type: import('vue').PropType<string>;
149
149
  };
@@ -220,13 +220,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
220
220
  size: {
221
221
  type: import('vue').PropType<"" | "small" | "default" | "large">;
222
222
  };
223
- max: {
224
- type: import('vue').PropType<number>;
225
- default: number;
223
+ align: {
224
+ type: import('vue').PropType<"center" | "left" | "right">;
225
+ default: string;
226
226
  };
227
227
  name: {
228
228
  type: import('vue').PropType<string>;
229
229
  };
230
+ max: {
231
+ type: import('vue').PropType<number>;
232
+ default: number;
233
+ };
230
234
  disabled: {
231
235
  type: import('vue').PropType<boolean>;
232
236
  default: undefined;
@@ -241,10 +245,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
241
245
  modelValue: {
242
246
  type: import('vue').PropType<number>;
243
247
  };
244
- align: {
245
- type: import('vue').PropType<"center" | "left" | "right">;
246
- default: string;
247
- };
248
248
  ariaLabel: {
249
249
  type: import('vue').PropType<string>;
250
250
  };
@@ -1,9 +1,12 @@
1
1
  import { connect as r, mapProps as t } from "@silver-formily/vue";
2
- import { ElInputNumber as e } from "element-plus";
3
- import { PreviewText as n } from "../preview-text/index.mjs";
4
- import { mapReadPretty as m } from "../__builtins__/shared/transform-component.mjs";
5
- const u = r(
6
- e,
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
- m(n.Input)
18
+ p(e.Input)
16
19
  );
17
20
  export {
18
- u as InputNumber,
19
- u as default
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'\r\nimport { ElInputNumber } from 'element-plus'\r\nimport { mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\n\r\nexport type InputNumberProps = typeof ElInputNumber\r\n\r\nexport const InputNumber = connect<typeof ElInputNumber>(\r\n ElInputNumber,\r\n mapProps(\r\n {\r\n readOnly: 'readonly',\r\n },\r\n (props) => {\r\n return {\r\n controlsPosition: props.controlsPosition ?? 'right',\r\n }\r\n },\r\n ),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nexport default InputNumber\r\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;"}
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;"}
@@ -0,0 +1,32 @@
1
+ export declare const InputTag: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
+ $slots: Readonly<{
15
+ tag?: (scope: {
16
+ value: string;
17
+ index: number;
18
+ field: import('@formily/core').Field | undefined;
19
+ }) => any;
20
+ prefix?: () => any;
21
+ suffix?: () => any;
22
+ }> & {
23
+ tag?: (scope: {
24
+ value: string;
25
+ index: number;
26
+ field: import('@formily/core').Field | undefined;
27
+ }) => any;
28
+ prefix?: () => any;
29
+ suffix?: () => any;
30
+ };
31
+ });
32
+ export default InputTag;
@@ -0,0 +1,50 @@
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";
11
+ const T = /* @__PURE__ */ c({
12
+ name: "FInputTag",
13
+ inheritAttrs: !1,
14
+ __name: "input-tag",
15
+ setup(S) {
16
+ const e = g(), { props: p } = v(), a = f();
17
+ return (t, h) => (y(), x(o(d), n(s(o(p))), P({ _: 2 }, [
18
+ e.tag ? {
19
+ name: "tag",
20
+ fn: r((m) => [
21
+ i(t.$slots, "tag", n(s({ ...m, field: o(a) })))
22
+ ]),
23
+ key: "0"
24
+ } : void 0,
25
+ e.prefix ? {
26
+ name: "prefix",
27
+ fn: r(() => [
28
+ i(t.$slots, "prefix")
29
+ ]),
30
+ key: "1"
31
+ } : void 0,
32
+ e.suffix ? {
33
+ name: "suffix",
34
+ fn: r(() => [
35
+ i(t.$slots, "suffix")
36
+ ]),
37
+ key: "2"
38
+ } : void 0
39
+ ]), 1040));
40
+ }
41
+ }), E = l(
42
+ T,
43
+ u({ readOnly: "readonly", disabled: !0 }),
44
+ _(k.Select, { multiple: !0 })
45
+ );
46
+ export {
47
+ E as InputTag,
48
+ E as default
49
+ };
50
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
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;"}
@@ -0,0 +1,32 @@
1
+ import { Field } from '@formily/core';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ tag?: (scope: {
6
+ value: string;
7
+ index: number;
8
+ field: Field | undefined;
9
+ }) => any;
10
+ prefix?: () => any;
11
+ suffix?: () => any;
12
+ }> & {
13
+ tag?: (scope: {
14
+ value: string;
15
+ index: number;
16
+ field: Field | undefined;
17
+ }) => any;
18
+ prefix?: () => any;
19
+ suffix?: () => any;
20
+ };
21
+ refs: {};
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,50 @@
1
+ export declare const Mention: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
+ $slots: Readonly<{
15
+ label?: (scope: {
16
+ item: import('element-plus').MentionOption;
17
+ index: number;
18
+ field: import('@formily/core').Field | undefined;
19
+ }) => any;
20
+ header?: (scope: {
21
+ field: import('@formily/core').Field | undefined;
22
+ }) => any;
23
+ footer?: (scope: {
24
+ field: import('@formily/core').Field | undefined;
25
+ }) => any;
26
+ loading?: () => any;
27
+ prefix?: () => any;
28
+ suffix?: () => any;
29
+ prepend?: () => any;
30
+ append?: () => any;
31
+ }> & {
32
+ label?: (scope: {
33
+ item: import('element-plus').MentionOption;
34
+ index: number;
35
+ field: import('@formily/core').Field | undefined;
36
+ }) => any;
37
+ header?: (scope: {
38
+ field: import('@formily/core').Field | undefined;
39
+ }) => any;
40
+ footer?: (scope: {
41
+ field: import('@formily/core').Field | undefined;
42
+ }) => any;
43
+ loading?: () => any;
44
+ prefix?: () => any;
45
+ suffix?: () => any;
46
+ prepend?: () => any;
47
+ append?: () => any;
48
+ };
49
+ });
50
+ export default Mention;