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
@@ -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);
@@ -72,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
72
72
  "is-disabled": __props.disabled
73
73
  }
74
74
  ]]
75
- }, _ctx.$attrs), [
75
+ }, _ctx.$attrs, { onClick: handleClick }), [
76
76
  renderSlot(_ctx.$slots, "default")
77
77
  ], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
78
78
  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
  }
@@ -196,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
196
196
  /* TEXT, CLASS */
197
197
  ),
198
198
  createElementVNode("div", {
199
- class: "max-w-[300px] text-smword-break text-center break-all",
199
+ class: "px-[40px] text-smword-break text-center break-all",
200
200
  innerHTML: __props.content
201
201
  }, null, 8, ["innerHTML"])
202
202
  ]),
@@ -110,7 +110,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
110
110
  rules: __props.rules,
111
111
  "label-position": "top",
112
112
  size: __props.size,
113
- class: "px-2"
113
+ class: "px-2",
114
+ "hide-required-asterisk": ""
114
115
  }, _ctx.$attrs), {
115
116
  default: withCtx(() => [
116
117
  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
+
@@ -16,7 +16,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
16
16
  // between-清除两端空格 all-清除所有空格 before-清除前面的空格 after-清除后面的空格 none-不清除空格
17
17
  }
18
18
  }, {
19
- "modelValue": { type: String, default: "" },
19
+ "modelValue": {
20
+ type: [String, Number],
21
+ default: ""
22
+ },
20
23
  "modelModifiers": {}
21
24
  }),
22
25
  emits: /* @__PURE__ */ mergeModels([], ["update:modelValue"]),
@@ -11,59 +11,59 @@
11
11
  padding-bottom: 0;
12
12
  opacity: 0;
13
13
  }
