hy-dispatch-ui-v3 0.2.66 → 0.2.67

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 (62) hide show
  1. package/dist/tailwind.css +25 -1
  2. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
  3. package/es/components/hyButton/button.vue.mjs +16 -3
  4. package/es/components/hyButton/style/button.scss +2 -0
  5. package/es/components/hyForm/cpns/formItem.vue.mjs +96 -46
  6. package/es/components/hyForm/form.vue.mjs +22 -8
  7. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  8. package/es/components/hyMap/js/index.mjs +6 -6
  9. package/es/components/hyMap/map.vue.mjs +14 -4
  10. package/es/components/hyOrgCascader/orgCascader.vue.mjs +7 -2
  11. package/es/components/hySearch/cpns/searchItem.vue.mjs +396 -324
  12. package/es/components/hySearch/search.vue.mjs +17 -7
  13. package/es/components/hySearch/style/search.scss +7 -0
  14. package/es/components/hyTable/cpns/virtualTable.vue.mjs +25 -6
  15. package/es/components/hyTable/js/index.mjs +11 -5
  16. package/es/components/hyTable/js/search.mjs +25 -1
  17. package/es/components/hyTable/table.vue.mjs +34 -13
  18. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +9 -2
  19. package/es/components/hyTableForm/batchTableForm.vue.mjs +23 -2
  20. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  21. package/es/components/hyTableForm/tableForm.vue.mjs +79 -33
  22. package/es/components/hyTree/js/index.mjs +118 -50
  23. package/es/components/hyTree/tree.vue.mjs +4 -2
  24. package/es/style/index.scss +0 -1
  25. package/es/style/tailwind.scss +0 -1
  26. package/es/utils/is.mjs +3 -1
  27. package/es/utils/map/hook/bigMap.mjs +2 -0
  28. package/es/utils/map/hook/gaode.mjs +51 -16
  29. package/es/utils/map/hook/leafletjs.mjs +15 -3
  30. package/es/utils/map/index.mjs +1 -1
  31. package/es/version.mjs +1 -1
  32. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
  33. package/lib/components/hyButton/button.vue.js +15 -2
  34. package/lib/components/hyButton/style/button.scss +2 -0
  35. package/lib/components/hyForm/cpns/formItem.vue.js +93 -43
  36. package/lib/components/hyForm/form.vue.js +21 -7
  37. package/lib/components/hyForm/js/useAppForm.js +1 -1
  38. package/lib/components/hyMap/js/index.js +5 -5
  39. package/lib/components/hyMap/map.vue.js +13 -3
  40. package/lib/components/hyOrgCascader/orgCascader.vue.js +7 -2
  41. package/lib/components/hySearch/cpns/searchItem.vue.js +394 -322
  42. package/lib/components/hySearch/search.vue.js +17 -7
  43. package/lib/components/hySearch/style/search.scss +7 -0
  44. package/lib/components/hyTable/cpns/virtualTable.vue.js +24 -5
  45. package/lib/components/hyTable/js/index.js +11 -4
  46. package/lib/components/hyTable/js/search.js +25 -1
  47. package/lib/components/hyTable/table.vue.js +33 -12
  48. package/lib/components/hyTableActionButton/tableActionButton.vue.js +9 -2
  49. package/lib/components/hyTableForm/batchTableForm.vue.js +23 -2
  50. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  51. package/lib/components/hyTableForm/tableForm.vue.js +78 -32
  52. package/lib/components/hyTree/js/index.js +118 -50
  53. package/lib/components/hyTree/tree.vue.js +4 -2
  54. package/lib/style/index.scss +0 -1
  55. package/lib/style/tailwind.scss +0 -1
  56. package/lib/utils/is.js +5 -3
  57. package/lib/utils/map/hook/bigMap.js +2 -0
  58. package/lib/utils/map/hook/gaode.js +51 -16
  59. package/lib/utils/map/hook/leafletjs.js +15 -3
  60. package/lib/utils/map/index.js +1 -1
  61. package/lib/version.js +1 -1
  62. package/package.json +2 -2
package/dist/tailwind.css CHANGED
@@ -50,7 +50,6 @@
50
50
  --tw-contain-layout: ;
