ll-plus 2.6.23 → 2.6.25

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 (201) hide show
  1. package/es/components/advanced-filtering/index.d.ts +288 -288
  2. package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +144 -144
  3. package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +144 -144
  4. package/es/components/breadcrumb-card/index.d.ts +1 -1
  5. package/es/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
  6. package/es/components/cascader/index.d.ts +8 -8
  7. package/es/components/cascader/src/cascader.vue.d.ts +8 -8
  8. package/es/components/checkbox/index.d.ts +217 -217
  9. package/es/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
  10. package/es/components/checkbox/src/checkbox.d.ts +56 -56
  11. package/es/components/drawer/index.d.ts +5 -5
  12. package/es/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  13. package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  14. package/es/components/drawer/src/drawer.vue.d.ts +5 -5
  15. package/es/components/easy-cron/index.d.ts +88 -526
  16. package/es/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  17. package/es/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  18. package/es/components/easy-cron/src/easy-cron.vue.d.ts +88 -526
  19. package/es/components/form/index.d.ts +144 -144
  20. package/es/components/form/src/components/form-component.vue.d.ts +1 -1
  21. package/es/components/form/src/config/form.d.ts +56 -56
  22. package/es/components/form/src/form.vue.d.ts +143 -143
  23. package/es/components/icon-picker/index.d.ts +11 -1
  24. package/es/components/icon-picker/src/components/modal.vue.d.ts +1 -1
  25. package/es/components/icon-picker/src/components/search.vue.d.ts +10 -0
  26. package/es/components/icon-picker/src/icon-picker.vue.d.ts +11 -1
  27. package/es/components/input/index.d.ts +36 -33
  28. package/es/components/input/src/input.vue.d.ts +36 -33
  29. package/es/components/key-value/index.d.ts +690 -690
  30. package/es/components/key-value/src/components/key-value-item.vue.d.ts +230 -230
  31. package/es/components/key-value/src/key-value.vue.d.ts +690 -690
  32. package/es/components/modal/index.d.ts +1 -1
  33. package/es/components/modal/src/modal.vue.d.ts +1 -1
  34. package/es/components/new-drawer/index.d.ts +7 -7
  35. package/es/components/new-drawer/src/drawer.vue.d.ts +7 -7
  36. package/es/components/new-modal/index.d.ts +2 -2
  37. package/es/components/new-modal/src/modal.vue.d.ts +2 -2
  38. package/es/components/rich-text-editor/index.d.ts +1 -1
  39. package/es/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  40. package/es/components/select/index.d.ts +4 -4
  41. package/es/components/select/src/select.vue.d.ts +4 -4
  42. package/es/components/select-group/index.d.ts +2 -2
  43. package/es/components/select-group/src/select-group.d.ts +1 -1
  44. package/es/components/select-group/src/select-group.vue.d.ts +2 -2
  45. package/es/components/table/index.d.ts +6 -6
  46. package/es/components/table/src/components/main-table.vue.d.ts +2 -2
  47. package/es/components/table/src/config/table.d.ts +2 -2
  48. package/es/components/table/src/table.vue.d.ts +6 -6
  49. package/es/components/textarea/index.d.ts +5 -5
  50. package/es/components/textarea/src/textarea.vue.d.ts +5 -5
  51. package/es/components/tooltip/index.d.ts +4 -4
  52. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  53. package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
  54. package/es/components/tree-search/index.d.ts +1 -1
  55. package/es/components/tree-search/src/tree-search.vue.d.ts +1 -1
  56. package/es/components/upload-drag/index.d.ts +2 -2
  57. package/es/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
  58. package/es/packages/components/easy-cron/src/easy-cron.vue2.mjs +33 -22
  59. package/es/packages/components/easy-cron/src/easy-cron.vue2.mjs.map +1 -1
  60. package/es/packages/components/icon-picker/src/components/search.vue2.mjs +12 -5
  61. package/es/packages/components/icon-picker/src/components/search.vue2.mjs.map +1 -1
  62. package/es/packages/components/input/src/input.mjs +1 -1
  63. package/es/packages/components/input/src/input.mjs.map +1 -1
  64. package/es/packages/components/input/src/input.vue2.mjs +74 -40
  65. package/es/packages/components/input/src/input.vue2.mjs.map +1 -1
  66. package/es/packages/components/table/src/components/main-table.vue2.mjs +199 -189
  67. package/es/packages/components/table/src/components/main-table.vue2.mjs.map +1 -1
  68. package/index.full.js +312 -252
  69. package/index.full.min.js +3 -3
  70. package/index.full.min.js.map +1 -1
  71. package/index.full.min.mjs +18 -18
  72. package/index.full.min.mjs.map +1 -1
  73. package/index.full.mjs +313 -253
  74. package/lib/components/advanced-filtering/index.d.ts +288 -288
  75. package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +144 -144
  76. package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +144 -144
  77. package/lib/components/breadcrumb-card/index.d.ts +1 -1
  78. package/lib/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
  79. package/lib/components/cascader/index.d.ts +8 -8
  80. package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
  81. package/lib/components/checkbox/index.d.ts +217 -217
  82. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
  83. package/lib/components/checkbox/src/checkbox.d.ts +56 -56
  84. package/lib/components/drawer/index.d.ts +5 -5
  85. package/lib/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  86. package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  87. package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
  88. package/lib/components/easy-cron/index.d.ts +88 -526
  89. package/lib/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  90. package/lib/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  91. package/lib/components/easy-cron/src/easy-cron.vue.d.ts +88 -526
  92. package/lib/components/form/index.d.ts +144 -144
  93. package/lib/components/form/src/components/form-component.vue.d.ts +1 -1
  94. package/lib/components/form/src/config/form.d.ts +56 -56
  95. package/lib/components/form/src/form.vue.d.ts +143 -143
  96. package/lib/components/icon-picker/index.d.ts +11 -1
  97. package/lib/components/icon-picker/src/components/modal.vue.d.ts +1 -1
  98. package/lib/components/icon-picker/src/components/search.vue.d.ts +10 -0
  99. package/lib/components/icon-picker/src/icon-picker.vue.d.ts +11 -1
  100. package/lib/components/input/index.d.ts +36 -33
  101. package/lib/components/input/src/input.vue.d.ts +36 -33
  102. package/lib/components/key-value/index.d.ts +690 -690
  103. package/lib/components/key-value/src/components/key-value-item.vue.d.ts +230 -230
  104. package/lib/components/key-value/src/key-value.vue.d.ts +690 -690
  105. package/lib/components/modal/index.d.ts +1 -1
  106. package/lib/components/modal/src/modal.vue.d.ts +1 -1
  107. package/lib/components/new-drawer/index.d.ts +7 -7
  108. package/lib/components/new-drawer/src/drawer.vue.d.ts +7 -7
  109. package/lib/components/new-modal/index.d.ts +2 -2
  110. package/lib/components/new-modal/src/modal.vue.d.ts +2 -2
  111. package/lib/components/rich-text-editor/index.d.ts +1 -1
  112. package/lib/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  113. package/lib/components/select/index.d.ts +4 -4
  114. package/lib/components/select/src/select.vue.d.ts +4 -4
  115. package/lib/components/select-group/index.d.ts +2 -2
  116. package/lib/components/select-group/src/select-group.d.ts +1 -1
  117. package/lib/components/select-group/src/select-group.vue.d.ts +2 -2
  118. package/lib/components/table/index.d.ts +6 -6
  119. package/lib/components/table/src/components/main-table.vue.d.ts +2 -2
  120. package/lib/components/table/src/config/table.d.ts +2 -2
  121. package/lib/components/table/src/table.vue.d.ts +6 -6
  122. package/lib/components/textarea/index.d.ts +5 -5
  123. package/lib/components/textarea/src/textarea.vue.d.ts +5 -5
  124. package/lib/components/tooltip/index.d.ts +4 -4
  125. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  126. package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
  127. package/lib/components/tree-search/index.d.ts +1 -1
  128. package/lib/components/tree-search/src/tree-search.vue.d.ts +1 -1
  129. package/lib/components/upload-drag/index.d.ts +2 -2
  130. package/lib/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
  131. package/lib/packages/components/easy-cron/src/easy-cron.vue2.js +31 -20
  132. package/lib/packages/components/easy-cron/src/easy-cron.vue2.js.map +1 -1
  133. package/lib/packages/components/icon-picker/src/components/search.vue2.js +11 -4
  134. package/lib/packages/components/icon-picker/src/components/search.vue2.js.map +1 -1
  135. package/lib/packages/components/input/src/input.js +1 -1
  136. package/lib/packages/components/input/src/input.js.map +1 -1
  137. package/lib/packages/components/input/src/input.vue2.js +73 -39
  138. package/lib/packages/components/input/src/input.vue2.js.map +1 -1
  139. package/lib/packages/components/table/src/components/main-table.vue2.js +198 -188
  140. package/lib/packages/components/table/src/components/main-table.vue2.js.map +1 -1
  141. package/package.json +1 -1
  142. package/theme-chalk/css/easy-cron.css +1 -1
  143. package/theme-chalk/css/icon-picker.css +1 -1
  144. package/theme-chalk/css/index.css +1 -1
  145. package/types/packages/components/advanced-filtering/index.d.ts +288 -288
  146. package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +144 -144
  147. package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +144 -144
  148. package/types/packages/components/breadcrumb-card/index.d.ts +1 -1
  149. package/types/packages/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
  150. package/types/packages/components/cascader/index.d.ts +8 -8
  151. package/types/packages/components/cascader/src/cascader.vue.d.ts +8 -8
  152. package/types/packages/components/checkbox/index.d.ts +217 -217
  153. package/types/packages/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
  154. package/types/packages/components/checkbox/src/checkbox.d.ts +56 -56
  155. package/types/packages/components/drawer/index.d.ts +5 -5
  156. package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  157. package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  158. package/types/packages/components/drawer/src/drawer.vue.d.ts +5 -5
  159. package/types/packages/components/easy-cron/index.d.ts +88 -526
  160. package/types/packages/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  161. package/types/packages/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  162. package/types/packages/components/easy-cron/src/easy-cron.vue.d.ts +88 -526
  163. package/types/packages/components/form/index.d.ts +144 -144
  164. package/types/packages/components/form/src/components/form-component.vue.d.ts +1 -1
  165. package/types/packages/components/form/src/config/form.d.ts +56 -56
  166. package/types/packages/components/form/src/form.vue.d.ts +143 -143
  167. package/types/packages/components/icon-picker/index.d.ts +11 -1
  168. package/types/packages/components/icon-picker/src/components/modal.vue.d.ts +1 -1
  169. package/types/packages/components/icon-picker/src/components/search.vue.d.ts +10 -0
  170. package/types/packages/components/icon-picker/src/icon-picker.vue.d.ts +11 -1
  171. package/types/packages/components/input/index.d.ts +36 -33
  172. package/types/packages/components/input/src/input.vue.d.ts +36 -33
  173. package/types/packages/components/key-value/index.d.ts +690 -690
  174. package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +230 -230
  175. package/types/packages/components/key-value/src/key-value.vue.d.ts +690 -690
  176. package/types/packages/components/modal/index.d.ts +1 -1
  177. package/types/packages/components/modal/src/modal.vue.d.ts +1 -1
  178. package/types/packages/components/new-drawer/index.d.ts +7 -7
  179. package/types/packages/components/new-drawer/src/drawer.vue.d.ts +7 -7
  180. package/types/packages/components/new-modal/index.d.ts +2 -2
  181. package/types/packages/components/new-modal/src/modal.vue.d.ts +2 -2
  182. package/types/packages/components/rich-text-editor/index.d.ts +1 -1
  183. package/types/packages/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  184. package/types/packages/components/select/index.d.ts +4 -4
  185. package/types/packages/components/select/src/select.vue.d.ts +4 -4
  186. package/types/packages/components/select-group/index.d.ts +2 -2
  187. package/types/packages/components/select-group/src/select-group.d.ts +1 -1
  188. package/types/packages/components/select-group/src/select-group.vue.d.ts +2 -2
  189. package/types/packages/components/table/index.d.ts +6 -6
  190. package/types/packages/components/table/src/components/main-table.vue.d.ts +2 -2
  191. package/types/packages/components/table/src/config/table.d.ts +2 -2
  192. package/types/packages/components/table/src/table.vue.d.ts +6 -6
  193. package/types/packages/components/textarea/index.d.ts +5 -5
  194. package/types/packages/components/textarea/src/textarea.vue.d.ts +5 -5
  195. package/types/packages/components/tooltip/index.d.ts +4 -4
  196. package/types/packages/components/tooltip/src/tooltip.d.ts +1 -1
  197. package/types/packages/components/tooltip/src/tooltip.vue.d.ts +4 -4
  198. package/types/packages/components/tree-search/index.d.ts +1 -1
  199. package/types/packages/components/tree-search/src/tree-search.vue.d.ts +1 -1
  200. package/types/packages/components/upload-drag/index.d.ts +2 -2
  201. package/types/packages/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
