ll-plus 2.6.17 → 2.6.19

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 (245) hide show
  1. package/es/components/advanced-filtering/index.d.ts +672 -284
  2. package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +336 -142
  3. package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +336 -142
  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/cropper/index.d.ts +19 -0
  12. package/es/components/cropper/src/cropper-image.d.ts +2 -0
  13. package/es/components/cropper/src/cropper-image.vue.d.ts +6 -0
  14. package/es/components/cropper/src/cropper-modal.vue.d.ts +13 -0
  15. package/es/components/drawer/index.d.ts +5 -5
  16. package/es/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  17. package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  18. package/es/components/drawer/src/drawer.vue.d.ts +5 -5
  19. package/es/components/easy-cron/index.d.ts +95 -95
  20. package/es/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  21. package/es/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  22. package/es/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
  23. package/es/components/form/index.d.ts +339 -142
  24. package/es/components/form/src/components/form-component.vue.d.ts +4 -1
  25. package/es/components/form/src/config/form.d.ts +59 -56
  26. package/es/components/form/src/form.vue.d.ts +335 -141
  27. package/es/components/icon-picker/index.d.ts +4 -0
  28. package/es/components/icon-picker/src/components/modal.vue.d.ts +4 -0
  29. package/es/components/icon-picker/src/icon-picker.vue.d.ts +4 -0
  30. package/es/components/input/index.d.ts +35 -33
  31. package/es/components/input/src/input.vue.d.ts +35 -33
  32. package/es/components/input-number/index.d.ts +2 -0
  33. package/es/components/input-number/src/input-number.vue.d.ts +2 -0
  34. package/es/components/key-value/index.d.ts +1835 -680
  35. package/es/components/key-value/src/components/key-value-item.vue.d.ts +611 -226
  36. package/es/components/key-value/src/key-value.vue.d.ts +1835 -680
  37. package/es/components/modal/index.d.ts +1 -1
  38. package/es/components/modal/src/modal.vue.d.ts +1 -1
  39. package/es/components/new-drawer/index.d.ts +7 -7
  40. package/es/components/new-drawer/src/drawer.vue.d.ts +7 -7
  41. package/es/components/new-modal/index.d.ts +2 -2
  42. package/es/components/new-modal/src/modal.vue.d.ts +2 -2
  43. package/es/components/number-range/index.d.ts +2 -0
  44. package/es/components/number-range/src/number-range.vue.d.ts +2 -0
  45. package/es/components/rich-text-editor/index.d.ts +1 -1
  46. package/es/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  47. package/es/components/select/index.d.ts +4 -4
  48. package/es/components/select/src/select.vue.d.ts +4 -4
  49. package/es/components/select-group/index.d.ts +2 -2
  50. package/es/components/select-group/src/select-group.d.ts +1 -1
  51. package/es/components/select-group/src/select-group.vue.d.ts +2 -2
  52. package/es/components/table/index.d.ts +6 -6
  53. package/es/components/table/src/components/main-table.vue.d.ts +2 -2
  54. package/es/components/table/src/config/table.d.ts +2 -2
  55. package/es/components/table/src/table.vue.d.ts +6 -6
  56. package/es/components/textarea/index.d.ts +5 -5
  57. package/es/components/textarea/src/textarea.vue.d.ts +5 -5
  58. package/es/components/tooltip/index.d.ts +4 -4
  59. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  60. package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
  61. package/es/components/tree-search/index.d.ts +1 -1
  62. package/es/components/tree-search/src/tree-search.vue.d.ts +1 -1
  63. package/es/components/upload-drag/index.d.ts +2 -2
  64. package/es/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
  65. package/es/packages/components/cropper/src/cropper-image.mjs +8 -0
  66. package/es/packages/components/cropper/src/cropper-image.mjs.map +1 -1
  67. package/es/packages/components/cropper/src/cropper-image.vue2.mjs +43 -22
  68. package/es/packages/components/cropper/src/cropper-image.vue2.mjs.map +1 -1
  69. package/es/packages/components/cropper/src/cropper-modal.vue2.mjs +108 -72
  70. package/es/packages/components/cropper/src/cropper-modal.vue2.mjs.map +1 -1
  71. package/es/packages/components/form/src/components/form-component.vue2.mjs +19 -2
  72. package/es/packages/components/form/src/components/form-component.vue2.mjs.map +1 -1
  73. package/es/packages/components/form/src/config/form.mjs +21 -0
  74. package/es/packages/components/form/src/config/form.mjs.map +1 -1
  75. package/es/packages/components/form/src/form.vue2.mjs +56 -5
  76. package/es/packages/components/form/src/form.vue2.mjs.map +1 -1
  77. package/es/packages/components/icon-picker/src/components/modal.vue2.mjs +97 -76
  78. package/es/packages/components/icon-picker/src/components/modal.vue2.mjs.map +1 -1
  79. package/es/packages/components/input/src/input.vue2.mjs +8 -1
  80. package/es/packages/components/input/src/input.vue2.mjs.map +1 -1
  81. package/es/packages/components/input-number/src/input-number.vue2.mjs +8 -1
  82. package/es/packages/components/input-number/src/input-number.vue2.mjs.map +1 -1
  83. package/es/packages/components/key-value/src/config/key-value.mjs +2 -2
  84. package/es/packages/components/key-value/src/config/key-value.mjs.map +1 -1
  85. package/es/packages/components/select-group/src/select-group.vue2.mjs +1 -0
  86. package/es/packages/components/select-group/src/select-group.vue2.mjs.map +1 -1
  87. package/index.full.js +363 -175
  88. package/index.full.min.js +17 -17
  89. package/index.full.min.js.map +1 -1
  90. package/index.full.min.mjs +21 -21
  91. package/index.full.min.mjs.map +1 -1
  92. package/index.full.mjs +363 -175
  93. package/lib/components/advanced-filtering/index.d.ts +672 -284
  94. package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +336 -142
  95. package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +336 -142
  96. package/lib/components/breadcrumb-card/index.d.ts +1 -1
  97. package/lib/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
  98. package/lib/components/cascader/index.d.ts +8 -8
  99. package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
  100. package/lib/components/checkbox/index.d.ts +217 -217
  101. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
  102. package/lib/components/checkbox/src/checkbox.d.ts +56 -56
  103. package/lib/components/cropper/index.d.ts +19 -0
  104. package/lib/components/cropper/src/cropper-image.d.ts +2 -0
  105. package/lib/components/cropper/src/cropper-image.vue.d.ts +6 -0
  106. package/lib/components/cropper/src/cropper-modal.vue.d.ts +13 -0
  107. package/lib/components/drawer/index.d.ts +5 -5
  108. package/lib/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  109. package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  110. package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
  111. package/lib/components/easy-cron/index.d.ts +95 -95
  112. package/lib/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  113. package/lib/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  114. package/lib/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
  115. package/lib/components/form/index.d.ts +339 -142
  116. package/lib/components/form/src/components/form-component.vue.d.ts +4 -1
  117. package/lib/components/form/src/config/form.d.ts +59 -56
  118. package/lib/components/form/src/form.vue.d.ts +335 -141
  119. package/lib/components/icon-picker/index.d.ts +4 -0
  120. package/lib/components/icon-picker/src/components/modal.vue.d.ts +4 -0
  121. package/lib/components/icon-picker/src/icon-picker.vue.d.ts +4 -0
  122. package/lib/components/input/index.d.ts +35 -33
  123. package/lib/components/input/src/input.vue.d.ts +35 -33
  124. package/lib/components/input-number/index.d.ts +2 -0
  125. package/lib/components/input-number/src/input-number.vue.d.ts +2 -0
  126. package/lib/components/key-value/index.d.ts +1835 -680
  127. package/lib/components/key-value/src/components/key-value-item.vue.d.ts +611 -226
  128. package/lib/components/key-value/src/key-value.vue.d.ts +1835 -680
  129. package/lib/components/modal/index.d.ts +1 -1
  130. package/lib/components/modal/src/modal.vue.d.ts +1 -1
  131. package/lib/components/new-drawer/index.d.ts +7 -7
  132. package/lib/components/new-drawer/src/drawer.vue.d.ts +7 -7
  133. package/lib/components/new-modal/index.d.ts +2 -2
  134. package/lib/components/new-modal/src/modal.vue.d.ts +2 -2
  135. package/lib/components/number-range/index.d.ts +2 -0
  136. package/lib/components/number-range/src/number-range.vue.d.ts +2 -0
  137. package/lib/components/rich-text-editor/index.d.ts +1 -1
  138. package/lib/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  139. package/lib/components/select/index.d.ts +4 -4
  140. package/lib/components/select/src/select.vue.d.ts +4 -4
  141. package/lib/components/select-group/index.d.ts +2 -2
  142. package/lib/components/select-group/src/select-group.d.ts +1 -1
  143. package/lib/components/select-group/src/select-group.vue.d.ts +2 -2
  144. package/lib/components/table/index.d.ts +6 -6
  145. package/lib/components/table/src/components/main-table.vue.d.ts +2 -2
  146. package/lib/components/table/src/config/table.d.ts +2 -2
  147. package/lib/components/table/src/table.vue.d.ts +6 -6
  148. package/lib/components/textarea/index.d.ts +5 -5
  149. package/lib/components/textarea/src/textarea.vue.d.ts +5 -5
  150. package/lib/components/tooltip/index.d.ts +4 -4
  151. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  152. package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
  153. package/lib/components/tree-search/index.d.ts +1 -1
  154. package/lib/components/tree-search/src/tree-search.vue.d.ts +1 -1
  155. package/lib/components/upload-drag/index.d.ts +2 -2
  156. package/lib/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
  157. package/lib/packages/components/cropper/src/cropper-image.js +8 -0
  158. package/lib/packages/components/cropper/src/cropper-image.js.map +1 -1
  159. package/lib/packages/components/cropper/src/cropper-image.vue2.js +42 -21
  160. package/lib/packages/components/cropper/src/cropper-image.vue2.js.map +1 -1
  161. package/lib/packages/components/cropper/src/cropper-modal.vue2.js +107 -71
  162. package/lib/packages/components/cropper/src/cropper-modal.vue2.js.map +1 -1
  163. package/lib/packages/components/form/src/components/form-component.vue2.js +18 -1
  164. package/lib/packages/components/form/src/components/form-component.vue2.js.map +1 -1
  165. package/lib/packages/components/form/src/config/form.js +21 -0
  166. package/lib/packages/components/form/src/config/form.js.map +1 -1
  167. package/lib/packages/components/form/src/form.vue2.js +54 -3
  168. package/lib/packages/components/form/src/form.vue2.js.map +1 -1
  169. package/lib/packages/components/icon-picker/src/components/modal.vue2.js +96 -75
  170. package/lib/packages/components/icon-picker/src/components/modal.vue2.js.map +1 -1
  171. package/lib/packages/components/input/src/input.vue2.js +8 -1
  172. package/lib/packages/components/input/src/input.vue2.js.map +1 -1
  173. package/lib/packages/components/input-number/src/input-number.vue2.js +8 -1
  174. package/lib/packages/components/input-number/src/input-number.vue2.js.map +1 -1
  175. package/lib/packages/components/key-value/src/config/key-value.js +2 -2
  176. package/lib/packages/components/key-value/src/config/key-value.js.map +1 -1
  177. package/lib/packages/components/select-group/src/select-group.vue2.js +1 -0
  178. package/lib/packages/components/select-group/src/select-group.vue2.js.map +1 -1
  179. package/package.json +1 -1
  180. package/theme-chalk/css/icon-picker.css +1 -1
  181. package/theme-chalk/css/index.css +1 -1
  182. package/types/packages/components/advanced-filtering/index.d.ts +672 -284
  183. package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +336 -142
  184. package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +336 -142
  185. package/types/packages/components/breadcrumb-card/index.d.ts +1 -1
  186. package/types/packages/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
  187. package/types/packages/components/cascader/index.d.ts +8 -8
  188. package/types/packages/components/cascader/src/cascader.vue.d.ts +8 -8
  189. package/types/packages/components/checkbox/index.d.ts +217 -217
  190. package/types/packages/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
  191. package/types/packages/components/checkbox/src/checkbox.d.ts +56 -56
  192. package/types/packages/components/cropper/index.d.ts +19 -0
  193. package/types/packages/components/cropper/src/cropper-image.d.ts +2 -0
  194. package/types/packages/components/cropper/src/cropper-image.vue.d.ts +6 -0
  195. package/types/packages/components/cropper/src/cropper-modal.vue.d.ts +13 -0
  196. package/types/packages/components/drawer/index.d.ts +5 -5
  197. package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
  198. package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
  199. package/types/packages/components/drawer/src/drawer.vue.d.ts +5 -5
  200. package/types/packages/components/easy-cron/index.d.ts +95 -95
  201. package/types/packages/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
  202. package/types/packages/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
  203. package/types/packages/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
  204. package/types/packages/components/form/index.d.ts +339 -142
  205. package/types/packages/components/form/src/components/form-component.vue.d.ts +4 -1
  206. package/types/packages/components/form/src/config/form.d.ts +59 -56
  207. package/types/packages/components/form/src/form.vue.d.ts +335 -141
  208. package/types/packages/components/icon-picker/index.d.ts +4 -0
  209. package/types/packages/components/icon-picker/src/components/modal.vue.d.ts +4 -0
  210. package/types/packages/components/icon-picker/src/icon-picker.vue.d.ts +4 -0
  211. package/types/packages/components/input/index.d.ts +35 -33
  212. package/types/packages/components/input/src/input.vue.d.ts +35 -33
  213. package/types/packages/components/input-number/index.d.ts +2 -0
  214. package/types/packages/components/input-number/src/input-number.vue.d.ts +2 -0
  215. package/types/packages/components/key-value/index.d.ts +1835 -680
  216. package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +611 -226
  217. package/types/packages/components/key-value/src/key-value.vue.d.ts +1835 -680
  218. package/types/packages/components/modal/index.d.ts +1 -1
  219. package/types/packages/components/modal/src/modal.vue.d.ts +1 -1
  220. package/types/packages/components/new-drawer/index.d.ts +7 -7
  221. package/types/packages/components/new-drawer/src/drawer.vue.d.ts +7 -7
  222. package/types/packages/components/new-modal/index.d.ts +2 -2
  223. package/types/packages/components/new-modal/src/modal.vue.d.ts +2 -2
  224. package/types/packages/components/number-range/index.d.ts +2 -0
  225. package/types/packages/components/number-range/src/number-range.vue.d.ts +2 -0
  226. package/types/packages/components/rich-text-editor/index.d.ts +1 -1
  227. package/types/packages/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
  228. package/types/packages/components/select/index.d.ts +4 -4
  229. package/types/packages/components/select/src/select.vue.d.ts +4 -4
  230. package/types/packages/components/select-group/index.d.ts +2 -2
  231. package/types/packages/components/select-group/src/select-group.d.ts +1 -1
  232. package/types/packages/components/select-group/src/select-group.vue.d.ts +2 -2
  233. package/types/packages/components/table/index.d.ts +6 -6
  234. package/types/packages/components/table/src/components/main-table.vue.d.ts +2 -2
  235. package/types/packages/components/table/src/config/table.d.ts +2 -2
  236. package/types/packages/components/table/src/table.vue.d.ts +6 -6
  237. package/types/packages/components/textarea/index.d.ts +5 -5
  238. package/types/packages/components/textarea/src/textarea.vue.d.ts +5 -5
  239. package/types/packages/components/tooltip/index.d.ts +4 -4
  240. package/types/packages/components/tooltip/src/tooltip.d.ts +1 -1
  241. package/types/packages/components/tooltip/src/tooltip.vue.d.ts +4 -4
  242. package/types/packages/components/tree-search/index.d.ts +1 -1
  243. package/types/packages/components/tree-search/src/tree-search.vue.d.ts +1 -1
  244. package/types/packages/components/upload-drag/index.d.ts +2 -2
  245. package/types/packages/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
