hy-dispatch-ui-v3 0.2.33 → 0.2.35

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 (77) hide show
  1. package/dist/tailwind.css +20 -8
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
  3. package/es/components/hyAudioPlayer/js/index.mjs +1 -1
  4. package/es/components/hyButton/button.vue.mjs +49 -34
  5. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  6. package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
  7. package/es/components/hyConfirmDialog/index.mjs +1 -1
  8. package/es/components/hyCutter/cutter.vue.mjs +1 -1
  9. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
  10. package/es/components/hyDialog/dialog.vue.mjs +176 -137
  11. package/es/components/hyDialog/style/dialog.scss +13 -0
  12. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
  13. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  14. package/es/components/hyForm/style/form.scss +0 -4
  15. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  16. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  17. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
  18. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
  19. package/es/components/hySearch/js/index.mjs +4 -4
  20. package/es/components/hySearch/style/search.scss +1 -0
  21. package/es/components/hyTable/cpns/columnSelect.vue.mjs +67 -86
  22. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
  23. package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
  24. package/es/components/hyTable/cpns/virtualTable.vue.mjs +8 -12
  25. package/es/components/hyTable/js/index.mjs +70 -54
  26. package/es/components/hyTable/js/useAppTable.mjs +20 -6
  27. package/es/components/hyTable/style/table.scss +22 -4
  28. package/es/components/hyTable/table.vue.mjs +22 -18
  29. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  30. package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
  31. package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
  32. package/es/components/hyTree/style/index.css +1 -0
  33. package/es/components/hyTree/tree.vue.mjs +2 -0
  34. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  35. package/es/components/hyVideoPlayer/js/index.mjs +1 -1
  36. package/es/locale/en.mjs +1 -1
  37. package/es/locale/zh_CN.mjs +1 -1
  38. package/es/style/element/hy-element.scss +3 -2
  39. package/es/version.mjs +1 -1
  40. package/lib/components/hyAudioPlayer/js/index.js +1 -1
  41. package/lib/components/hyButton/button.vue.js +49 -34
  42. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  43. package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
  44. package/lib/components/hyConfirmDialog/index.js +1 -1
  45. package/lib/components/hyCutter/cutter.vue.js +1 -1
  46. package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
  47. package/lib/components/hyDialog/dialog.vue.js +175 -136
  48. package/lib/components/hyDialog/style/dialog.scss +13 -0
  49. package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
  50. package/lib/components/hyForm/js/useAppForm.js +1 -1
  51. package/lib/components/hyForm/style/form.scss +0 -4
  52. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  53. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  54. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
  55. package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
  56. package/lib/components/hySearch/js/index.js +4 -4
  57. package/lib/components/hySearch/style/search.scss +1 -0
  58. package/lib/components/hyTable/cpns/columnSelect.vue.js +70 -89
  59. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
  60. package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
  61. package/lib/components/hyTable/cpns/virtualTable.vue.js +8 -12
  62. package/lib/components/hyTable/js/index.js +69 -53
  63. package/lib/components/hyTable/js/useAppTable.js +20 -6
  64. package/lib/components/hyTable/style/table.scss +22 -4
  65. package/lib/components/hyTable/table.vue.js +21 -17
  66. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  67. package/lib/components/hyTableForm/tableForm.vue.js +3 -3
  68. package/lib/components/hyTooltip/tooltip.vue.js +4 -4
  69. package/lib/components/hyTree/style/index.css +1 -0
  70. package/lib/components/hyTree/tree.vue.js +2 -0
  71. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  72. package/lib/components/hyVideoPlayer/js/index.js +1 -1
  73. package/lib/locale/en.js +1 -1
  74. package/lib/locale/zh_CN.js +1 -1
  75. package/lib/style/element/hy-element.scss +3 -2
  76. package/lib/version.js +1 -1
  77. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { toRef } from 'vue';
2
+ import { isEmpty, isBoolean, isString, isObject, isPermission } from '../../../utils/is.mjs';
2
3
  import { useAppSearch } from '../../hySearch/js/useAppSearch.mjs';
3
- import { isEmpty, isBoolean, isString, isObject } from '../../../utils/is.mjs';
4
4
  import { useLocale } from '../../../hooks/useLocale.mjs';
5
5
 