14
- }
15
- .hy-search-header {
16
- height: 16px;
17
- display: flex;
18
- align-items: center;
19
- font-size: 12px;
20
- color: rgb(var(--hy-main));
21
- margin-bottom: 16px;
22
- transition: all 0.3s linear;
23
- &.hy-search-header-hidden {
24
- height: 0;
25
- margin-bottom: 0px;
26
- }
27
- }
28
- .hy-search-form {
29
- overflow: hidden;
30
- transition: all 0.3s;
31
- }
32
- .hy-search-container {
33
- display: flex;
34
- flex-wrap: wrap;
35
- gap: 16px;
36
- position: relative;
37
- .hy-el-form-item {
38
- margin-bottom: 0;
39
- &.hidden {
40
- display: none;
14
+ .hy-search-header {
15
+ height: 16px;
16
+ display: flex;
17
+ align-items: center;
18
+ font-size: 12px;
19
+ color: rgb(var(--hy-main));
20
+ margin-bottom: 16px;
21
+ transition: all 0.3s linear;
22
+ &.hy-search-header-hidden {
23
+ height: 0;
24
+ margin-bottom: 0px;
41
25
  }
42
26
  }
43
- .hy-el-input,
44
- .hy-el-date-editor {
45
- --el-input-bg-color: transparent;
46
- --el-input-border: none;
47
- --el-border-color: transparent;
48
- --el-input-border-color: transparent;
49
- --el-input-text-color: rgb(var(--hy-main));
50
- --el-input-border-radius: 0px 4px 4px 0px;
51
- --el-input-hover-border-color: rgb(var(--hy-theme));
52
- .hy-el-input__wrapper,
53
- &.hy-el-input__wrapper {
54
- box-shadow: none !important;
55
- }
27
+ .hy-search-form {
28
+ overflow: hidden;
29
+ transition: all 0.3s;
56
30
  }
57
- .hy-el-select {
58
- --el-border-color: transparent;
59
- --el-fill-color-blank: transparent;
60
- --el-border-radius-base: 0px 4px 4px 0px;
61
- --el-border-color-hover: rgb(var(--hy-theme));
62
- .hy-el-select__wrapper {
63
- box-shadow: none !important;
31
+ .hy-search-container {
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ gap: 16px;
35
+ position: relative;
36
+ .hy-el-form-item {
37
+ margin-bottom: 0;
38
+ &.hidden {
39
+ display: none;
40
+ }
41
+ }
42
+ .hy-el-input,
43
+ .hy-el-date-editor {
44
+ --el-input-bg-color: transparent;
45
+ --el-input-border: none;
46
+ --el-border-color: transparent;
47
+ --el-input-border-color: transparent;
48
+ --el-input-text-color: rgb(var(--hy-main));
49
+ --el-input-border-radius: 0px 4px 4px 0px;
50
+ --el-input-hover-border-color: rgb(var(--hy-theme));
51
+ .hy-el-input__wrapper,
52
+ &.hy-el-input__wrapper {
53
+ box-shadow: none !important;
54
+ }
55
+ }
56
+ .hy-el-select {
57
+ --el-border-color: transparent;
58
+ --el-fill-color-blank: transparent;
59
+ --el-border-radius-base: 0px 4px 4px 0px;
60
+ --el-border-color-hover: rgb(var(--hy-theme));
61
+ .hy-el-select__wrapper {
62
+ box-shadow: none !important;
63
+ }
64
+ }
65
+ .hy-search-custom-wrapper {
66
+ min-height: var(--hy-el-component-size);
64
67
  }
65
- }
66
- .hy-search-custom-wrapper {
67
- min-height: var(--hy-el-component-size);
68
68
  }
69
69
  }
@@ -53,6 +53,12 @@ const _sfc_main = {
53
53
  },
54
54
  onRowContextmenu: {
55
55
  type: Function
56
+ },
57
+ expandMode: {
58
+ // 展开模式,不支持树形展开
59
+ type: String,
60
+ default: "default"
61
+ // deafult-默认 accordion-手风琴
56
62
  }
57
63
  },
58
64
  emits: ["search", "select", "select-all", "expand-change"],
@@ -258,7 +264,11 @@ const _sfc_main = {
258
264
  const isExpanded = isBoolean(expanded) ? expanded : !isNumber(index);
259
265
  if (isExpanded) {
260
266
  if (!isNumber(index)) {
261
- expandedKeys.value.push(getRowKey(row));
267
+ if (props.expandMode === "accordion" && isExpandTable.value) {
268
+ expandedKeys.value = [getRowKey(row)];
269
+ } else {
270
+ expandedKeys.value.push(getRowKey(row));
271
+ }
262
272
  }
263
273
  } else {
264
274
  if (isNumber(index)) {
@@ -382,6 +392,7 @@ const _sfc_main = {
382
392
  }), ["stop"])
383
393
  }, [
384
394
  createVNode(unref(ElIcon), {
395
+ class: "text-main",
385
396
  style: normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
386
397
  }, {
387
398
  default: withCtx(() => [
@@ -314,6 +314,17 @@ const useAppTableWrapper = (hy) => {
314
314
  tableRef.value.toggleRowExpansion(row);
315
315
  }
316
316
  }
317
+ function onTableRowExpandChangeHandler(row, expandedRows) {
318
+ if (isBoolean(expandedRows) || props.expandMode !== "accordion" || expandedRows.length <= 1) {
319
+ props.onExpandChange(row, expandedRows);
320
+ return;
321
+ } else {
322
+ expandedRows.forEach((item) => {
323
+ if (getRowKey(row) === getRowKey(item)) return;
324
+ toggleRowExpansion(item);
325
+ });
326
+ }
327
+ }
317
328
  const isSearchFocus = ref(false);
318
329
  function onSearchInputHandler() {
319
330
  isSearchFocus.value = true;
@@ -353,6 +364,7 @@ const useAppTableWrapper = (hy) => {
353
364
  toggleRowExpansion,
354
365
  onTableSelectHandler,
355
366
  onTableRowContextmenuHandler,
367
+ onTableRowExpandChangeHandler,
356
368
  onTableRowClickHandler,
357
369
  onTableColumnsSelectHandler,
358
370
  // 搜索选中
@@ -173,6 +173,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
173
173
  type: Boolean,
174
174
  required: false,
175
175
  default: true
176
+ },
177
+ expandMode: {
178
+ // 展开模式,不支持树形展开
179
+ type: String,
180
+ default: "default"
181
+ // deafult-默认 accordion-手风琴
182
+ },
183
+ onExpandChange: {
184
+ // 展开回调
185
+ type: Function
176
186
  }
177
187
  },
178
188
  emits: [
@@ -210,6 +220,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
210
220
  toggleRowExpansion,
211
221
  onTableRowClickHandler,
212
222
  onTableRowContextmenuHandler,
223
+ onTableRowExpandChangeHandler,
213
224
  onTableSelectHandler,
214
225
  isSearchFocus,
215
226
  onSearchInputHandler,
@@ -318,8 +329,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
318
329
  "onUpdate:modelValue": ($event) => __props.filterModel.query = $event,
319
330
  class: "hy-table-search",
320
331
  placeholder: unref(t)("table.searchFor", [__props.controllerText || ""]),
332
+ clearable: "",
321
333
  onFocus: unref(onSearchInputHandler),
322
334
  onBlur: unref(onSearchBlurHandler),
335
+ onClear: unref(onSearchQueryHandler),
323
336
  onKeydown: withKeys(unref(onSearchQueryHandler), ["enter"])
324
337
  }, {
325
338
  append: withCtx(() => [
@@ -338,7 +351,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
338
351
  ]),
339
352
  _: 1
340
353
  /* STABLE */
341
- }, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onBlur", "onKeydown"])
354
+ }, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onBlur", "onClear", "onKeydown"])
342
355
  ],
343
356
  2
344
357
  /* CLASS */
@@ -413,7 +426,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
413
426
  onSelect: unref(onTableSelectHandler),
414
427
  onSelectAll: unref(onTableSelectHandler),
415
428
  onRowClick: unref(onTableRowClickHandler),
416
- onRowContextmenu: unref(onTableRowContextmenuHandler)
429
+ onRowContextmenu: unref(onTableRowContextmenuHandler),
430
+ onExpandChange: unref(onTableRowExpandChangeHandler)
417
431
  }), {
418
432
  empty: withCtx(() => [
419
433
  renderSlot(_ctx.$slots, "empty", {}, () => [
@@ -654,7 +668,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
654
668
  ]),
655
669
  _: 3
656
670
  /* FORWARDED */
657
- }, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu"])) : createCommentVNode("v-if", true),
671
+ }, 16, ["row-key", "data", "show-header", "row-class-name", "class", "style", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])) : createCommentVNode("v-if", true),
658
672
  __props.type === "virtual" ? (openBlock(), createBlock(unref(ElAutoResizer), { key: 1 }, {
659
673
  default: withCtx(({ height, width }) => [
660
674
  createVNode(_sfc_main$3, mergeProps({
@@ -674,11 +688,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
674
688
  },
675
689
  "row-key": __props.rowKey,
676
690
  "filter-model": __props.filterModel,
691
+ expandMode: __props.expandMode,
677
692
  onSearch: ($event) => unref(getData)(1),
678
693
  onSelect: unref(onTableSelectHandler),
679
694
  onSelectAll: unref(onTableSelectHandler),
680
695
  onRowClick: unref(onTableRowClickHandler),
681
- onRowContextmenu: unref(onTableRowContextmenuHandler)
696
+ onRowContextmenu: unref(onTableRowContextmenuHandler),
697
+ onExpandChange: __props.onExpandChange
682
698
  }), createSlots({
683
699
  empty: withCtx(() => [
684
700
  createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
@@ -704,7 +720,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
704
720
  ])
705
721
  };
706
722
  })
707
- ]), 1040, ["width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu"])
723
+ ]), 1040, ["width", "height", "data", "columns", "columns-editable", "show-header", "row-class-name", "show-all-select", "style", "row-key", "filter-model", "expandMode", "onSearch", "onSelect", "onSelectAll", "onRowClick", "onRowContextmenu", "onExpandChange"])
708
724
  ]),
709
725
  _: 3
710
726
  /* FORWARDED */