51
51
  --tw-contain-paint: ;
52
52
  --tw-contain-style: ;
53
- box-sizing: border-box;
54
53
  /* 1 */
55
54
  border-width: 0;
56
55
  /* 2 */
@@ -276,6 +275,10 @@
276
275
  z-index: 1;
277
276
  }
278
277
 
278
+ .z-\[2\] {
279
+ z-index: 2;
280
+ }
281
+
279
282
  .z-\[3\] {
280
283
  z-index: 3;
281
284
  }
@@ -561,6 +564,10 @@
561
564
  height: 0.375rem;
562
565
  }
563
566
 
567
+ .h-2 {
568
+ height: 0.5rem;
569
+ }
570
+
564
571
  .h-2\.5 {
565
572
  height: 0.625rem;
566
573
  }
@@ -777,6 +784,10 @@
777
784
  width: 0.375rem;
778
785
  }
779
786
 
787
+ .w-2 {
788
+ width: 0.5rem;
789
+ }
790
+
780
791
  .w-3 {
781
792
  width: 0.75rem;
782
793
  }
@@ -916,6 +927,11 @@
916
927
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
917
928
  }
918
929
 
930
+ .translate-x-1\/2 {
931
+ --tw-translate-x: 50%;
932
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
933
+ }
934
+
919
935
  .transform {
920
936
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
921
937
  }
@@ -1385,6 +1401,10 @@
1385
1401
  padding-left: 52px;
1386
1402
  }
1387
1403
 
1404
+ .pr-1 {
1405
+ padding-right: 0.25rem;
1406
+ }
1407
+
1388
1408
  .pr-2 {
1389
1409
  padding-right: 0.5rem;
1390
1410
  }
@@ -1586,6 +1606,10 @@
1586
1606
  outline-offset: 0px;
1587
1607
  }
1588
1608
 
1609
+ .\!outline-danger-2 {
1610
+ outline-color: rgb(var(--hy-danger-2), 1) !important;
1611
+ }
1612
+
1589
1613
  .outline-transparent {
1590
1614
  outline-color: transparent;
1591
1615
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, useModel, ref, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode, createTextVNode, createVNode, toDisplayString, createElementBlock, mergeModels } from 'vue';
1
+ import { defineComponent, useTemplateRef, useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createBlock, renderList, createTextVNode, toDisplayString, mergeModels } from 'vue';
2
2
  import '../index.mjs';
3
3
  import { HyDialog } from '../hyDialog/index.mjs';
4
4
  import { HyBatchTableForm } from '../hyTableForm/index.mjs';
@@ -198,8 +198,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
198
198
  batchTableFormRef.value.submitDataSource();
199
199
  }
200
200
  }
201
+ function getIsSubmitting() {
202
+ return isSubmitting.value;
203
+ }
201
204
  __expose({
202
205
  show,
206
+ getIsSubmitting,
203
207
  getTableDataSource: () => {
204
208
  return batchTableFormRef.value.getTableDataSource();
205
209
  },
@@ -217,159 +221,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
217
221
  },
218
222
  setDragLevelIndex: (dragLevel) => {
219
223
  HyDialogRef.value.setDragLevelIndex(dragLevel);
224
+ },
225
+ async getOptions() {
226
+ if (batchTableFormRef.value) {
227
+ await batchTableFormRef.value.getOptions();
228
+ }
229
+ },
230
+ async getOptionsFields(keys) {
231
+ if (batchTableFormRef.value) {
232
+ await batchTableFormRef.value.getOptionsFields(keys);
233
+ }
234
+ },
235
+ async getOptionsError() {
236
+ if (batchTableFormRef.value) {
237
+ await batchTableFormRef.value.getOptionsError();
238
+ }
239
+ },
240
+ getOptionsByField(key) {
241
+ if (batchTableFormRef.value) {
242
+ return batchTableFormRef.value.getOptionsByField(key);
243
+ }
220
244
  }
221
245
  });