6
6
  function getColumnDefaultConfig(column) {
@@ -13,7 +13,7 @@ function getColumnDefaultConfig(column) {
13
13
  };
14
14
  case "index":
15
15
  return {
16
- props: `${column.type}_prop`,
16
+ prop: `${column.type}_prop`,
17
17
  label: t("table.index")
18
18
  };
19
19
  case "expand":
@@ -34,7 +34,21 @@ function getColumnDefaultWidth(column) {
34
34
  if (column.type === "expand" && column.expandType === "expand") return 40;
35
35
  if (column.type === "selection") return 40;
36
36
  if (column.type === "index") return 80;
37
- if (column.type === "operator") return 172;
37
+ if (column.type === "operator") {
38
+ const length = (column.operator || []).reduce((total, item) => {
39
+ if (!item.permission && isPermission(item.permission)) {
40
+ total++;
41
+ }
42
+ return total;
43
+ }, 0);
44
+ if (length >= 3) {
45
+ return 168;
46
+ } else if (length === 2) {
47
+ return 168 - 52;
48
+ } else {
49
+ return 168 - 52 * 2;
50
+ }
51
+ }
38
52
  return;
39
53
  }
40
54
  function generateColumnItem(column) {
@@ -58,13 +72,13 @@ function getColumnEditable(column, index) {
58
72
  };
59
73
  }
60
74
  return {
61
- index: type === "operator" ? 1e3 : index,
62
75
  lock: false,
63
76
  edit: !type || type === "default",
64
77
  checked: !type || type !== "default" || type === "operator",
65
78
  desc: void 0,
66
79
  examples: [],
67
- ...editable || {}
80
+ ...editable || {},
81
+ index: type === "operator" ? 1e3 : index
68
82
  };
69
83
  }
