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
@@ -163,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
163
163
  return openBlock(), createElementBlock(
164
164
  "div",
165
165
  {
166
- class: normalizeClass(["audio-player", { "audio-player-pack-up": !__props.showPicture }])
166
+ class: normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
167
167
  },
168
168
  [
169
169
  __props.showPicture ? (openBlock(), createElementBlock("div", {
@@ -333,7 +333,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
333
333
  placement: "top",
334
334
  trigger: "click",
335
335
  appendToBody: false,
336
- "popper-class": "popover-speed"
336
+ "popper-class": "hy-audio-player-popover-speed"
337
337
  }, {
338
338
  reference: withCtx(() => [
339
339
  createElementVNode(
@@ -419,7 +419,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
419
419
  placement: "top",
420
420
  appendToBody: false,
421
421
  trigger: "click",
422
- "popper-class": "popover-volume-slider"
422
+ "popper-class": "hy-audio-player-popover-volume-slider"
423
423
  }, {
424
424
  reference: withCtx(() => [
425
425
  createElementVNode("div", { class: "flex items-center justify-center" }, [
@@ -437,7 +437,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
437
437
  ])
438
438
  ]),
439
439
  default: withCtx(() => [
440
- createElementVNode("div", { class: "flex items-center justify-center" }, [
440
+ createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
441
441
  createVNode(unref(ElSlider), {
442
442
  modelValue: unref(volumeValue),
443
443
  "onUpdate:modelValue": ($event) => 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);
@@ -1,4 +1,4 @@
1
- import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createBlock, unref, withCtx, createVNode, Fragment, defineComponent } from 'vue';
1
+ import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createBlock, unref, withCtx, createVNode, Fragment, defineComponent } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Loading, ArrowDown } from '@element-plus/icons-vue';
4
4
  import { HyIcon } from '../hyIcon/index.mjs';
@@ -32,6 +32,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
32
  type: String
33
33
  },
34
34
  expand: {
35
+ // 展开,仅普通按钮支持
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ link: {
40
+ // 链接按钮
35
41
  type: Boolean,
36
42
  default: false
37
43
  }
@@ -51,14 +57,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
51
57
  emit("click", event);
52
58
  };
53
59
  return (_ctx, _cache) => {
54
- return openBlock(), createElementBlock("button", {
55
- type: "button",
60
+ return __props.link ? (openBlock(), createElementBlock("button", mergeProps({
61
+ key: 0,
62
+ type: __props.type,
56
63
  disabled: __props.disabled,
57
- class: normalizeClass(["hy-button p-[2px] box-border rounded-md group", [
64
+ loading: __props.loading,
65
+ link: "",
66
+ class: ["hy-button-text", [
58
67
  typeObj[props.type],
59
68
  {
60
69
  "hy-button--large": __props.size === "large",
70
+ "hy-button--default": __props.size === "default",
61
71
  "hy-button--small": __props.size === "small",
72
+ "is-disabled": __props.disabled
73
+ }
74
+ ]]
75
+ }, _ctx.$attrs, { onClick: handleClick }), [
76
+ renderSlot(_ctx.$slots, "default")
77
+ ], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
78
+ key: 1,
79
+ type: "button",
80
+ disabled: __props.disabled,
81
+ class: normalizeClass(["hy-button", [
82
+ typeObj[props.type],
83
+ {
84
+ "hy-button--large rounded-md": __props.size === "large",
85
+ "hy-button--default rounded-md": __props.size === "default",
86
+ "hy-button--small rounded": __props.size === "small",
62
87
  "is-disabled": __props.disabled,
63
88
  "is-loading": __props.loading,
64
89
  clickBox: !__props.disabled && !__props.loading
@@ -67,67 +92,89 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
67
92
  onClick: handleClick
68
93
  }, [
69
94
  createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
70
- createElementVNode("div", { class: "hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border rounded-[4px]" }, [
71
- createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
72
- createElementVNode("div", { class: "hy-button__inner w-full h-full flex items-center justify-center relative rounded-[4px]" }, [
73
- createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
74
- renderSlot(_ctx.$slots, "content", {}, () => [
75
- createElementVNode(
76
- "div",
77
- {
78
- class: normalizeClass(["flex items-center text-main", {
79
- "px-3": !__props.expand,
80
- "pl-3 pr-1.5": __props.expand
81
- }])
82
- },
83
- [
84
- !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
85
- __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
86
- key: 0,
87
- "svg-name": __props.svgName,
88
- "class-name": "!w-3 !h-3 text-main mr-2"
89
- }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
90
- ]) : (openBlock(), createBlock(unref(ElIcon), {
91
- key: 1,
92
- color: "rgb(var(--hy-main))",
93
- class: "is-loading mr-2"
94
- }, {
95
- default: withCtx(() => [
96
- createVNode(unref(Loading))
97
- ]),
98
- _: 1
99
- /* STABLE */
100
- })),
101
- renderSlot(_ctx.$slots, "default")
102
- ],
103
- 2
104
- /* CLASS */
105
- )
106
- ]),
107
- __props.expand ? (openBlock(), createElementBlock(
108
- Fragment,
109
- { key: 0 },
110
- [
111
- createElementVNode("div", { class: "w-px h-full bg-success/50" }),
112
- createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
113
- createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
114
- default: withCtx(() => [
115
- createVNode(unref(ArrowDown))
116
- ]),
117
- _: 1
118
- /* STABLE */
119
- })
120
- ])
121
- ],
122
- 64
123
- /* STABLE_FRAGMENT */
124
- )) : createCommentVNode("v-if", true)
125
- ]),
126
- createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
127
- createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
128
- ])
129
- ])
130
- ], 10, ["disabled"]);
95
+ createElementVNode(
96
+ "div",
97
+ {
98
+ class: normalizeClass(["hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border", {
99
+ rounded: ["large", "default"].includes(__props.size),
100
+ "rounded-sm": __props.size === "small"
101
+ }])
102
+ },
103
+ [
104
+ createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
105
+ createElementVNode(
106
+ "div",
107
+ {
108
+ class: normalizeClass(["hy-button__inner w-full h-full flex items-center justify-center relative", {
109
+ rounded: ["large", "default"].includes(__props.size),
110
+ "rounded-sm": __props.size === "small"
111
+ }])
112
+ },
113
+ [
114
+ createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
115
+ renderSlot(_ctx.$slots, "content", {}, () => [
116
+ createElementVNode(
117
+ "div",
118
+ {
119
+ class: normalizeClass(["flex items-center text-main", {
120
+ "px-3": !__props.expand,
121
+ "pl-3 pr-1.5": __props.expand
122
+ }])
123
+ },
124
+ [
125
+ !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
126
+ __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
127
+ key: 0,
128
+ "svg-name": __props.svgName,
129
+ "class-name": "!w-3 !h-3 text-main mr-2"
130
+ }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
131
+ ]) : (openBlock(), createBlock(unref(ElIcon), {
132
+ key: 1,
133
+ color: "rgb(var(--hy-main))",
134
+ class: "is-loading mr-2"
135
+ }, {
136
+ default: withCtx(() => [
137
+ createVNode(unref(Loading))
138
+ ]),
139
+ _: 1
140
+ /* STABLE */
141
+ })),
142
+ renderSlot(_ctx.$slots, "default")
143
+ ],
144
+ 2
145
+ /* CLASS */
146
+ )
147
+ ]),
148
+ __props.expand ? (openBlock(), createElementBlock(
149
+ Fragment,
150
+ { key: 0 },
151
+ [
152
+ createElementVNode("div", { class: "w-px h-full bg-success/50" }),
153
+ createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
154
+ createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
155
+ default: withCtx(() => [
156
+ createVNode(unref(ArrowDown))
157
+ ]),
158
+ _: 1
159
+ /* STABLE */
160
+ })
161
+ ])
162
+ ],
163
+ 64
164
+ /* STABLE_FRAGMENT */
165
+ )) : createCommentVNode("v-if", true)
166
+ ]),
167
+ createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
168
+ createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
169
+ ],
170
+ 2
171
+ /* CLASS */
172
+ )
173
+ ],
174
+ 2
175
+ /* CLASS */
176
+ )
177
+ ], 10, ["disabled"]));
131
178
  };
132
179
  }
133
180
  });