vue-devui 1.6.4-markdown.1 → 1.6.4

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 (72) hide show
  1. package/auto-complete/index.es.js +2 -1
  2. package/auto-complete/index.umd.js +1 -1
  3. package/button/index.es.js +2 -1
  4. package/button/index.umd.js +1 -1
  5. package/carousel/index.es.js +213 -36
  6. package/carousel/index.umd.js +1 -1
  7. package/carousel/style.css +1 -1
  8. package/category-search/index.es.js +2 -1
  9. package/category-search/index.umd.js +1 -1
  10. package/collapse/index.es.js +18 -15
  11. package/collapse/index.umd.js +5 -5
  12. package/data-grid/index.es.js +2 -1
  13. package/data-grid/index.umd.js +1 -1
  14. package/date-picker-pro/index.es.js +6 -21
  15. package/date-picker-pro/index.umd.js +12 -12
  16. package/date-picker-pro/style.css +1 -1
  17. package/editable-select/index.es.js +2 -1
  18. package/editable-select/index.umd.js +1 -1
  19. package/editor-md/index.es.js +3 -30
  20. package/editor-md/index.umd.js +14 -14
  21. package/icon/index.es.js +2 -1
  22. package/icon/index.umd.js +1 -1
  23. package/input/index.es.js +6 -21
  24. package/input/index.umd.js +11 -11
  25. package/input/style.css +1 -1
  26. package/mention/index.es.js +2 -1
  27. package/mention/index.umd.js +1 -1
  28. package/message/index.es.js +2 -1
  29. package/message/index.umd.js +1 -1
  30. package/modal/index.es.js +4 -27
  31. package/modal/index.umd.js +1 -7
  32. package/modal/style.css +1 -1
  33. package/notification/index.es.js +2 -1
  34. package/notification/index.umd.js +2 -2
  35. package/package.json +1 -1
  36. package/pagination/index.es.js +238 -50
  37. package/pagination/index.umd.js +21 -16
  38. package/pagination/style.css +1 -1
  39. package/result/index.es.js +2 -1
  40. package/result/index.umd.js +1 -1
  41. package/search/index.es.js +27 -48
  42. package/search/index.umd.js +14 -18
  43. package/search/style.css +1 -1
  44. package/select/index.es.js +42 -40
  45. package/select/index.umd.js +15 -10
  46. package/select/style.css +1 -1
  47. package/steps/index.es.js +2 -1
  48. package/steps/index.umd.js +1 -1
  49. package/style.css +2 -2
  50. package/table/index.es.js +2 -1
  51. package/table/index.umd.js +1 -1
  52. package/time-picker/index.es.js +6 -21
  53. package/time-picker/index.umd.js +16 -16
  54. package/time-picker/style.css +1 -1
  55. package/time-select/index.es.js +42 -40
  56. package/time-select/index.umd.js +10 -5
  57. package/time-select/style.css +1 -1
  58. package/timeline/index.es.js +2 -1
  59. package/timeline/index.umd.js +1 -1
  60. package/types/editor-md/src/composables/use-editor-md.d.ts +0 -1
  61. package/types/editor-md/src/editor-md-types.d.ts +0 -3
  62. package/types/icon/src/icon-types.d.ts +1 -0
  63. package/types/search/src/components/search-close-icon.d.ts +2 -0
  64. package/types/search/src/components/search-icon.d.ts +2 -0
  65. package/types/select/src/components/select-arrow-icon.d.ts +2 -0
  66. package/upload/index.es.js +2 -1
  67. package/upload/index.umd.js +2 -2
  68. package/vue-devui.es.js +80 -180
  69. package/vue-devui.umd.js +86 -97
  70. package/types/carousel/src/components/carousel-icons.d.ts +0 -2
  71. package/types/modal/src/components/modal-icons.d.ts +0 -1
  72. package/types/svg-icons/index.d.ts +0 -3