@@ -1,7 +1,7 @@
1
1
  import Tooltip from './src/tooltip.vue';
2
2
  export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
3
3
  readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
4
- readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
4
+ readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
5
5
  readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
6
6
  readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7
7
  readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
@@ -21,7 +21,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
21
21
  readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
22
22
  }, {
23
23
  props: import("@vue/shared").LooseRequired<{
24
- readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
24
+ readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
25
25
  readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
26
26
  readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
27
27
  readonly tip: string;
@@ -65,7 +65,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
65
65
  }>;
66
66
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
67
67
  readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
68
- readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
68
+ readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
69
69
  readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
70
70
  readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
71
71
  readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
@@ -84,7 +84,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
84
84
  readonly ellipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
85
85
  readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
86
86
  }>>, {
87
- readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
87
+ readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
88
88
  readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
89
89
  readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
90
90
  readonly tip: string;
@@ -3,7 +3,7 @@ import type Tooltip from './tooltip.vue';
3
3
  export declare const placement: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
4
4
  export declare const tooltipProps: {
5
5
  readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
6
- readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
6
+ readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
7
7
  readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
8
8
  readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
9
9
  readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
3
- readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
3
+ readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
4
4
  readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
5
5
  readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6
6
  readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
21
21
  }, {
22
22
  props: import("@vue/shared").LooseRequired<{
23
- readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
23
+ readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
24
24
  readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
25
25
  readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
26
26
  readonly tip: string;
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
64
64
  }>;
65
65
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
66
66
  readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
67
- readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
67
+ readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
68
68
  readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
69
69
  readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
70
70
  readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
83
83
  readonly ellipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
84
84
  readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
85
85
  }>>, {
86
- readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
86
+ readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
87
87
  readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
88
88
  readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
89
89
  readonly tip: string;
@@ -105,7 +105,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
105
105
  readonly onCancel?: (() => any) | undefined;
106
106
  readonly onClickAdd?: (() => any) | undefined;
107
107
  } & {}>;
108
- emits: ((event: "cancel") => void) & ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
108
+ emits: ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "cancel") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
109
109
  isCollapseMenu: import("vue").Ref<boolean>;
