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.
- package/dist/tailwind.css +20 -8
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyButton/button.vue.mjs +49 -34
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
- package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
- package/es/components/hyConfirmDialog/index.mjs +1 -1
- package/es/components/hyCutter/cutter.vue.mjs +1 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
- package/es/components/hyDialog/dialog.vue.mjs +176 -137
- package/es/components/hyDialog/style/dialog.scss +13 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyForm/style/form.scss +0 -4
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
- package/es/components/hySearch/js/index.mjs +4 -4
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +67 -86
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
- package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +8 -12
- package/es/components/hyTable/js/index.mjs +70 -54
- package/es/components/hyTable/js/useAppTable.mjs +20 -6
- package/es/components/hyTable/style/table.scss +22 -4
- package/es/components/hyTable/table.vue.mjs +22 -18
- package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
- package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
- package/es/components/hyTree/style/index.css +1 -0
- package/es/components/hyTree/tree.vue.mjs +2 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/locale/en.mjs +1 -1
- package/es/locale/zh_CN.mjs +1 -1
- package/es/style/element/hy-element.scss +3 -2
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyButton/button.vue.js +49 -34
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
- package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
- package/lib/components/hyConfirmDialog/index.js +1 -1
- package/lib/components/hyCutter/cutter.vue.js +1 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
- package/lib/components/hyDialog/dialog.vue.js +175 -136
- package/lib/components/hyDialog/style/dialog.scss +13 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyForm/style/form.scss +0 -4
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
- package/lib/components/hySearch/js/index.js +4 -4
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +70 -89
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
- package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +8 -12
- package/lib/components/hyTable/js/index.js +69 -53
- package/lib/components/hyTable/js/useAppTable.js +20 -6
- package/lib/components/hyTable/style/table.scss +22 -4
- package/lib/components/hyTable/table.vue.js +21 -17
- package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
- package/lib/components/hyTableForm/tableForm.vue.js +3 -3
- package/lib/components/hyTooltip/tooltip.vue.js +4 -4
- package/lib/components/hyTree/style/index.css +1 -0
- package/lib/components/hyTree/tree.vue.js +2 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/element/hy-element.scss +3 -2
- package/lib/version.js +1 -1
- 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
|
-
|
|
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")
|
|
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.
|
|
499
|
+
content: citem.desc
|
|
503
500
|
}, {
|
|
504
501
|
default: withCtx(() => [
|
|
505
502
|
createElementVNode("div", {
|
|
506
|
-
class: normalizeClass(["
|
|
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.
|
|
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.
|
|
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
|
-
],
|
|
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("
|
|
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),
|
|
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
|
-
|
|
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 :
|
|
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", {
|
|
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
|
-
|
|
36
|
+
selectedNumberItems: "Selected {0} Items",
|
|
37
37
|
clear: "Clear",
|
|
38
38
|
show: "Show",
|
|
39
39
|
notShown: "Not Shown",
|
package/es/locale/zh_CN.mjs
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
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
|
@@ -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('../
|
|
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.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
vue.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
|