vue-devui 1.6.4 → 1.6.5

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 (77) hide show
  1. package/auto-complete/index.es.js +1 -2
  2. package/auto-complete/index.umd.js +1 -1
  3. package/breadcrumb/index.es.js +2 -15
  4. package/breadcrumb/index.umd.js +1 -1
  5. package/button/index.es.js +1 -2
  6. package/button/index.umd.js +1 -1
  7. package/carousel/index.es.js +36 -213
  8. package/carousel/index.umd.js +1 -1
  9. package/carousel/style.css +1 -1
  10. package/category-search/index.es.js +3 -17
  11. package/category-search/index.umd.js +10 -10
  12. package/collapse/index.es.js +15 -18
  13. package/collapse/index.umd.js +5 -5
  14. package/data-grid/index.es.js +3 -17
  15. package/data-grid/index.umd.js +6 -6
  16. package/date-picker-pro/index.es.js +21 -6
  17. package/date-picker-pro/index.umd.js +12 -12
  18. package/date-picker-pro/style.css +1 -1
  19. package/dropdown/index.es.js +2 -15
  20. package/dropdown/index.umd.js +1 -1
  21. package/editable-select/index.es.js +2 -3
  22. package/editable-select/index.umd.js +2 -2
  23. package/editor-md/index.es.js +32 -18
  24. package/editor-md/index.umd.js +15 -15
  25. package/icon/index.es.js +1 -2
  26. package/icon/index.umd.js +1 -1
  27. package/input/index.es.js +21 -6
  28. package/input/index.umd.js +11 -11
  29. package/input/style.css +1 -1
  30. package/mention/index.es.js +1 -2
  31. package/mention/index.umd.js +1 -1
  32. package/message/index.es.js +1 -2
  33. package/message/index.umd.js +1 -1
  34. package/modal/index.es.js +27 -4
  35. package/modal/index.umd.js +7 -1
  36. package/modal/style.css +1 -1
  37. package/notification/index.es.js +1 -2
  38. package/notification/index.umd.js +2 -2
  39. package/package.json +1 -1
  40. package/pagination/index.es.js +55 -253
  41. package/pagination/index.umd.js +18 -23
  42. package/pagination/style.css +1 -1
  43. package/result/index.es.js +1 -2
  44. package/result/index.umd.js +1 -1
  45. package/search/index.es.js +48 -27
  46. package/search/index.umd.js +18 -14
  47. package/search/style.css +1 -1
  48. package/select/index.es.js +43 -42
  49. package/select/index.umd.js +11 -16
  50. package/select/style.css +1 -1
  51. package/steps/index.es.js +1 -2
  52. package/steps/index.umd.js +1 -1
  53. package/style.css +2 -2
  54. package/table/index.es.js +3 -17
  55. package/table/index.umd.js +6 -6
  56. package/time-picker/index.es.js +21 -6
  57. package/time-picker/index.umd.js +16 -16
  58. package/time-picker/style.css +1 -1
  59. package/time-select/index.es.js +43 -42
  60. package/time-select/index.umd.js +9 -14
  61. package/time-select/style.css +1 -1
  62. package/timeline/index.es.js +1 -2
  63. package/timeline/index.umd.js +1 -1
  64. package/types/carousel/src/components/carousel-icons.d.ts +2 -0
  65. package/types/dropdown/src/use-dropdown.d.ts +1 -1
  66. package/types/editor-md/src/composables/use-editor-md.d.ts +1 -0
  67. package/types/editor-md/src/editor-md-types.d.ts +3 -0
  68. package/types/icon/src/icon-types.d.ts +0 -1
  69. package/types/modal/src/components/modal-icons.d.ts +1 -0
  70. package/types/svg-icons/index.d.ts +3 -0
  71. package/upload/index.es.js +1 -2
  72. package/upload/index.umd.js +2 -2
  73. package/vue-devui.es.js +186 -96
  74. package/vue-devui.umd.js +97 -86
  75. package/types/search/src/components/search-close-icon.d.ts +0 -2
  76. package/types/search/src/components/search-icon.d.ts +0 -2
  77. package/types/select/src/components/select-arrow-icon.d.ts +0 -2
