hy-dispatch-ui-v3 0.2.32 → 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 (62) hide show
  1. package/dist/tailwind.css +168 -448
  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 +1 -1
  5. package/es/components/hyButton/style/button.scss +16 -3
  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/style/form.scss +56 -54
  9. package/es/components/hyIcon/style/icon.scss +1 -1
  10. package/es/components/hyIconBox/style/iconBox.scss +19 -18
  11. package/es/components/hyInput/input.vue.mjs +4 -1
  12. package/es/components/hySearch/style/search.scss +50 -50
  13. package/es/components/hyTable/cpns/virtualTable.vue.mjs +12 -1
  14. package/es/components/hyTable/js/index.mjs +12 -0
  15. package/es/components/hyTable/table.vue.mjs +21 -5
  16. package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
  17. package/es/components/hyTableForm/index.mjs +4 -1
  18. package/es/components/hyTableForm/js/index.mjs +123 -0
  19. package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
  20. package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
  21. package/es/components/hyTableForm/style/tableForm.scss +42 -0
  22. package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
  23. package/es/components/hyTooltip/tooltip.vue.mjs +2 -2
  24. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -1
  25. package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  26. package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  27. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
  28. package/es/components/index.mjs +2 -1
  29. package/es/index.mjs +2 -1
  30. package/es/style/tailwind.scss +133 -1
  31. package/es/version.mjs +1 -1
  32. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
  33. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
  34. package/lib/components/hyButton/button.vue.js +1 -1
  35. package/lib/components/hyButton/style/button.scss +16 -3
  36. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  37. package/lib/components/hyForm/form.vue.js +2 -1
  38. package/lib/components/hyForm/style/form.scss +56 -54
  39. package/lib/components/hyIcon/style/icon.scss +1 -1
  40. package/lib/components/hyIconBox/style/iconBox.scss +19 -18
  41. package/lib/components/hyInput/input.vue.js +4 -1
  42. package/lib/components/hySearch/style/search.scss +50 -50
  43. package/lib/components/hyTable/cpns/virtualTable.vue.js +12 -1
  44. package/lib/components/hyTable/js/index.js +12 -0
  45. package/lib/components/hyTable/table.vue.js +21 -5
  46. package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
  47. package/lib/components/hyTableForm/index.js +5 -0
  48. package/lib/components/hyTableForm/js/index.js +127 -0
  49. package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
  50. package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
  51. package/lib/components/hyTableForm/style/tableForm.scss +42 -0
  52. package/lib/components/hyTableForm/tableForm.vue.js +451 -6
  53. package/lib/components/hyTooltip/tooltip.vue.js +2 -2
  54. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -1
  55. package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
  56. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
  57. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
  58. package/lib/components/index.js +33 -30
  59. package/lib/index.js +33 -30
  60. package/lib/style/tailwind.scss +133 -1
  61. package/lib/version.js +1 -1
  62. package/package.json +5 -3