package/index.full.mjs CHANGED
@@ -50121,6 +50121,10 @@ const cropperImageProps = buildProps({
50121
50121
  type: Boolean,
50122
50122
  default: false
50123
50123
  },
50124
+ loading: {
50125
+ type: Boolean,
50126
+ default: false
50127
+ },
50124
50128
  realTimePreview: {
50125
50129
  type: Boolean,
50126
50130
  default: true
@@ -50158,6 +50162,10 @@ const cropperModalProps = buildProps({
50158
50162
  type: Boolean,
50159
50163
  default: false
50160
50164
  },
50165
+ loading: {
50166
+ type: Boolean,
50167
+ default: false
50168
+ },
50161
50169
  avatar: {
50162
50170
  type: String,
50163
50171
  default: ""
@@ -50196,6 +50204,7 @@ var _sfc_main$17 = /* @__PURE__ */ defineComponent({
50196
50204
  const imgElRef = ref();
50197
50205
  const cropper = ref();
50198
50206
  const isReady = ref(false);
50207
+ const loading = ref(props.loading);
50199
50208
  const getImageStyle = computed(() => {
50200
50209
  return {
50201
50210
  height: props.height,
@@ -50211,10 +50220,12 @@ var _sfc_main$17 = /* @__PURE__ */ defineComponent({
50211
50220
  if (!imgEl) {
50212
50221
  return;
50213
50222
  }
50223
+ loading.value = true;
50214
50224
  cropper.value = new Cropper(imgEl, {
50215
50225
  ...defaultCropperOptions,
50216
50226
  ready() {
50217
50227
  isReady.value = true;
50228
+ loading.value = false;
50218
50229
  realTimeCroppered();
50219
50230
  emits("onReady", cropper.value);
50220
50231
  },
@@ -50280,32 +50291,50 @@ var _sfc_main$17 = /* @__PURE__ */ defineComponent({
50280
50291
  context.fill();
50281
50292
  return canvas;
50282
50293
  };
50294
+ const handleLoading = () => {
50295
+ loading.value = true;
50296
+ console.log("loading");
50297
+ };
50283
50298
  onMounted(init);
50284
50299
  onUnmounted(() => {
50285
50300
  cropper.value?.destroy();
50286
50301
  });
50302
+ watch(
50303
+ () => props.loading,
50304
+ (val) => {
50305
+ loading.value = val;
50306
+ }
50307
+ );
50287
50308
  return (_ctx, _cache) => {
50288
- return openBlock(), createElementBlock(
50289
- "div",
50290
- {
50291
- class: normalizeClass([unref(bem).b(), props.circled ? unref(bem).is("circled") : ""]),
50292
- style: normalizeStyle(getWrapperStyle.value)
50293
- },
50294
- [
50295
- withDirectives(createElementVNode("img", {
50296
- ref_key: "imgElRef",
50297
- ref: imgElRef,
50298
- src: _ctx.src,
50299
- alt: _ctx.alt,
50300
- crossorigin: _ctx.crossorigin,
50301
- style: normalizeStyle(getImageStyle.value)
50302
- }, null, 12, _hoisted_1$h), [
50303
- [vShow, isReady.value]
50304
- ])
50305
- ],
50306
- 6
50307
- /* CLASS, STYLE */
50308
- );
50309
+ const _component_a_spin = resolveComponent("a-spin");
50310
+ return openBlock(), createBlock(_component_a_spin, { spinning: loading.value }, {
50311
+ default: withCtx(() => [
50312
+ createElementVNode(
50313
+ "div",
50314
+ {
50315
+ class: normalizeClass([unref(bem).b(), props.circled ? unref(bem).is("circled") : ""]),
50316
+ style: normalizeStyle(getWrapperStyle.value)
50317
+ },
50318
+ [
50319
+ withDirectives(createElementVNode("img", {
50320
+ ref_key: "imgElRef",
50321
+ ref: imgElRef,
50322
+ src: _ctx.src,
50323
+ alt: _ctx.alt,
50324
+ crossorigin: _ctx.crossorigin,
50325
+ style: normalizeStyle(getImageStyle.value),
50326
+ onLoad: handleLoading
50327
+ }, null, 44, _hoisted_1$h), [
50328
+ [vShow, isReady.value]
50329
+ ])
50330
+ ],
50331
+ 6
50332
+ /* CLASS, STYLE */
50333
+ )
50334
+ ]),
50335
+ _: 1
50336
+ /* STABLE */
50337
+ }, 8, ["spinning"]);
50309
50338
  };
50310
50339
  }
50311
50340
  });
@@ -50318,7 +50347,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50318
50347
  __name: "cropper-modal",
50319
50348
  props: cropperModalProps,
50320
50349
  emits: cropperModalEmits,
50321
- setup(__props, { emit: __emit }) {
50350
+ setup(__props, { expose: __expose, emit: __emit }) {
50322
50351
  const props = __props;
50323
50352
  const emits = __emit;
50324
50353
  const bem = createNamespace("cropper-modal");
@@ -50326,16 +50355,23 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50326
50355
  const avatar = ref(props.avatar || "");
50327
50356
  const open = ref(false);
50328
50357
  const previewSource = ref("");
50358
+ const loading = ref(props.loading);
50359
+ const uploadLoading = ref(false);
50329
50360
  const cropper = ref();
50330
50361
  let scaleX = 1;
50331
50362
  let scaleY = 1;
50332
50363
  function handleBeforeUpload(file) {
50333
50364
  const reader = new FileReader();
50334
50365
  reader.readAsDataURL(file);
50366
+ uploadLoading.value = true;
50335
50367
  src.value = "";
50336
50368
  previewSource.value = "";
50337
50369
  reader.onload = function(e) {
50338
50370
  src.value = e.target?.result ?? "";
50371
+ uploadLoading.value = false;
50372
+ };
50373
+ reader.onerror = () => {
50374
+ uploadLoading.value = false;
50339
50375
  };
50340
50376
  return false;
50341
50377
  }
@@ -50365,10 +50401,13 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50365
50401
  avatar.value = previewSource.value;
50366
50402
  open.value = false;
50367
50403
  }
50404
+ const cleanValue = () => {
50405
+ src.value = "";
50406
+ avatar.value = "";
50407
+ };
50368
50408
  watch(
50369
50409
  () => props.avatar,
50370
50410
  (val) => {
50371
- console.log({ val });
50372
50411
  src.value = val;
50373
50412
  avatar.value = val;
50374
50413
  },
@@ -50376,6 +50415,12 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50376
50415
  immediate: true
50377
50416
  }
50378
50417
  );
50418
+ watchEffect(() => {
50419
+ loading.value = props.loading;
50420
+ });
50421
+ __expose({
50422
+ cleanValue
50423
+ });
50379
50424
  return (_ctx, _cache) => {
50380
50425
  const _component_ll_icon = resolveComponent("ll-icon");
50381
50426
  const _component_ll_button = resolveComponent("ll-button");
@@ -50383,6 +50428,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50383
50428
  const _component_a_upload = resolveComponent("a-upload");
50384
50429
  const _component_ll_space = resolveComponent("ll-space");
50385
50430
  const _component_ll_image = resolveComponent("ll-image");
50431
+ const _component_a_spin = resolveComponent("a-spin");
50386
50432
  const _component_ll_modal = resolveComponent("ll-modal");
50387
50433
  return openBlock(), createElementBlock(
50388
50434
  Fragment,
@@ -50395,6 +50441,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50395
50441
  keyboard: false,
50396
50442
  "mask-closable": false,
50397
50443
  "ok-text": "\u786E\u5B9A",
50444
+ loading: uploadLoading.value,
50398
50445
  onCancel: _cache[8] || (_cache[8] = ($event) => open.value = false),
50399
50446
  onOk: handleOk
50400
50447
  }, {
@@ -50422,9 +50469,10 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50422
50469
  src: src.value,
50423
50470
  height: "300px",
50424
50471
  circled: _ctx.circled,
50472
+ loading: uploadLoading.value,
50425
50473
  onCropend: handleCropend,
50426
50474
  onOnReady: handleReady
50427
- }, null, 8, ["src", "circled"])) : createCommentVNode("v-if", true)
50475
+ }, null, 8, ["src", "circled", "loading"])) : createCommentVNode("v-if", true)
50428
50476
  ],
50429
50477
  2
50430
50478
  /* CLASS */
@@ -50449,6 +50497,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50449
50497
  createVNode(_component_ll_button, {
50450
50498
  type: "primary",
50451
50499
  size: "small",
50500
+ disabled: uploadLoading.value,
50452
50501
  onClick: _cache[0] || (_cache[0] = ($event) => handlerToolbar("reset"))
50453
50502
  }, {
50454
50503
  default: withCtx(() => [
@@ -50456,7 +50505,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50456
50505
  ]),
50457
50506
  _: 1
50458
50507
  /* STABLE */
50459
- })
50508
+ }, 8, ["disabled"])
50460
50509
  ]),
50461
50510
  _: 1
50462
50511
  /* STABLE */
@@ -50475,7 +50524,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50475
50524
  createVNode(_component_ll_button, {
50476
50525
  type: "primary",
50477
50526
  size: "small",
50478
- disabled: !src.value,
50527
+ disabled: !src.value || uploadLoading.value,
50479
50528
  onClick: _cache[1] || (_cache[1] = ($event) => handlerToolbar("reset"))
50480
50529
  }, {
50481
50530
  default: withCtx(() => [
@@ -50496,7 +50545,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50496
50545
  createVNode(_component_ll_button, {
50497
50546
  type: "primary",
50498
50547
  size: "small",
50499
- disabled: !src.value,
50548
+ disabled: !src.value || uploadLoading.value,
50500
50549
  onClick: _cache[2] || (_cache[2] = ($event) => handlerToolbar("rotate", -45))
50501
50550
  }, {
50502
50551
  default: withCtx(() => [
@@ -50517,7 +50566,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50517
50566
  createVNode(_component_ll_button, {
50518
50567
  type: "primary",
50519
50568
  size: "small",
50520
- disabled: !src.value,
50569
+ disabled: !src.value || uploadLoading.value,
50521
50570
  onClick: _cache[3] || (_cache[3] = ($event) => handlerToolbar("rotate", 45))
50522
50571
  }, {
50523
50572
  default: withCtx(() => [
@@ -50538,7 +50587,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50538
50587
  createVNode(_component_ll_button, {
50539
50588
  type: "primary",
50540
50589
  size: "small",
50541
- disabled: !src.value,
50590
+ disabled: !src.value || uploadLoading.value,
50542
50591
  onClick: _cache[4] || (_cache[4] = ($event) => handlerToolbar("scaleX"))
50543
50592
  }, {
50544
50593
  default: withCtx(() => [
@@ -50559,7 +50608,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50559
50608
  createVNode(_component_ll_button, {
50560
50609
  type: "primary",
50561
50610
  size: "small",
50562
- disabled: !src.value,
50611
+ disabled: !src.value || uploadLoading.value,
50563
50612
  onClick: _cache[5] || (_cache[5] = ($event) => handlerToolbar("scaleY"))
50564
50613
  }, {
50565
50614
  default: withCtx(() => [
@@ -50580,7 +50629,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50580
50629
  createVNode(_component_ll_button, {
50581
50630
  type: "primary",
50582
50631
  size: "small",
50583
- disabled: !src.value,
50632
+ disabled: !src.value || uploadLoading.value,
50584
50633
  onClick: _cache[6] || (_cache[6] = ($event) => handlerToolbar("zoom", 0.1))
50585
50634
  }, {
50586
50635
  default: withCtx(() => [
@@ -50601,7 +50650,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50601
50650
  createVNode(_component_ll_button, {
50602
50651
  type: "primary",
50603
50652
  size: "small",
50604
- disabled: !src.value,
50653
+ disabled: !src.value || uploadLoading.value,
50605
50654
  onClick: _cache[7] || (_cache[7] = ($event) => handlerToolbar("zoom", -0.1))
50606
50655
  }, {
50607
50656
  default: withCtx(() => [
@@ -50632,56 +50681,62 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50632
50681
  class: normalizeClass(unref(bem).e("right"))
50633
50682
  },
50634
50683
  [
50635
- createElementVNode(
50636
- "div",
50637
- {
50638
- class: normalizeClass(unref(bem).e("preview"))
50639
- },
50640
- [
50641
- previewSource.value ? (openBlock(), createElementBlock("img", {
50642
- key: 0,
50643
- src: previewSource.value,
50644
- alt: "\u9884\u89C8"
50645
- }, null, 8, _hoisted_1$g)) : createCommentVNode("v-if", true)
50646
- ],
50647
- 2
50648
- /* CLASS */
50649
- ),
50650
- previewSource.value ? (openBlock(), createElementBlock(
50651
- "div",
50652
- {
50653
- key: 0,
50654
- class: normalizeClass(unref(bem).e("group"))
50655
- },
50656
- [
50657
- createVNode(_component_ll_image, {
50658
- preview: false,
50659
- src: previewSource.value,
50660
- width: 32,
50661
- height: 32
50662
- }, null, 8, ["src"]),
50663
- createVNode(_component_ll_image, {
50664
- preview: false,
50665
- src: previewSource.value,
50666
- width: 48,
50667
- height: 48
50668
- }, null, 8, ["src"]),
50669
- createVNode(_component_ll_image, {
50670
- preview: false,
50671
- src: previewSource.value,
50672
- width: 64,
50673
- height: 64
50674
- }, null, 8, ["src"]),
50675
- createVNode(_component_ll_image, {
50676
- preview: false,
50677
- src: previewSource.value,
50678
- width: 80,
50679
- height: 80
50680
- }, null, 8, ["src"])
50681
- ],
50682
- 2
50683
- /* CLASS */
50684
- )) : createCommentVNode("v-if", true)
50684
+ createVNode(_component_a_spin, { spinning: uploadLoading.value }, {
50685
+ default: withCtx(() => [
50686
+ createElementVNode(
50687
+ "div",
50688
+ {
50689
+ class: normalizeClass(unref(bem).e("preview"))
50690
+ },
50691
+ [
50692
+ previewSource.value ? (openBlock(), createElementBlock("img", {
50693
+ key: 0,
50694
+ src: previewSource.value,
50695
+ alt: "\u9884\u89C8"
50696
+ }, null, 8, _hoisted_1$g)) : createCommentVNode("v-if", true)
50697
+ ],
50698
+ 2
50699
+ /* CLASS */
50700
+ ),
50701
+ previewSource.value ? (openBlock(), createElementBlock(
50702
+ "div",
50703
+ {
50704
+ key: 0,
50705
+ class: normalizeClass(unref(bem).e("group"))
50706
+ },
50707
+ [
50708
+ createVNode(_component_ll_image, {
50709
+ preview: false,
50710
+ src: previewSource.value,
50711
+ width: 32,
50712
+ height: 32
50713
+ }, null, 8, ["src"]),
50714
+ createVNode(_component_ll_image, {
50715
+ preview: false,
50716
+ src: previewSource.value,
50717
+ width: 48,
50718
+ height: 48
50719
+ }, null, 8, ["src"]),
50720
+ createVNode(_component_ll_image, {
50721
+ preview: false,
50722
+ src: previewSource.value,
50723
+ width: 64,
50724
+ height: 64
50725
+ }, null, 8, ["src"]),
50726
+ createVNode(_component_ll_image, {
50727
+ preview: false,
50728
+ src: previewSource.value,
50729
+ width: 80,
50730
+ height: 80
50731
+ }, null, 8, ["src"])
50732
+ ],
50733
+ 2
50734
+ /* CLASS */
50735
+ )) : createCommentVNode("v-if", true)
50736
+ ]),
50737
+ _: 1
50738
+ /* STABLE */
50739
+ }, 8, ["spinning"])
50685
50740
  ],
50686
50741
  2
50687
50742
  /* CLASS */
@@ -50693,25 +50748,35 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
50693
50748
  ]),
50694
50749
  _: 1
50695
50750
  /* STABLE */
50696
- }, 8, ["open", "title", "width"]),
50751
+ }, 8, ["open", "title", "width", "loading"]),
50697
50752
  createElementVNode(
50698
50753
  "div",
50699
50754
  {
50700
50755
  class: normalizeClass(unref(bem).e("cropper-avatar")),
50701
50756
  style: normalizeStyle({
50702
- cursor: props.disabled ? "not-allowed" : "pointer"
50757
+ cursor: props.disabled ? "not-allowed" : "pointer",
50758
+ display: "inline-block"
50703
50759
  }),
50704
50760
  onClick: handleOpen
50705
50761
  },
50706
50762
  [
50707
- renderSlot(_ctx.$slots, "default", { src: avatar.value }, () => [
50708
- createVNode(_component_ll_image, {
50709
- src: avatar.value,
50710
- width: 64,
50711
- height: 64,
50712
- preview: false
50713
- }, null, 8, ["src"])
50714
- ])
50763
+ createVNode(_component_a_spin, {
50764
+ spinning: loading.value,
50765
+ style: { "display": "inline-block" }
50766
+ }, {
50767
+ default: withCtx(() => [
50768
+ renderSlot(_ctx.$slots, "default", { src: avatar.value }, () => [
50769
+ createVNode(_component_ll_image, {
50770
+ src: avatar.value,
50771
+ width: 64,
50772
+ height: 64,
50773
+ preview: false
50774
+ }, null, 8, ["src"])
50775
+ ])
50776
+ ]),
50777
+ _: 3
50778
+ /* FORWARDED */
50779
+ }, 8, ["spinning"])
50715
50780
  ],
50716
50781
  6
50717
50782
  /* CLASS, STYLE */
@@ -61519,6 +61584,27 @@ const formProps = buildProps({
61519
61584
  loading: {
61520
61585
  type: Boolean,
61521
61586
  default: false
61587
+ },
61588
+ /**
61589
+ * @description 自动聚焦
61590
+ */
61591
+ autoFocus: {
61592
+ type: Boolean,
61593
+ default: false
61594
+ },
61595
+ /**
61596
+ * @description 是否全体禁用
61597
+ */
61598
+ disabled: {
61599
+ type: Boolean,
61600
+ default: false
61601
+ },
61602
+ /**
61603
+ * @description 当某一规则校验不通过时,是否停止剩下的规则的校验
61604
+ */
61605
+ validateErrorStop: {
61606
+ type: Boolean,
61607
+ default: false
61522
61608
  }
61523
61609
  });
61524
61610
  const formEmits = {
@@ -61554,10 +61640,11 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
61554
61640
  __name: "form-component",
61555
61641
  props: formComponentProps,
61556
61642
  emits: formComponentEmits,
61557
- setup(__props, { emit: __emit }) {
61643
+ setup(__props, { expose: __expose, emit: __emit }) {
61558
61644
  const props = __props;
61559
61645
  const emits = __emit;
61560
61646
  const formData = reactive(props.formData);
61647
+ const componentRef = ref();
61561
61648
  const getBindValue = (item) => {
61562
61649
  const obj = { ...item };
61563
61650
  return omit(obj, ["label", "onChange", "change"]);
@@ -61572,13 +61659,29 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
61572
61659
  }
61573
61660
  emits("changeField", item);
61574
61661
  };
61662
+ const focus = async () => {
61663
+ await nextTick();
61664
+ console.log(componentRef.value);
61665
+ componentRef.value?.focus();
61666
+ };
61667
+ const getItem = () => {
61668
+ return props.item;
61669
+ };
61670
+ __expose({
61671
+ focus,
61672
+ getItem
61673
+ });
61575
61674
  return (_ctx, _cache) => {
61576
61675
  return unref(checkedType).includes(_ctx.item.type) ? (openBlock(), createBlock(resolveDynamicComponent(`ll-${_ctx.item.type}`), mergeProps({
61577
61676
  key: 0,
61677
+ ref_key: "componentRef",
61678
+ ref: componentRef,
61578
61679
  checked: formData[_ctx.item.key],
61579
61680
  "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => formData[_ctx.item.key] = $event)
61580
61681
  }, getBindValue(_ctx.item), { onChange: handleChange }), null, 16, ["checked"])) : (openBlock(), createBlock(resolveDynamicComponent(`ll-${_ctx.item.type}`), mergeProps({
61581
61682
  key: 1,
61683
+ ref_key: "componentRef",
61684
+ ref: componentRef,
61582
61685
  value: formData[_ctx.item.key],
61583
61686
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => formData[_ctx.item.key] = $event)
61584
61687
  }, getBindValue(_ctx.item), { onChange: handleChange }), null, 16, ["value"]));
@@ -61599,9 +61702,46 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
61599
61702
  const bem = createNamespace("form");
61600
61703
  const formData = reactive(props.formData);
61601
61704
  const formRef = ref();
61705
+ const formComponents = ref([]);
61706
+ const computedFormColumns = computed(() => {
61707
+ return props.formColumns.map((e) => {
61708
+ e.disabled = has(e, "disabled") ? e.disabled : props.disabled;
61709
+ if (e.children && e.children.length) {
61710
+ e.children.map((a) => {
61711
+ a.disabled = has(a, "disabled") ? a.disabled : props.disabled;
61712
+ return a;
61713
+ });
61714
+ }
61715
+ return e;
61716
+ });
61717
+ });
61718
+ const validateFields = computed(() => {
61719
+ return props.formColumns.filter((e) => e.required || has(e, "rules") && e.rules.length > 0).map((e) => {
61720
+ return e.key;
61721
+ });
61722
+ });
61723
+ const computedFormOptions = computed(() => {
61724
+ return {
61725
+ scrollToFirstError: !props.validateErrorStop,
61726
+ ...props.formOptions
61727
+ };
61728
+ });
61602
61729
  const id = ref(`ll-form-${+/* @__PURE__ */ new Date()}`);
61603
61730
  const validate = async () => {
61604
- return await formRef.value.validateFields();
61731
+ if (props.validateErrorStop) {
61732
+ clearValidate();
61733
+ let bool = true;
61734
+ if (!validateFields.value.length)
61735
+ return bool;
61736
+ for (const i of validateFields.value) {
61737
+ bool = await formRef.value.validateFields([i]);
61738
+ if (!bool) {
61739
+ return bool;
61740
+ }
61741
+ }
61742
+ } else {
61743
+ return await formRef.value.validateFields();
61744
+ }
61605
61745
  };
61606
61746
  const resetFields = async () => {
61607
61747
  return await formRef.value.resetFields();
@@ -61641,6 +61781,18 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
61641
61781
  immediate: true
61642
61782
  }
61643
61783
  );
61784
+ onMounted(async () => {
61785
+ await nextTick();
61786
+ if (props.autoFocus) {
61787
+ for (const element of formComponents.value) {
61788
+ const item = element?.getItem();
61789
+ if (["input", "textarea", "input-number"].includes(item.type)) {
61790
+ element?.focus();
61791
+ break;
61792
+ }
61793
+ }
61794
+ }
61795
+ });
61644
61796
  __expose({
61645
61797
  validate,
61646
61798
  resetFields,
@@ -61664,7 +61816,7 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
61664
61816
  spinning: props.loading
61665
61817
  }, {
61666
61818
  default: withCtx(() => [
61667
- createVNode(_component_a_form, mergeProps(props.formOptions, {
61819
+ createVNode(_component_a_form, mergeProps(computedFormOptions.value, {
61668
61820
  id: id.value,
61669
61821
  ref_key: "formRef",
61670
61822
  ref: formRef,
@@ -61679,7 +61831,7 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
61679
61831
  (openBlock(true), createElementBlock(
61680
61832
  Fragment,
61681
61833
  null,
61682
- renderList(props.formColumns, (item, index) => {
61834
+ renderList(computedFormColumns.value, (item, index) => {
61683
61835
  return openBlock(), createBlock(_component_a_col, mergeProps({
61684
61836
  key: index,
61685
61837
  ref_for: true
@@ -61790,6 +61942,8 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
61790
61942
  /* FULL_PROPS, DYNAMIC_SLOTS */
61791
61943
  )) : (openBlock(), createBlock(FormComponent, {
61792
61944
  key: 1,
61945
+ ref_for: true,
61946
+ ref: (el) => formComponents.value[index] = el,
61793
61947
  item,
61794
61948
  "form-data": formData,
61795
61949
  onChangeField: handleChangeField
@@ -62249,10 +62403,14 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
62249
62403
  setup(__props, { emit: __emit }) {
62250
62404
  const props = __props;
62251
62405
  const emits = __emit;
62406
+ const { scrollPosition, isHasScrollBar, scrollRef } = useScroll();
62252
62407
  const searchIconValue = ref("");
62253
62408
  const selectIcon = ref("");
62254
62409
  const iconList = ref([]);
62255
62410
  const bem = createNamespace("icon-picker-modal");
62411
+ const isShowContentBottomBox = computed(() => {
62412
+ return isHasScrollBar.value && scrollPosition.value !== "bottom";
62413
+ });
62256
62414
  const handleOk = () => {
62257
62415
  emits("changeIconValue", selectIcon.value);
62258
62416
  emits("update:visible");
@@ -62264,13 +62422,8 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
62264
62422
  (newVisible) => {
62265
62423
  if (newVisible)
62266
62424
  searchIconValue.value = "";
62267
- }
62268
- );
62269
- watch(
62270
- () => props.value,
62271
- (newV) => {
62272
- if (newV)
62273
- selectIcon.value = newV;
62425
+ if (newVisible && props.value)
62426
+ selectIcon.value = props.value;
62274
62427
  },
62275
62428
  {
62276
62429
  immediate: true
@@ -62290,97 +62443,117 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
62290
62443
  (ele) => ~ele.font_class.indexOf(searchIconValue.value)
62291
62444
  );
62292
62445
  });
62446
+ watchEffect(() => {
62447
+ if (props.visible) {
62448
+ if (isHasScrollBar && scrollRef.value && !scrollRef.value.scrollTop) {
62449
+ scrollRef.value.scrollTop = 0;
62450
+ scrollPosition.value = "top";
62451
+ }
62452
+ }
62453
+ });
62293
62454
  return (_ctx, _cache) => {
62294
62455
  const _component_ll_icon = resolveComponent("ll-icon");
62295
62456
  const _component_a_input = resolveComponent("a-input");
62296
62457
  const _component_a_form_item = resolveComponent("a-form-item");
62297
62458
  const _component_a_button = resolveComponent("a-button");
62298
62459
  const _component_a_space = resolveComponent("a-space");
62299
- const _component_ll_modal = resolveComponent("ll-modal");
62300
- return openBlock(), createBlock(_component_ll_modal, {
62460
+ const _component_ll_new_modal = resolveComponent("ll-new-modal");
62461
+ return openBlock(), createBlock(_component_ll_new_modal, {
62301
62462
  open: _ctx.visible,
62302
62463
  title: "\u56FE\u6807\u9009\u62E9",
62303
62464
  class: normalizeClass(`icon-picker-modal-wrapper ${unref(bem).b()}`),
62304
62465
  width: "766px",
62305
62466
  keyboard: false,
62306
62467
  "mask-closable": false,
62468
+ "is-show-footer-shadow": isShowContentBottomBox.value,
62469
+ "footer-shadow-placement": "outer",
62307
62470
  onOk: handleOk,
62308
62471
  onCancel: handleCancel
62309
62472
  }, {
62310
- step: withCtx(() => [
62473
+ default: withCtx(() => [
62311
62474
  createElementVNode(
62312
62475
  "div",
62313
62476
  {
62314
- class: normalizeClass(unref(bem).e("input-container"))
62477
+ class: normalizeClass(unref(bem).e("modal-content"))
62315
62478
  },
62316
62479
  [
62317
- createVNode(_component_a_form_item, { name: "h" }, {
62318
- default: withCtx(() => [
62319
- createVNode(_component_a_input, {
62320
- value: searchIconValue.value,
62321
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchIconValue.value = $event),
62322
- class: normalizeClass(unref(bem).e("input")),
62323
- "allow-clear": "",
62324
- placeholder: "\u641C\u7D22..."
62480
+ createElementVNode(
62481
+ "div",
62482
+ {
62483
+ class: normalizeClass(unref(bem).e("input-container"))
62484
+ },
62485
+ [
62486
+ createVNode(_component_a_form_item, { name: "h" }, {
62487
+ default: withCtx(() => [
62488
+ createVNode(_component_a_input, {
62489
+ value: searchIconValue.value,
62490
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchIconValue.value = $event),
62491
+ class: normalizeClass(unref(bem).e("input")),
62492
+ "allow-clear": "",
62493
+ placeholder: "\u641C\u7D22..."
62494
+ }, {
62495
+ prefix: withCtx(() => [
62496
+ createVNode(_component_ll_icon, { "icon-name": "icon-search" })
62497
+ ]),
62498
+ _: 1
62499
+ /* STABLE */
62500
+ }, 8, ["value", "class"])
62501
+ ]),
62502
+ _: 1
62503
+ /* STABLE */
62504
+ })
62505
+ ],
62506
+ 2
62507
+ /* CLASS */
62508
+ ),
62509
+ createElementVNode(
62510
+ "div",
62511
+ {
62512
+ ref_key: "scrollRef",
62513
+ ref: scrollRef,
62514
+ class: normalizeClass(unref(bem).e("list"))
62515
+ },
62516
+ [
62517
+ createVNode(_component_a_space, {
62518
+ size: [16, 16],
62519
+ wrap: "",
62520
+ class: normalizeClass(unref(bem).e("space"))
62325
62521
  }, {
62326
- prefix: withCtx(() => [
62327
- createVNode(_component_ll_icon, { "icon-name": "icon-search" })
62522
+ default: withCtx(() => [
62523
+ (openBlock(true), createElementBlock(
62524
+ Fragment,
62525
+ null,
62526
+ renderList(iconList.value, (item) => {
62527
+ return openBlock(), createBlock(_component_a_button, {
62528
+ key: item.icon_id,
62529
+ type: "default",
62530
+ class: normalizeClass([
62531
+ unref(bem).e("button"),
62532
+ selectIcon.value === item.font_class ? unref(bem).is("active") : ""
62533
+ ]),
62534
+ onClick: ($event) => handleSelectIcon(item)
62535
+ }, {
62536
+ icon: withCtx(() => [
62537
+ createVNode(_component_ll_icon, {
62538
+ "icon-name": "icon-" + item.font_class,
62539
+ style: { "font-size": "28px" }
62540
+ }, null, 8, ["icon-name"])
62541
+ ]),
62542
+ _: 2
62543
+ /* DYNAMIC */
62544
+ }, 1032, ["class", "onClick"]);
62545
+ }),
62546
+ 128
62547
+ /* KEYED_FRAGMENT */
62548
+ ))
62328
62549
  ]),
62329
62550
  _: 1
62330
62551
  /* STABLE */
62331
- }, 8, ["value", "class"])
62332
- ]),
62333
- _: 1
62334
- /* STABLE */
62335
- })
62336
- ],
62337
- 2
62338
- /* CLASS */
62339
- )
62340
- ]),
62341
- default: withCtx(() => [
62342
- createElementVNode(
62343
- "div",
62344
- {
62345
- class: normalizeClass(unref(bem).e("list"))
62346
- },
62347
- [
62348
- createVNode(_component_a_space, {
62349
- size: [16, 16],
62350
- wrap: "",
62351
- class: normalizeClass(unref(bem).e("space"))
62352
- }, {
62353
- default: withCtx(() => [
62354
- (openBlock(true), createElementBlock(
62355
- Fragment,
62356
- null,
62357
- renderList(iconList.value, (item) => {
62358
- return openBlock(), createBlock(_component_a_button, {
62359
- key: item.icon_id,
62360
- type: "default",
62361
- class: normalizeClass([
62362
- unref(bem).e("button"),
62363
- selectIcon.value === item.font_class ? unref(bem).is("active") : ""
62364
- ]),
62365
- onClick: ($event) => handleSelectIcon(item)
62366
- }, {
62367
- icon: withCtx(() => [
62368
- createVNode(_component_ll_icon, {
62369
- "icon-name": "icon-" + item.font_class,
62370
- style: { "font-size": "28px" }
62371
- }, null, 8, ["icon-name"])
62372
- ]),
62373
- _: 2
62374
- /* DYNAMIC */
62375
- }, 1032, ["class", "onClick"]);
62376
- }),
62377
- 128
62378
- /* KEYED_FRAGMENT */
62379
- ))
62380
- ]),
62381
- _: 1
62382
- /* STABLE */
62383
- }, 8, ["class"])
62552
+ }, 8, ["class"])
62553
+ ],
62554
+ 2
62555
+ /* CLASS */
62556
+ )
62384
62557
  ],
62385
62558
  2
62386
62559
  /* CLASS */
@@ -62388,7 +62561,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
62388
62561
  ]),
62389
62562
  _: 1
62390
62563
  /* STABLE */
62391
- }, 8, ["open", "class"]);
62564
+ }, 8, ["open", "class", "is-show-footer-shadow"]);
62392
62565
  };
62393
62566
  }
62394
62567
  });
@@ -62629,10 +62802,11 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
62629
62802
  ...{ name: "LlInput" },
62630
62803
  __name: "input",
62631
62804
  props: inputProps,
62632
- setup(__props) {
62805
+ setup(__props, { expose: __expose }) {
62633
62806
  const bem = createNamespace("input");
62634
62807
  const props = __props;
62635
62808
  const innerValue = ref("");
62809
+ const inputRef = ref();
62636
62810
  watchEffect(() => {
62637
62811
  if (props.value !== innerValue.value) {
62638
62812
  innerValue.value = props.value;
@@ -62643,9 +62817,15 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
62643
62817
  const attrs = { ...useAttrs(), ...props };
62644
62818
  return attrs;
62645
62819
  });
62820
+ const focus = () => {
62821
+ inputRef.value.focus();
62822
+ };
62823
+ __expose({ focus });
62646
62824
  return (_ctx, _cache) => {
62647
62825
  const _component_ll_icon = resolveComponent("ll-icon");
62648
62826
  return openBlock(), createBlock(resolveDynamicComponent(unref(componentType)), mergeProps({
62827
+ ref_key: "inputRef",
62828
+ ref: inputRef,
62649
62829
  class: unref(bem).b()
62650
62830
  }, computedAttrs.value), createSlots({
62651
62831
  _: 2
@@ -62766,12 +62946,13 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
62766
62946
  __name: "input-number",
62767
62947
  props: inputNumberProps,
62768
62948
  emits: inputNumberEmits,
62769
- setup(__props, { emit: __emit }) {
62949
+ setup(__props, { expose: __expose, emit: __emit }) {
62770
62950
  const props = __props;
62771
62951
  const emit = __emit;
62772
62952
  const bem = createNamespace("input-number");
62773
62953
  const attrs = useAttrs();
62774
62954
  const innerValue = ref("");
62955
+ const inputRef = ref();
62775
62956
  const integerCongfig = computed(() => {
62776
62957
  let obj = {};
62777
62958
  if (props.integer) {
@@ -62809,6 +62990,10 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
62809
62990
  emit("update:value", value);
62810
62991
  emit("change", value);
62811
62992
  }
62993
+ const focus = () => {
62994
+ inputRef.value.focus();
62995
+ };
62996
+ __expose({ focus });
62812
62997
  return (_ctx, _cache) => {
62813
62998
  return openBlock(), createElementBlock(
62814
62999
  "div",
@@ -62824,6 +63009,8 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
62824
63009
  },
62825
63010
  [
62826
63011
  createVNode(unref(InputNumber$1), mergeProps({
63012
+ ref_key: "inputRef",
63013
+ ref: inputRef,
62827
63014
  value: innerValue.value,
62828
63015
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
62829
63016
  }, getBindValue.value, { onChange }), createSlots({
@@ -62942,7 +63129,7 @@ const keyValueProps = buildProps({
62942
63129
  type: definePropType(Object),
62943
63130
  default: () => ({
62944
63131
  type: "input",
62945
- placeholder: "\u8BF7\u8F93\u5165key"
63132
+ placeholder: "\u8BF7\u8F93\u5165Key"
62946
63133
  })
62947
63134
  },
62948
63135
  keyTypes: {
@@ -62953,7 +63140,7 @@ const keyValueProps = buildProps({
62953
63140
  type: definePropType(Object),
62954
63141
  default: () => ({
62955
63142
  type: "input",
62956
- placeholder: "\u8BF7\u8F93\u5165value"
63143
+ placeholder: "\u8BF7\u8F93\u5165Value"
62957
63144
  })
62958
63145
  },
62959
63146
  disabledValue: {
@@ -67748,6 +67935,7 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
67748
67935
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => value.value = $event),
67749
67936
  class: normalizeClass(unref(bem).e("right-input")),
67750
67937
  placeholder: selectItem.value?.placeholder,
67938
+ "allow-clear": "",
67751
67939
  onPressEnter: handleChange
67752
67940
  }, {
67753
67941
  suffix: withCtx(() => [