110
110
  newExpandedKeys: import("vue").Ref<string[]>;
111
111
  bem: {
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
104
104
  readonly onCancel?: (() => any) | undefined;
105
105
  readonly onClickAdd?: (() => any) | undefined;
106
106
  } & {}>;
107
- emits: ((event: "cancel") => void) & ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
107
+ emits: ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "cancel") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
108
108
  isCollapseMenu: import("vue").Ref<boolean>;
109
109
  newExpandedKeys: import("vue").Ref<string[]>;
110
110
  bem: {
@@ -39,7 +39,7 @@ export declare const LlUploadDrag: import("ll-plus/es/utils").SFCWithInstall<imp
39
39
  readonly onCancel?: ((...args: any[]) => any) | undefined;
40
40
  readonly onCustomRequest?: ((...args: any[]) => any) | undefined;
41
41
  } & {}>;
42
- emits: (event: "cancel" | "update:value" | "confirm" | "customRequest", ...args: any[]) => void;
42
+ emits: (event: "update:value" | "confirm" | "customRequest" | "cancel", ...args: any[]) => void;
43
43
  bem: {
44
44
  b: (blockSuffix?: string) => string;
45
45
  e: (element?: string) => string;
@@ -61,7 +61,7 @@ export declare const LlUploadDrag: import("ll-plus/es/utils").SFCWithInstall<imp
61
61
  handleDragReject: () => void;
62
62
  handleClickCancelBtn: () => void;
63
63
  handleClickOkBtn: () => void;
64
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "update:value" | "confirm" | "customRequest")[], "cancel" | "update:value" | "confirm" | "customRequest", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "confirm" | "customRequest" | "cancel")[], "update:value" | "confirm" | "customRequest" | "cancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
65
  value: {
66
66
  type: ArrayConstructor;
67
67
  default: () => never[];
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  readonly onCancel?: ((...args: any[]) => any) | undefined;
40
40
  readonly onCustomRequest?: ((...args: any[]) => any) | undefined;
41
41
  } & {}>;
42
- emits: (event: "cancel" | "update:value" | "confirm" | "customRequest", ...args: any[]) => void;
42
+ emits: (event: "update:value" | "confirm" | "customRequest" | "cancel", ...args: any[]) => void;
43
43
  bem: {
44
44
  b: (blockSuffix?: string) => string;
45
45
  e: (element?: string) => string;
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
61
61
  handleDragReject: () => void;
62
62
  handleClickCancelBtn: () => void;
63
63
  handleClickOkBtn: () => void;
64
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "update:value" | "confirm" | "customRequest")[], "cancel" | "update:value" | "confirm" | "customRequest", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "confirm" | "customRequest" | "cancel")[], "update:value" | "confirm" | "customRequest" | "cancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
65
  value: {
66
66
  type: ArrayConstructor;
67
67
  default: () => never[];
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx } from 'vue';
2
- import { Form, InputSearch, Button } from 'ant-design-vue';
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, renderSlot, createElementVNode } from 'vue';
2
+ import { Form } from 'ant-design-vue';
3
3
  import '../../../utils/index.mjs';
