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
|
@@ -10,13 +10,13 @@ var search = require('./js/search.js');
|
|
|
10
10
|
var headerItem = require('./cpns/headerItem.vue.js');
|
|
11
11
|
var columnSelect = require('./cpns/columnSelect.vue.js');
|
|
12
12
|
var virtualTable = require('./cpns/virtualTable.vue.js');
|
|
13
|
-
var useMixins = require('../../hooks/useMixins.js');
|
|
14
|
-
var index$3 = require('../hySearch/index.js');
|
|
15
|
-
var adaptive = require('../../utils/adaptive.js');
|
|
16
13
|
var useLocale = require('../../hooks/useLocale.js');
|
|
14
|
+
var useMixins = require('../../hooks/useMixins.js');
|
|
17
15
|
var index = require('../hyTooltip/index.js');
|
|
18
16
|
var index$1 = require('../hyButton/index.js');
|
|
19
17
|
var index$2 = require('../hyIcon/index.js');
|
|
18
|
+
var index$3 = require('../hySearch/index.js');
|
|
19
|
+
var adaptive = require('../../utils/adaptive.js');
|
|
20
20
|
var is = require('../../utils/is.js');
|
|
21
21
|
|
|
22
22
|
import "./style/table.scss";
|
|
@@ -484,12 +484,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
484
484
|
}, 1032, ["column", "filter-model", "onSearch"])
|
|
485
485
|
]),
|
|
486
486
|
default: vue.withCtx((scope) => [
|
|
487
|
-
column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
|
|
488
|
-
key: 0,
|
|
489
|
-
ref_for: true
|
|
490
|
-
}, scope)) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
487
|
+
column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({ ref_for: true }, scope), void 0, void 0, 0) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
491
488
|
key: 1,
|
|
492
|
-
class: "flex items-center justify-end text-main"
|
|
489
|
+
class: "w-full flex items-center justify-end gap-3 text-main"
|
|
493
490
|
}, [
|
|
494
491
|
(vue.openBlock(true), vue.createElementBlock(
|
|
495
492
|
vue.Fragment,
|
|
@@ -503,31 +500,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
503
500
|
key: cindex,
|
|
504
501
|
"is-always": "",
|
|
505
502
|
overLine: 1,
|
|
506
|
-
content: citem.
|
|
503
|
+
content: citem.desc
|
|
507
504
|
}, {
|
|
508
505
|
default: vue.withCtx(() => [
|
|
509
506
|
vue.createElementVNode("div", {
|
|
510
|
-
class: vue.normalizeClass(["
|
|
511
|
-
onClick: ($event) => vue.unref(index$4.operatorClickHandler)(cindex, column, scope, "default")
|
|
507
|
+
class: vue.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]),
|
|
508
|
+
onClick: vue.withModifiers(($event) => vue.unref(index$4.operatorClickHandler)(cindex, column, scope, "default"), ["stop"]),
|
|
509
|
+
onContextmenu: vue.withModifiers(() => {
|
|
510
|
+
}, ["stop"])
|
|
512
511
|
}, [
|
|
513
512
|
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
514
513
|
"svg-name": citem.svgName,
|
|
515
514
|
"class-name": "!w-4 !h-4"
|
|
516
515
|
}, null, 8, ["svg-name"]),
|
|
517
|
-
citem.
|
|
516
|
+
citem.label ? (vue.openBlock(), vue.createElementBlock(
|
|
518
517
|
"div",
|
|
519
518
|
{
|
|
520
519
|
key: 0,
|
|
521
520
|
class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
|
|
522
521
|
},
|
|
523
|
-
vue.toDisplayString(citem.
|
|
522
|
+
vue.toDisplayString(citem.label),
|
|
524
523
|
1
|
|
525
524
|
/* TEXT */
|
|
526
525
|
)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
527
526
|
key: 1,
|
|
528
527
|
class: "mt-1 whitespace-nowrap"
|
|
529
528
|
}, "\xA0"))
|
|
530
|
-
],
|
|
529
|
+
], 42, ["onClick", "onContextmenu"])
|
|
531
530
|
]),
|
|
532
531
|
_: 2
|
|
533
532
|
/* DYNAMIC */
|
|
@@ -602,7 +601,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
602
601
|
)
|
|
603
602
|
]),
|
|
604
603
|
default: vue.withCtx(() => [
|
|
605
|
-
vue.createElementVNode("
|
|
604
|
+
vue.createElementVNode("div", {
|
|
605
|
+
onClick: vue.withModifiers(() => {
|
|
606
|
+
}, ["stop"]),
|
|
607
|
+
onContextmenu: vue.withModifiers(() => {
|
|
608
|
+
}, ["stop"])
|
|
609
|
+
}, [
|
|
606
610
|
vue.createVNode(vue.unref(index.HyTooltip), {
|
|
607
611
|
"is-always": "",
|
|
608
612
|
overLine: 1,
|
|
@@ -632,7 +636,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
632
636
|
_: 1
|
|
633
637
|
/* STABLE */
|
|
634
638
|
}, 8, ["content"])
|
|
635
|
-
])
|
|
639
|
+
], 40, ["onClick", "onContextmenu"])
|
|
636
640
|
]),
|
|
637
641
|
_: 2
|
|
638
642
|
/* DYNAMIC */
|
|
@@ -779,7 +783,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
779
783
|
)
|
|
780
784
|
}, {
|
|
781
785
|
dropdown: vue.withCtx(() => [
|
|
782
|
-
vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),
|
|
786
|
+
vue.createVNode(vue.unref(elementPlus.ElDropdownMenu), { class: "hy-table-dropdown-menu" }, {
|
|
783
787
|
default: vue.withCtx(() => [
|
|
784
788
|
(vue.openBlock(true), vue.createElementBlock(
|
|
785
789
|
vue.Fragment,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useAppForm = require('../../hyForm/js/useAppForm.js');
|
|
4
3
|
var useAppTable = require('../../hyTable/js/useAppTable.js');
|
|
4
|
+
var useAppForm = require('../../hyForm/js/useAppForm.js');
|
|
5
5
|
var is = require('../../../utils/is.js');
|
|
6
6
|
|
|
7
7
|
const useAppTableForm = (config = {}) => {
|
|
@@ -7,12 +7,12 @@ var elementPlus = require('element-plus');
|
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
8
|
var index$3 = require('./js/index.js');
|
|
9
9
|
var useAppTable = require('../hyTable/js/useAppTable.js');
|
|
10
|
+
var is = require('../../utils/is.js');
|
|
10
11
|
var handler = require('../../utils/handler.js');
|
|
12
|
+
var index = require('../hyButton/index.js');
|
|
11
13
|
var index$1 = require('../hyTable/index.js');
|
|
12
14
|
var index$2 = require('../hyForm/index.js');
|
|
13
15
|
var useAppForm = require('../hyForm/js/useAppForm.js');
|
|
14
|
-
var is = require('../../utils/is.js');
|
|
15
|
-
var index = require('../hyButton/index.js');
|
|
16
16
|
|
|
17
17
|
import "./style/tableForm.scss";
|
|
18
18
|
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
83
83
|
operator: [
|
|
84
84
|
{
|
|
85
85
|
label: "\u5220\u9664",
|
|
86
|
-
|
|
86
|
+
desc: "\u5220\u9664",
|
|
87
87
|
svgName: "ops-linear-delete",
|
|
88
88
|
className: "text-danger-2",
|
|
89
89
|
handler: onDeleteRowHandler
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
-
var useTooltipConfig = require('../../hooks/useTooltipConfig.js');
|
|
8
7
|
var is = require('../../utils/is.js');
|
|
8
|
+
var useTooltipConfig = require('../../hooks/useTooltipConfig.js');
|
|
9
9
|
|
|
10
10
|
import "./style/tooltip.scss";
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
19
19
|
default: () => {
|
|
20
20
|
const { tooltipConfig } = useTooltipConfig.useTooltipConfig();
|
|
21
21
|
const { isAlways } = tooltipConfig.value;
|
|
22
|
-
return is.isBoolean(isAlways) ? isAlways :
|
|
22
|
+
return is.isBoolean(isAlways) ? isAlways : true;
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
disabled: {
|
|
@@ -73,13 +73,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
73
73
|
content: _ctx.$slots.content ? void 0 : vue.unref(is.isNumber)(__props.content) ? `${__props.content}` : __props.content
|
|
74
74
|
}), vue.createSlots({
|
|
75
75
|
default: vue.withCtx(() => [
|
|
76
|
-
__props.isAlways ? vue.renderSlot(_ctx.$slots, "default", {
|
|
76
|
+
__props.isAlways ? vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
77
77
|
vue.createTextVNode(
|
|
78
78
|
vue.toDisplayString(__props.content),
|
|
79
79
|
1
|
|
80
80
|
/* TEXT */
|
|
81
81
|
)
|
|
82
|
-
]) : (vue.openBlock(), vue.createElementBlock(
|
|
82
|
+
], void 0, 0) : (vue.openBlock(), vue.createElementBlock(
|
|
83
83
|
"span",
|
|
84
84
|
{
|
|
85
85
|
key: 1,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('hy-virtual-tree/style');
|
|
@@ -10,6 +10,8 @@ var treeConfig = require('./config/tree-config.js');
|
|
|
10
10
|
var useMixins = require('../../hooks/useMixins.js');
|
|
11
11
|
var index$1 = require('../hyIcon/index.js');
|
|
12
12
|
|
|
13
|
+
import "./style/index.css";
|
|
14
|
+
|
|
13
15
|
const __default__ = vue.defineComponent({
|
|
14
16
|
name: "HyTree"
|
|
15
17
|
});
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
7
|
-
var adaptive = require('../../utils/adaptive.js');
|
|
8
6
|
var useLocale = require('../../hooks/useLocale.js');
|
|
7
|
+
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
9
8
|
var index = require('../hyIcon/index.js');
|
|
9
|
+
var adaptive = require('../../utils/adaptive.js');
|
|
10
10
|
|
|
11
11
|
import "./style/userAvatar.scss";
|
|
12
12
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
5
6
|
var useVideoPlayerConfig = require('../../../hooks/useVideoPlayerConfig.js');
|
|
6
7
|
var date = require('../../../utils/date.js');
|
|
7
8
|
var index = require('../../hyConfirmDialog/index.js');
|
|
8
9
|
var handler = require('../../../utils/handler.js');
|
|
9
10
|
var is = require('../../../utils/is.js');
|
|
10
|
-
var useLocale = require('../../../hooks/useLocale.js');
|
|
11
11
|
|
|
12
12
|
const useVideoPlayer = (hy) => {
|
|
13
13
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
package/lib/locale/en.js
CHANGED
|
@@ -37,7 +37,7 @@ var en = {
|
|
|
37
37
|
hideFilter: "Hide filter",
|
|
38
38
|
displayFilter: "Display filter",
|
|
39
39
|
tooManyFieldsWillAffectReadability: "Too Many Fields Will Affect Readability",
|
|
40
|
-
|
|
40
|
+
selectedNumberItems: "Selected {0} Items",
|
|
41
41
|
clear: "Clear",
|
|
42
42
|
show: "Show",
|
|
43
43
|
notShown: "Not Shown",
|
package/lib/locale/zh_CN.js
CHANGED
|
@@ -37,7 +37,7 @@ var zh_CN = {
|
|
|
37
37
|
hideFilter: "\u9690\u85CF\u7B5B\u9009\u5668",
|
|
38
38
|
displayFilter: "\u663E\u793A\u7B5B\u9009\u5668",
|
|
39
39
|
tooManyFieldsWillAffectReadability: "\u5B57\u6BB5\u8FC7\u591A\u5C06\u5F71\u54CD\u53EF\u8BFB\u6027",
|
|
40
|
-
|
|
40
|
+
selectedNumberItems: "\u5DF2\u9009\u62E9{0}\u4E2A",
|
|
41
41
|
clear: "\u6E05\u9664",
|
|
42
42
|
show: "\u663E\u793A",
|
|
43
43
|
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/lib/version.js
CHANGED