package/vue-devui.es.js CHANGED
@@ -10302,8 +10302,7 @@ const DEFAULT_PREFIX = "icon";
10302
10302
  const iconProps = {
10303
10303
  name: {
10304
10304
  type: String,
10305
- default: "",
10306
- required: true
10305
+ default: ""
10307
10306
  },
10308
10307
  size: {
10309
10308
  type: [Number, String],
@@ -11428,17 +11427,7 @@ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
11428
11427
  onInvalidate(() => subscriptions.forEach((v) => v()));
11429
11428
  });
11430
11429
  };
11431
- function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emit) {
11432
- const calcPopDirection = (dropdownEl) => {
11433
- const elementHeight = dropdownEl.offsetHeight;
11434
- const bottomDistance = window.innerHeight - origin.value.getBoundingClientRect().bottom;
11435
- const isBottomEnough = bottomDistance >= elementHeight;
11436
- if (!isBottomEnough) {
11437
- popDirection.value = "top";
11438
- } else {
11439
- popDirection.value = "bottom";
11440
- }
11441
- };
11430
+ function useDropdown(id, visible, isOpen, origin, dropdownRef, emit) {
11442
11431
  watch(visible, (newVal, oldVal) => {
11443
11432
  if (oldVal === void 0) {
11444
11433
  return;
@@ -11462,9 +11451,6 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
11462
11451
  }
11463
11452
  }
11464
11453
  }
11465
- if (dropdownEl) {
11466
- calcPopDirection(dropdownEl);
11467
- }
11468
11454
  });