package/vue-devui.es.js CHANGED
@@ -10302,7 +10302,8 @@ const DEFAULT_PREFIX = "icon";
10302
10302
  const iconProps = {
10303
10303
  name: {
10304
10304
  type: String,
10305
- default: ""
10305
+ default: "",
10306
+ required: true
10306
10307
  },
10307
10308
  size: {
10308
10309
  type: [Number, String],
@@ -11991,41 +11992,6 @@ const carouselProps = {
11991
11992
  default: 500
11992
11993
  }
11993
11994
  };
11994
- function CarouselArrowLeft() {
11995
- return createVNode("svg", {
11996
- "width": "18px",
11997
- "height": "18px",
11998
- "viewBox": "0 0 16 16",
11999
- "version": "1.1"
12000
- }, [createVNode("g", {
12001
- "stroke": "none",
12002
- "stroke-width": "1",
12003
- "fill": "none",
12004
- "fill-rule": "evenodd"
12005
- }, [createVNode("polygon", {
12006
- "fill": "#293040",
12007
- "fill-rule": "nonzero",
12008
- "points": "10.7071068 12.2928932 9.29289322 13.7071068 3.58578644 8 9.29289322 2.29289322 10.7071068 3.70710678 6.41421356 8"
12009
- }, null)])]);
12010
- }
12011
- function CarouselArrowRight() {
12012
- return createVNode("svg", {
12013
- "width": "18px",
12014
- "height": "18px",
12015
- "viewBox": "0 0 16 16",
12016
- "version": "1.1"
12017
- }, [createVNode("g", {
12018
- "stroke": "none",
12019
- "stroke-width": "1",
12020
- "fill": "none",
12021
- "fill-rule": "evenodd"
12022
- }, [createVNode("polygon", {
12023
- "fill": "#293040",
12024
- "fill-rule": "nonzero",
12025
- "transform": "translate(8.146447, 8.000000) scale(-1, 1) translate(-8.146447, -8.000000) ",
12026
- "points": "11.7071068 12.2928932 10.2928932 13.7071068 4.58578644 8 10.2928932 2.29289322 11.7071068 3.70710678 7.41421356 8"
12027
- }, null)])]);
12028
- }
12029
11995
  var carousel = "";
12030
11996
  var Carousel = defineComponent({
12031
11997
  name: "DCarousel",
@@ -12185,10 +12151,14 @@ var Carousel = defineComponent({
12185
12151
  }, [createVNode("button", {
12186
12152
  "class": "arrow-left",
12187
12153
  "onClick": () => prev()
12188
- }, [createVNode(CarouselArrowLeft, null, null)]), createVNode("button", {
12154
+ }, [createVNode(DIcon, {
12155
+ "name": "arrow-left"
12156
+ }, null)]), createVNode("button", {
12189
12157
  "class": "arrow-right",
12190
12158
  "onClick": () => next()
12191
- }, [createVNode(CarouselArrowRight, null, null)])]) : null, createVNode("div", {
12159
+ }, [createVNode(DIcon, {
12160
+ "name": "arrow-right"
12161
+ }, null)])]) : null, createVNode("div", {
12192
12162
  "class": ns2.e("item-wrapper"),
12193
12163
  "ref": wrapperRef
12194
12164
  }, [createVNode("div", {
@@ -13514,71 +13484,6 @@ const inputProps = {
13514
13484
  default: false
13515
13485
  }
13516
13486
  };
13517
- function SelectArrowIcon() {
13518
- return createVNode("svg", {
13519
- "width": "16px",
13520
- "height": "16px",
13521
- "viewBox": "0 0 16 16",
13522
- "version": "1.1",
13523
- "xmlns": "http://www.w3.org/2000/svg"
13524
- }, [createVNode("g", {
13525
- "stroke": "none",
13526
- "stroke-width": "1",
13527
- "fill": "none",
13528
- "fill-rule": "evenodd"
13529
- }, [createVNode("path", {
13530
- "d": `M3.64644661,5.64644661 C3.82001296,5.47288026 4.08943736,5.45359511 4.2843055,5.58859116 L4.35355339,5.64644661
13531
- L8,9.293 L11.6464466,5.64644661 C11.820013,5.47288026 12.0894374,5.45359511 12.2843055,5.58859116 L12.3535534,5.64644661
13532
- C12.5271197,5.82001296 12.5464049,6.08943736 12.4114088,6.2843055 L12.3535534,6.35355339 L8.35355339,10.3535534
13533
- C8.17998704,10.5271197 7.91056264,10.5464049 7.7156945,10.4114088 L7.64644661,10.3535534 L3.64644661,6.35355339
13534
- C3.45118446,6.15829124 3.45118446,5.84170876 3.64644661,5.64644661 Z`
13535
- }, null)])]);
13536
- }
13537
- function SearchIcon$1() {
13538
- return createVNode("svg", {
13539
- "width": "16px",
13540
- "height": "16px",
13541
- "viewBox": "0 0 16 16",
13542
- "version": "1.1",
13543
- "xmlns": "http://www.w3.org/2000/svg"
13544
- }, [createVNode("g", {
13545
- "id": "dv-search-icon",
13546
- "stroke": "none",
13547
- "stroke-width": "1",
13548
- "fill": "none",
13549
- "fill-rule": "evenodd"
13550
- }, [createVNode("path", {
13551
- "d": `M7.71295742,1.53283795 C11.0266659,1.53283795 13.7129574,4.21912945 13.7129574,7.53283795 C13.7129574,9.0690006
13552
- 13.1356609,10.4703284 12.1861834,11.5317059 L14.5333041,13.8784875 C14.7285663,14.0737497 14.7285663,14.3903321
13553
- 14.5333041,14.5855943 C14.3597378,14.7591606 14.0903134,14.7784458 13.8954453,14.6434497 L13.8261974,14.5855943
13554
- L11.4604434,12.2188804 C10.4336319,13.0411023 9.13072017,13.5328379 7.71295742,13.5328379 C4.39924893,13.5328379
13555
- 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
13556
- C4.95153368,2.53283795 2.71295742,4.7714142 2.71295742,7.53283795 C2.71295742,10.2942617 4.95153368,12.5328379 7.71295742,12.5328379
13557
- 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`,
13558
- "id": "\u5F62\u72B6\u7ED3\u5408",
13559
- "fill": "#71757F",
13560
- "fill-rule": "nonzero"
13561
- }, null)])]);
13562
- }
13563
- function InputClearIcon() {
13564
- return createVNode("svg", {
13565
- "width": "16px",
13566
- "height": "16px",
13567
- "viewBox": "0 0 16 16",
13568
- "version": "1.1",
13569
- "xmlns": "http://www.w3.org/2000/svg"
13570
- }, [createVNode("g", {
13571
- "stroke": "none",
13572
- "stroke-width": "1",
13573
- "fill": "none",
13574
- "fill-rule": "evenodd"
13575
- }, [createVNode("path", {
13576
- "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",
13577
- "id": "\u5F62\u72B6",
13578
- "fill": "#D5D5DB",
13579
- "fill-rule": "nonzero"
13580
- }, null)])]);
13581
- }
13582
13487
  function useInputRender$1(props, ctx2) {
13583
13488
  const formContext = inject(FORM_TOKEN, void 0);
13584
13489
  const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
@@ -13787,8 +13692,11 @@ var DInput = defineComponent({
13787
13692
  "class": ns2.em("password", "icon"),
13788
13693
  "name": passwordVisible.value ? "preview" : "preview-forbidden",
13789
13694
  "onClick": clickPasswordIcon
13790
- }, null), showClearable.value && createVNode(InputClearIcon, {
13695
+ }, null), showClearable.value && createVNode(DIcon, {
13696
+ "size": inputSize.value,
13791
13697
  "class": ns2.em("clear", "icon"),
13698
+ "name": "error-o",
13699
+ "color": "#adb0b8",
13792
13700
  "onClick": onClear
13793
13701
  }, null)])]), ctx2.slots.append && createVNode("div", {
13794
13702
  "class": slotNs.e("append")
@@ -13852,12 +13760,16 @@ var Cascader = defineComponent({
13852
13760
  "onBlur": onBlur
13853
13761
  }, null), !showClearable.value && createVNode("div", {
13854
13762
  "class": `${ns2.e("icon")} ${ns2.m("drop-icon-animation")}`
13855
- }, [createVNode(SelectArrowIcon, null, null)]), showClearable.value && props.clearable && createVNode("div", {
13763
+ }, [createVNode(resolveComponent("d-icon"), {
13764
+ "name": "select-arrow",
13765
+ "size": "12px"
13766
+ }, null)]), showClearable.value && props.clearable && createVNode("div", {
13856
13767
  "class": `${ns2.e("icon")} ${ns2.e("close")}`,
13857
13768
  "onClick": clearData
13858
- }, [createVNode("div", {
13859
- "class": "close-icon-container"
13860
- }, [createVNode(InputClearIcon, null, null)])])])]
13769
+ }, [createVNode(resolveComponent("d-icon"), {
13770
+ "name": "close",
13771
+ "size": "12px"
13772
+ }, null)])])]
13861
13773
  }), createVNode(Teleport, {
13862
13774
  "to": "body"
13863
13775
  }, {
@@ -13909,7 +13821,7 @@ var CascaderInstall = {
13909
13821
  app.component(Cascader.name, Cascader);
13910
13822
  }
13911
13823
  };
13912
- function SearchIcon() {
13824
+ function SearchIcon$1() {
13913
13825
  return createVNode("svg", {
13914
13826
  "width": "16px",
13915
13827
  "height": "16px",
@@ -17101,7 +17013,7 @@ var CategorySearch = defineComponent({
17101
17013
  }, [createVNode("div", {
17102
17014
  "class": "dp-category-search-icon",
17103
17015
  "onClick": onSearch
17104
- }, [createVNode(SearchIcon, null, null)]), createVNode("div", {
17016
+ }, [createVNode(SearchIcon$1, null, null)]), createVNode("div", {
17105
17017
  "ref": scrollBarRef,
17106
17018
  "class": "dp-category-search-line-container"
17107
17019
  }, [createVNode("ul", {
@@ -18814,7 +18726,7 @@ var CollapseItem = defineComponent({
18814
18726
  "onClick": handlerTitleClick
18815
18727
  }, [ctx2.slots.title ? ctx2.slots.title() : props.title, createVNode("span", {
18816
18728
  "class": ns2.e("open-icon")
18817
- }, [createVNode(SelectArrowIcon, null, null)])]), createVNode(Transition, {
18729
+ }, [createVNode(OpenIcon, null, null)])]), createVNode(Transition, {
18818
18730
  "name": transitionNs.b(),
18819
18731
  "onEnter": enter,
18820
18732
  "onLeave": leave
@@ -35934,15 +35846,13 @@ function useEditorMd(props, ctx2) {
35934
35846
  customHintReplaceFn,
35935
35847
  hintConfig,
35936
35848
  disableChangeEvent,
35937
- modelValue,
35938
- beforeShowHint
35849
+ modelValue
35939
35850
  } = toRefs(props);
35940
35851
  const toolbars = reactive(cloneDeep_1(DEFAULT_TOOLBARS));
35941
35852
  const editorRef = ref();
35942
35853
  const renderRef = ref();
35943
35854
  const overlayRef = ref();
35944
35855
  const cursorRef = ref();
35945
- const containerRef = ref();
35946
35856
  const isHintShow = ref();
35947
35857
  const previewHtmlList = ref([]);
35948
35858
  let editorIns;
@@ -36056,13 +35966,6 @@ function useEditorMd(props, ctx2) {
36056
35966
  const cursor = editorIns.getCursor();
36057
35967
  let i = prefixes.value.length;
36058
35968
  const value = editorIns.getLine(cursor.line).replace(/\t/g, " ");
36059
- let result2 = false;
36060
- if (beforeShowHint == null ? void 0 : beforeShowHint.value) {
36061
- result2 = beforeShowHint.value(value);
36062
- }
36063
- if (result2) {
36064
- return;
36065
- }
36066
35969
  const selection = editorIns.getSelection();
36067
35970
  const isImgRegx = /^\!\[\S+/;
36068
35971
  if (selection) {
@@ -36177,22 +36080,12 @@ function useEditorMd(props, ctx2) {
36177
36080
  }
36178
36081
  }
36179
36082
  };
36180
- const onDocumentClick = (e) => {
36181
- var _a2;
36182
- if (isHintShow.value && e.target !== containerRef.value && !((_a2 = containerRef.value) == null ? void 0 : _a2.contains(e.target))) {
36183
- hideHint();
36184
- }
36185
- };
36186
36083
  onMounted(async () => {
36187
36084
  await import("codemirror/addon/display/placeholder.js");
36188
36085
  await import("codemirror/mode/markdown/markdown.js");
36189
36086
  const module2 = await import("codemirror");
36190
36087
  CodeMirror = module2.default;
36191
36088
  initEditor();
36192
- document.addEventListener("click", onDocumentClick);
36193
- });
36194
- onBeforeUnmount(() => {
36195
- document.removeEventListener("click", onDocumentClick);
36196
36089
  });
36197
36090
  watch(modelValue, (val) => {
36198
36091
  if (editorIns) {
@@ -36233,7 +36126,6 @@ function useEditorMd(props, ctx2) {
36233
36126
  overlayRef,
36234
36127
  cursorRef,
36235
36128
  renderRef,
36236
- containerRef,
36237
36129
  toolbars,
36238
36130
  previewHtmlList,
36239
36131
  isHintShow,
@@ -36361,9 +36253,6 @@ const editorMdProps = __spreadProps(__spreadValues({}, commonProps$1), {
36361
36253
  },
36362
36254
  customHintReplaceFn: {
36363
36255
  type: Function
36364
- },
36365
- beforeShowHint: {
36366
- type: Function
36367
36256
  }
36368
36257
  });
36369
36258
  const EditorMdInjectionKey = Symbol("d-editor-md");
@@ -37224,7 +37113,6 @@ var EditorMd = defineComponent({
37224
37113
  overlayRef,
37225
37114
  cursorRef,
37226
37115
  renderRef,
37227
- containerRef,
37228
37116
  isHintShow,
37229
37117
  toolbars,
37230
37118
  previewHtmlList,
@@ -37255,7 +37143,6 @@ var EditorMd = defineComponent({
37255
37143
  "z-index": fullscreenZIndex.value
37256
37144
  }, {
37257
37145
  default: () => [createVNode("div", {
37258
- "ref": containerRef,
37259
37146
  "class": ["dp-md-container", {
37260
37147
  "dp-md-readonly": mode.value === "readonly",
37261
37148
  "dp-md-editonly": mode.value === "editonly",
@@ -37282,9 +37169,7 @@ var EditorMd = defineComponent({
37282
37169
  "onUpdate:modelValue": ($event) => isHintShow.value = $event,
37283
37170
  "origin": cursorRef.value || void 0,
37284
37171
  "align": "start",
37285
- "position": ["bottom-start"],
37286
- "onClick": withModifiers(() => {
37287
- }, ["stop"])
37172
+ "position": ["bottom-start"]
37288
37173
  }, {
37289
37174
  default: () => {
37290
37175
  var _a2, _b;
@@ -41336,30 +41221,6 @@ var ModalBody = defineComponent({
41336
41221
  };
41337
41222
  }
41338
41223
  });
41339
- function CloseIcon() {
41340
- return createVNode("svg", {
41341
- "width": "16px",
41342
- "height": "16px",
41343
- "viewBox": "0 0 16 16",
41344
- "version": "1.1",
41345
- "xmlns": "http://www.w3.org/2000/svg"
41346
- }, [createVNode("g", {
41347
- "stroke": "none",
41348
- "stroke-width": "1",
41349
- "fill": "none",
41350
- "fill-rule": "evenodd"
41351
- }, [createVNode("path", {
41352
- "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
41353
- C14.9787827,13.5665551 15.0657548,14.2014859 14.7650189,14.6009195 L14.6887175,14.6887175 C14.3003549,15.0770801
41354
- 13.5999604,15.0121881 13.1322854,14.544513 L13.1322854,14.544513 L7.971,9.383 L2.81012075,14.544513 C2.3424457,15.0121881
41355
- 1.64205125,15.0770801 1.25368865,14.6887175 C0.865326051,14.3003549 0.930218063,13.5999605 1.39789313,13.1322854 L6.558,7.971
41356
- L1.39789311,2.81012074 C0.963623424,2.37585105 0.876651354,1.74092026 1.17738727,1.34148668 L1.25368865,1.25368865
41357
- C1.64205125,0.865326051 2.34244569,0.930218063 2.81012074,1.39789311 L2.81012074,1.39789311 L7.971,6.558 L13.1322854,1.39789311
41358
- C13.5999605,0.930218063 14.3003549,0.865326051 14.6887175,1.25368865 Z`,
41359
- "fill": "#8A8E99",
41360
- "fill-rule": "nonzero"
41361
- }, null)])]);
41362
- }
41363
41224
  var modal = "";
41364
41225
  var Modal = defineComponent({
41365
41226
  name: "DModal",
@@ -41476,8 +41337,8 @@ var Modal = defineComponent({
41476
41337
  "onClick": execClose,
41477
41338
  "class": "btn-close"
41478
41339
  }, [createVNode(DIcon, {
41479
- "operable": true,
41480
- "component": CloseIcon()
41340
+ "name": "close",
41341
+ "size": "20px"
41481
41342
  }, null)]), props.type ? renderType() : createVNode("div", {
41482
41343
  "style": {
41483
41344
  cursor: props.draggable ? "move" : "default"
@@ -42510,6 +42371,24 @@ var Option = defineComponent({
42510
42371
  };
42511
42372
  }
42512
42373
  });
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)])]);
42513
42392
  function useSelectContent() {
42514
42393
  const ns2 = useNamespace$1("select");
42515
42394
  const select2 = inject(SELECT_TOKEN);
@@ -42700,7 +42579,7 @@ var SelectContent = defineComponent({
42700
42579
  }, null), createVNode("span", {
42701
42580
  "onClick": handleClear,
42702
42581
  "class": clearCls.value
42703
- }, [createVNode(InputClearIcon, null, null)]), createVNode("span", {
42582
+ }, [createVNode(AlertCloseIcon, null, null)]), createVNode("span", {
42704
42583
  "class": arrowCls.value
42705
42584
  }, [createVNode(SelectArrowIcon, null, null)])]);
42706
42585
  };
@@ -43398,7 +43277,7 @@ var PageSize = defineComponent({
43398
43277
  setup() {
43399
43278
  const ns2 = useNamespace("pagination");
43400
43279
  const paginationContext = inject(paginationInjectionKey);
43401
- const isOpen = ref(false);
43280
+ const iconRotate = ref(0);
43402
43281
  const {
43403
43282
  size,
43404
43283
  currentPageSize,
@@ -43407,13 +43286,8 @@ var PageSize = defineComponent({
43407
43286
  pageSizeChange,
43408
43287
  t
43409
43288
  } = paginationContext;
43410
- const pageSizeClasses = computed(() => ({
43411
- [ns2.e("size")]: true,
43412
- [ns2.em("size", size.value)]: Boolean(size.value),
43413
- [ns2.em("size", "open")]: isOpen.value
43414
- }));
43415
43289
  const onDropdownToggle = (e) => {
43416
- isOpen.value = e;
43290
+ iconRotate.value = e ? 180 : 0;
43417
43291
  };
43418
43292
  return () => createVNode(Fragment, null, [createVNode(Dropdown$1, {
43419
43293
  "position": pageSizeDirection.value,
@@ -43422,8 +43296,14 @@ var PageSize = defineComponent({
43422
43296
  }, {
43423
43297
  default: () => createVNode("div", {
43424
43298
  "tabindex": "0",
43425
- "class": pageSizeClasses.value
43426
- }, [createVNode("span", null, [currentPageSize.value]), createVNode(SelectArrowIcon, null, null)]),
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
+ })]),
43427
43307
  menu: () => createVNode("ul", null, [pageSizeOptions.value.map((item, index2) => createVNode("li", {
43428
43308
  "class": {
43429
43309
  active: item === currentPageSize.value
@@ -45425,6 +45305,26 @@ const keydownHandles = (ctx2, keywords, props) => {
45425
45305
  };
45426
45306
  };
45427
45307
  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)]);
45428
45328
  var DSearch = defineComponent({
45429
45329
  name: "DSearch",
45430
45330
  props: searchProps,
@@ -45479,13 +45379,13 @@ var DSearch = defineComponent({
45479
45379
  }, [props.iconPosition === "left" && createVNode("div", {
45480
45380
  "class": ns2.e("icon"),
45481
45381
  "onClick": onClickHandle
45482
- }, [createVNode(SearchIcon$1, null, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
45382
+ }, [createVNode(SearchIcon, null, null)]), createVNode(DInput, inputProps2, null), clearIconShow.value && createVNode("div", {
45483
45383
  "class": ns2.e("clear"),
45484
45384
  "onClick": onClearHandle
45485
- }, [createVNode(InputClearIcon, null, null)]), props.iconPosition === "right" && createVNode("div", {
45385
+ }, [createVNode(SearchCloseIcon, null, null)]), props.iconPosition === "right" && createVNode("div", {
45486
45386
  "class": ns2.e("icon"),
45487
45387
  "onClick": onClickHandle
45488
- }, [createVNode(SearchIcon$1, null, null)])]);
45388
+ }, [createVNode(SearchIcon, null, null)])]);
45489
45389
  };
45490
45390
  }
45491
45391
  });
@@ -54198,7 +54098,7 @@ const installs = [
54198
54098
  VirtualListInstall
54199
54099
  ];
54200
54100
  var vueDevui = {
54201
- version: "1.6.4-markdown.1",
54101
+ version: "1.6.4",
54202
54102
  install(app) {
54203
54103
  installs.forEach((p) => app.use(p));
54204
54104
  }