hy-dispatch-ui-v3 0.2.31 → 0.2.33

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 (80) hide show
  1. package/dist/tailwind.css +174 -454
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +4 -4
  3. package/es/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
  4. package/es/components/hyButton/button.vue.mjs +112 -65
  5. package/es/components/hyButton/style/button.scss +291 -233
  6. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  7. package/es/components/hyForm/form.vue.mjs +2 -1
  8. package/es/components/hyForm/index.mjs +1 -1
  9. package/es/components/hyForm/js/useAppForm.mjs +1 -2
  10. package/es/components/hyForm/style/form.scss +56 -54
  11. package/es/components/hyIcon/style/icon.scss +1 -1
  12. package/es/components/hyIconBox/style/iconBox.scss +19 -18
  13. package/es/components/hyInput/input.vue.mjs +4 -1
  14. package/es/components/hyMenu/menu.vue.mjs +1 -1
  15. package/es/components/hyMenu/style/menu.scss +1 -1
  16. package/es/components/hySearch/index.mjs +1 -1
  17. package/es/components/hySearch/style/search.scss +50 -50
  18. package/es/components/hyTable/cpns/virtualTable.vue.mjs +342 -319
  19. package/es/components/hyTable/js/index.mjs +19 -3
  20. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  21. package/es/components/hyTable/table.vue.mjs +31 -11
  22. package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
  23. package/es/components/hyTableForm/index.mjs +4 -1
  24. package/es/components/hyTableForm/js/index.mjs +123 -0
  25. package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
  26. package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
  27. package/es/components/hyTableForm/style/tableForm.scss +42 -0
  28. package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
  29. package/es/components/hyTooltip/tooltip.vue.mjs +2 -2
  30. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -1
  31. package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  32. package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  33. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
  34. package/es/components/index.mjs +4 -3
  35. package/es/index.mjs +4 -3
  36. package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  37. package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  38. package/es/style/tailwind.scss +133 -1
  39. package/es/utils/handler.mjs +4 -4
  40. package/es/version.mjs +1 -1
  41. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
  42. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
  43. package/lib/components/hyButton/button.vue.js +111 -64
  44. package/lib/components/hyButton/style/button.scss +291 -233
  45. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  46. package/lib/components/hyForm/form.vue.js +2 -1
  47. package/lib/components/hyForm/index.js +1 -0
  48. package/lib/components/hyForm/js/useAppForm.js +1 -2
  49. package/lib/components/hyForm/style/form.scss +56 -54
  50. package/lib/components/hyIcon/style/icon.scss +1 -1
  51. package/lib/components/hyIconBox/style/iconBox.scss +19 -18
  52. package/lib/components/hyInput/input.vue.js +4 -1
  53. package/lib/components/hyMenu/menu.vue.js +1 -1
  54. package/lib/components/hyMenu/style/menu.scss +1 -1
  55. package/lib/components/hySearch/index.js +1 -0
  56. package/lib/components/hySearch/style/search.scss +50 -50
  57. package/lib/components/hyTable/cpns/virtualTable.vue.js +340 -317
  58. package/lib/components/hyTable/js/index.js +19 -3
  59. package/lib/components/hyTable/js/useAppTable.js +1 -1
  60. package/lib/components/hyTable/table.vue.js +31 -11
  61. package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
  62. package/lib/components/hyTableForm/index.js +5 -0
  63. package/lib/components/hyTableForm/js/index.js +127 -0
  64. package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
  65. package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
  66. package/lib/components/hyTableForm/style/tableForm.scss +42 -0
  67. package/lib/components/hyTableForm/tableForm.vue.js +451 -6
  68. package/lib/components/hyTooltip/tooltip.vue.js +2 -2
  69. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -1
  70. package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  71. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  72. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
  73. package/lib/components/index.js +35 -30
  74. package/lib/index.js +35 -30
  75. package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
  76. package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
  77. package/lib/style/tailwind.scss +133 -1
  78. package/lib/utils/handler.js +4 -4
  79. package/lib/version.js +1 -1
  80. package/package.json +5 -3