222
246
  return (_ctx, _cache) => {
223
- return openBlock(), createBlock(unref(HyDialog), mergeProps({
224
- ref_key: "HyDialogRef",
225
- ref: HyDialogRef,
226
- modelValue: visible.value,
227
- "onUpdate:modelValue": ($event) => visible.value = $event,
228
- loading: isSubmitting.value,
229
- "onUpdate:loading": ($event) => isSubmitting.value = $event,
230
- title: __props.title,
231
- width: __props.width,
232
- "dialog-type": __props.dialogType,
233
- "show-operate": true,
234
- "show-submit": false,
235
- "show-cancel": !isSubmitting.value,
236
- ifShrink: __props.ifShrink,
237
- ifDraggable: __props.ifDraggable
238
- }, _ctx.$attrs, {
239
- onOnMinimized: onMinimized,
240
- onOnDialogMousedown: onDialogMousedown
241
- }), createSlots({
242
- "operate-left-box": withCtx(() => [
243
- failedCount.value ? (openBlock(), createElementBlock("div", {
244
- key: 0,
245
- class: "flex items-center gap-1.5 text-xs text-warning"
246
- }, [
247
- createVNode(unref(HyIcon), {
248
- "svg-name": "dispatch-share1-prompt",
249
- class: "!w-3 !h-3"
250
- }),
251
- failedStatus.value === "validate" ? (openBlock(), createElementBlock(
252
- "span",
253
- { key: 0 },
254
- "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
255
- 1
256
- /* TEXT */
257
- )) : (openBlock(), createElementBlock(
258
- "span",
259
- { key: 1 },
260
- "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
261
- 1
262
- /* TEXT */
263
- ))
264
- ])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
265
- key: 1,
266
- class: "flex items-center gap-1.5 text-xs text-warning"
267
- }, [
268
- createVNode(unref(HyIcon), {
269
- "svg-name": "dispatch-share1-prompt",
270
- class: "!w-3 !h-3"
271
- }),
272
- createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
273
- ])) : createCommentVNode("v-if", true)
274
- ]),
275
- "operate-right-box": withCtx(() => [
276
- currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
277
- key: 0,
278
- type: "primary",
279
- class: "!min-w-[120px]",
280
- onClick: onNextStep
281
- }, {
282
- default: withCtx(() => [
283
- createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
247
+ return openBlock(), createElementBlock(
248
+ Fragment,
249
+ null,
250
+ [
251
+ createCommentVNode(' v-model:loading="isSubmitting"'),
252
+ createVNode(unref(HyDialog), mergeProps({
253
+ ref_key: "HyDialogRef",
254
+ ref: HyDialogRef,
255
+ modelValue: visible.value,
256
+ "onUpdate:modelValue": ($event) => visible.value = $event,
257
+ title: __props.title,
258
+ width: __props.width,
259
+ "dialog-type": __props.dialogType,
260
+ "show-operate": true,
261
+ "show-submit": false,
262
+ "show-cancel": !isSubmitting.value,
263
+ ifShrink: __props.ifShrink,
264
+ ifDraggable: __props.ifDraggable
265
+ }, _ctx.$attrs, {
266
+ onOnMinimized: onMinimized,
267
+ onOnDialogMousedown: onDialogMousedown
268
+ }), createSlots({
269
+ "operate-left-box": withCtx(() => [
270
+ failedCount.value ? (openBlock(), createElementBlock("div", {
271
+ key: 0,
272
+ class: "flex items-center gap-1.5 text-xs text-warning"
273
+ }, [
274
+ createVNode(unref(HyIcon), {
275
+ "svg-name": "dispatch-share1-prompt",
276
+ class: "!w-3 !h-3"
277
+ }),
278
+ failedStatus.value === "validate" ? (openBlock(), createElementBlock(
279
+ "span",
280
+ { key: 0 },
281
+ "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
282
+ 1
283
+ /* TEXT */
284
+ )) : (openBlock(), createElementBlock(
285
+ "span",
286
+ { key: 1 },
287
+ "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
288
+ 1
289
+ /* TEXT */
290
+ ))
291
+ ])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
292
+ key: 1,
293
+ class: "flex items-center gap-1.5 text-xs text-warning"
294
+ }, [
295
+ createVNode(unref(HyIcon), {
296
+ "svg-name": "dispatch-share1-prompt",
297
+ class: "!w-3 !h-3"
298
+ }),
299
+ createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
300
+ ])) : createCommentVNode("v-if", true)
284
301
  ]),
285
- _: 1
286
- /* STABLE */
287
- })) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
288
- key: 1,
289
- disabled: !isSubmitting.value,
290
- content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
291
- }, {
292
- default: withCtx(() => [
293
- createVNode(unref(HyButton), {
302
+ "operate-right-box": withCtx(() => [
303
+ currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
304
+ key: 0,
294
305
  type: "primary",
295
- loading: isSubmitting.value,
296
306
  class: "!min-w-[120px]",
297
- onClick: onSubmitHandler
307
+ onClick: onNextStep
308
+ }, {
309
+ default: withCtx(() => [
310
+ createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
311
+ ]),
312
+ _: 1
313
+ /* STABLE */
314
+ })) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
315
+ key: 1,
316
+ disabled: !isSubmitting.value,
317
+ content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
298
318
  }, {
299
319
  default: withCtx(() => [
300
- createTextVNode(
301
- toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
302
- 1
303
- /* TEXT */
304
- )
320
+ createVNode(unref(HyButton), {
321
+ type: "primary",
322
+ loading: isSubmitting.value,
323
+ class: "!min-w-[120px]",
324
+ onClick: onSubmitHandler
325
+ }, {
326
+ default: withCtx(() => [
327
+ createTextVNode(
328
+ toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
329
+ 1
330
+ /* TEXT */
331
+ )
332
+ ]),
333
+ _: 1
334
+ /* STABLE */
335
+ }, 8, ["loading"])
305
336
  ]),
306
337
  _: 1
307
338
  /* STABLE */
308
- }, 8, ["loading"])
339
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true)
309
340
  ]),
310
- _: 1
311
- /* STABLE */
312
- }, 8, ["disabled"])) : createCommentVNode("v-if", true)
313
- ]),
314
- default: withCtx(() => [
315
- createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
316
- renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
317
- createElementVNode("div", { class: "flex-grow h-0" }, [
318
- visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
319
- key: 0,
320
- ref_key: "batchTableFormRef",
321
- ref: batchTableFormRef,
322
- step: currentStep.value,
323
- "onUpdate:step": ($event) => currentStep.value = $event,
324
- tableColumns: __props.tableColumns,
325
- formColumns: __props.formColumns,
326
- rules: __props.rules,
327
- emptyText: __props.emptyText,
328
- fontSize: __props.fontSize,
329
- rowClickExpand: __props.rowClickExpand,
330
- columnNum: __props.columnNum,
331
- size: __props.size,
332
- beforeDataHandle: __props.beforeDataHandle,
333
- beforeDataListHandle: __props.beforeDataListHandle,
334
- onExpandRowChange: __props.onExpandRowChange,
335
- "submit-handler": __props.submitHandler,
336
- showAddBtn: __props.showAddBtn,
337
- onTableDataChange: tableDataChange,
338
- onUploading: onTableUploadingHandler,
339
- onUploaded: onTableUploadedHandler,
340
- onReset: onTableResetHandler,
341
- onValidate: onTableValidateHandler,
342
- onSubmitting: onTableSubmittingHandler,
343
- onSubmit: onTableSubmitHandler,
344
- onSubmitProgress: onSubmitProgressHandler
345
- }, createSlots({
346
- _: 2
347
- /* DYNAMIC */
348
- }, [
349
- renderList(_ctx.$slots, (_, slotName) => {
350
- return {
351
- name: slotName,
352
- fn: withCtx((scope) => [
353
- renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
354
- ])
355
- };
356
- })
357
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn"])) : createCommentVNode("v-if", true)
358
- ])
359
- ])
360
- ]),
361
- _: 2
362
- /* DYNAMIC */
363
- }, [
364
- renderList(_ctx.$slots, (_, slotName) => {
365
- return {
366
- name: slotName,
367
- fn: withCtx((scope) => [
368
- renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
369
- ])
370
- };
371
- })
372
- ]), 1040, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"]);
341
+ default: withCtx(() => [
342
+ createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
343
+ renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
344
+ createElementVNode("div", { class: "flex-grow h-0" }, [
345
+ visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
346
+ key: 0,
347
+ ref_key: "batchTableFormRef",
348
+ ref: batchTableFormRef,
349
+ step: currentStep.value,
350
+ "onUpdate:step": ($event) => currentStep.value = $event,
351
+ tableColumns: __props.tableColumns,
352
+ formColumns: __props.formColumns,
353
+ rules: __props.rules,
354
+ emptyText: __props.emptyText,
355
+ fontSize: __props.fontSize,
356
+ rowClickExpand: __props.rowClickExpand,
357
+ columnNum: __props.columnNum,
358
+ size: __props.size,
359
+ beforeDataHandle: __props.beforeDataHandle,
360
+ beforeDataListHandle: __props.beforeDataListHandle,
361
+ onExpandRowChange: __props.onExpandRowChange,
362
+ "submit-handler": __props.submitHandler,
363
+ showAddBtn: __props.showAddBtn,
364
+ onTableDataChange: tableDataChange,
365
+ onUploading: onTableUploadingHandler,
366
+ onUploaded: onTableUploadedHandler,
367
+ onReset: onTableResetHandler,
368
+ onValidate: onTableValidateHandler,
369
+ onSubmitting: onTableSubmittingHandler,
370
+ onSubmit: onTableSubmitHandler,
371
+ onSubmitProgress: onSubmitProgressHandler,
372
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
373
+ }, createSlots({
374
+ _: 2
375
+ /* DYNAMIC */
376
+ }, [
377
+ renderList(_ctx.$slots, (_, slotName) => {
378
+ return {
379
+ name: slotName,
380
+ fn: withCtx((scope) => [
381
+ renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
382
+ ])
383
+ };
384
+ })
385
+ ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn", "onOptionsStatus"])) : createCommentVNode("v-if", true)
386
+ ])
387
+ ])
388
+ ]),
389
+ _: 2
390
+ /* DYNAMIC */
391
+ }, [
392
+ renderList(_ctx.$slots, (_, slotName) => {
393
+ return {
394
+ name: slotName,
395
+ fn: withCtx((scope) => [
396
+ renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
397
+ ])
398
+ };
399
+ })
400
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"])
401
+ ],
402
+ 2112
403
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
404
+ );
373
405
  };
