@ibiz-template/vue3-components 0.7.17 → 0.7.18
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/index-OCVoltZS.js +1 -0
- package/dist/index-XL5qUYeQ.js +1 -0
- package/dist/index-iWPyEUNq.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-e9YRtb2T.js → xlsx-util-wSE1X5Fm.js} +1 -1
- package/es/control/app-menu/app-menu.mjs +2 -10
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +10 -15
- package/es/control/gantt/gantt.d.ts +5 -1
- package/es/control/gantt/gantt.mjs +41 -13
- package/es/control/gantt/index.d.ts +4 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/editor/upload/upload-editor.controller.d.ts +7 -0
- package/es/editor/upload/upload-editor.controller.mjs +13 -3
- package/es/editor/upload/use/use-iview-upload.d.ts +2 -1
- package/es/editor/upload/use/use-iview-upload.mjs +9 -1
- package/es/locale/en/index.d.ts +6 -0
- package/es/locale/en/index.mjs +9 -3
- package/es/locale/zh-CN/index.d.ts +6 -0
- package/es/locale/zh-CN/index.mjs +8 -2
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +4 -4
- package/es/panel-component/auth-userinfo/index.d.ts +1 -1
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index-actions/index-actions.mjs +5 -8
- package/lib/control/app-menu/app-menu.cjs +2 -10
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +10 -15
- package/lib/control/gantt/gantt.cjs +41 -13
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +13 -3
- package/lib/editor/upload/use/use-iview-upload.cjs +9 -1
- package/lib/locale/en/index.cjs +9 -3
- package/lib/locale/zh-CN/index.cjs +8 -2
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +4 -4
- package/lib/panel-component/index-actions/index-actions.cjs +5 -8
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/package.json +6 -6
- package/dist/index-7bnGd6Fk.js +0 -4
- package/dist/index-8ZKxthh5.js +0 -1
- package/dist/index-EgqQMBU4.js +0 -1
|
@@ -64,13 +64,6 @@ function findCustomMenu(_key, items) {
|
|
|
64
64
|
}
|
|
65
65
|
return temp;
|
|
66
66
|
}
|
|
67
|
-
function getMenuCustomDisabled(_key, items) {
|
|
68
|
-
const target = findCustomMenu(_key, items);
|
|
69
|
-
if (target) {
|
|
70
|
-
return target.disabled;
|
|
71
|
-
}
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
67
|
function getMenuCustomVisible(_key, items) {
|
|
75
68
|
const target = findCustomMenu(_key, items);
|
|
76
69
|
if (target) {
|
|
@@ -107,7 +100,7 @@ function renderMenuItem(isFirst, menu, collapse, ns, c, counterData, saveConfigs
|
|
|
107
100
|
return !(isFirst && collapse) ? createVNode(resolveComponent("el-menu-item"), {
|
|
108
101
|
"class": ns.e("item"),
|
|
109
102
|
"index": menu.key,
|
|
110
|
-
"disabled": menu.disabled
|
|
103
|
+
"disabled": menu.disabled,
|
|
111
104
|
"title": menu.tooltip
|
|
112
105
|
}, _isSlot(content) ? content : {
|
|
113
106
|
default: () => [content]
|
|
@@ -120,7 +113,7 @@ function renderMenuItem(isFirst, menu, collapse, ns, c, counterData, saveConfigs
|
|
|
120
113
|
default: () => [createVNode(resolveComponent("el-menu-item"), {
|
|
121
114
|
"class": ns.e("item"),
|
|
122
115
|
"index": menu.key,
|
|
123
|
-
"disabled": menu.disabled
|
|
116
|
+
"disabled": menu.disabled
|
|
124
117
|
}, _isSlot(content) ? content : {
|
|
125
118
|
default: () => [content]
|
|
126
119
|
})]
|
|
@@ -145,7 +138,6 @@ function renderSubmenu(isFirst, subMenu, collapse, ns, c, counterData, saveConfi
|
|
|
145
138
|
return createVNode(resolveComponent("el-sub-menu"), {
|
|
146
139
|
"class": ns.b("submenu"),
|
|
147
140
|
"index": subMenu.key,
|
|
148
|
-
"disabled": getMenuCustomDisabled(subMenu.key, saveConfigs),
|
|
149
141
|
"popper-class": ns.b("popup-container")
|
|
150
142
|
}, {
|
|
151
143
|
default: () => subMenu.children.map((item) => {
|
|
@@ -11,11 +11,15 @@ function _isSlot(s) {
|
|
|
11
11
|
function renderByProvider(itemId, c) {
|
|
12
12
|
const itemModel = c.allAppMenuItems.find((item) => item.id === itemId);
|
|
13
13
|
if (!itemModel) {
|
|
14
|
-
throw new RuntimeError("
|
|
14
|
+
throw new RuntimeError("".concat(ibiz.i18n.t("control.menuDesign.noMenuItemModel", {
|
|
15
|
+
menu: itemId
|
|
16
|
+
})));
|
|
15
17
|
}
|
|
16
18
|
const provider = c.itemProviders[itemId];
|
|
17
19
|
if (!provider.renderText) {
|
|
18
|
-
throw new RuntimeError("".concat(
|
|
20
|
+
throw new RuntimeError("".concat(ibiz.i18n.t("control.menuDesign.noProviderRenderText", {
|
|
21
|
+
menu: itemId
|
|
22
|
+
})));
|
|
19
23
|
}
|
|
20
24
|
return provider.renderText(itemModel, c);
|
|
21
25
|
}
|
|
@@ -51,8 +55,7 @@ const MenuDesign = /* @__PURE__ */ defineComponent({
|
|
|
51
55
|
key: item.key,
|
|
52
56
|
name: item.label,
|
|
53
57
|
type: item.itemType,
|
|
54
|
-
visible: item.config.visible
|
|
55
|
-
disabled: item.config.disabled
|
|
58
|
+
visible: item.config.visible
|
|
56
59
|
};
|
|
57
60
|
if ((_a = item.children) == null ? void 0 : _a.length) {
|
|
58
61
|
config.children = handleMenusSaveData(item.children);
|
|
@@ -89,8 +92,7 @@ const MenuDesign = /* @__PURE__ */ defineComponent({
|
|
|
89
92
|
...item,
|
|
90
93
|
isCollapse: true,
|
|
91
94
|
config: {
|
|
92
|
-
visible: true
|
|
93
|
-
disabled: false
|
|
95
|
+
visible: true
|
|
94
96
|
}
|
|
95
97
|
};
|
|
96
98
|
if ((_a = item.children) == null ? void 0 : _a.length) {
|
|
@@ -99,8 +101,7 @@ const MenuDesign = /* @__PURE__ */ defineComponent({
|
|
|
99
101
|
if (target) {
|
|
100
102
|
Object.assign(data, {
|
|
101
103
|
config: {
|
|
102
|
-
visible: target.visible
|
|
103
|
-
disabled: target.disabled
|
|
104
|
+
visible: target.visible
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
107
|
}
|
|
@@ -185,13 +186,7 @@ const MenuDesign = /* @__PURE__ */ defineComponent({
|
|
|
185
186
|
"modelValue": item.config.visible,
|
|
186
187
|
"onUpdate:modelValue": ($event) => item.config.visible = $event,
|
|
187
188
|
"onClick": stopExpand,
|
|
188
|
-
"label": "
|
|
189
|
-
"size": "large"
|
|
190
|
-
}, null), createVNode(resolveComponent("el-checkbox"), {
|
|
191
|
-
"modelValue": item.config.disabled,
|
|
192
|
-
"onUpdate:modelValue": ($event) => item.config.disabled = $event,
|
|
193
|
-
"onClick": stopExpand,
|
|
194
|
-
"label": "\u7981\u7528",
|
|
189
|
+
"label": ibiz.i18n.t("control.menuDesign.visible"),
|
|
195
190
|
"size": "large"
|
|
196
191
|
}, null)]) : null]), item.children && item.children.length > 0 ? createVNode("div", {
|
|
197
192
|
"class": [ns.bem("content", "menu-item", "children"), ns.is("collapse", item.isCollapse)]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType, VNode, Ref } from 'vue';
|
|
2
2
|
import { IDEGantt, IDETreeColumn } from '@ibiz/model-core';
|
|
3
3
|
import { IControlProvider, GanttController, IGanttNodeData } from '@ibiz-template/runtime';
|
|
4
|
+
import { AllowDropType, NodeDropType } from 'element-plus/es/components/tree/src/tree.type';
|
|
4
5
|
import './gantt.scss';
|
|
5
6
|
export declare const GanttControl: import("vue").DefineComponent<{
|
|
6
7
|
modelData: {
|
|
@@ -35,7 +36,7 @@ export declare const GanttControl: import("vue").DefineComponent<{
|
|
|
35
36
|
ns: import("@ibiz-template/core").Namespace;
|
|
36
37
|
ganttRef: Ref<IData | undefined>;
|
|
37
38
|
isInited: Ref<boolean>;
|
|
38
|
-
data: import("vue").ComputedRef<import("@ibiz-template/runtime").ITreeNodeData[]
|
|
39
|
+
data: import("vue").ComputedRef<import("@ibiz-template/runtime").ITreeNodeData[]>;
|
|
39
40
|
locale: import("vue").ComputedRef<string>;
|
|
40
41
|
columns: import("vue").ComputedRef<IDETreeColumn[]>;
|
|
41
42
|
onCheck: (state: boolean, item: IGanttNodeData) => void;
|
|
@@ -53,6 +54,9 @@ export declare const GanttControl: import("vue").DefineComponent<{
|
|
|
53
54
|
}>[];
|
|
54
55
|
onSliderMove: (sliders: IData[]) => void;
|
|
55
56
|
renderNoData: () => VNode | false;
|
|
57
|
+
allowDrop: (draggingNode: IGanttNodeData, dropNode: IGanttNodeData, type: AllowDropType) => boolean;
|
|
58
|
+
allowDrag: (draggingNode: IGanttNodeData) => boolean;
|
|
59
|
+
handleDrop: (draggingNode: IGanttNodeData, dropNode: IGanttNodeData, dropType: NodeDropType) => void;
|
|
56
60
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
61
|
modelData: {
|
|
58
62
|
type: PropType<IDEGantt>;
|
|
@@ -2,6 +2,7 @@ import { ref, resolveComponent, getCurrentInstance, onMounted, computed, createV
|
|
|
2
2
|
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { GanttController } from '@ibiz-template/runtime';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
+
import { findNodeData, formatNodeDropType } from '../tree/el-tree-util.mjs';
|
|
5
6
|
import './gantt.css';
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -84,8 +85,15 @@ const GanttControl = /* @__PURE__ */ defineComponent({
|
|
|
84
85
|
return false;
|
|
85
86
|
});
|
|
86
87
|
const data = computed(() => {
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
if (!c.state.isLoaded) {
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
91
|
+
return c.model.rootVisible ? c.state.rootNodes : c.state.rootNodes.reduce((result, nodeData) => {
|
|
92
|
+
if (nodeData._children) {
|
|
93
|
+
return result.concat(nodeData._children);
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}, []);
|
|
89
97
|
});
|
|
90
98
|
const columns = computed(() => {
|
|
91
99
|
const columnsModel = [];
|
|
@@ -142,20 +150,30 @@ const GanttControl = /* @__PURE__ */ defineComponent({
|
|
|
142
150
|
c.refreshNodeChildren(nodeData);
|
|
143
151
|
}
|
|
144
152
|
};
|
|
145
|
-
c.evt.on("
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
c.evt.on("onNewRow", (event) => {
|
|
154
|
+
var _a2;
|
|
155
|
+
const nodeData = event.row.data;
|
|
156
|
+
(_a2 = ganttRef.value) == null ? void 0 : _a2.setExpand(nodeData);
|
|
149
157
|
});
|
|
150
158
|
const onNodeCollapse = (nodeData) => {
|
|
151
159
|
c.onExpandChange(nodeData, false);
|
|
152
160
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
161
|
+
const allowDrop = (draggingNode, dropNode, type) => {
|
|
162
|
+
const draggingNodeData = findNodeData(draggingNode._uuid, c);
|
|
163
|
+
const dropNodeData = findNodeData(dropNode._uuid, c);
|
|
164
|
+
const result = c.calcAllowDrop(draggingNodeData, dropNodeData, type);
|
|
165
|
+
return result;
|
|
166
|
+
};
|
|
167
|
+
const allowDrag = (draggingNode) => {
|
|
168
|
+
const nodeData = findNodeData(draggingNode._uuid, c);
|
|
169
|
+
return c.calcAllowDrag(nodeData);
|
|
170
|
+
};
|
|
171
|
+
const handleDrop = (draggingNode, dropNode, dropType) => {
|
|
172
|
+
const draggingNodeData = findNodeData(draggingNode._uuid, c);
|
|
173
|
+
const dropNodeData = findNodeData(dropNode._uuid, c);
|
|
174
|
+
const type = formatNodeDropType(dropType);
|
|
175
|
+
c.onNodeDrop(draggingNodeData, dropNodeData, type);
|
|
176
|
+
};
|
|
159
177
|
const onSliderMove = (sliders) => {
|
|
160
178
|
var _a2;
|
|
161
179
|
const nodeData = (_a2 = sliders[0]) == null ? void 0 : _a2.row;
|
|
@@ -402,7 +420,10 @@ const GanttControl = /* @__PURE__ */ defineComponent({
|
|
|
402
420
|
onNodeCollapse,
|
|
403
421
|
renderContent,
|
|
404
422
|
onSliderMove,
|
|
405
|
-
renderNoData
|
|
423
|
+
renderNoData,
|
|
424
|
+
allowDrop,
|
|
425
|
+
allowDrag,
|
|
426
|
+
handleDrop
|
|
406
427
|
};
|
|
407
428
|
},
|
|
408
429
|
render() {
|
|
@@ -425,6 +446,13 @@ const GanttControl = /* @__PURE__ */ defineComponent({
|
|
|
425
446
|
"children": "_children",
|
|
426
447
|
"leaf": "_leaf",
|
|
427
448
|
"locale": this.locale,
|
|
449
|
+
"draggable": {
|
|
450
|
+
level: "all",
|
|
451
|
+
draggable: true
|
|
452
|
+
},
|
|
453
|
+
"allow-drop": this.allowDrop,
|
|
454
|
+
"allow-drag": this.allowDrag,
|
|
455
|
+
"onNodeDrop": this.handleDrop,
|
|
428
456
|
"showCheckbox": !this.c.state.singleSelect,
|
|
429
457
|
"onNodeExpand": this.onNodeExpand,
|
|
430
458
|
"onNodeCollapse": this.onNodeCollapse,
|
|
@@ -31,7 +31,7 @@ export declare const IBizGanttControl: import("@ibiz-template/vue3-util").TypeWi
|
|
|
31
31
|
ns: import("@ibiz-template/core").Namespace;
|
|
32
32
|
ganttRef: import("vue").Ref<IData | undefined>;
|
|
33
33
|
isInited: import("vue").Ref<boolean>;
|
|
34
|
-
data: import("vue").ComputedRef<import("@ibiz-template/runtime").ITreeNodeData[]
|
|
34
|
+
data: import("vue").ComputedRef<import("@ibiz-template/runtime").ITreeNodeData[]>;
|
|
35
35
|
locale: import("vue").ComputedRef<string>;
|
|
36
36
|
columns: import("vue").ComputedRef<import("@ibiz/model-core").IDETreeColumn[]>;
|
|
37
37
|
onCheck: (state: boolean, item: import("@ibiz-template/runtime").IGanttNodeData) => void;
|
|
@@ -51,6 +51,9 @@ export declare const IBizGanttControl: import("@ibiz-template/vue3-util").TypeWi
|
|
|
51
51
|
renderNoData: () => false | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
}>;
|
|
54
|
+
allowDrop: (draggingNode: import("@ibiz-template/runtime").IGanttNodeData, dropNode: import("@ibiz-template/runtime").IGanttNodeData, type: import("element-plus/es/components/tree/src/tree.type").AllowDropType) => boolean;
|
|
55
|
+
allowDrag: (draggingNode: import("@ibiz-template/runtime").IGanttNodeData) => boolean;
|
|
56
|
+
handleDrop: (draggingNode: import("@ibiz-template/runtime").IGanttNodeData, dropNode: import("@ibiz-template/runtime").IGanttNodeData, dropType: import("element-plus/es/components/tree/src/tree.type").NodeDropType) => void;
|
|
54
57
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
58
|
modelData: {
|
|
56
59
|
type: import("vue").PropType<import("@ibiz/model-core").IDEGantt>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-kanban{--ibiz-control-kanban-text-color:var(--ibiz-color-text-0);--ibiz-control-kanban-font-size:var(--ibiz-font-size-regular);--ibiz-control-kanban-font-weight:var(--ibiz-font-weight-bold);--ibiz-control-kanban-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-selected-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-group-header-height:48px;width:100%;height:100%}.ibiz-control-kanban--row .ibiz-control-kanban-group-container{display:flex;padding-bottom:var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban--row .ibiz-control-kanban-group-container>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse{width:32px}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header{position:relative;flex-direction:column;align-items:start;height:100%;padding:0}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header ion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header-caption{align-self:center;transform:rotate(90deg) translate(35px,0)}.ibiz-control-kanban--column .ibiz-control-kanban-group-container{display:flex;flex-direction:column}.ibiz-control-kanban--column .ibiz-control-kanban-group-container>*+*{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse{width:100%}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse ion-icon{transform:rotate(-90deg)}.ibiz-control-kanban-group-container{width:100%;height:100%}.ibiz-control-kanban-group{display:flex;flex-flow:column nowrap;flex-shrink:0;border:1px solid var(--ibiz-color-border);border-radius:4px;transition:all .3s}.ibiz-control-kanban-group__header{position:relative;height:var(--ibiz-control-kanban-group-header-height);padding:0 var(--ibiz-spacing-base);font-size:var(--ibiz-control-kanban-font-size);font-weight:var(--ibiz-control-kanban-font-weight);border-bottom:1px solid var(--ibiz-color-border);display:flex;align-items:center;justify-content:space-between}.ibiz-control-kanban-group__header::before{position:absolute;top:0;left:0;display:block;width:100%;content:"";border-color:inherit;border-top:2px solid}.ibiz-control-kanban-group__header-left{display:flex;align-items:center;justify-content:center}.ibiz-control-kanban-group__header-left ion-icon{margin-right:var(--ibiz-spacing-tight);transition:transform .3s}.ibiz-control-kanban-group__header-caption{padding:0 var(--ibiz-spacing-tight);white-space:nowrap;border-radius:100px}.ibiz-control-kanban-group__header-caption.is-badge{color:var(--ibiz-color-primary-active-text)}.ibiz-control-kanban-group__list{position:relative;flex:auto;width:100%;height:calc(100% - 48px);padding:0 var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban-group__draggable{min-height:100%;padding:var(--ibiz-spacing-base) 0}.ibiz-control-kanban-group__list.is-empty .ibiz-control-kanban__quicktoolbar{position:absolute;top:50%;width:calc(100% - var(--ibiz-spacing-base));transform:translateY(86px)}.ibiz-control-kanban-group__list.is-empty .ibiz-control-toolbar__item{justify-content:center}.ibiz-control-kanban-group__header-actions{position:relative;z-index:100;width:32px;height:32px;padding:var(--ibiz-spacing-tight);margin-left:4px;font-size:var(--ibiz-control-kanban-font-size);color:var(--ibiz-color-primary);cursor:pointer;border-radius:50%}.ibiz-control-kanban-group__header-actions:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-control-kanban-group__actions-dropdown{padding:var(--ibiz-spacing-extra-tight) 0}.ibiz-control-kanban-group__actions-dropdown .ibiz-action-toolbar{display:flex;flex-flow:column nowrap}.ibiz-control-kanban-group__actions-dropdown .el-button{--el-button-size:var(--ibiz-height-control-large);justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);margin:0;font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-primary-text)}.ibiz-control-kanban-group__actions-dropdown .el-button ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-kanban-group__actions-dropdown .el-button.is-text:not(.is-disabled):hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color)}.ibiz-control-kanban-item{cursor:pointer}.ibiz-control-kanban-item:hover{background-color:var(--ibiz-control-kanban-hover-bg-color)}.ibiz-control-kanban-item.is-selected{background-color:var(--ibiz-control-kanban-selected-bg-color)}.ibiz-control-kanban-item.is-disabled{cursor:no-drop}.ibiz-control-kanban-item+.ibiz-control-kanban-item{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban{position:relative;padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-base))}.ibiz-control-kanban__quicktoolbar{display:flex;flex-flow:column nowrap;margin-bottom:var(--ibiz-spacing-base)}.ibiz-control-kanban__quicktoolbar>*+*{margin-top:var(--ibiz-spacing-tight)}.ibiz-control-kanban__full-btn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;width:var(--ibiz-control-kanban-group-header-height);height:var(--ibiz-control-kanban-group-header-height);font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-font-weight-regular);color:var(--ibiz-color-primary);background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border)}.ibiz-control-kanban.is-full{padding:var(--ibiz-spacing-base);padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-extra-loose));background-color:var(--ibiz-color-bg-2)}.ibiz-control-kanban.is-full .ibiz-control-kanban__full-btn{top:var(--ibiz-spacing-base);right:var(--ibiz-spacing-base)}.ibiz-control-kanban-batch{padding:var(--ibiz-spacing-base-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-kanban-batch__toolbar .ibiz-control-toolbar{flex-wrap:wrap;row-gap:var(--ibiz-spacing-tight)}.ibiz-control-kanban-batch__check{display:flex;align-items:center;justify-content:space-between;margin-top:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-control-kanban-batch__info span{margin:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary)}
|
|
1
|
+
.ibiz-control-kanban{--ibiz-control-kanban-text-color:var(--ibiz-color-text-0);--ibiz-control-kanban-font-size:var(--ibiz-font-size-regular);--ibiz-control-kanban-font-weight:var(--ibiz-font-weight-bold);--ibiz-control-kanban-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-selected-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-group-header-height:48px;width:100%;height:100%}.ibiz-control-kanban--row .ibiz-control-kanban-group-container{display:flex;padding-bottom:var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban--row .ibiz-control-kanban-group-container>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse{width:32px}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header{position:relative;flex-direction:column;align-items:start;height:100%;padding:0}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header ion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header-caption{align-self:center;transform:rotate(90deg) translate(35px,0)}.ibiz-control-kanban--column .ibiz-control-kanban-group-container{display:flex;flex-direction:column}.ibiz-control-kanban--column .ibiz-control-kanban-group-container>*+*{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse{width:100%}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse ion-icon{transform:rotate(-90deg)}.ibiz-control-kanban-group-container{width:100%;height:100%}.ibiz-control-kanban-group{display:flex;flex-flow:column nowrap;flex-shrink:0;border:1px solid var(--ibiz-color-border);border-radius:4px;transition:all .3s}.ibiz-control-kanban-group__header{position:relative;height:var(--ibiz-control-kanban-group-header-height);padding:0 var(--ibiz-spacing-base);font-size:var(--ibiz-control-kanban-font-size);font-weight:var(--ibiz-control-kanban-font-weight);border-bottom:1px solid var(--ibiz-color-border);display:flex;align-items:center;justify-content:space-between}.ibiz-control-kanban-group__header::before{position:absolute;top:0;left:0;display:block;width:100%;content:"";border-color:inherit;border-top:2px solid}.ibiz-control-kanban-group__header-left{display:flex;align-items:center;justify-content:center}.ibiz-control-kanban-group__header-left ion-icon{margin-right:var(--ibiz-spacing-tight);transition:transform .3s}.ibiz-control-kanban-group__header-caption{padding:0 var(--ibiz-spacing-tight);white-space:nowrap;border-radius:100px}.ibiz-control-kanban-group__header-caption.is-badge{color:var(--ibiz-color-primary-active-text)}.ibiz-control-kanban-group__list{position:relative;flex:auto;width:100%;height:calc(100% - 48px);padding:0 var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban-group__draggable{min-height:100%;padding:var(--ibiz-spacing-base) 0}.ibiz-control-kanban-group__list.is-empty .ibiz-control-kanban__quicktoolbar{position:absolute;top:50%;width:calc(100% - var(--ibiz-spacing-base));transform:translateY(86px)}.ibiz-control-kanban-group__list.is-empty .ibiz-control-toolbar__item{justify-content:center}.ibiz-control-kanban-group__header-actions{position:relative;z-index:100;width:32px;height:32px;padding:var(--ibiz-spacing-tight);margin-left:4px;font-size:var(--ibiz-control-kanban-font-size);color:var(--ibiz-color-primary);cursor:pointer;border-radius:50%}.ibiz-control-kanban-group__header-actions:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-control-kanban-group__actions-dropdown:has(.el-button){padding:var(--ibiz-spacing-extra-tight) 0}.ibiz-control-kanban-group__actions-dropdown .ibiz-action-toolbar{display:flex;flex-flow:column nowrap}.ibiz-control-kanban-group__actions-dropdown .el-button{--el-button-size:var(--ibiz-height-control-large);justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);margin:0;font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-primary-text)}.ibiz-control-kanban-group__actions-dropdown .el-button ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-kanban-group__actions-dropdown .el-button.is-text:not(.is-disabled):hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color)}.ibiz-control-kanban-item{cursor:pointer}.ibiz-control-kanban-item:hover{background-color:var(--ibiz-control-kanban-hover-bg-color)}.ibiz-control-kanban-item.is-selected{background-color:var(--ibiz-control-kanban-selected-bg-color)}.ibiz-control-kanban-item.is-disabled{cursor:no-drop}.ibiz-control-kanban-item+.ibiz-control-kanban-item{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban{position:relative;padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-base))}.ibiz-control-kanban__quicktoolbar{display:flex;flex-flow:column nowrap;margin-bottom:var(--ibiz-spacing-base)}.ibiz-control-kanban__quicktoolbar>*+*{margin-top:var(--ibiz-spacing-tight)}.ibiz-control-kanban__full-btn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;width:var(--ibiz-control-kanban-group-header-height);height:var(--ibiz-control-kanban-group-header-height);font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-font-weight-regular);color:var(--ibiz-color-primary);background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border)}.ibiz-control-kanban.is-full{padding:var(--ibiz-spacing-base);padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-extra-loose));background-color:var(--ibiz-color-bg-2)}.ibiz-control-kanban.is-full .ibiz-control-kanban__full-btn{top:var(--ibiz-spacing-base);right:var(--ibiz-spacing-base)}.ibiz-control-kanban-batch{padding:var(--ibiz-spacing-base-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-kanban-batch__toolbar .ibiz-control-toolbar{flex-wrap:wrap;row-gap:var(--ibiz-spacing-tight)}.ibiz-control-kanban-batch__check{display:flex;align-items:center;justify-content:space-between;margin-top:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-control-kanban-batch__info span{margin:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary)}
|
|
@@ -38,7 +38,7 @@ export declare const IBizFileUpload: import("vue").DefineComponent<{
|
|
|
38
38
|
onError: (...args: IData[]) => never;
|
|
39
39
|
onRemove: (file: IData) => void;
|
|
40
40
|
onSuccess: (response: IData) => void;
|
|
41
|
-
beforeUpload: () =>
|
|
41
|
+
beforeUpload: (rawFile: import("element-plus").UploadRawFile) => boolean;
|
|
42
42
|
isGridEditor: import("vue").ComputedRef<boolean>;
|
|
43
43
|
componentRef: import("vue").Ref<any>;
|
|
44
44
|
showFormDefaultContent: import("vue").ComputedRef<boolean>;
|
|
@@ -36,7 +36,7 @@ export declare const IBizImageUpload: import("vue").DefineComponent<{
|
|
|
36
36
|
dialogImageUrl: import("vue").Ref<string>;
|
|
37
37
|
dialogVisible: import("vue").Ref<boolean>;
|
|
38
38
|
noUploadIcon: import("vue").ComputedRef<boolean>;
|
|
39
|
-
beforeUpload: () =>
|
|
39
|
+
beforeUpload: (rawFile: import("element-plus").UploadRawFile) => boolean;
|
|
40
40
|
onSuccess: (response: IData) => void;
|
|
41
41
|
onError: (...args: IData[]) => never;
|
|
42
42
|
onRemove: (file: IData) => void;
|
|
@@ -19,6 +19,13 @@ export declare class UploadEditorController extends EditorController<IFileUpload
|
|
|
19
19
|
* 接受上传的文件类型
|
|
20
20
|
*/
|
|
21
21
|
accept: string;
|
|
22
|
+
/**
|
|
23
|
+
* 上传的文件大小
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof UploadEditorController
|
|
27
|
+
*/
|
|
28
|
+
size: number;
|
|
22
29
|
/**
|
|
23
30
|
* 上传参数
|
|
24
31
|
*/
|
|
@@ -23,6 +23,13 @@ class UploadEditorController extends EditorController {
|
|
|
23
23
|
* 接受上传的文件类型
|
|
24
24
|
*/
|
|
25
25
|
__publicField(this, "accept", "");
|
|
26
|
+
/**
|
|
27
|
+
* 上传的文件大小
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof UploadEditorController
|
|
31
|
+
*/
|
|
32
|
+
__publicField(this, "size", 0);
|
|
26
33
|
/**
|
|
27
34
|
* 上传参数
|
|
28
35
|
*/
|
|
@@ -44,7 +51,7 @@ class UploadEditorController extends EditorController {
|
|
|
44
51
|
this.multiple = false;
|
|
45
52
|
}
|
|
46
53
|
if (this.editorParams) {
|
|
47
|
-
const { isDrag, multiple, accept, uploadParams, exportParams } = this.editorParams;
|
|
54
|
+
const { isDrag, multiple, accept, size, uploadParams, exportParams } = this.editorParams;
|
|
48
55
|
if (isDrag) {
|
|
49
56
|
this.isDrag = Boolean(isDrag);
|
|
50
57
|
}
|
|
@@ -54,13 +61,16 @@ class UploadEditorController extends EditorController {
|
|
|
54
61
|
if (accept) {
|
|
55
62
|
this.accept = accept;
|
|
56
63
|
}
|
|
64
|
+
if (size) {
|
|
65
|
+
this.size = Number(size);
|
|
66
|
+
}
|
|
57
67
|
if (uploadParams) {
|
|
58
68
|
try {
|
|
59
69
|
this.uploadParams = JSON.parse(uploadParams);
|
|
60
70
|
} catch (error) {
|
|
61
71
|
throw new RuntimeModelError(
|
|
62
72
|
uploadParams,
|
|
63
|
-
"
|
|
73
|
+
ibiz.i18n.t("editor.upload.uploadJsonFormatErr")
|
|
64
74
|
);
|
|
65
75
|
}
|
|
66
76
|
}
|
|
@@ -70,7 +80,7 @@ class UploadEditorController extends EditorController {
|
|
|
70
80
|
} catch (error) {
|
|
71
81
|
throw new RuntimeModelError(
|
|
72
82
|
exportParams,
|
|
73
|
-
"
|
|
83
|
+
ibiz.i18n.t("editor.upload.exportJsonFormatErr")
|
|
74
84
|
);
|
|
75
85
|
}
|
|
76
86
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UploadRawFile } from 'element-plus';
|
|
1
2
|
import { ComputedRef, Ref } from 'vue';
|
|
2
3
|
import { UploadEditorController } from '../upload-editor.controller';
|
|
3
4
|
/**
|
|
@@ -25,5 +26,5 @@ export declare function useIViewUpload(props: IParams, valueChange: (_value: str
|
|
|
25
26
|
onError: (...args: IData[]) => never;
|
|
26
27
|
onRemove: (file: IData) => void;
|
|
27
28
|
onSuccess: (response: IData) => void;
|
|
28
|
-
beforeUpload: () =>
|
|
29
|
+
beforeUpload: (rawFile: UploadRawFile) => boolean;
|
|
29
30
|
};
|
|
@@ -66,8 +66,16 @@ function useIViewUpload(props, valueChange, c) {
|
|
|
66
66
|
uploadCache.cacheFiles = [];
|
|
67
67
|
valueChange(value);
|
|
68
68
|
};
|
|
69
|
-
const beforeUpload = () => {
|
|
69
|
+
const beforeUpload = (rawFile) => {
|
|
70
|
+
const size = rawFile.size / 1024 / 1024;
|
|
71
|
+
if (c.size && size > c.size) {
|
|
72
|
+
ibiz.message.error(
|
|
73
|
+
"".concat(ibiz.i18n.t("editor.upload.fileSizeErr"), " ").concat(c.size, "MB!")
|
|
74
|
+
);
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
70
77
|
uploadCache.count += 1;
|
|
78
|
+
return true;
|
|
71
79
|
};
|
|
72
80
|
const onSuccess = (response) => {
|
|
73
81
|
if (!response) {
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -768,6 +768,9 @@ declare const _default: {
|
|
|
768
768
|
customMenu: string;
|
|
769
769
|
reset: string;
|
|
770
770
|
save: string;
|
|
771
|
+
visible: string;
|
|
772
|
+
noMenuItemModel: string;
|
|
773
|
+
noFoundFunction: string;
|
|
771
774
|
};
|
|
772
775
|
calendar: {
|
|
773
776
|
lastYear: string;
|
|
@@ -981,6 +984,9 @@ declare const _default: {
|
|
|
981
984
|
};
|
|
982
985
|
upload: {
|
|
983
986
|
uploadFiles: string;
|
|
987
|
+
fileSizeErr: string;
|
|
988
|
+
uploadJsonFormatErr: string;
|
|
989
|
+
exportJsonFormatErr: string;
|
|
984
990
|
};
|
|
985
991
|
};
|
|
986
992
|
panelComponent: {
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -109,12 +109,15 @@ var index = {
|
|
|
109
109
|
noSupportAlign: "The menu direction {align} is not supported temporarily",
|
|
110
110
|
noFoundModel: "no find the menu item model {menuKey}",
|
|
111
111
|
noFoundFunction: "The adapter for {menuKey} does not have a renderText method",
|
|
112
|
-
menuSetting: "
|
|
112
|
+
menuSetting: "Menu setting"
|
|
113
113
|
},
|
|
114
114
|
menuDesign: {
|
|
115
115
|
customMenu: "Custom menu",
|
|
116
116
|
reset: "Reset",
|
|
117
|
-
save: "Save"
|
|
117
|
+
save: "Save",
|
|
118
|
+
visible: "Visible",
|
|
119
|
+
noMenuItemModel: "No menu item model found {menu}",
|
|
120
|
+
noFoundFunction: "The adapter for {menu} does not have a renderText method"
|
|
118
121
|
},
|
|
119
122
|
calendar: {
|
|
120
123
|
lastYear: "Last year",
|
|
@@ -329,7 +332,10 @@ var index = {
|
|
|
329
332
|
warningMessage: "Ip format verification failed, paragraph {num} ip reset to old value"
|
|
330
333
|
},
|
|
331
334
|
upload: {
|
|
332
|
-
uploadFiles: "Upload files"
|
|
335
|
+
uploadFiles: "Upload files",
|
|
336
|
+
fileSizeErr: "The file size cannot exceed",
|
|
337
|
+
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|
|
338
|
+
exportJsonFormatErr: "The configuration of exportparams did not follow the standard JSON format"
|
|
333
339
|
}
|
|
334
340
|
},
|
|
335
341
|
panelComponent: {
|
|
@@ -766,6 +766,9 @@ declare const _default: {
|
|
|
766
766
|
customMenu: string;
|
|
767
767
|
reset: string;
|
|
768
768
|
save: string;
|
|
769
|
+
visible: string;
|
|
770
|
+
noMenuItemModel: string;
|
|
771
|
+
noFoundFunction: string;
|
|
769
772
|
};
|
|
770
773
|
calendar: {
|
|
771
774
|
lastYear: string;
|
|
@@ -979,6 +982,9 @@ declare const _default: {
|
|
|
979
982
|
};
|
|
980
983
|
upload: {
|
|
981
984
|
uploadFiles: string;
|
|
985
|
+
fileSizeErr: string;
|
|
986
|
+
uploadJsonFormatErr: string;
|
|
987
|
+
exportJsonFormatErr: string;
|
|
982
988
|
};
|
|
983
989
|
};
|
|
984
990
|
panelComponent: {
|
|
@@ -114,7 +114,10 @@ var index = {
|
|
|
114
114
|
menuDesign: {
|
|
115
115
|
customMenu: "\u81EA\u5B9A\u4E49\u83DC\u5355",
|
|
116
116
|
reset: "\u6062\u590D\u9ED8\u8BA4",
|
|
117
|
-
save: "\u4FDD\u5B58"
|
|
117
|
+
save: "\u4FDD\u5B58",
|
|
118
|
+
visible: "\u663E\u793A",
|
|
119
|
+
noMenuItemModel: "\u6CA1\u627E\u5230\u83DC\u5355\u9879\u6A21\u578B{menu}",
|
|
120
|
+
noFoundFunction: "{menu}\u7684\u9002\u914D\u5668\u6CA1\u6709renderText\u65B9\u6CD5"
|
|
118
121
|
},
|
|
119
122
|
calendar: {
|
|
120
123
|
lastYear: "\u53BB\u5E74",
|
|
@@ -329,7 +332,10 @@ var index = {
|
|
|
329
332
|
warningMessage: "ip\u683C\u5F0F\u9A8C\u8BC1\u672A\u901A\u8FC7\uFF0C\u7B2C{num}\u6BB5ip\u91CD\u7F6E\u56DE\u65E7\u503C"
|
|
330
333
|
},
|
|
331
334
|
upload: {
|
|
332
|
-
uploadFiles: "\u4E0A\u4F20\u6587\u4EF6"
|
|
335
|
+
uploadFiles: "\u4E0A\u4F20\u6587\u4EF6",
|
|
336
|
+
fileSizeErr: "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7",
|
|
337
|
+
uploadJsonFormatErr: "\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F",
|
|
338
|
+
exportJsonFormatErr: "\u914D\u7F6Eexportparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
333
339
|
}
|
|
334
340
|
},
|
|
335
341
|
panelComponent: {
|
|
@@ -16,7 +16,7 @@ export declare const AuthUserinfo: import("vue").DefineComponent<{
|
|
|
16
16
|
c: PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
17
17
|
onClick: () => void;
|
|
18
18
|
srfusername: any;
|
|
19
|
-
|
|
19
|
+
loginname: any;
|
|
20
20
|
router: import("vue-router").Router;
|
|
21
21
|
menuAlign: import("vue").ComputedRef<string>;
|
|
22
22
|
isCollapse: import("vue").ComputedRef<any>;
|
|
@@ -23,7 +23,7 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
const c = prop.controller;
|
|
24
24
|
const {
|
|
25
25
|
srfusername = ibiz.i18n.t("panelComponent.authUserinfo.visitor"),
|
|
26
|
-
|
|
26
|
+
loginname
|
|
27
27
|
} = ((_a = ibiz.appData) == null ? void 0 : _a.context) || {};
|
|
28
28
|
const router = useRouter();
|
|
29
29
|
const ctx = inject("ctx", void 0);
|
|
@@ -44,7 +44,7 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
c,
|
|
45
45
|
onClick,
|
|
46
46
|
srfusername,
|
|
47
|
-
|
|
47
|
+
loginname,
|
|
48
48
|
router,
|
|
49
49
|
menuAlign,
|
|
50
50
|
isCollapse
|
|
@@ -65,9 +65,9 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
"class": this.ns.b("name")
|
|
66
66
|
}, [createVNode("div", {
|
|
67
67
|
"class": this.ns.be("name", "user-name")
|
|
68
|
-
}, [this.srfusername]), this.menuAlign === "LEFT" && createVNode("div", {
|
|
68
|
+
}, [this.srfusername]), this.menuAlign === "LEFT" && this.loginname && createVNode("div", {
|
|
69
69
|
"class": this.ns.be("name", "person-name")
|
|
70
|
-
}, [this.
|
|
70
|
+
}, [this.loginname])])]), createVNode("ion-icon", {
|
|
71
71
|
"class": [this.ns.e("down"), this.ns.is("collapse", this.isCollapse)],
|
|
72
72
|
"name": "chevron-down-outline"
|
|
73
73
|
}, null)]),
|
|
@@ -12,7 +12,7 @@ export declare const IBizAuthUserinfo: import("@ibiz-template/vue3-util").TypeWi
|
|
|
12
12
|
c: import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
13
13
|
onClick: () => void;
|
|
14
14
|
srfusername: any;
|
|
15
|
-
|
|
15
|
+
loginname: any;
|
|
16
16
|
router: import("vue-router").Router;
|
|
17
17
|
menuAlign: import("vue").ComputedRef<string>;
|
|
18
18
|
isCollapse: import("vue").ComputedRef<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-index-actions{width:100%;height:100%}.ibiz-index-actions>.ibiz-row{height:100%;overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child{overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child>.ibiz-panel-container>.ibiz-row{overflow:visible}.ibiz-index-actions.is-hidden{display:none}.ibiz-index-actions .el-button{font-size:28px}.ibiz-index-actions .el-button:hover{background-color:transparent}
|
|
1
|
+
.ibiz-index-actions{width:100%;height:100%}.ibiz-index-actions>.ibiz-row{height:100%;overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child{overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child>.ibiz-panel-container>.ibiz-row{overflow:visible}.ibiz-index-actions.is-hidden{display:none}.ibiz-index-actions.is-collapse{position:relative}.ibiz-index-actions.is-collapse::after{position:absolute;bottom:0;left:12px;width:32px;height:1px;content:"";background-color:var(--ibiz-color-primary-light-active);opacity:.5}.ibiz-index-actions.is-collapse>.ibiz-row{flex-wrap:wrap}.ibiz-index-actions .el-button{font-size:28px}.ibiz-index-actions .el-button:hover{background-color:transparent}
|
|
@@ -23,14 +23,14 @@ const IndexActions = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
const {
|
|
24
24
|
id
|
|
25
25
|
} = props.modelData;
|
|
26
|
+
const isCollapse = computed(() => {
|
|
27
|
+
return props.controller.panel.view.state.isCollapse;
|
|
28
|
+
});
|
|
26
29
|
const classArr = computed(() => {
|
|
27
30
|
let result = [ns.b(), ns.m(id)];
|
|
28
|
-
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
31
|
+
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible), ns.is("collapse", isCollapse.value)];
|
|
29
32
|
return result;
|
|
30
33
|
});
|
|
31
|
-
const isCollapse = computed(() => {
|
|
32
|
-
return props.controller.panel.view.state.isCollapse;
|
|
33
|
-
});
|
|
34
34
|
return {
|
|
35
35
|
ns,
|
|
36
36
|
classArr,
|
|
@@ -40,10 +40,7 @@ const IndexActions = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
render() {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
let _slot;
|
|
43
|
-
|
|
44
|
-
if (this.isCollapse) {
|
|
45
|
-
defaultSlots = [defaultSlots[0]];
|
|
46
|
-
}
|
|
43
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
47
44
|
const content = createVNode(resolveComponent("iBizRow"), {
|
|
48
45
|
"slot": "content",
|
|
49
46
|
"layout": this.modelData.layout
|
|
@@ -66,13 +66,6 @@ function findCustomMenu(_key, items) {
|
|
|
66
66
|
}
|
|
67
67
|
return temp;
|
|
68
68
|
}
|
|
69
|
-
function getMenuCustomDisabled(_key, items) {
|
|
70
|
-
const target = findCustomMenu(_key, items);
|
|
71
|
-
if (target) {
|
|
72
|
-
return target.disabled;
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
69
|
function getMenuCustomVisible(_key, items) {
|
|
77
70
|
const target = findCustomMenu(_key, items);
|
|
78
71
|
if (target) {
|
|
@@ -109,7 +102,7 @@ function renderMenuItem(isFirst, menu, collapse, ns, c, counterData, saveConfigs
|
|
|
109
102
|
return !(isFirst && collapse) ? vue.createVNode(vue.resolveComponent("el-menu-item"), {
|
|
110
103
|
"class": ns.e("item"),
|
|
111
104
|
"index": menu.key,
|
|
112
|
-
"disabled": menu.disabled
|
|
105
|
+
"disabled": menu.disabled,
|
|
113
106
|
"title": menu.tooltip
|
|
114
107
|
}, _isSlot(content) ? content : {
|
|
115
108
|
default: () => [content]
|
|
@@ -122,7 +115,7 @@ function renderMenuItem(isFirst, menu, collapse, ns, c, counterData, saveConfigs
|
|
|
122
115
|
default: () => [vue.createVNode(vue.resolveComponent("el-menu-item"), {
|
|
123
116
|
"class": ns.e("item"),
|
|
124
117
|
"index": menu.key,
|
|
125
|
-
"disabled": menu.disabled
|
|
118
|
+
"disabled": menu.disabled
|
|
126
119
|
}, _isSlot(content) ? content : {
|
|
127
120
|
default: () => [content]
|
|
128
121
|
})]
|
|
@@ -147,7 +140,6 @@ function renderSubmenu(isFirst, subMenu, collapse, ns, c, counterData, saveConfi
|
|
|
147
140
|
return vue.createVNode(vue.resolveComponent("el-sub-menu"), {
|
|
148
141
|
"class": ns.b("submenu"),
|
|
149
142
|
"index": subMenu.key,
|
|
150
|
-
"disabled": getMenuCustomDisabled(subMenu.key, saveConfigs),
|
|
151
143
|
"popper-class": ns.b("popup-container")
|
|
152
144
|
}, {
|
|
153
145
|
default: () => subMenu.children.map((item) => {
|