@@ -0,0 +1,8 @@
1
+ export default {
2
+ id: 'hy-icon-dispatch-share-guidao',
3
+ symbol: `<symbol id="hy-icon-dispatch-share-guidao" viewBox="0 0 16 15">
4
+ <g id="hy-icon-dispatch-share-guidao-guidao" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M5.656,1.11321429 L5.112,1.11321429 L4.752,1.90821429 L5.336,1.90821429 L5.656,1.11321429 Z M4.688,3.48535714 L4.04,3.48535714 L3.616,4.41214286 L4.32,4.41214286 L4.688,3.48535714 L4.688,3.48535714 Z M3.56,6.26785714 L2.776,6.26785714 L2.064,7.845 L2.912,7.845 L3.56,6.26785714 Z M2.056,9.96428571 L1.104,9.96428571 L0,12.3760714 L1.024,12.3760714 L2.056,9.96535714 L2.056,9.96428571 Z M10.344,1.11321429 L10.888,1.11321429 L11.248,1.90821429 L10.664,1.90821429 L10.344,1.11321429 Z M11.312,3.48535714 L11.96,3.48535714 L12.384,4.41214286 L11.68,4.41214286 L11.312,3.48535714 L11.312,3.48535714 Z M12.44,6.26785714 L13.224,6.26785714 L13.936,7.845 L13.088,7.845 L12.44,6.26785714 Z M8.56,1.90714286 L8.344,1.11321429 L7.656,1.11321429 L7.44,1.90821429 L8.56,1.90821429 L8.56,1.90714286 Z M9.24,4.41214286 L8.984,3.48535714 L7.016,3.48535714 L6.76,4.41214286 L9.24,4.41214286 Z M10.176,7.845 L9.744,6.26785714 L6.256,6.26785714 L5.824,7.845 L10.176,7.845 L10.176,7.845 Z M10.744,9.96428571 L5.256,9.96428571 L4.576,12.3760714 L11.424,12.3760714 L10.744,9.96535714 L10.744,9.96428571 Z M13.944,9.96428571 L14.896,9.96428571 L16,12.3760714 L14.976,12.3760714 L13.944,9.96535714 L13.944,9.96428571 Z M0.64,15 L3.352,15 L7.432,0 L6.76,0 L0.64,15 Z M12.648,15 L15.36,15 L9.24,0 L8.568,0 L12.648,15 Z" id="hy-icon-dispatch-share-guidao-形状" fill="#87D4ED" fill-rule="nonzero"></path>
6
+ </g>
7
+ </symbol>`,
8
+ };
@@ -1,3 +1,135 @@
1
- @tailwind base;
1
+ *, ::before, ::after {
2
+ --tw-border-spacing-x: 0;
3
+ --tw-border-spacing-y: 0;
4
+ --tw-translate-x: 0;
5
+ --tw-translate-y: 0;
6
+ --tw-rotate: 0;
7
+ --tw-skew-x: 0;
8
+ --tw-skew-y: 0;
9
+ --tw-scale-x: 1;
10
+ --tw-scale-y: 1;
11
+ --tw-pan-x: ;
12
+ --tw-pan-y: ;
13
+ --tw-pinch-zoom: ;
14
+ --tw-scroll-snap-strictness: proximity;
15
+ --tw-gradient-from-position: ;
16
+ --tw-gradient-via-position: ;
17
+ --tw-gradient-to-position: ;
18
+ --tw-ordinal: ;
19
+ --tw-slashed-zero: ;
20
+ --tw-numeric-figure: ;
21
+ --tw-numeric-spacing: ;
22
+ --tw-numeric-fraction: ;
23
+ --tw-ring-inset: ;
24
+ --tw-ring-offset-width: 0px;
25
+ --tw-ring-offset-color: #fff;
26
+ --tw-ring-color: rgb(59 130 246 / 0.5);
27
+ --tw-ring-offset-shadow: 0 0 #0000;
28
+ --tw-ring-shadow: 0 0 #0000;
29
+ --tw-shadow: 0 0 #0000;
30
+ --tw-shadow-colored: 0 0 #0000;
31
+ --tw-blur: ;
32
+ --tw-brightness: ;
33
+ --tw-contrast: ;
34
+ --tw-grayscale: ;
35
+ --tw-hue-rotate: ;
36
+ --tw-invert: ;
37
+ --tw-saturate: ;
38
+ --tw-sepia: ;
39
+ --tw-drop-shadow: ;
40
+ --tw-backdrop-blur: ;
41
+ --tw-backdrop-brightness: ;
42
+ --tw-backdrop-contrast: ;
43
+ --tw-backdrop-grayscale: ;
44
+ --tw-backdrop-hue-rotate: ;
45
+ --tw-backdrop-invert: ;
46
+ --tw-backdrop-opacity: ;
47
+ --tw-backdrop-saturate: ;
48
+ --tw-backdrop-sepia: ;
49
+ --tw-contain-size: ;
50
+ --tw-contain-layout: ;
51
+ --tw-contain-paint: ;
52
+ --tw-contain-style: ;
53
+ }
54
+ *,
55
+ ::before,
56
+ ::after {
57
+ box-sizing: border-box;
58
+ /* 1 */
59
+ border-width: 0;
60
+ /* 2 */
61
+ border-style: solid;
62
+ /* 2 */
63
+ border-color: #e5e7eb;
64
+ /* 2 */
65
+ }
66
+ ::backdrop {
67
+ --tw-border-spacing-x: 0;
68
+ --tw-border-spacing-y: 0;
69
+ --tw-translate-x: 0;
70
+ --tw-translate-y: 0;
71
+ --tw-rotate: 0;
72
+ --tw-skew-x: 0;
73
+ --tw-skew-y: 0;
74
+ --tw-scale-x: 1;
75
+ --tw-scale-y: 1;
76
+ --tw-pan-x: ;
77
+ --tw-pan-y: ;
78
+ --tw-pinch-zoom: ;
79
+ --tw-scroll-snap-strictness: proximity;
80
+ --tw-gradient-from-position: ;
81
+ --tw-gradient-via-position: ;
82
+ --tw-gradient-to-position: ;
83
+ --tw-ordinal: ;
84
+ --tw-slashed-zero: ;
85
+ --tw-numeric-figure: ;
86
+ --tw-numeric-spacing: ;
87
+ --tw-numeric-fraction: ;
88
+ --tw-ring-inset: ;
89
+ --tw-ring-offset-width: 0px;
90
+ --tw-ring-offset-color: #fff;
91
+ --tw-ring-color: rgb(59 130 246 / 0.5);
92
+ --tw-ring-offset-shadow: 0 0 #0000;
93
+ --tw-ring-shadow: 0 0 #0000;
94
+ --tw-shadow: 0 0 #0000;
95
+ --tw-shadow-colored: 0 0 #0000;
96
+ --tw-blur: ;
97
+ --tw-brightness: ;
98
+ --tw-contrast: ;
99
+ --tw-grayscale: ;
100
+ --tw-hue-rotate: ;
101
+ --tw-invert: ;
102
+ --tw-saturate: ;
103
+ --tw-sepia: ;
104
+ --tw-drop-shadow: ;
105
+ --tw-backdrop-blur: ;
106
+ --tw-backdrop-brightness: ;
107
+ --tw-backdrop-contrast: ;
108
+ --tw-backdrop-grayscale: ;
109
+ --tw-backdrop-hue-rotate: ;
110
+ --tw-backdrop-invert: ;
111
+ --tw-backdrop-opacity: ;
112
+ --tw-backdrop-saturate: ;
113
+ --tw-backdrop-sepia: ;
114
+ --tw-contain-size: ;
115
+ --tw-contain-layout: ;
116
+ --tw-contain-paint: ;
117
+ --tw-contain-style: ;
118
+ }
2
119
  @tailwind components;