4
4
  import EasyCronModal from './components/easy-cron-modal.vue.mjs';
5
5
  import './config/index.mjs';
@@ -38,35 +38,46 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  formItemContext.onFieldChange();
39
39
  }
40
40
  return (_ctx, _cache) => {
41
+ const _component_a_input = resolveComponent("a-input");
41
42
  const _component_ll_icon = resolveComponent("ll-icon");
43
+ const _component_a_button = resolveComponent("a-button");
44
+ const _component_a_input_group = resolveComponent("a-input-group");
42
45
  return openBlock(), createElementBlock(
43
46
  "div",
44
47
  {
45
48
  class: normalizeClass(unref(bem).b())
46
49
  },
47
50
  [
48
- createVNode(unref(InputSearch), {
49
- value: _ctx.value,
50
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
51
- placeholder: _ctx.placeholder,
52
- readonly: "",
53
- onSearch: showConfigModal
51
+ createVNode(_component_a_input_group, {
52
+ compact: "",
53
+ class: normalizeClass(unref(bem).e("search"))
54
54
  }, {
55
- enterButton: withCtx(() => [
56
- createVNode(unref(Button), null, {
57
- default: withCtx(() => [
58
- createVNode(_component_ll_icon, {
59
- "icon-name": "icon-select",
60
- style: { "font-size": "16px", "display": "flex", "align-items": "center" }
61
- })
62
- ]),
63
- _: 1
64
- /* STABLE */
65
- })
55
+ default: withCtx(() => [
56
+ createVNode(_component_a_input, {
57
+ value: _ctx.value,
58
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
59
+ readonly: "",
60
+ placeholder: _ctx.placeholder,
61
+ style: { "width": "calc(100% - 36px)" }
62
+ }, null, 8, ["value", "placeholder"]),
63
+ renderSlot(_ctx.$slots, "rightButton", {}, () => [
64
+ createVNode(_component_a_button, {
65
+ class: normalizeClass(unref(bem).e("search-btn")),
66
+ onClick: showConfigModal
67
+ }, {
68
+ default: withCtx(() => [
69
+ createElementVNode("div", null, [
70
+ createVNode(_component_ll_icon, { "icon-name": "icon-select" })
71
+ ])
72
+ ]),
73
+ _: 1
74
+ /* STABLE */
75
+ }, 8, ["class"])
76
+ ])
66
77
  ]),
67
- _: 1
68
- /* STABLE */
69
- }, 8, ["value", "placeholder"]),
78
+ _: 3
79
+ /* FORWARDED */
80
+ }, 8, ["class"]),
70
81
  createVNode(EasyCronModal, {
71
82
  ref_key: "easyCronModalRef",
72
83
  ref: easyCronModalRef,
@@ -1 +1 @@
1
- {"version":3,"file":"easy-cron.vue2.mjs","sources":["../../../../../../packages/components/easy-cron/src/easy-cron.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <InputSearch\n v-model:value=\"value\"\n :placeholder=\"placeholder\"\n readonly\n @search=\"showConfigModal\"\n >\n <template #enterButton>\n <Button>\n <ll-icon\n icon-name=\"icon-select\"\n style=\"font-size: 16px; display: flex; align-items: center\"\n />\n </Button>\n </template>\n </InputSearch>\n <EasyCronModal\n ref=\"easyCronModalRef\"\n v-model:value=\"editCronValue\"\n :exe-start-time=\"exeStartTime\"\n :hide-year=\"hideYear\"\n :remote=\"remote\"\n :hide-second=\"hideSecond\"\n @ok=\"handleSubmit\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\nimport { Form, Button, InputSearch } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport EasyCronModal from './components/easy-cron-modal.vue'\nimport { easyCronEmits, easyCronProps } from './config'\n\ndefineOptions({ name: 'LlEasyCron' })\n// namespace\nconst bem = createNamespace('easy-cron')\n//props\nconst props = defineProps(easyCronProps)\n//emits\nconst emits = defineEmits(easyCronEmits)\n\nconst editCronValue = ref(props.value)\nconst formItemContext = Form.useInjectFormItemContext()\nconst easyCronModalRef = ref()\n\nwatch(\n () => props.value,\n newVal => {\n if (newVal !== editCronValue.value) {\n editCronValue.value = newVal\n }\n }\n)\n\nfunction showConfigModal() {\n if (props.disabled) return\n easyCronModalRef.value?.openModal()\n}\nfunction handleSubmit() {\n emits('change', editCronValue.value)\n emits('update:value', editCronValue.value)\n formItemContext.onFieldChange()\n}\n</script>\n<!-- \n<style lang=\"less\">\n@import 'easy.cron.input.less';\n@import './index.less';\n</style> -->\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAsCA,IAAM,MAAA,GAAA,GAAM,gBAAgB,WAAW,CAAA,CAAA;AAEvC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,aAAA,GAAgB,GAAI,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACrC,IAAM,MAAA,eAAA,GAAkB,KAAK,wBAAyB,EAAA,CAAA;AACtD,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAE7B,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAU,MAAA,KAAA;AACR,QAAI,IAAA,MAAA,KAAW,cAAc,KAAO,EAAA;AAClC,UAAA,aAAA,CAAc,KAAQ,GAAA,MAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAA,SAAS,eAAkB,GAAA;AACzB,MAAA,IAAI,KAAM,CAAA,QAAA;AAAU,QAAA,OAAA;AACpB,MAAA,gBAAA,CAAiB,OAAO,SAAU,EAAA,CAAA;AAAA,KACpC;AACA,IAAA,SAAS,YAAe,GAAA;AACtB,MAAM,KAAA,CAAA,QAAA,EAAU,cAAc,KAAK,CAAA,CAAA;AACnC,MAAM,KAAA,CAAA,cAAA,EAAgB,cAAc,KAAK,CAAA,CAAA;AACzC,MAAA,eAAA,CAAgB,aAAc,EAAA,CAAA;AAAA,KAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"easy-cron.vue2.mjs","sources":["../../../../../../packages/components/easy-cron/src/easy-cron.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-input-group compact :class=\"bem.e('search')\">\n <a-input\n v-model:value=\"value\"\n readonly\n :placeholder=\"placeholder\"\n style=\"width: calc(100% - 36px)\"\n />\n\n <slot name=\"rightButton\">\n <a-button :class=\"bem.e('search-btn')\" @click=\"showConfigModal\">\n <div>\n <ll-icon icon-name=\"icon-select\" />\n </div>\n </a-button>\n </slot>\n </a-input-group>\n\n <EasyCronModal\n ref=\"easyCronModalRef\"\n v-model:value=\"editCronValue\"\n :exe-start-time=\"exeStartTime\"\n :hide-year=\"hideYear\"\n :remote=\"remote\"\n :hide-second=\"hideSecond\"\n @ok=\"handleSubmit\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\nimport { Form } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport EasyCronModal from './components/easy-cron-modal.vue'\nimport { easyCronEmits, easyCronProps } from './config'\n\ndefineOptions({ name: 'LlEasyCron' })\n// namespace\nconst bem = createNamespace('easy-cron')\n//props\nconst props = defineProps(easyCronProps)\n//emits\nconst emits = defineEmits(easyCronEmits)\n\nconst editCronValue = ref(props.value)\nconst formItemContext = Form.useInjectFormItemContext()\nconst easyCronModalRef = ref()\n\nwatch(\n () => props.value,\n newVal => {\n if (newVal !== editCronValue.value) {\n editCronValue.value = newVal\n }\n }\n)\n\nfunction showConfigModal() {\n if (props.disabled) return\n easyCronModalRef.value?.openModal()\n}\nfunction handleSubmit() {\n emits('change', editCronValue.value)\n emits('update:value', editCronValue.value)\n formItemContext.onFieldChange()\n}\n</script>\n<!-- \n<style lang=\"less\">\n@import 'easy.cron.input.less';\n@import './index.less';\n</style> -->\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwCA,IAAM,MAAA,GAAA,GAAM,gBAAgB,WAAW,CAAA,CAAA;AAEvC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,aAAA,GAAgB,GAAI,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AACrC,IAAM,MAAA,eAAA,GAAkB,KAAK,wBAAyB,EAAA,CAAA;AACtD,IAAA,MAAM,mBAAmB,GAAI,EAAA,CAAA;AAE7B,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAU,MAAA,KAAA;AACR,QAAI,IAAA,MAAA,KAAW,cAAc,KAAO,EAAA;AAClC,UAAA,aAAA,CAAc,KAAQ,GAAA,MAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAA,SAAS,eAAkB,GAAA;AACzB,MAAA,IAAI,KAAM,CAAA,QAAA;AAAU,QAAA,OAAA;AACpB,MAAA,gBAAA,CAAiB,OAAO,SAAU,EAAA,CAAA;AAAA,KACpC;AACA,IAAA,SAAS,YAAe,GAAA;AACtB,MAAM,KAAA,CAAA,QAAA,EAAU,cAAc,KAAK,CAAA,CAAA;AACnC,MAAM,KAAA,CAAA,cAAA,EAAgB,cAAc,KAAK,CAAA,CAAA;AACzC,MAAA,eAAA,CAAgB,aAAc,EAAA,CAAA;AAAA,KAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,8 @@
1
- import { defineComponent, useAttrs, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, unref, renderSlot, createTextVNode } from 'vue';
1
+ import { defineComponent, useAttrs, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, mergeProps, renderSlot, createTextVNode } from 'vue';
2
2
  import '../config/index.mjs';
3
+ import '../../../../utils/index.mjs';
3
4
  import { iconPickerSearchProps, iconPickerSearchEmits } from '../config/search.mjs';
5
+ import { createNamespace } from '../../../../utils/create-namespace.mjs';
4
6
 
5
7
  "use strict";
6
8
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -14,13 +16,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
16
  const props = __props;
15
17
  const emits = __emit;
16
18
  const attrs = useAttrs();
19
+ const bem = createNamespace("icon-picker-search");
17
20
  const handleCloseModalVisible = () => emits("handleModalVisible", true);
18
21
  return (_ctx, _cache) => {
19
22
  const _component_ll_icon = resolveComponent("ll-icon");
20
23
  const _component_a_input = resolveComponent("a-input");
21
24
  const _component_a_button = resolveComponent("a-button");
22
25
  const _component_a_input_group = resolveComponent("a-input-group");
23
- return openBlock(), createBlock(_component_a_input_group, { compact: "" }, {
26
+ return openBlock(), createBlock(_component_a_input_group, {
27
+ compact: "",
28
+ class: normalizeClass(unref(bem).b())
29
+ }, {
24
30
  default: withCtx(() => [
25
31
  createVNode(_component_a_input, mergeProps({
26
32
  value: props.value,
@@ -37,19 +43,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
37
43
  renderSlot(_ctx.$slots, "rightButton", {}, () => [
38
44
  createVNode(_component_a_button, {
39
45
  type: "primary",
46
+ class: normalizeClass(unref(bem).e("btn")),
40
47
  onClick: handleCloseModalVisible
41
48
  }, {
42
49
  default: withCtx(() => [
43
- createTextVNode("\u56FE\u6807")
50
+ createTextVNode("\u56FE\u6807 ")
44
51
  ]),
45
52
  _: 1
46
53
  /* STABLE */
47
- })
54
+ }, 8, ["class"])
48
55
  ])
49
56
  ]),
50
57
  _: 3
51
58
  /* FORWARDED */
52
- });
59
+ }, 8, ["class"]);
53
60
  };
54
61
  }
55
62
  });
@@ -1 +1 @@
1
- {"version":3,"file":"search.vue2.mjs","sources":["../../../../../../../packages/components/icon-picker/src/components/search.vue"],"sourcesContent":["<template>\n <a-input-group compact>\n <a-input\n :value=\"props.value\"\n readonly\n v-bind=\"attrs\"\n style=\"width: calc(100% - 60px)\"\n >\n <template #suffix>\n <ll-icon :icon-name=\"'icon-' + value\" />\n </template>\n </a-input>\n\n <slot name=\"rightButton\">\n <a-button type=\"primary\" @click=\"handleCloseModalVisible\">图标</a-button>\n </slot>\n </a-input-group>\n</template>\n<script lang=\"ts\" setup>\nimport { useAttrs } from 'vue'\n\nimport { iconPickerSearchProps, iconPickerSearchEmits } from '../config'\n\ndefineOptions({\n name: 'LlIconPickerSearch'\n})\n\nconst props = defineProps(iconPickerSearchProps)\nconst emits = defineEmits(iconPickerSearchEmits)\n\nconst attrs = useAttrs()\n\nconst handleCloseModalVisible = () => emits('handleModalVisible', true)\n</script>\n<style lang=\"less\" scoped></style>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA2BA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,uBAA0B,GAAA,MAAM,KAAM,CAAA,oBAAA,EAAsB,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"search.vue2.mjs","sources":["../../../../../../../packages/components/icon-picker/src/components/search.vue"],"sourcesContent":["<template>\n <a-input-group compact :class=\"bem.b()\">\n <a-input\n :value=\"props.value\"\n readonly\n v-bind=\"attrs\"\n style=\"width: calc(100% - 60px)\"\n >\n <template #suffix>\n <ll-icon :icon-name=\"'icon-' + value\" />\n </template>\n </a-input>\n\n <slot name=\"rightButton\">\n <a-button\n type=\"primary\"\n :class=\"bem.e('btn')\"\n @click=\"handleCloseModalVisible\"\n >图标\n </a-button>\n </slot>\n </a-input-group>\n</template>\n<script lang=\"ts\" setup>\nimport { useAttrs } from 'vue'\n\nimport { iconPickerSearchProps, iconPickerSearchEmits } from '../config'\nimport { createNamespace } from '@ll-plus/utils'\n\ndefineOptions({\n name: 'LlIconPickerSearch'\n})\n\nconst props = defineProps(iconPickerSearchProps)\nconst emits = defineEmits(iconPickerSearchEmits)\n\nconst attrs = useAttrs()\nconst bem = createNamespace('icon-picker-search')\nconst handleCloseModalVisible = () => emits('handleModalVisible', true)\n</script>\n<style lang=\"less\" scoped></style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,oBAAoB,CAAA,CAAA;AAChD,IAAA,MAAM,uBAA0B,GAAA,MAAM,KAAM,CAAA,oBAAA,EAAsB,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -28,7 +28,7 @@ const inputProps = buildProps({
28
28
  type: Boolean
29
29
  },
30
30
  /**
31
- * @description 是否显示密码框
31
+ * @description 是否点击清除图标删除内容
32
32
  */
33
33
  allowClear: {
34
34
  type: Boolean,
@@ -1 +1 @@
1
- {"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { InputProps as AntInputProps } from 'ant-design-vue'\nimport type Input from './input.vue'\n\nexport const inputProps = buildProps({\n /**\n * @description input的value\n */\n value: {\n type: definePropType<AntInputProps['value']>(String)\n },\n /**\n * @description 带有前缀图标的 input\n */\n prefixIcon: {\n type: String\n },\n /**\n * @description 带有后缀图标的 input\n */\n suffixIcon: {\n type: String\n },\n /**\n * @description 是否显示密码框\n */\n showPassword: {\n type: Boolean\n },\n /**\n * @description 是否显示密码框\n */\n allowClear: {\n type: Boolean,\n default: true\n }\n} as const)\n\n// props\nexport type InputProps = ExtractPropTypes<typeof inputProps> // ExtractPropTypes和defineCpmponent类似\nexport type InputValue = AntInputProps['value']\n\n// instance\nexport type InputInstance = InstanceType<typeof Input>\n"],"names":[],"mappings":";;;;AAMO,MAAM,aAAa,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAuC,MAAM,CAAA;AAAA,GACrD;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU;;;;"}
1
+ {"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { InputProps as AntInputProps } from 'ant-design-vue'\nimport type Input from './input.vue'\n\nexport const inputProps = buildProps({\n /**\n * @description input的value\n */\n value: {\n type: definePropType<AntInputProps['value']>(String)\n },\n /**\n * @description 带有前缀图标的 input\n */\n prefixIcon: {\n type: String\n },\n /**\n * @description 带有后缀图标的 input\n */\n suffixIcon: {\n type: String\n },\n /**\n * @description 是否显示密码框\n */\n showPassword: {\n type: Boolean\n },\n /**\n * @description 是否点击清除图标删除内容\n */\n allowClear: {\n type: Boolean,\n default: true\n }\n} as const)\n\n// props\nexport type InputProps = ExtractPropTypes<typeof inputProps> // ExtractPropTypes和defineCpmponent类似\nexport type InputValue = AntInputProps['value']\n\n// instance\nexport type InputInstance = InstanceType<typeof Input>\n"],"names":[],"mappings":";;;;AAMO,MAAM,aAAa,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAuC,MAAM,CAAA;AAAA,GACrD;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU;;;;"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, watchEffect, computed, useAttrs, resolveComponent, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode } from 'vue';
1
+ import { defineComponent, ref, watchEffect, computed, useAttrs, onMounted, resolveComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode } from 'vue';
2
2
  import { Input } from 'ant-design-vue';
3
3
  import '../../../utils/index.mjs';
4
4
  import { inputProps } from './input.mjs';
@@ -14,6 +14,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  const props = __props;
15
15
  const innerValue = ref("");
16
16
  const inputRef = ref();
17
+ const allowClear = ref(props.allowClear);
18
+ const handleMouseOver = () => {
19
+ if (props.allowClear) {
20
+ allowClear.value = true;
21
+ }
22
+ };
23
+ const handleMouseOut = (e) => {
24
+ };
17
25
  watchEffect(() => {
18
26
  if (props.value !== innerValue.value) {
19
27
  innerValue.value = props.value;
@@ -27,48 +35,74 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
27
35
  const focus = () => {
28
36
  inputRef.value.focus();
29
37
  };
38
+ onMounted(() => {
39
+ if (props.allowClear) {
40
+ const clearIcon = inputRef.value?.$el.querySelector(".ant-input-clear-icon");
41
+ if (clearIcon) {
42
+ clearIcon.addEventListener("mouseover", (e) => {
43
+ e.stopPropagation();
44
+ allowClear.value = true;
45
+ });
46
+ clearIcon.addEventListener("mouseout", (e) => {
47
+ if (e.relatedTarget && inputRef.value.$el.contains(e.relatedTarget)) {
48
+ return;
49
+ }
50
+ allowClear.value = false;
51
+ });
52
+ }
53
+ }
54
+ });
30
55
  __expose({ focus });
31
56
  return (_ctx, _cache) => {
32
57
  const _component_ll_icon = resolveComponent("ll-icon");
33
- return openBlock(), createBlock(resolveDynamicComponent(unref(componentType)), mergeProps({
34
- ref_key: "inputRef",
35
- ref: inputRef,
36
- class: unref(bem).b()
37
- }, computedAttrs.value, {
38
- "allow-clear": props.allowClear
39
- }), createSlots({
40
- _: 2
41
- /* DYNAMIC */
42
- }, [
43
- renderList(Object.keys(_ctx.$slots), (item) => {
44
- return {
45
- name: item,
46
- fn: withCtx((data) => [
47
- renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
48
- ])
49
- };
50
- }),
51
- _ctx.prefixIcon ? {
52
- name: "prefix",
53
- fn: withCtx(() => [
54
- createVNode(_component_ll_icon, {
55
- "icon-name": _ctx.prefixIcon,
56
- "class-name": "prefix-icon"
57
- }, null, 8, ["icon-name"])
58
- ]),
59
- key: "0"
60
- } : void 0,
61
- _ctx.suffixIcon ? {
62
- name: "suffix",
63
- fn: withCtx(() => [
64
- createVNode(_component_ll_icon, {
65
- "icon-name": _ctx.suffixIcon,
66
- "class-name": "suffix-icon"
67
- }, null, 8, ["icon-name"])
68
- ]),
69
- key: "1"
70
- } : void 0
71
- ]), 1040, ["class", "allow-clear"]);
58
+ return openBlock(), createElementBlock(
59
+ "div",
60
+ {
61
+ onMouseover: handleMouseOver,
62
+ onMouseout: handleMouseOut
63
+ },
64
+ [
65
+ (openBlock(), createBlock(resolveDynamicComponent(unref(componentType)), mergeProps({
66
+ ref_key: "inputRef",
67
+ ref: inputRef,
68
+ class: unref(bem).b()
69
+ }, computedAttrs.value, { "allow-clear": allowClear.value }), createSlots({
70
+ _: 2
71
+ /* DYNAMIC */
72
+ }, [
73
+ renderList(Object.keys(_ctx.$slots), (item) => {
74
+ return {
75
+ name: item,
76
+ fn: withCtx((data) => [
77
+ renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
78
+ ])
79
+ };
80
+ }),
81
+ _ctx.prefixIcon ? {
82
+ name: "prefix",
83
+ fn: withCtx(() => [
84
+ createVNode(_component_ll_icon, {
85
+ "icon-name": _ctx.prefixIcon,
86
+ class: "prefix-icon"
87
+ }, null, 8, ["icon-name"])
88
+ ]),
89
+ key: "0"
90
+ } : void 0,
91
+ _ctx.suffixIcon ? {
92
+ name: "suffix",
93
+ fn: withCtx(() => [
94
+ createVNode(_component_ll_icon, {
95
+ "icon-name": _ctx.suffixIcon,
96
+ class: "suffix-icon"
97
+ }, null, 8, ["icon-name"])
98
+ ]),
99
+ key: "1"
100
+ } : void 0
101
+ ]), 1040, ["class", "allow-clear"]))
102
+ ],
103
+ 32
104
+ /* NEED_HYDRATION */
105
+ );
72
106
  };
73
107
  }
74
108
  });
@@ -1 +1 @@
1
- {"version":3,"file":"input.vue2.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <component\n :is=\"componentType\"\n ref=\"inputRef\"\n :class=\"bem.b()\"\n v-bind=\"computedAttrs\"\n :allow-clear=\"props.allowClear\"\n >\n <template v-for=\"item in Object.keys($slots)\" :key=\"item\" #[item]=\"data\">\n <slot :name=\"item\" v-bind=\"data || {}\"></slot>\n </template>\n <template v-if=\"prefixIcon\" #prefix>\n <ll-icon :icon-name=\"prefixIcon\" class-name=\"prefix-icon\" />\n </template>\n <template v-if=\"suffixIcon\" #suffix>\n <ll-icon :icon-name=\"suffixIcon\" class-name=\"suffix-icon\" />\n </template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, useAttrs, watchEffect } from 'vue'\nimport { Input } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { InputValue, inputProps } from './input'\n\ndefineOptions({ name: 'LlInput' })\n\nconst bem = createNamespace('input')\n\nconst props = defineProps(inputProps)\n\nconst innerValue = ref<InputValue>('')\n\nconst inputRef = ref()\n\nwatchEffect(() => {\n if (props.value !== innerValue.value) {\n innerValue.value = props.value\n }\n})\n\nconst componentType = props.showPassword ? Input.Password : Input\n\nconst computedAttrs = computed(() => {\n const attrs = { ...useAttrs(), ...props }\n\n return attrs\n})\n\nconst focus = () => {\n inputRef.value.focus()\n}\n\ndefineExpose({ focus })\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AA4BA,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAEnC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,UAAA,GAAa,IAAgB,EAAE,CAAA,CAAA;AAErC,IAAA,MAAM,WAAW,GAAI,EAAA,CAAA;AAErB,IAAA,WAAA,CAAY,MAAM;AAChB,MAAI,IAAA,KAAA,CAAM,KAAU,KAAA,UAAA,CAAW,KAAO,EAAA;AACpC,QAAA,UAAA,CAAW,QAAQ,KAAM,CAAA,KAAA,CAAA;AAAA,OAC3B;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,aAAgB,GAAA,KAAA,CAAM,YAAe,GAAA,KAAA,CAAM,QAAW,GAAA,KAAA,CAAA;AAE5D,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,MAAM,QAAQ,EAAE,GAAG,QAAS,EAAA,EAAG,GAAG,KAAM,EAAA,CAAA;AAExC,MAAO,OAAA,KAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,MAAM;AAClB,MAAA,QAAA,CAAS,MAAM,KAAM,EAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAa,QAAA,CAAA,EAAE,OAAO,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input.vue2.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div @mouseover=\"handleMouseOver\" @mouseout=\"handleMouseOut\">\n <component\n :is=\"componentType\"\n ref=\"inputRef\"\n :class=\"bem.b()\"\n v-bind=\"computedAttrs\"\n :allow-clear=\"allowClear\"\n >\n <template v-for=\"item in Object.keys($slots)\" :key=\"item\" #[item]=\"data\">\n <slot :name=\"item\" v-bind=\"data || {}\"></slot>\n </template>\n <template v-if=\"prefixIcon\" #prefix>\n <ll-icon :icon-name=\"prefixIcon\" class=\"prefix-icon\" />\n </template>\n <template v-if=\"suffixIcon\" #suffix>\n <ll-icon :icon-name=\"suffixIcon\" class=\"suffix-icon\" />\n </template>\n </component>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, useAttrs, watchEffect, onMounted } from 'vue'\nimport { Input } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { InputValue, inputProps } from './input'\n\ndefineOptions({ name: 'LlInput' })\n\nconst bem = createNamespace('input')\n\nconst props = defineProps(inputProps)\n\nconst innerValue = ref<InputValue>('')\n\nconst inputRef = ref()\n\nconst allowClear = ref(props.allowClear)\n\n// 鼠标移入事件\nconst handleMouseOver = () => {\n if (props.allowClear) {\n allowClear.value = true\n }\n}\n\n// 鼠标移出事件\nconst handleMouseOut = (e: any) => {\n // if (!props.allowClear) {\n // return\n // }\n // if (\n // e.relatedTarget &&\n // (e.relatedTarget.classList.contains('ant-input-clear-icon') ||\n // e.relatedTarget.closest('.ant-input-clear-icon'))\n // ) {\n // return\n // }\n // allowClear.value = false\n}\n\nwatchEffect(() => {\n if (props.value !== innerValue.value) {\n innerValue.value = props.value\n }\n})\n\nconst componentType = props.showPassword ? Input.Password : Input\n\nconst computedAttrs = computed(() => {\n const attrs = { ...useAttrs(), ...props }\n\n return attrs\n})\n\nconst focus = () => {\n inputRef.value.focus()\n}\n\n// 给图标阻止冒泡事件\nonMounted(() => {\n if (props.allowClear) {\n const clearIcon = inputRef.value?.$el.querySelector('.ant-input-clear-icon')\n if (clearIcon) {\n clearIcon.addEventListener('mouseover', (e: any) => {\n e.stopPropagation()\n allowClear.value = true\n })\n clearIcon.addEventListener('mouseout', (e: any) => {\n if (e.relatedTarget && inputRef.value.$el.contains(e.relatedTarget)) {\n return\n }\n allowClear.value = false\n })\n }\n }\n})\n\ndefineExpose({ focus })\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AA8BA,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAEnC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,UAAA,GAAa,IAAgB,EAAE,CAAA,CAAA;AAErC,IAAA,MAAM,WAAW,GAAI,EAAA,CAAA;AAErB,IAAM,MAAA,UAAA,GAAa,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAGvC,IAAA,MAAM,kBAAkB,MAAM;AAC5B,MAAA,IAAI,MAAM,UAAY,EAAA;AACpB,QAAA,UAAA,CAAW,KAAQ,GAAA,IAAA,CAAA;AAAA,OACrB;AAAA,KACF,CAAA;AAGA,IAAM,MAAA,cAAA,GAAiB,CAAC,CAAW,KAAA;AAAA,KAYnC,CAAA;AAEA,IAAA,WAAA,CAAY,MAAM;AAChB,MAAI,IAAA,KAAA,CAAM,KAAU,KAAA,UAAA,CAAW,KAAO,EAAA;AACpC,QAAA,UAAA,CAAW,QAAQ,KAAM,CAAA,KAAA,CAAA;AAAA,OAC3B;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,aAAgB,GAAA,KAAA,CAAM,YAAe,GAAA,KAAA,CAAM,QAAW,GAAA,KAAA,CAAA;AAE5D,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,MAAM,QAAQ,EAAE,GAAG,QAAS,EAAA,EAAG,GAAG,KAAM,EAAA,CAAA;AAExC,MAAO,OAAA,KAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,MAAM;AAClB,MAAA,QAAA,CAAS,MAAM,KAAM,EAAA,CAAA;AAAA,KACvB,CAAA;AAGA,IAAA,SAAA,CAAU,MAAM;AACd,MAAA,IAAI,MAAM,UAAY,EAAA;AACpB,QAAA,MAAM,SAAY,GAAA,QAAA,CAAS,KAAO,EAAA,GAAA,CAAI,cAAc,uBAAuB,CAAA,CAAA;AAC3E,QAAA,IAAI,SAAW,EAAA;AACb,UAAU,SAAA,CAAA,gBAAA,CAAiB,WAAa,EAAA,CAAC,CAAW,KAAA;AAClD,YAAA,CAAA,CAAE,eAAgB,EAAA,CAAA;AAClB,YAAA,UAAA,CAAW,KAAQ,GAAA,IAAA,CAAA;AAAA,WACpB,CAAA,CAAA;AACD,UAAU,SAAA,CAAA,gBAAA,CAAiB,UAAY,EAAA,CAAC,CAAW,KAAA;AACjD,YAAI,IAAA,CAAA,CAAE,iBAAiB,QAAS,CAAA,KAAA,CAAM,IAAI,QAAS,CAAA,CAAA,CAAE,aAAa,CAAG,EAAA;AACnE,cAAA,OAAA;AAAA,aACF;AACA,YAAA,UAAA,CAAW,KAAQ,GAAA,KAAA,CAAA;AAAA,WACpB,CAAA,CAAA;AAAA,SACH;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAED,IAAa,QAAA,CAAA,EAAE,OAAO,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}