70
84
  function getColumnSort(column) {
@@ -88,7 +102,7 @@ function getColumnSort(column) {
88
102
  return sort;
89
103
  }
90
104
  const useAppTable = (config = {}) => {
91
- const { columns, filterModel, filterColumns } = config || {};
105
+ const { columns, filterModel = {}, filterColumns } = config || {};
92
106
  const tableColumns = [];
93
107
  let defaultSortInfo = null;
94
108
  try {
@@ -6,21 +6,26 @@
6
6
  color: rgb(var(--hy-main));
7
7
  font-size: 14px;
8
8
  background-color: rgb(var(--hy-background));
9
- .el-table {
9
+ .hy-el-table {
10
10
  &.hideSelect {
11
11
  /* 禁用全选 */
12
- .el-table__header-wrapper .el-checkbox {
12
+ .hy-el-table__header-wrapper .hy-el-checkbox {
13
13
  display: none !important;
14
14
  }
15
15
  }
16
- .el-table__cell .cell {
16
+ .hy-el-table__cell .cell {
17
17
  display: flex;
18
18
  align-items: center;
19
- .el-table__expand-icon {
19
+ .hy-el-table__expand-icon {
20
20
  flex-shrink: 0;
21
21
  }
22
22
  }
23
23
  }
24
+ .hy-el-table-v2 {
25
+ .hy-el-table-v2__row-cell {
26
+ padding: 8px 12px;
27
+ }
28
+ }
24
29
  .hy-table-search {
25
30
  width: 160px;
26
31
  .hy-el-input__inner::placeholder {
@@ -38,3 +43,16 @@
38
43
  }
39
44
  }
40
45
  }
46
+
47
+ .hy-table-dropdown-menu.hy-el-dropdown-menu {
48
+ --hy-el-text-color-regular: rgba(var(--hy-main));
49
+ border: 1px solid rgba(var(--hy-main));
50
+ padding: 0px;
51
+ .hy-el-dropdown-menu__item {
52
+ padding: 9px 16px 10px;
53
+ border-bottom: 1px solid rgba(var(--hy-border));
54
+ &:last-child {
55
+ border-bottom: none;
56
+ }
57
+ }
58
+ }
@@ -1,4 +1,4 @@
1
- import { defineComponent, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, withCtx, toDisplayString, normalizeClass, withKeys, renderSlot, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment } from 'vue';
1
+ import { defineComponent, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, withCtx, toDisplayString, normalizeClass, withKeys, renderSlot, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers } from 'vue';
2
2
  import { ElIcon, ElInput, ElTable, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElAutoResizer, ElPagination } from 'element-plus';
3
3
  import { Filter, Search, MoreFilled } from '@element-plus/icons-vue';
4
4
  import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler, useAppTableWrapper } from './js/index.mjs';
@@ -6,13 +6,13 @@ import { useAppTableSearch } from './js/search.mjs';
6
6
  import _sfc_main$2 from './cpns/headerItem.vue.mjs';
7
7
  import _sfc_main$1 from './cpns/columnSelect.vue.mjs';
8
8
  import _sfc_main$3 from './cpns/virtualTable.vue.mjs';
9
- import { useMixins } from '../../hooks/useMixins.mjs';
10
- import { HySearch } from '../hySearch/index.mjs';
11
- import { parseRem } from '../../utils/adaptive.mjs';
12
9
  import { useLocale } from '../../hooks/useLocale.mjs';
10
+ import { useMixins } from '../../hooks/useMixins.mjs';
13
11
  import { HyTooltip } from '../hyTooltip/index.mjs';
14
12
  import { HyButton } from '../hyButton/index.mjs';
15
13
  import { HyIcon } from '../hyIcon/index.mjs';
14
+ import { HySearch } from '../hySearch/index.mjs';
15
+ import { parseRem } from '../../utils/adaptive.mjs';
16
16
  import { isEmpty } from '../../utils/is.mjs';
17
17
 
18
18
  import "./style/table.scss";
@@ -480,12 +480,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
480
480
  }, 1032, ["column", "filter-model", "onSearch"])
481
481
  ]),
482
482
  default: withCtx((scope) => [
483
- column?.slot ? renderSlot(_ctx.$slots, column?.slot, mergeProps({
484
- key: 0,
485
- ref_for: true
486
- }, scope)) : column.type === "operator" ? (openBlock(), createElementBlock("div", {
483
+ column?.slot ? renderSlot(_ctx.$slots, column?.slot, mergeProps({ ref_for: true }, scope), void 0, void 0, 0) : column.type === "operator" ? (openBlock(), createElementBlock("div", {
487
484
  key: 1,
488
- class: "flex items-center justify-end text-main"
485
+ class: "w-full flex items-center justify-end gap-3 text-main"
489
486
  }, [
490
487
  (openBlock(true), createElementBlock(
491
488
  Fragment,
@@ -499,31 +496,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
499
496
  key: cindex,
500
497
  "is-always": "",
501
498
  overLine: 1,
502
- content: citem.label
499
+ content: citem.desc
503
500
  }, {
504
501
  default: withCtx(() => [
505
502
  createElementVNode("div", {
506
- class: normalizeClass(["ml-2 w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
507
- onClick: ($event) => unref(operatorClickHandler)(cindex, column, scope, "default")
503
+ class: normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
504
+ onClick: withModifiers(($event) => unref(operatorClickHandler)(cindex, column, scope, "default"), ["stop"]),
505
+ onContextmenu: withModifiers(() => {
506
+ }, ["stop"])
508
507
  }, [
509
508
  createVNode(unref(HyIcon), {
510
509
  "svg-name": citem.svgName,
511
510
  "class-name": "!w-4 !h-4"
512
511
  }, null, 8, ["svg-name"]),
513
- citem.subLabel ? (openBlock(), createElementBlock(
512
+ citem.label ? (openBlock(), createElementBlock(
514
513
  "div",
515
514
  {
516
515
  key: 0,
517
516
  class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
518
517
  },
519
- toDisplayString(citem.subLabel),
518
+ toDisplayString(citem.label),
520
519
  1
521
520
  /* TEXT */
522
521
  )) : (openBlock(), createElementBlock("div", {
523
522
  key: 1,
524
523
  class: "mt-1 whitespace-nowrap"
525
524
  }, "\xA0"))
526
- ], 10, ["onClick"])
525
+ ], 42, ["onClick", "onContextmenu"])
527
526
  ]),
528
527
  _: 2
529
528
  /* DYNAMIC */
@@ -598,7 +597,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
598
597
  )
599
598
  ]),
600
599
  default: withCtx(() => [
601
- createElementVNode("span", null, [
600
+ createElementVNode("div", {
601
+ onClick: withModifiers(() => {
602
+ }, ["stop"]),
603
+ onContextmenu: withModifiers(() => {
604
+ }, ["stop"])
605
+ }, [
602
606
  createVNode(unref(HyTooltip), {
603
607
  "is-always": "",
604
608
  overLine: 1,
@@ -628,7 +632,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
628
632
  _: 1
629
633
  /* STABLE */
630
634
  }, 8, ["content"])
631
- ])
635
+ ], 40, ["onClick", "onContextmenu"])
632
636
  ]),
633
637
  _: 2
634
638
  /* DYNAMIC */
@@ -775,7 +779,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
775
779
  )
776
780
  }, {
777
781
  dropdown: withCtx(() => [
778
- createVNode(unref(ElDropdownMenu), null, {
782
+ createVNode(unref(ElDropdownMenu), { class: "hy-table-dropdown-menu" }, {
779
783
  default: withCtx(() => [
780
784
  (openBlock(true), createElementBlock(
781
785
  Fragment,
@@ -1,5 +1,5 @@
1
- import { useAppForm } from '../../hyForm/js/useAppForm.mjs';
2
1
  import { useAppTable } from '../../hyTable/js/useAppTable.mjs';
2
+ import { useAppForm } from '../../hyForm/js/useAppForm.mjs';
3
3
  import { isString, isObject } from '../../../utils/is.mjs';
4
4
 
5
5
  const useAppTableForm = (config = {}) => {
@@ -3,12 +3,12 @@ import { ElIcon } from 'element-plus';
3
3
  import { Warning } from '@element-plus/icons-vue';
4
4
  import { doValidate } from './js/index.mjs';
5
5
  import { useAppTable } from '../hyTable/js/useAppTable.mjs';
6
+ import { isArray, isObject } from '../../utils/is.mjs';
6
7
  import { cloneDeep } from '../../utils/handler.mjs';
8
+ import { HyButton } from '../hyButton/index.mjs';
7
9
  import { HyTable } from '../hyTable/index.mjs';
8
10
  import { HyForm } from '../hyForm/index.mjs';
9
11
  import { resetAppFormValue } from '../hyForm/js/useAppForm.mjs';
10
- import { isArray, isObject } from '../../utils/is.mjs';
11
- import { HyButton } from '../hyButton/index.mjs';
12
12
 
13
13
  import "./style/tableForm.scss";
14
14
 
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
79
79
  operator: [
80
80
  {
81
81
  label: "\u5220\u9664",
82
- subLabel: "\u5220\u9664",
82
+ desc: "\u5220\u9664",
83
83
  svgName: "ops-linear-delete",
84
84
  className: "text-danger-2",
85
85
  handler: onDeleteRowHandler
@@ -1,7 +1,7 @@
1
1
  import { ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeClass, defineComponent } from 'vue';
2
2
  import { ElTooltip } from 'element-plus';
3
- import { useTooltipConfig } from '../../hooks/useTooltipConfig.mjs';
4
3
  import { isNumber, isBoolean, isOverflowing } from '../../utils/is.mjs';
4
+ import { useTooltipConfig } from '../../hooks/useTooltipConfig.mjs';
5
5
 
6
6
  import "./style/tooltip.scss";
7
7
 
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
15
  default: () => {
16
16
  const { tooltipConfig } = useTooltipConfig();
17
17
  const { isAlways } = tooltipConfig.value;
18
- return isBoolean(isAlways) ? isAlways : false;
18
+ return isBoolean(isAlways) ? isAlways : true;
19
19
  }
20
20
  },
21
21
  disabled: {
@@ -69,13 +69,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
69
69
  content: _ctx.$slots.content ? void 0 : unref(isNumber)(__props.content) ? `${__props.content}` : __props.content
70
70
  }), createSlots({
71
71
  default: withCtx(() => [
72
- __props.isAlways ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
72
+ __props.isAlways ? renderSlot(_ctx.$slots, "default", {}, () => [
73
73
  createTextVNode(
74
74
  toDisplayString(__props.content),
75
75
  1
76
76
  /* TEXT */
77
77
  )
78
- ]) : (openBlock(), createElementBlock(
78
+ ], void 0, 0) : (openBlock(), createElementBlock(
79
79
  "span",
80
80
  {
81
81
  key: 1,
@@ -0,0 +1 @@
1
+ @import url('hy-virtual-tree/style');
@@ -6,6 +6,8 @@ import { searchTypeConfig, treeTypeConfig } from './config/tree-config.mjs';
6
6
  import { useMixins } from '../../hooks/useMixins.mjs';
7
7
  import { HyIcon } from '../hyIcon/index.mjs';
8
8
 
9
+ import "./style/index.css";
10
+
9
11
  const __default__ = defineComponent({
10
12
  name: "HyTree"
11
13
  });
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, unref, openBlock, createElementBlock, normalizeStyle, createBlock, normalizeClass, createCommentVNode } from 'vue';
2
- import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
3
- import { pxTorem } from '../../utils/adaptive.mjs';
4
2
  import { useLocale } from '../../hooks/useLocale.mjs';
3
+ import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
5
4
  import { HyIcon } from '../hyIcon/index.mjs';
5
+ import { pxTorem } from '../../utils/adaptive.mjs';
6
6
 
7
7
  import "./style/userAvatar.scss";
8
8
 
@@ -1,11 +1,11 @@
1
1
  import { ref, computed, nextTick } from 'vue';
2
2
  import { ElMessage } from 'element-plus';
3
+ import { useLocale } from '../../../hooks/useLocale.mjs';
3
4
  import { useVideoPlayerConfig } from '../../../hooks/useVideoPlayerConfig.mjs';
4
5
  import { formatDuration } from '../../../utils/date.mjs';
5
6
  import { HyConfirmDialog } from '../../hyConfirmDialog/index.mjs';
6
7
  import { copyText } from '../../../utils/handler.mjs';
7
8
  import { isSupportH265 } from '../../../utils/is.mjs';
8
- import { useLocale } from '../../../hooks/useLocale.mjs';
9
9
 
10
10
  const useVideoPlayer = (hy) => {
11
11
  const { props, emits, videoRef, videoWrapperRef } = hy;
package/es/locale/en.mjs CHANGED
@@ -33,7 +33,7 @@ var en = {
33
33
  hideFilter: "Hide filter",
34
34
  displayFilter: "Display filter",
35
35
  tooManyFieldsWillAffectReadability: "Too Many Fields Will Affect Readability",
36
- haveBeenSelected: "{0} Have Been Selected",
36
+ selectedNumberItems: "Selected {0} Items",
37
37
  clear: "Clear",
38
38
  show: "Show",
39
39
  notShown: "Not Shown",
@@ -33,7 +33,7 @@ var zh_CN = {
33
33
  hideFilter: "\u9690\u85CF\u7B5B\u9009\u5668",
34
34
  displayFilter: "\u663E\u793A\u7B5B\u9009\u5668",
35
35
  tooManyFieldsWillAffectReadability: "\u5B57\u6BB5\u8FC7\u591A\u5C06\u5F71\u54CD\u53EF\u8BFB\u6027",
36
- haveBeenSelected: "\u5DF2\u9009\u62E9{0}\u4E2A",
36
+ selectedNumberItems: "\u5DF2\u9009\u62E9{0}\u4E2A",
37
37
  clear: "\u6E05\u9664",
38
38
  show: "\u663E\u793A",
39
39
  notShown: "\u672A\u663E\u793A",
@@ -698,7 +698,8 @@
698
698
  }
699
699
 
700
700
  .hy-el-tabs__nav-wrap::after {
701
- background-color: rgba(var(--hy-background), 1);
701
+ background-color: transparent;
702
+ // background-color: rgba(var(--hy-background), 1);
702
703
  }
703
704
 
704
705
  .hy-el-tabs__active-bar {
@@ -707,7 +708,7 @@
707
708
 
708
709
  .hy-el-tabs .hy-el-tabs__item {
709
710
  border-radius: 6px 6px 0 0;
710
- border: 1px solid rgba(var(--hy-background-2), 1);
711
+ // border: 1px solid rgba(var(--hy-background-2), 1);
711
712
  padding: 0 20px !important;
712
713
 
713
714
  &:hover {
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.32";
1
+ const version = "0.2.34";
2
2
 
3
3
  export { version };
@@ -2,8 +2,8 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var elementPlus = require('element-plus');
5
- var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
6
5
  var useLocale = require('../../../hooks/useLocale.js');
6
+ var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
7
7
  var date = require('../../../utils/date.js');
8
8
 
9
9
  const useAudioPlayer = (hy) => {
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
- var index = require('../hyIcon/index.js');
8
+ var index = require('../hyTooltip/index.js');
9
+ var index$1 = require('../hyIcon/index.js');
9
10
 
10
11
  import "./style/button.scss";
11
12
 
@@ -27,6 +28,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
27
28
  type: Boolean,
28
29
  default: false
29
30
  },
31
+ loadingTip: {
32
+ // 加载中气泡文本
33
+ type: String
34
+ },
30
35
  size: {
31
36
  type: String,
32
37
  size: "default"
@@ -116,39 +121,49 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
116
121
  },
117
122
  [
118
123
  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
- ]),
124
+ vue.createVNode(vue.unref(index.HyTooltip), {
125
+ "is-always": "",
126
+ disabled: !__props.loading || !__props.loadingTip,
127
+ content: __props.loadingTip
128
+ }, {
129
+ default: vue.withCtx(() => [
130
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
131
+ vue.createElementVNode(
132
+ "div",
133
+ {
134
+ class: vue.normalizeClass(["flex items-center text-main", {
135
+ "px-3": !__props.expand,
136
+ "pl-3 pr-1.5": __props.expand
137
+ }])
138
+ },
139
+ [
140
+ !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
141
+ __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
142
+ key: 0,
143
+ "svg-name": __props.svgName,
144
+ "class-name": "!w-3 !h-3 text-main mr-2"
145
+ }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
146
+ ], void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
147
+ key: 1,
148
+ color: "rgb(var(--hy-main))",
149
+ class: "is-loading mr-2"
150
+ }, {
151
+ default: vue.withCtx(() => [
152
+ vue.createVNode(vue.unref(iconsVue.Loading))
153
+ ]),
154
+ _: 1
155
+ /* STABLE */
156
+ })),
157
+ vue.renderSlot(_ctx.$slots, "default")
158
+ ],
159
+ 2
160
+ /* CLASS */
161
+ )
162
+ ])
163
+ ]),
164
+ _: 3
165
+ /* FORWARDED */
166
+ }, 8, ["disabled", "content"]),
152
167
  __props.expand ? (vue.openBlock(), vue.createElementBlock(
153
168
  vue.Fragment,
154
169
  { key: 0 },
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
- var index = require('../hyButton/index.js');
9
8
  var useLocale = require('../../hooks/useLocale.js');
9
+ var index = require('../hyButton/index.js');
10
10
 
11
11
  const __default__ = vue.defineComponent({
12
12
  name: "HyConfirmDialog"
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var useApi = require('../../hooks/useApi.js');
7
7
  var confirmDialog = require('./confirmDialog.vue.js');
8
+ var useLocale = require('../../hooks/useLocale.js');
8
9
  var useGlobalConfig = require('../../hooks/useGlobalConfig.js');
9
10
  var index = require('../hyConfigProvider/index.js');
10
- var useLocale = require('../../hooks/useLocale.js');
11
11
 
12
12
  function appConfirmMethod(config) {
13
13
  let container = document.createDocumentFragment();
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('./confirmMethod.js');
6
- var confirmDialog = require('./confirmDialog.vue.js');
7
6
  var handler = require('../../utils/handler.js');
7
+ var confirmDialog = require('./confirmDialog.vue.js');
8
8
 
9
9
  const HyConfirmDialog = handler.withInstall(confirmDialog.default);
10
10
 
@@ -6,9 +6,9 @@ var vue = require('vue');
6
6
  var vueCropper = require('vue-cropper');
7
7
  var elementPlus = require('element-plus');
8
8
  var iconsVue = require('@element-plus/icons-vue');
9
+ var useLocale = require('../../hooks/useLocale.js');
9
10
  var file = require('../../utils/file.js');
10
11
  var index = require('../hyDialog/index.js');
11
- var useLocale = require('../../hooks/useLocale.js');
12
12
 
13
13
  import "vue-cropper/dist/index.css";
14
14
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ var useLocale = require('../../hooks/useLocale.js');
7
8
  var date = require('../../utils/date.js');
8
9
  var is = require('../../utils/is.js');
9
- var useLocale = require('../../hooks/useLocale.js');
10
10
 
11
11
  import "./style/datePicker.scss";
12
12