3
120
  @tailwind utilities;
121
+
122
+ html,body, #app{
123
+ width: 100%;
124
+ height: 100%;
125
+ position: relative;
126
+ background: rgb(var(--hy-background), var(--tw-bg-opacity, 1));
127
+ }
128
+
129
+ ol,
130
+ ul,
131
+ menu {
132
+ list-style: none;
133
+ margin: 0;
134
+ padding: 0;
135
+ }
@@ -6,20 +6,20 @@ function funRunHandler(target, ...args) {
6
6
  }
7
7
  return cloneDeep(target);
8
8
  }
9
- const cloneDeep = (target) => {
10
- if (isVueProxy(target)) {
9
+ const cloneDeep = (target, force = false) => {
10
+ if (isVueProxy(target) && !force) {
11
11
  return target;
12
12
  }
13
13
  if (isArray(target)) {
14
14
  return target.reduce((list, item) => {
15
- list.push(cloneDeep(item));
15
+ list.push(cloneDeep(item, force));
16
16
  return list;
17
17
  }, []);
18
18
  }
19
19
  if (isObject(target)) {
20
20
  const obj = {};
21
21
  Object.keys(target).forEach((key) => {
22
- obj[key] = cloneDeep(target[key]);
22
+ obj[key] = cloneDeep(target[key], force);
23
23
  });
24
24
  return obj;
25
25
  }
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.30";
1
+ const version = "0.2.32";
2
2
 
3
3
  export { version };
@@ -167,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
167
167
  return vue.openBlock(), vue.createElementBlock(
168
168
  "div",
169
169
  {
170
- class: vue.normalizeClass(["audio-player", { "audio-player-pack-up": !__props.showPicture }])
170
+ class: vue.normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
171
171
  },
172
172
  [
173
173
  __props.showPicture ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -337,7 +337,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
337
337
  placement: "top",
338
338
  trigger: "click",
339
339
  appendToBody: false,
340
- "popper-class": "popover-speed"
340
+ "popper-class": "hy-audio-player-popover-speed"
341
341
  }, {
342
342
  reference: vue.withCtx(() => [
343
343
  vue.createElementVNode(
@@ -423,7 +423,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
423
423
  placement: "top",
424
424
  appendToBody: false,
425
425
  trigger: "click",
426
- "popper-class": "popover-volume-slider"
426
+ "popper-class": "hy-audio-player-popover-volume-slider"
427
427
  }, {
428
428
  reference: vue.withCtx(() => [
429
429
  vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
@@ -441,7 +441,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
441
441
  ])
442
442
  ]),
443
443
  default: vue.withCtx(() => [
444
- vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
444
+ vue.createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
445
445
  vue.createVNode(vue.unref(elementPlus.ElSlider), {
446
446
  modelValue: vue.unref(volumeValue),
447
447
  "onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
@@ -1,4 +1,4 @@
1
- .audio-player {
1
+ .hy-audio-player {
2
2
  width: 100%;
3
3
  height: 256px;
4
4
  display: flex;
@@ -69,8 +69,8 @@
69
69
  border-radius: 50%;
70
70
  border: 4px solid rgba(var(--hy-theme));
71
71
  opacity: 0;
72
- -webkit-animation: ripple 4.5s ease-out 225ms infinite;
73
- animation: ripple 4.5s ease-out 225ms infinite;
72
+ -webkit-animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
73
+ animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
74
74
  }
75
75
  .point_40 {
76
76
  width: 100%;
@@ -87,8 +87,8 @@
87
87
  border-radius: 50%;
88
88
  border: 4px solid rgba(var(--hy-theme));
89
89
  opacity: 0;
90
- -webkit-animation: ripple 4.5s ease-out 0.9s infinite;
91
- animation: ripple 4.5s ease-out 0.9s infinite;
90
+ -webkit-animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
91
+ animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
92
92
  }
93
93
  .point_80 {
94
94
  width: 100%;
@@ -105,8 +105,8 @@
105
105
  border-radius: 50%;
106
106
  border: 4px solid rgba(var(--hy-theme));
107
107
  opacity: 0;
108
- -webkit-animation: ripple 4.5s ease-out 1.8s infinite;
109
- animation: ripple 4.5s ease-out 1.8s infinite;
108
+ -webkit-animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
109
+ animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
110
110
  }
111
111
  }
112
112
  }
@@ -257,14 +257,13 @@
257
257
  height: 56px;
258
258
  }
259
259
  }
260
-
261
- .popover-volume-slider {
260
+ .hy-audio-player-popover-volume-slider {
262
261
  min-width: auto !important;
263
262
  width: 40px !important;
264
263
  padding: 16px 0;
265
264
  }
266
265
 
267
- .popover-speed {
266
+ .hy-audio-player-popover-speed {
268
267
  min-width: auto !important;
269
268
  width: 62px !important;
270
269
  padding: 0px !important;
@@ -289,7 +288,7 @@
289
288
  }
290
289
  }
291
290
 
292
- @-webkit-keyframes ripple {
291
+ @-webkit-keyframes hy-audio-player-ripple {
293
292
  0% {
294
293
  opacity: 0;
295
294
  -webkit-transform: scale(0.1);
@@ -302,7 +301,7 @@
302
301
  -webkit-transform: scale(1);
303
302
  }
304
303
  }
305
- @keyframes ripple {
304
+ @keyframes hy-audio-player-ripple {
306
305
  0% {
307
306
  opacity: 0;
308
307
  -webkit-transform: scale(0.1);
@@ -36,6 +36,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
36
36
  type: String
37
37
  },
38
38
  expand: {
39
+ // 展开,仅普通按钮支持
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ link: {
44
+ // 链接按钮
39
45
  type: Boolean,
40
46
  default: false
41
47
  }
@@ -55,14 +61,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
55
61
  emit("click", event);
56
62
  };
57
63
  return (_ctx, _cache) => {
58
- return vue.openBlock(), vue.createElementBlock("button", {
59
- type: "button",
64
+ return __props.link ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
65
+ key: 0,
66
+ type: __props.type,
60
67
  disabled: __props.disabled,
61
- class: vue.normalizeClass(["hy-button p-[2px] box-border rounded-md group", [
68
+ loading: __props.loading,
69
+ link: "",
70
+ class: ["hy-button-text", [
62
71
  typeObj[props.type],
63
72
  {
64
73
  "hy-button--large": __props.size === "large",
74
+ "hy-button--default": __props.size === "default",
65
75
  "hy-button--small": __props.size === "small",
76
+ "is-disabled": __props.disabled
77
+ }
78
+ ]]
79
+ }, _ctx.$attrs, { onClick: handleClick }), [
80
+ vue.renderSlot(_ctx.$slots, "default")
81
+ ], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
82
+ key: 1,
83
+ type: "button",
84
+ disabled: __props.disabled,
85
+ class: vue.normalizeClass(["hy-button", [
86
+ typeObj[props.type],
87
+ {
88
+ "hy-button--large rounded-md": __props.size === "large",
89
+ "hy-button--default rounded-md": __props.size === "default",
90
+ "hy-button--small rounded": __props.size === "small",
66
91
  "is-disabled": __props.disabled,
67
92
  "is-loading": __props.loading,
68
93
  clickBox: !__props.disabled && !__props.loading
@@ -71,67 +96,89 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
71
96
  onClick: handleClick
72
97
  }, [
73
98
  vue.createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
74
- vue.createElementVNode("div", { class: "hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border rounded-[4px]" }, [
75
- vue.createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
76
- vue.createElementVNode("div", { class: "hy-button__inner w-full h-full flex items-center justify-center relative rounded-[4px]" }, [
77
- vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
78
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
79
- vue.createElementVNode(
80
- "div",
81
- {
82
- class: vue.normalizeClass(["flex items-center text-main", {
83
- "px-3": !__props.expand,
84
- "pl-3 pr-1.5": __props.expand
85
- }])
86
- },
87
- [
88
- !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
89
- __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
90
- key: 0,
91
- "svg-name": __props.svgName,
92
- "class-name": "!w-3 !h-3 text-main mr-2"
93
- }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
94
- ]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
95
- key: 1,
96
- color: "rgb(var(--hy-main))",
97
- class: "is-loading mr-2"
98
- }, {
99
- default: vue.withCtx(() => [
100
- vue.createVNode(vue.unref(iconsVue.Loading))
101
- ]),
102
- _: 1
103
- /* STABLE */
104
- })),
105
- vue.renderSlot(_ctx.$slots, "default")
106
- ],
107
- 2
108
- /* CLASS */
109
- )
110
- ]),
111
- __props.expand ? (vue.openBlock(), vue.createElementBlock(
112
- vue.Fragment,
113
- { key: 0 },
114
- [
115
- vue.createElementVNode("div", { class: "w-px h-full bg-success/50" }),
116
- vue.createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
117
- vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-main))" }, {
118
- default: vue.withCtx(() => [
119
- vue.createVNode(vue.unref(iconsVue.ArrowDown))
120
- ]),
121
- _: 1
122
- /* STABLE */
123
- })
124
- ])
125
- ],
126
- 64
127
- /* STABLE_FRAGMENT */
128
- )) : vue.createCommentVNode("v-if", true)
129
- ]),
130
- vue.createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
131
- vue.createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
132
- ])
133
- ])
134
- ], 10, ["disabled"]);
99
+ vue.createElementVNode(
100
+ "div",
101
+ {
102
+ class: vue.normalizeClass(["hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border", {
103
+ rounded: ["large", "default"].includes(__props.size),
104
+ "rounded-sm": __props.size === "small"
105
+ }])
106
+ },
107
+ [
108
+ vue.createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
109
+ vue.createElementVNode(
110
+ "div",
111
+ {
112
+ class: vue.normalizeClass(["hy-button__inner w-full h-full flex items-center justify-center relative", {
113
+ rounded: ["large", "default"].includes(__props.size),
114
+ "rounded-sm": __props.size === "small"
115
+ }])
116
+ },
117
+ [
118
+ vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
119
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
120
+ vue.createElementVNode(
121
+ "div",
122
+ {
123
+ class: vue.normalizeClass(["flex items-center text-main", {
124
+ "px-3": !__props.expand,
125
+ "pl-3 pr-1.5": __props.expand
126
+ }])
127
+ },
128
+ [
129
+ !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
130
+ __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
131
+ key: 0,
132
+ "svg-name": __props.svgName,
133
+ "class-name": "!w-3 !h-3 text-main mr-2"
134
+ }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
135
+ ]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
136
+ key: 1,
137
+ color: "rgb(var(--hy-main))",
138
+ class: "is-loading mr-2"
139
+ }, {
140
+ default: vue.withCtx(() => [
141
+ vue.createVNode(vue.unref(iconsVue.Loading))
142
+ ]),
143
+ _: 1
144
+ /* STABLE */
145
+ })),
146
+ vue.renderSlot(_ctx.$slots, "default")
147
+ ],
148
+ 2
149
+ /* CLASS */
150
+ )
151
+ ]),
152
+ __props.expand ? (vue.openBlock(), vue.createElementBlock(
153
+ vue.Fragment,
154
+ { key: 0 },
155
+ [
156
+ vue.createElementVNode("div", { class: "w-px h-full bg-success/50" }),
157
+ vue.createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
158
+ vue.createVNode(vue.unref(elementPlus.ElIcon), { color: "rgb(var(--hy-main))" }, {
159
+ default: vue.withCtx(() => [
160
+ vue.createVNode(vue.unref(iconsVue.ArrowDown))
161
+ ]),
162
+ _: 1
163
+ /* STABLE */
164
+ })
165
+ ])
166
+ ],
167
+ 64
168
+ /* STABLE_FRAGMENT */
169
+ )) : vue.createCommentVNode("v-if", true)
170
+ ]),
171
+ vue.createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
172
+ vue.createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
173
+ ],
174
+ 2
175
+ /* CLASS */
176
+ )
177
+ ],
178
+ 2
179
+ /* CLASS */
180
+ )
181
+ ], 10, ["disabled"]));
135
182
  };
136
183
  }
137
184
  });