374
406
  }
375
407
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, normalizeClass, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Loading } from '@element-plus/icons-vue';
4
4
  import '../index.mjs';
@@ -41,6 +41,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
41
41
  // 链接按钮
42
42
  type: Boolean,
43
43
  default: false
44
+ },
45
+ isDot: {
46
+ // 是否显示小红点
47
+ type: Boolean,
48
+ default: false
44
49
  }
45
50
  },
46
51
  emits: ["click"],
@@ -75,7 +80,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
75
80
  }
76
81
  ]]
77
82
  }, _ctx.$attrs, { onClick: handleClick }), [
78
- renderSlot(_ctx.$slots, "default")
83
+ renderSlot(_ctx.$slots, "default"),
84
+ __props.isDot ? (openBlock(), createElementBlock("div", {
85
+ key: 0,
86
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
87
+ })) : createCommentVNode("v-if", true)
79
88
  ], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
80
89
  key: 1,
81
90
  type: "button",
@@ -156,7 +165,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
156
165
  ],
157
166
  2
158
167
  /* CLASS */
159
- )
168
+ ),
169
+ __props.isDot ? (openBlock(), createElementBlock("div", {
170
+ key: 0,
171
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
172
+ })) : createCommentVNode("v-if", true)
160
173
  ], 10, ["disabled"]));
161
174
  };
162
175
  }
@@ -10,6 +10,7 @@
10
10
  font-size: 14px;
11
11
  box-sizing: border-box;
12
12
  border-radius: 4px;
13
+ position: relative;
13
14
 
14
15
  &:disabled,
15
16
  &.is-disabled {
@@ -376,6 +377,7 @@
376
377
  background: none;
377
378
  border: none;
378
379
  cursor: pointer;
380
+ position: relative;
379
381
 
380
382
  &:not(.is-disabled) {
381
383
  &:active {