11469
11455
  onMounted(() => {
11470
11456
  dropdownMap.set(id, { toggleEl: origin.value });
@@ -11533,7 +11519,7 @@ var Dropdown$1 = defineComponent({
11533
11519
  props,
11534
11520
  emit
11535
11521
  });
11536
- useDropdown(id, visible, isOpen, origin, dropdownRef, currentPosition, emit);
11522
+ useDropdown(id, visible, isOpen, origin, dropdownRef, emit);
11537
11523
  const {
11538
11524
  overlayModelValue,
11539
11525
  overlayShowValue,
@@ -11992,6 +11978,41 @@ const carouselProps = {
11992
11978
  default: 500
11993
11979
  }
11994
11980
  };
11981
+ function CarouselArrowLeft() {
11982
+ return createVNode("svg", {
11983
+ "width": "18px",
11984
+ "height": "18px",
11985
+ "viewBox": "0 0 16 16",
11986
+ "version": "1.1"
11987
+ }, [createVNode("g", {
11988
+ "stroke": "none",
11989
+ "stroke-width": "1",
11990
+ "fill": "none",
11991
+ "fill-rule": "evenodd"
11992
+ }, [createVNode("polygon", {
11993
+ "fill": "#293040",
11994
+ "fill-rule": "nonzero",
11995
+ "points": "10.7071068 12.2928932 9.29289322 13.7071068 3.58578644 8 9.29289322 2.29289322 10.7071068 3.70710678 6.41421356 8"
11996
+ }, null)])]);
11997
+ }
11998
+ function CarouselArrowRight() {
11999
+ return createVNode("svg", {
12000
+ "width": "18px",
12001
+ "height": "18px",
12002
+ "viewBox": "0 0 16 16",
12003
+ "version": "1.1"
12004
+ }, [createVNode("g", {
12005
+ "stroke": "none",
12006
+ "stroke-width": "1",
12007
+ "fill": "none",
12008
+ "fill-rule": "evenodd"
12009
+ }, [createVNode("polygon", {
12010
+ "fill": "#293040",
12011
+ "fill-rule": "nonzero",
12012
+ "transform": "translate(8.146447, 8.000000) scale(-1, 1) translate(-8.146447, -8.000000) ",
12013
+ "points": "11.7071068 12.2928932 10.2928932 13.7071068 4.58578644 8 10.2928932 2.29289322 11.7071068 3.70710678 7.41421356 8"
12014
+ }, null)])]);
12015
+ }
11995
12016
  var carousel = "";
11996
12017
  var Carousel = defineComponent({
11997
12018
  name: "DCarousel",
@@ -12151,14 +12172,10 @@ var Carousel = defineComponent({
12151
12172
  }, [createVNode("button", {
12152
12173
  "class": "arrow-left",
12153
12174
  "onClick": () => prev()
12154
- }, [createVNode(DIcon, {
12155
- "name": "arrow-left"
12156
- }, null)]), createVNode("button", {
12175
+ }, [createVNode(CarouselArrowLeft, null, null)]), createVNode("button", {
12157
12176
  "class": "arrow-right",
12158
12177
  "onClick": () => next()
12159
- }, [createVNode(DIcon, {
12160
- "name": "arrow-right"
12161
- }, null)])]) : null, createVNode("div", {
12178
+ }, [createVNode(CarouselArrowRight, null, null)])]) : null, createVNode("div", {
12162
12179
  "class": ns2.e("item-wrapper"),
12163
12180
  "ref": wrapperRef
12164
12181
  }, [createVNode("div", {
@@ -13484,6 +13501,71 @@ const inputProps = {
13484
13501
  default: false
13485
13502
  }
13486
13503
  };
13504
+ function SelectArrowIcon() {
13505
+ return createVNode("svg", {
13506
+ "width": "16px",
13507
+ "height": "16px",
13508
+ "viewBox": "0 0 16 16",
13509
+ "version": "1.1",
13510
+ "xmlns": "http://www.w3.org/2000/svg"
13511
+ }, [createVNode("g", {
13512
+ "stroke": "none",
13513
+ "stroke-width": "1",
13514
+ "fill": "none",
13515
+ "fill-rule": "evenodd"
13516
+ }, [createVNode("path", {
13517
+ "d": `M3.64644661,5.64644661 C3.82001296,5.47288026 4.08943736,5.45359511 4.2843055,5.58859116 L4.35355339,5.64644661
13518
+ L8,9.293 L11.6464466,5.64644661 C11.820013,5.47288026 12.0894374,5.45359511 12.2843055,5.58859116 L12.3535534,5.64644661
13519
+ C12.5271197,5.82001296 12.5464049,6.08943736 12.4114088,6.2843055 L12.3535534,6.35355339 L8.35355339,10.3535534
13520
+ C8.17998704,10.5271197 7.91056264,10.5464049 7.7156945,10.4114088 L7.64644661,10.3535534 L3.64644661,6.35355339
13521
+ C3.45118446,6.15829124 3.45118446,5.84170876 3.64644661,5.64644661 Z`
13522
+ }, null)])]);
13523
+ }
13524
+ function SearchIcon$1() {
13525
+ return createVNode("svg", {
13526
+ "width": "16px",
13527
+ "height": "16px",
13528
+ "viewBox": "0 0 16 16",
13529
+ "version": "1.1",
13530
+ "xmlns": "http://www.w3.org/2000/svg"
13531
+ }, [createVNode("g", {
13532
+ "id": "dv-search-icon",
13533
+ "stroke": "none",
13534
+ "stroke-width": "1",
13535
+ "fill": "none",
13536
+ "fill-rule": "evenodd"
13537
+ }, [createVNode("path", {
13538
+ "d": `M7.71295742,1.53283795 C11.0266659,1.53283795 13.7129574,4.21912945 13.7129574,7.53283795 C13.7129574,9.0690006
13539
+ 13.1356609,10.4703284 12.1861834,11.5317059 L14.5333041,13.8784875 C14.7285663,14.0737497 14.7285663,14.3903321
13540
+ 14.5333041,14.5855943 C14.3597378,14.7591606 14.0903134,14.7784458 13.8954453,14.6434497 L13.8261974,14.5855943
13541
+ L11.4604434,12.2188804 C10.4336319,13.0411023 9.13072017,13.5328379 7.71295742,13.5328379 C4.39924893,13.5328379
13542
+ 1.71295742,10.8465464 1.71295742,7.53283795 C1.71295742,4.21912945 4.39924893,1.53283795 7.71295742,1.53283795 Z M7.71295742,2.53283795
13543
+ C4.95153368,2.53283795 2.71295742,4.7714142 2.71295742,7.53283795 C2.71295742,10.2942617 4.95153368,12.5328379 7.71295742,12.5328379
13544
+ C10.4743812,12.5328379 12.7129574,10.2942617 12.7129574,7.53283795 C12.7129574,4.7714142 10.4743812,2.53283795 7.71295742,2.53283795 Z`,
13545
+ "id": "\u5F62\u72B6\u7ED3\u5408",
13546
+ "fill": "#71757F",
13547
+ "fill-rule": "nonzero"
13548
+ }, null)])]);
13549
+ }
13550
+ function InputClearIcon() {
13551
+ return createVNode("svg", {
13552
+ "width": "16px",
13553
+ "height": "16px",
13554
+ "viewBox": "0 0 16 16",
13555
+ "version": "1.1",
13556
+ "xmlns": "http://www.w3.org/2000/svg"
13557
+ }, [createVNode("g", {
13558
+ "stroke": "none",
13559
+ "stroke-width": "1",
13560
+ "fill": "none",
13561
+ "fill-rule": "evenodd"
13562
+ }, [createVNode("path", {
13563
+ "d": "M8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 C4.13400675,15 1,11.8659932 1,8 C1,4.13400675 4.13400675,1 8,1 Z M5.87867966,5.17157288 C5.68341751,4.97631073 5.36683502,4.97631073 5.17157288,5.17157288 C4.99800652,5.34513923 4.97872137,5.61456363 5.11371742,5.80943177 L5.17157288,5.87867966 L7.29218611,7.99929289 L5.17157288,10.1213203 C4.97631073,10.3165825 4.97631073,10.633165 5.17157288,10.8284271 C5.34513923,11.0019935 5.61456363,11.0212786 5.80943177,10.8862826 L5.87867966,10.8284271 L7.99929289,8.70639967 L10.1213203,10.8284271 C10.3165825,11.0236893 10.633165,11.0236893 10.8284271,10.8284271 C11.0019935,10.6548608 11.0212786,10.3854364 10.8862826,10.1905682 L10.8284271,10.1213203 L8.70710678,8 L10.8284271,5.87867966 C11.0236893,5.68341751 11.0236893,5.36683502 10.8284271,5.17157288 C10.6548608,4.99800652 10.3854364,4.97872137 10.1905682,5.11371742 L10.1213203,5.17157288 L8,7.29289322 L5.87867966,5.17157288 Z",
13564
+ "id": "\u5F62\u72B6",
13565
+ "fill": "#D5D5DB",
13566
+ "fill-rule": "nonzero"
13567
+ }, null)])]);
13568
+ }
13487
13569
  function useInputRender$1(props, ctx2) {
13488
13570
  const formContext = inject(FORM_TOKEN, void 0);
13489
13571
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
@@ -13692,11 +13774,8 @@ var DInput = defineComponent({
13692
13774
  "class": ns2.em("password", "icon"),
13693
13775
  "name": passwordVisible.value ? "preview" : "preview-forbidden",
13694
13776
  "onClick": clickPasswordIcon
13695
- }, null), showClearable.value && createVNode(DIcon, {
13696
- "size": inputSize.value,
13777
+ }, null), showClearable.value && createVNode(InputClearIcon, {
13697
13778
  "class": ns2.em("clear", "icon"),
13698
- "name": "error-o",
13699
- "color": "#adb0b8",
13700
13779
  "onClick": onClear
13701
13780
  }, null)])]), ctx2.slots.append && createVNode("div", {
13702
13781
  "class": slotNs.e("append")
@@ -13760,16 +13839,12 @@ var Cascader = defineComponent({
13760
13839
  "onBlur": onBlur
13761
13840
  }, null), !showClearable.value && createVNode("div", {
13762
13841
  "class": `${ns2.e("icon")} ${ns2.m("drop-icon-animation")}`
13763
- }, [createVNode(resolveComponent("d-icon"), {
13764
- "name": "select-arrow",
13765
- "size": "12px"
13766
- }, null)]), showClearable.value && props.clearable && createVNode("div", {
13842
+ }, [createVNode(SelectArrowIcon, null, null)]), showClearable.value && props.clearable && createVNode("div", {
13767
13843
  "class": `${ns2.e("icon")} ${ns2.e("close")}`,
13768
13844
  "onClick": clearData
13769
- }, [createVNode(resolveComponent("d-icon"), {
13770
- "name": "close",
13771
- "size": "12px"
13772
- }, null)])])]
13845
+ }, [createVNode("div", {
13846
+ "class": "close-icon-container"
13847
+ }, [createVNode(InputClearIcon, null, null)])])])]
13773
13848
  }), createVNode(Teleport, {
13774
13849
  "to": "body"
13775
13850
  }, {
@@ -13821,7 +13896,7 @@ var CascaderInstall = {
13821
13896
  app.component(Cascader.name, Cascader);
13822
13897
  }
13823
13898
  };
13824
- function SearchIcon$1() {
13899
+ function SearchIcon() {
13825
13900
  return createVNode("svg", {
13826
13901
  "width": "16px",
13827
13902
  "height": "16px",
@@ -17013,7 +17088,7 @@ var CategorySearch = defineComponent({
17013
17088
  }, [createVNode("div", {
17014
17089
  "class": "dp-category-search-icon",
17015
17090
  "onClick": onSearch
17016
- }, [createVNode(SearchIcon$1, null, null)]), createVNode("div", {
17091
+ }, [createVNode(SearchIcon, null, null)]), createVNode("div", {
17017
17092
  "ref": scrollBarRef,
17018
17093
  "class": "dp-category-search-line-container"
17019
17094
  }, [createVNode("ul", {
@@ -18726,7 +18801,7 @@ var CollapseItem = defineComponent({
18726
18801
  "onClick": handlerTitleClick
18727
18802
  }, [ctx2.slots.title ? ctx2.slots.title() : props.title, createVNode("span", {
18728
18803
  "class": ns2.e("open-icon")
18729
- }, [createVNode(OpenIcon, null, null)])]), createVNode(Transition, {
18804
+ }, [createVNode(SelectArrowIcon, null, null)])]), createVNode(Transition, {
18730
18805
  "name": transitionNs.b(),
18731
18806
  "onEnter": enter,
18732
18807
  "onLeave": leave
@@ -33580,7 +33655,7 @@ var Dropdown = defineComponent({
33580
33655
  debounceLoadMore();
33581
33656
  };
33582
33657
  const renderOption = () => {
33583
- if (props.options.length === 0) {
33658
+ if (props.options.length === 0 && !select2.loading.value) {
33584
33659
  return createVNode("li", {
33585
33660
  "class": ns2.em("item", "no-data-tip")
33586
33661
  }, [slots.noResultItem ? slots.noResultItem() : emptyText.value]);
@@ -35846,13 +35921,15 @@ function useEditorMd(props, ctx2) {
35846
35921
  customHintReplaceFn,
35847
35922
  hintConfig,
35848
35923
  disableChangeEvent,
35849
- modelValue
35924
+ modelValue,
35925
+ beforeShowHint
35850
35926
  } = toRefs(props);
35851
35927
  const toolbars = reactive(cloneDeep_1(DEFAULT_TOOLBARS));
35852
35928
  const editorRef = ref();
35853
35929
  const renderRef = ref();
35854
35930
  const overlayRef = ref();
35855
35931
  const cursorRef = ref();
35932
+ const containerRef = ref();
35856
35933
  const isHintShow = ref();
35857
35934
  const previewHtmlList = ref([]);
35858
35935
  let editorIns;
@@ -35966,6 +36043,13 @@ function useEditorMd(props, ctx2) {
35966
36043
  const cursor = editorIns.getCursor();
35967
36044
  let i = prefixes.value.length;
35968
36045
  const value = editorIns.getLine(cursor.line).replace(/\t/g, " ");
36046
+ let result2 = false;
36047
+ if (beforeShowHint == null ? void 0 : beforeShowHint.value) {
36048
+ result2 = beforeShowHint.value(value);
36049
+ }
36050
+ if (result2) {
36051
+ return;
36052
+ }
35969
36053
  const selection = editorIns.getSelection();
35970
36054
  const isImgRegx = /^\!\[\S+/;
35971
36055
  if (selection) {
@@ -36080,12 +36164,22 @@ function useEditorMd(props, ctx2) {
36080
36164
  }
36081
36165
  }
36082
36166
  };
36167
+ const onDocumentClick = (e) => {
36168
+ var _a2;
36169
+ if (isHintShow.value && e.target !== containerRef.value && !((_a2 = containerRef.value) == null ? void 0 : _a2.contains(e.target))) {
36170
+ hideHint();
36171
+ }
36172
+ };
36083
36173
  onMounted(async () => {
36084
36174
  await import("codemirror/addon/display/placeholder.js");
36085
36175
  await import("codemirror/mode/markdown/markdown.js");
36086
36176
  const module2 = await import("codemirror");
36087
36177
  CodeMirror = module2.default;
36088
36178
  initEditor();
36179
+ document.addEventListener("click", onDocumentClick);
36180
+ });
36181
+ onBeforeUnmount(() => {
36182
+ document.removeEventListener("click", onDocumentClick);
36089
36183
  });
36090
36184
  watch(modelValue, (val) => {
36091
36185
  if (editorIns) {
@@ -36126,6 +36220,7 @@ function useEditorMd(props, ctx2) {
36126
36220
  overlayRef,
36127
36221
  cursorRef,
36128
36222
  renderRef,
36223
+ containerRef,
36129
36224
  toolbars,
36130
36225
  previewHtmlList,
36131
36226
  isHintShow,
@@ -36253,6 +36348,9 @@ const editorMdProps = __spreadProps(__spreadValues({}, commonProps$1), {
36253
36348
  },
36254
36349
  customHintReplaceFn: {
36255
36350
  type: Function
36351
+ },
36352
+ beforeShowHint: {
36353
+ type: Function
36256
36354
  }
36257
36355
  });
36258
36356
  const EditorMdInjectionKey = Symbol("d-editor-md");
@@ -37113,6 +37211,7 @@ var EditorMd = defineComponent({
37113
37211
  overlayRef,
37114
37212
  cursorRef,
37115
37213
  renderRef,
37214
+ containerRef,
37116
37215
  isHintShow,
37117
37216
  toolbars,
37118
37217
  previewHtmlList,
@@ -37143,6 +37242,7 @@ var EditorMd = defineComponent({
37143
37242
  "z-index": fullscreenZIndex.value
37144
37243
  }, {
37145
37244
  default: () => [createVNode("div", {
37245
+ "ref": containerRef,
37146
37246
  "class": ["dp-md-container", {
37147
37247
  "dp-md-readonly": mode.value === "readonly",
37148
37248
  "dp-md-editonly": mode.value === "editonly",
@@ -37169,7 +37269,9 @@ var EditorMd = defineComponent({
37169
37269
  "onUpdate:modelValue": ($event) => isHintShow.value = $event,
37170
37270
  "origin": cursorRef.value || void 0,
37171
37271
  "align": "start",
37172
- "position": ["bottom-start"]
37272
+ "position": ["bottom-start"],
37273
+ "onClick": withModifiers(() => {
37274
+ }, ["stop"])
37173
37275
  }, {
37174
37276
  default: () => {
37175
37277
  var _a2, _b;
@@ -41221,6 +41323,30 @@ var ModalBody = defineComponent({
41221
41323
  };
41222
41324
  }
41223
41325
  });
41326
+ function CloseIcon() {
41327
+ return createVNode("svg", {
41328
+ "width": "16px",
41329
+ "height": "16px",
41330
+ "viewBox": "0 0 16 16",
41331
+ "version": "1.1",
41332
+ "xmlns": "http://www.w3.org/2000/svg"
41333
+ }, [createVNode("g", {
41334
+ "stroke": "none",
41335
+ "stroke-width": "1",
41336
+ "fill": "none",
41337
+ "fill-rule": "evenodd"
41338
+ }, [createVNode("path", {
41339
+ "d": `M14.6887175,1.25368865 C15.0770801,1.64205125 15.0121881,2.34244569 14.544513,2.81012074 L9.383,7.971 L14.544513,13.1322854
41340
+ C14.9787827,13.5665551 15.0657548,14.2014859 14.7650189,14.6009195 L14.6887175,14.6887175 C14.3003549,15.0770801
41341
+ 13.5999604,15.0121881 13.1322854,14.544513 L13.1322854,14.544513 L7.971,9.383 L2.81012075,14.544513 C2.3424457,15.0121881
41342
+ 1.64205125,15.0770801 1.25368865,14.6887175 C0.865326051,14.3003549 0.930218063,13.5999605 1.39789313,13.1322854 L6.558,7.971
41343
+ L1.39789311,2.81012074 C0.963623424,2.37585105 0.876651354,1.74092026 1.17738727,1.34148668 L1.25368865,1.25368865
41344
+ C1.64205125,0.865326051 2.34244569,0.930218063 2.81012074,1.39789311 L2.81012074,1.39789311 L7.971,6.558 L13.1322854,1.39789311
41345
+ C13.5999605,0.930218063 14.3003549,0.865326051 14.6887175,1.25368865 Z`,
41346
+ "fill": "#8A8E99",
41347
+ "fill-rule": "nonzero"
41348
+ }, null)])]);
41349
+ }
41224
41350
  var modal = "";
41225
41351
  var Modal = defineComponent({
41226
41352
  name: "DModal",
@@ -41337,8 +41463,8 @@ var Modal = defineComponent({
41337
41463
  "onClick": execClose,
41338
41464
  "class": "btn-close"
41339
41465
  }, [createVNode(DIcon, {
41340
- "name": "close",
41341
- "size": "20px"
41466
+ "operable": true,
41467
+ "component": CloseIcon()
41342
41468
  }, null)]), props.type ? renderType() : createVNode("div", {
41343
41469
  "style": {
41344
41470
  cursor: props.draggable ? "move" : "default"
@@ -42148,6 +42274,9 @@ function useSelect$2(props, selectRef, ctx2, focus, blur2, isSelectFocus, t) {
42148
42274
  (_a2 = dropdownRef.value) == null ? void 0 : _a2.updatePosition();
42149
42275
  }
42150
42276
  }, { flush: "post" });
42277
+ onMounted(() => {
42278
+ nextTick(updateInjectOptionsStatus);
42279
+ });
42151
42280
  return {
42152
42281
  selectDisabled,
42153
42282
  selectSize,
@@ -42371,24 +42500,6 @@ var Option = defineComponent({
42371
42500
  };
42372
42501
  }
42373
42502
  });
42374
- const SelectArrowIcon = () => createVNode("svg", {
42375
- "width": "1em",
42376
- "height": "1em",
42377
- "viewBox": "0 0 16 16",
42378
- "version": "1.1",
42379
- "xmlns": "http://www.w3.org/2000/svg"
42380
- }, [createVNode("g", {
42381
- "stroke": "none",
42382
- "stroke-width": "1",
42383
- "fill": "none",
42384
- "fill-rule": "evenodd"
42385
- }, [createVNode("path", {
42386
- "d": `M12.1464466,6.85355339 L8.35355339,10.6464466 C8.15829124,10.8417088 7.84170876,10.8417088
42387
- 7.64644661,10.6464466 L3.85355339,6.85355339 C3.65829124,6.65829124 3.65829124,6.34170876
42388
- 3.85355339,6.14644661 C3.94732158,6.05267842 4.07449854,6 4.20710678,6 L11.7928932,6 C12.0690356,6
42389
- 12.2928932,6.22385763 12.2928932,6.5 C12.2928932,6.63260824 12.2402148,6.7597852 12.1464466,6.85355339 Z`,
42390
- "fill-rule": "nonzero"
42391
- }, null)])]);
42392
42503
  function useSelectContent() {
42393
42504
  const ns2 = useNamespace$1("select");
42394
42505
  const select2 = inject(SELECT_TOKEN);
@@ -42579,7 +42690,7 @@ var SelectContent = defineComponent({
42579
42690
  }, null), createVNode("span", {
42580
42691
  "onClick": handleClear,
42581
42692
  "class": clearCls.value
42582
- }, [createVNode(AlertCloseIcon, null, null)]), createVNode("span", {
42693
+ }, [createVNode(InputClearIcon, null, null)]), createVNode("span", {
42583
42694
  "class": arrowCls.value
42584
42695
  }, [createVNode(SelectArrowIcon, null, null)])]);
42585
42696
  };
@@ -43277,7 +43388,7 @@ var PageSize = defineComponent({
43277
43388
  setup() {
43278
43389
  const ns2 = useNamespace("pagination");
43279
43390
  const paginationContext = inject(paginationInjectionKey);
43280
- const iconRotate = ref(0);
43391
+ const isOpen = ref(false);
43281
43392
  const {
43282
43393
  size,
43283
43394
  currentPageSize,
@@ -43286,8 +43397,13 @@ var PageSize = defineComponent({
43286
43397
  pageSizeChange,
43287
43398
  t
43288
43399
  } = paginationContext;
43400
+ const pageSizeClasses = computed(() => ({
43401
+ [ns2.e("size")]: true,
43402
+ [ns2.em("size", size.value)]: Boolean(size.value),
43403
+ [ns2.em("size", "open")]: isOpen.value
43404
+ }));
43289
43405
  const onDropdownToggle = (e) => {
43290
- iconRotate.value = e ? 180 : 0;
43406
+ isOpen.value = e;
43291
43407
  };
43292
43408
  return () => createVNode(Fragment, null, [createVNode(Dropdown$1, {
43293
43409
  "position": pageSizeDirection.value,
@@ -43296,14 +43412,8 @@ var PageSize = defineComponent({
43296
43412
  }, {
43297
43413
  default: () => createVNode("div", {
43298
43414
  "tabindex": "0",
43299
- "class": [ns2.e("size"), size.value ? ns2.em("size", size.value) : ""]
43300
- }, [createVNode(DIcon, {
43301
- "name": "select-arrow",
43302
- "size": "16px",
43303
- "rotate": iconRotate.value
43304
- }, {
43305
- prefix: () => createVNode("span", null, [currentPageSize.value])
43306
- })]),
43415
+ "class": pageSizeClasses.value
43416
+ }, [createVNode("span", null, [currentPageSize.value]), createVNode(SelectArrowIcon, null, null)]),
43307
43417
  menu: () => createVNode("ul", null, [pageSizeOptions.value.map((item, index2) => createVNode("li", {
43308
43418
  "class": {
43309
43419
  active: item === currentPageSize.value
@@ -45305,26 +45415,6 @@ const keydownHandles = (ctx2, keywords, props) => {
45305
45415
  };
45306
45416
  };
45307
45417
  var search = "";
45308
- const SearchCloseIcon = () => createVNode("svg", {
45309
- "viewBox": "0 0 1024 1024",
45310
- "width": "12px",
45311
- "height": "12px"
45312
- }, [createVNode("path", {
45313
- "d": `M940.8 207.530667L818.602667 85.333333l-305.493334 305.493334L207.616 85.333333
45314
- 85.333333 207.530667l305.493334 305.493333L85.333333 818.517333l122.282667 122.282667
45315
- 305.493333-305.493333 305.493334 305.493333 122.197333-122.282667-305.493333-305.493333z`,
45316
- "p-id": "30810"
45317
- }, null)]);
45318
- const SearchIcon = () => createVNode("svg", {
45319
- "viewBox": "0 0 1024 1024",
45320
- "version": "1.1",
45321
- "width": "12px",
45322
- "height": "12px"
45323
- }, [createVNode("path", {
45324
- "d": "M1005.312 914.752l-198.528-198.464A448 448 0 1 0 0 448a448 448 0 0 0 716.288 358.784l198.4 198.4a64 64 0 1 0 90.624-90.432zM448 767.936A320 320 0 1 1 448 128a320 320 0 0 1 0 640z",
45325
- "fill": "#262626",
45326
- "p-id": "32547"
45327
- }, null)]);
45328
45418
  var DSearch = defineComponent({
45329
45419
  name: "DSearch",
45330
45420
  props: searchProps,
@@ -45379,13 +45469,13 @@ var DSearch = defineComponent({
45379
45469
  }, [props.iconPosition === "left" && createVNode("div", {
45380
45470
  "class": ns2.e("icon"),
45381
45471
  "onClick": onClickHandle
45382
- }, [createVNode(SearchIcon, null, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
45472
+ }, [createVNode(SearchIcon$1, null, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
45383
45473
  "class": ns2.e("clear"),
45384
45474
  "onClick": onClearHandle
45385
- }, [createVNode(SearchCloseIcon, null, null)]), props.iconPosition === "right" && createVNode("div", {
45475
+ }, [createVNode(InputClearIcon, null, null)]), props.iconPosition === "right" && createVNode("div", {
45386
45476
  "class": ns2.e("icon"),
45387
45477
  "onClick": onClickHandle
45388
- }, [createVNode(SearchIcon, null, null)])]);
45478
+ }, [createVNode(SearchIcon$1, null, null)])]);
45389
45479
  };
45390
45480
  }
45391
45481
  });
@@ -54098,7 +54188,7 @@ const installs = [
54098
54188
  VirtualListInstall
54099
54189
  ];
54100
54190
  var vueDevui = {
54101
- version: "1.6.4",
54191
+ version: "1.6.5",
54102
54192
  install(app) {
54103
54193
  installs.forEach((p) => app.use(p));
54104
54194
  }