@@ -1,4 +1,4 @@
1
- .video-player-content {
1
+ .hy-video-player-content {
2
2
  width: 100%;
3
3
  height: 400px;
4
4
  border: 1px solid rgba(var(--hy-border));
@@ -12,11 +12,11 @@
12
12
  video {
13
13
  width: 100%;
14
14
  }
15
- &.video-player-content-pick-up {
15
+ &.hy-video-player-content-pick-up {
16
16
  height: 60px !important;
17
17
  }
18
18
  // 全屏播放器样式
19
- &.full-video-player-content {
19
+ &.hy-full-video-player-content {
20
20
  height: 100% !important;
21
21
  position: fixed;
22
22
  left: 0;
@@ -72,7 +72,7 @@
72
72
  }
73
73
  }
74
74
  }
75
- &:not(.video-player-content-pick-up) {
75
+ &:not(.hy-video-player-content-pick-up) {
76
76
  video {
77
77
  height: 0;
78
78
  flex-grow: 1;
@@ -238,15 +238,16 @@
238
238
  rgba(28, 51, 74, 0) 100%
239
239
  );
240
240
  }
241
+
241
242
  }
242
243
 
243
- .popover-volume-slider {
244
+ .hy-video-player-popover-volume-slider {
244
245
  min-width: auto !important;
245
246
  width: 40px !important;
246
247
  padding: 16px 0;
247
248
  }
248
249
 
249
- .popover-speed {
250
+ .hy-video-player-popover-speed {
250
251
  min-width: auto !important;
251
252
  width: 62px !important;
252
253
  padding: 0px !important;
@@ -200,9 +200,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
200
200
  {
201
201
  ref_key: "videoWrapperRef",
202
202
  ref: videoWrapperRef,
203
- class: normalizeClass(["video-player-content", {
204
- "video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
205
- "full-video-player-content": unref(isFullScreen)
203
+ class: normalizeClass(["hy-video-player-content", {
204
+ "hy-video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
205
+ "hy-full-video-player-content": unref(isFullScreen)
206
206
  }])
207
207
  },
208
208
  [
@@ -471,7 +471,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
471
471
  placement: "top",
472
472
  trigger: "click",
473
473
  appendToBody: false,
474
- "popper-class": "popover-speed"
474
+ "popper-class": "hy-video-player-popover-speed"
475
475
  }, {
476
476
  reference: withCtx(() => [
477
477
  createElementVNode(
@@ -509,7 +509,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
509
509
  placement: "top",
510
510
  appendToBody: false,
511
511
  trigger: "click",
512
- "popper-class": "popover-volume-slider"
512
+ "popper-class": "hy-video-player-popover-volume-slider"
513
513
  }, {
514
514
  reference: withCtx(() => [
515
515
  createElementVNode("div", { class: "flex items-center justify-center" }, [
@@ -530,7 +530,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
530
530
  ])
531
531
  ]),
532
532
  default: withCtx(() => [
533
- createElementVNode("div", { class: "flex items-center justify-center" }, [
533
+ createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
534
534
  createVNode(unref(ElSlider), {
535
535
  modelValue: unref(volumeValue),
536
536
  "onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
@@ -20,7 +20,8 @@ export { HyVideoPlayer } from './hyVideoPlayer/index.mjs';
20
20
  export { HyAudioPlayer } from './hyAudioPlayer/index.mjs';
21
21
  export { ElInput, HyInput } from './hyInput/index.mjs';
22
22
  export { ElTimePicker, HyTimePicker } from './hyTimePicker/index.mjs';
23
- export { HyTableForm } from './hyTableForm/index.mjs';
23
+ export { HyBatchTableForm, HyTableForm } from './hyTableForm/index.mjs';
24
24
  export { resetAppFormValue, useAppForm } from './hyForm/js/useAppForm.mjs';
25
25
  export { resetAppSearchValue, useAppSearch } from './hySearch/js/useAppSearch.mjs';
26
26
  export { useAppTable } from './hyTable/js/useAppTable.mjs';
27
+ export { useAppTableForm } from './hyTableForm/js/useAppTableForm.mjs';
package/es/index.mjs CHANGED
@@ -4,6 +4,7 @@ export { ElInput, HyInput } from './components/hyInput/index.mjs';
4
4
  export { ElTimePicker, HyTimePicker } from './components/hyTimePicker/index.mjs';
5
5
  export { ElTooltip, HyTooltip } from './components/hyTooltip/index.mjs';
6
6
  export { HyAudioPlayer } from './components/hyAudioPlayer/index.mjs';
7
+ export { HyBatchTableForm, HyTableForm } from './components/hyTableForm/index.mjs';
7
8
  export { HyButton } from './components/hyButton/index.mjs';
8
9
  export { HyConfigProvider } from './components/hyConfigProvider/index.mjs';
9
10
  export { HyConfirmDialog } from './components/hyConfirmDialog/index.mjs';
@@ -18,7 +19,6 @@ export { HyNoPermissionsMap } from './components/hyNoPermissionsMap/index.mjs';
18
19
  export { HyOrgCascader } from './components/hyOrgCascader/index.mjs';
19
20
  export { HySearch } from './components/hySearch/index.mjs';
20
21
  export { HyTable } from './components/hyTable/index.mjs';
21
- export { HyTableForm } from './components/hyTableForm/index.mjs';
22
22
  export { HyTree } from './components/hyTree/index.mjs';
23
23
  export { HyUserAvatar } from './components/hyUserAvatar/index.mjs';
24
24
  export { HyVideoPlayer } from './components/hyVideoPlayer/index.mjs';
@@ -43,6 +43,7 @@ export { parseRem, pxTorem, remToPx, vwToPx } from './utils/adaptive.mjs';
43
43
  export { resetAppFormValue, useAppForm } from './components/hyForm/js/useAppForm.mjs';
44
44
  export { resetAppSearchValue, useAppSearch } from './components/hySearch/js/useAppSearch.mjs';
45
45
  export { useAppTable } from './components/hyTable/js/useAppTable.mjs';
46
+ export { useAppTableForm } from './components/hyTableForm/js/useAppTableForm.mjs';
46
47
  export { useMixins } from './hooks/useMixins.mjs';
47
48
  export { useResizeHandler } from './hooks/useResizeHandler.mjs';
48
49
 
@@ -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
+ }
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.31";
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);
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
76
76
  "is-disabled": __props.disabled
77
77
  }
78
78
  ]]
79
- }, _ctx.$attrs), [
79
+ }, _ctx.$attrs, { onClick: handleClick }), [
80
80
  vue.renderSlot(_ctx.$slots, "default")
81
81
  ], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
82
82
  key: 1,
@@ -300,19 +300,28 @@
300
300
  text-decoration-color: var(--hy-button-text-color);
301
301
  text-decoration-thickness: 1px;
302
302
  text-underline-offset: 4px;
303
+ background: none;
304
+ border: none;
305
+ cursor: pointer;
306
+
307
+ &:not(.is-disabled) {
308
+ &:active {
309
+ opacity: 0.8;
310
+ }
311
+ }
303
312
 
304
313
  &.hy-button--large {
305
314
  --hy-button-font-size: 14px;
306
- padding: 10px 19px 9px;
315
+ // padding: 10px 19px 9px;
307
316
  }
308
317
 
309
318
  &.hy-button--default {
310
- padding: 6px 15px 5px;
319
+ // padding: 6px 15px 5px;
311
320
  }
312
321
 
313
322
  &.hy-button--small {
314
323
  --hy-button-font-size: 12px;
315
- padding: 4px 11px;
324
+ // padding: 4px 11px;
316
325
  }
317
326
 
318
327
  &.hy-button_default {
@@ -330,4 +339,8 @@
330
339
  &.hy-button_delete {
331
340
  --hy-button-text-color: rgba(var(--hy-danger-2));
332
341
  }
342
+
343
+ &.is-disabled {
344
+ cursor: not-allowed;
345
+ }
333
346
  }
@@ -200,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
200
200
  /* TEXT, CLASS */
201
201
  ),
202
202
  vue.createElementVNode("div", {
203
- class: "max-w-[300px] text-smword-break text-center break-all",
203
+ class: "px-[40px] text-smword-break text-center break-all",
204
204
  innerHTML: __props.content
205
205
  }, null, 8, ["innerHTML"])
206
206
  ]),
@@ -114,7 +114,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
114
114
  rules: __props.rules,
115
115
  "label-position": "top",
116
116
  size: __props.size,
117
- class: "px-2"
117
+ class: "px-2",
118
+ "hide-required-asterisk": ""
118
119
  }, _ctx.$attrs), {
119
120
  default: vue.withCtx(() => [
120
121
  vue.createElementVNode(
@@ -5,65 +5,67 @@
5
5
  content: '' !important;
6
6
  display: none;
7
7
  }
8
- }
9
-
10
- .label-required {
11
- &::after {
12
- content: '*';
13
- display: inline-block;
14
- color: rgba(var(--hy-danger-2));
15
- }
16
- }
17
8
 
18
- .hy-form-extra {
19
- height: 32px;
20
- color: rgba(var(--hy-auxiliary));
21
- position: relative;
22
- padding: 0 40px;
23
- display: flex;
24
- align-items: center;
25
- justify-content: center;
26
- border-radius: 1000px;
27
- border: 1px solid rgba(var(--hy-auxiliary));
28
- background-color: rgba(var(--hy-background-2));
29
- cursor: pointer;
30
- transition: all 0.1s linear;
31
- user-select: none;
32
- z-index: 2;
33
- .hy-form-extra-arrow {
34
- transform: rotateZ(90deg) rotateY(0deg);
35
- transition: all 0.3s linear;
36
- }
37
- &:hover {
38
- color: rgba(var(--hy-theme));
39
- border-color: rgba(var(--hy-theme));
40
- box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
41
- & + .hy-form-extra-line {
42
- background: radial-gradient(
43
- circle,
44
- rgba(var(--hy-theme), 1),
45
- rgba(var(--hy-theme), 0)
46
- );
9
+ .label-required {
10
+ &::after {
11
+ content: '*';
12
+ display: inline-block;
13
+ color: rgba(var(--hy-danger-2));
47
14
  }
48
15
  }
49
- &.expand {
16
+
17
+ .hy-form-extra {
18
+ height: 32px;
19
+ color: rgba(var(--hy-auxiliary));
20
+ position: relative;
21
+ padding: 0 40px;
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ border-radius: 1000px;
26
+ border: 1px solid rgba(var(--hy-auxiliary));
27
+ background-color: rgba(var(--hy-background-2));
28
+ cursor: pointer;
29
+ transition: all 0.1s linear;
30
+ user-select: none;
31
+ z-index: 2;
50
32
  .hy-form-extra-arrow {
51
- transform: rotateZ(90deg) rotateY(-180deg);
33
+ transform: rotateZ(90deg) rotateY(0deg);
34
+ transition: all 0.3s linear;
52
35
  }
36
+ &:hover {
37
+ color: rgba(var(--hy-theme));
38
+ border-color: rgba(var(--hy-theme));
39
+ box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
40
+ & + .hy-form-extra-line {
41
+ background: radial-gradient(
42
+ circle,
43
+ rgba(var(--hy-theme), 1),
44
+ rgba(var(--hy-theme), 0)
45
+ );
46
+ }
47
+ }
48
+ &.expand {
49
+ .hy-form-extra-arrow {
50
+ transform: rotateZ(90deg) rotateY(-180deg);
51
+ }
52
+ }
53
+ }
54
+
55
+ .hy-form-extra-line {
56
+ width: 100%;
57
+ height: 2px;
58
+ position: absolute;
59
+ left: 0;
60
+ top: 50%;
61
+ transform: translateY(-50%);
62
+ pointer-events: none;
63
+ background: radial-gradient(
64
+ circle,
65
+ rgba(var(--hy-auxiliary), 1),
66
+ rgba(var(--hy-auxiliary), 0)
67
+ );
53
68
  }
54
69
  }
55
70
 
56
- .hy-form-extra-line {
57
- width: 100%;
58
- height: 2px;
59
- position: absolute;
60
- left: 0;
61
- top: 50%;
62
- transform: translateY(-50%);
63
- pointer-events: none;
64
- background: radial-gradient(
65
- circle,
66
- rgba(var(--hy-auxiliary), 1),
67
- rgba(var(--hy-auxiliary), 0)
68
- );
69
- }
71
+
@@ -2,7 +2,7 @@
2
2
  width: 16px;
3
3
  height: 16px;
4
4
  vertical-align: -0.1em;
5
- display: inline-block;
5
+ display: inline;
6
6
  overflow: hidden;
7
7
  fill: currentColor;
8
8
  outline: none;
@@ -4,23 +4,24 @@
4
4
  & + & {
5
5
  margin-left: 12px;
6
6
  }
7
- }
8
7
 
9
- .hy-icon-box-content {
10
- display: inline-flex;
11
- align-items: center;
12
- justify-content: center;
13
- padding: 5px;
14
- user-select: none;
15
- color: rgb(var(--hy-main));
16
- border-radius: 100%;
17
- background:
18
- radial-gradient(
19
- 142% 47% at 50% 119%,
20
- rgb(var(--hy-theme), 0.5) 0%,
21
- rgb(var(--hy-theme), 0) 100%
22
- ),
23
- rgb(var(--hy-background-3));
24
- border: 1px solid rgb(var(--hy-auxiliary), 0.5);
25
- box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
8
+ .hy-icon-box-content {
9
+ display: inline-flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ padding: 5px;
13
+ user-select: none;
14
+ color: rgb(var(--hy-main));
15
+ border-radius: 100%;
16
+ background:
17
+ radial-gradient(
18
+ 142% 47% at 50% 119%,
19
+ rgb(var(--hy-theme), 0.5) 0%,
20
+ rgb(var(--hy-theme), 0) 100%
21
+ ),
22
+ rgb(var(--hy-background-3));
23
+ border: 1px solid rgb(var(--hy-auxiliary), 0.5);
24
+ box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
25
+ }
26
26
  }
27
+
@@ -20,7 +20,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
20
  // between-清除两端空格 all-清除所有空格 before-清除前面的空格 after-清除后面的空格 none-不清除空格
21
21
  }
22
22
  }, {
23
- "modelValue": { type: String, default: "" },
23
+ "modelValue": {
24
+ type: [String, Number],
25
+ default: ""
26
+ },
24
27
  "modelModifiers": {}
25
28
  }),
26
29
  emits: /* @__PURE__ */ vue.mergeModels([], ["update:modelValue"]),