@ibiz-template/vue3-components 0.7.40 → 0.7.41-alpha.1
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-8ZkS4CI0.js → index-4CBJktLS.js} +1 -1
- package/dist/{index-WNFQFxQd.js → index-QL7Ukex9.js} +1 -1
- package/dist/index-eIKUlAq_.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{map-chart-user-bTKfT7VH.js → map-chart-user-xOSZGbF2.js} +1 -1
- package/dist/{wang-editor-f_OOMd4x.js → wang-editor-6EirGFoh.js} +1 -1
- package/dist/{xlsx-util-3T0fByLw.js → xlsx-util-J1RHk00u.js} +1 -1
- package/es/common/map-chart-user/map-chart-user.util.mjs +1 -1
- package/es/control/app-menu/app-menu.d.ts +2 -2
- package/es/control/app-menu/app-menu.mjs +17 -9
- package/es/control/calendar/calendar.mjs +6 -2
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +1 -1
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +3 -3
- package/es/control/drbar/drbar.controller.mjs +4 -3
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/grid/grid/grid-control.util.mjs +48 -2
- package/es/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/es/control/kanban/kanban.mjs +6 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/index.d.ts +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/index.mjs +3 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/icon.d.ts +2 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/icon.mjs +19 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/interface.d.ts +99 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/interface.mjs +89 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer-util.d.ts +17 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer-util.mjs +103 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.css +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +182 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.mjs +146 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/icon.d.ts +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/icon.mjs +12 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/interface.d.ts +60 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/interface.mjs +52 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel-util.d.ts +14 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel-util.mjs +130 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.css +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.d.ts +108 -0
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.mjs +116 -0
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.css +1 -0
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +97 -0
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.mjs +279 -0
- package/es/editor/data-picker/index.d.ts +1 -0
- package/es/editor/data-picker/index.mjs +1 -0
- package/es/editor/data-picker/picker-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.css +1 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +93 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +292 -0
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/index.mjs +12 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +3 -0
- package/es/locale/en/index.d.ts +10 -0
- package/es/locale/en/index.mjs +10 -0
- package/es/locale/zh-CN/index.d.ts +10 -0
- package/es/locale/zh-CN/index.mjs +10 -0
- package/es/panel-component/app-switch/app-switch.controller.mjs +11 -1
- package/es/panel-component/panel-tab-panel/panel-tab-panel.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/web-app/components/router-shell/router-shell.mjs +6 -4
- package/lib/common/map-chart-user/map-chart-user.util.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +16 -8
- package/lib/control/calendar/calendar.cjs +6 -2
- package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +1 -1
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +3 -3
- package/lib/control/drbar/drbar.controller.cjs +4 -3
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +48 -2
- package/lib/control/grid/row-edit-popover/row-edit-popover.css +1 -1
- package/lib/control/kanban/kanban.cjs +6 -1
- package/lib/editor/data-picker/ibiz-transfer-picker/components/index.cjs +7 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/icon.cjs +22 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/interface.cjs +99 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer-util.cjs +108 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.cjs +148 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.css +1 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/icon.cjs +14 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/interface.cjs +58 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel-util.cjs +133 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.cjs +118 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/components/transfer-panel/transfer-panel.css +1 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.cjs +281 -0
- package/lib/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.css +1 -0
- package/lib/editor/data-picker/index.cjs +2 -0
- package/lib/editor/data-picker/picker-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +294 -0
- package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/index.cjs +12 -0
- package/lib/locale/en/index.cjs +10 -0
- package/lib/locale/zh-CN/index.cjs +10 -0
- package/lib/panel-component/app-switch/app-switch.controller.cjs +11 -1
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/web-app/components/router-shell/router-shell.cjs +6 -4
- package/package.json +5 -5
- package/dist/index-azhHVxuV.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.40_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.40_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { DropDownListEditorController } from '../dropdown-list-editor.controller';
|
|
3
|
+
import './ibiz-tree-picker.scss';
|
|
4
|
+
/**
|
|
5
|
+
* 树形多选(扩展)
|
|
6
|
+
*
|
|
7
|
+
* @description 用于以树形样式呈现选择项,支持搜索过滤、全选、取消全选、全展开及全收起功能,常用于绘制树形结构的代码表数据。基于`下拉列表框(多选)`编辑器进行扩展,编辑器样式代码名称为:TREE_PICKER
|
|
8
|
+
* @primary
|
|
9
|
+
* @editorparams {"name":"showtoolbar","parameterType":"boolean","defaultvalue":"false","description":"是否显示头部工具栏。默认不显示,若此值为 true,则会在头部呈现快捷工具栏,该工具栏可用于执行全选、取消全选、全展开以及全收起操作"}
|
|
10
|
+
* @ignoreprops autoFocus | overflowMode | controlParams
|
|
11
|
+
* @ignoreemits blur | focus | enter | infoTextChange
|
|
12
|
+
*/
|
|
13
|
+
export declare const IBizTreePicker: import("vue").DefineComponent<{
|
|
14
|
+
value: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<DropDownListEditorController>, undefined, undefined>;
|
|
16
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
readonly: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
autoFocus: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
overflowMode: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
controlParams: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
required: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
37
|
+
c: DropDownListEditorController;
|
|
38
|
+
items: Ref<readonly import("@ibiz-template/core").IApiData[]>;
|
|
39
|
+
treeRef: Ref<any>;
|
|
40
|
+
filterText: Ref<string>;
|
|
41
|
+
treeNodes: Ref<import("@ibiz-template/core").IApiData[]>;
|
|
42
|
+
isCancel: Ref<boolean>;
|
|
43
|
+
defaultCheckedKeys: Ref<string[]>;
|
|
44
|
+
expandedKeys: Ref<string[]>;
|
|
45
|
+
showToolbar: boolean;
|
|
46
|
+
onNodeExpand: (...args: IData[]) => void;
|
|
47
|
+
onNodeCollapse: (...args: IData[]) => void;
|
|
48
|
+
filterNode: (value: string, data: IData) => boolean;
|
|
49
|
+
customNodeClass: (data: IData) => string | null;
|
|
50
|
+
onAllExpand: () => void;
|
|
51
|
+
onAllCollapse: () => void;
|
|
52
|
+
onAllSelect: () => void;
|
|
53
|
+
onAllCancel: () => void;
|
|
54
|
+
onCheck: (...args: IData[]) => void;
|
|
55
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
change: (_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => boolean;
|
|
57
|
+
blur: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
58
|
+
focus: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
59
|
+
enter: (_event?: import("@ibiz-template/core").IApiData | undefined) => boolean;
|
|
60
|
+
infoTextChange: (_text: string) => boolean;
|
|
61
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
value: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
controller: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<DropDownListEditorController>, undefined, undefined>;
|
|
64
|
+
data: import("@ibiz-template/vue3-util").RequiredProp<import("vue").PropType<import("@ibiz-template/core").IApiData>, undefined, undefined>;
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
};
|
|
68
|
+
readonly: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
autoFocus: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
overflowMode: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
};
|
|
79
|
+
controlParams: {
|
|
80
|
+
type: ObjectConstructor;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>> & {
|
|
84
|
+
onFocus?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
85
|
+
onBlur?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
86
|
+
onChange?: ((_value: unknown, _name?: string | undefined, _ignore?: boolean | undefined) => any) | undefined;
|
|
87
|
+
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
88
|
+
onEnter?: ((_event?: import("@ibiz-template/core").IApiData | undefined) => any) | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
readonly: boolean;
|
|
92
|
+
autoFocus: boolean;
|
|
93
|
+
}, {}>;
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { isVNode, ref, watch, onMounted, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { getDropdownProps, getEditorEmits, useNamespace, useCodeListListen } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { isArray, isString } from 'lodash-es';
|
|
4
|
+
import './ibiz-tree-picker.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
function _isSlot(s) {
|
|
8
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
+
}
|
|
10
|
+
const IBizTreePicker = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "IBizTreePicker",
|
|
12
|
+
props: getDropdownProps(),
|
|
13
|
+
emits: getEditorEmits(),
|
|
14
|
+
setup(props, {
|
|
15
|
+
emit
|
|
16
|
+
}) {
|
|
17
|
+
const ns = useNamespace("tree-picker");
|
|
18
|
+
const c = props.controller;
|
|
19
|
+
const editorModel = c.model;
|
|
20
|
+
const items = ref([]);
|
|
21
|
+
const codeListItems = ref([]);
|
|
22
|
+
const isLoadedCodeList = ref(false);
|
|
23
|
+
const treeNodes = ref([]);
|
|
24
|
+
const defaultCheckedKeys = ref([]);
|
|
25
|
+
const isLoading = ref(false);
|
|
26
|
+
const codeItemValueNumber = ref(false);
|
|
27
|
+
const filterText = ref("");
|
|
28
|
+
const treeRef = ref();
|
|
29
|
+
const isCancel = ref(true);
|
|
30
|
+
const allExpand = ref(false);
|
|
31
|
+
const expandedKeys = ref([]);
|
|
32
|
+
const valueSeparator = c.model.valueSeparator || ",";
|
|
33
|
+
let showToolbar = false;
|
|
34
|
+
if (editorModel.editorParams) {
|
|
35
|
+
const {
|
|
36
|
+
editorParams
|
|
37
|
+
} = editorModel;
|
|
38
|
+
if (editorParams.showtoolbar)
|
|
39
|
+
showToolbar = editorParams.showtoolbar === "true";
|
|
40
|
+
}
|
|
41
|
+
const handleExpand = (_key, state) => {
|
|
42
|
+
var _a;
|
|
43
|
+
const treeNode = (_a = treeRef.value) == null ? void 0 : _a.getNode(_key);
|
|
44
|
+
if (treeNode.isLeaf)
|
|
45
|
+
return;
|
|
46
|
+
if (state) {
|
|
47
|
+
treeNode.expand();
|
|
48
|
+
} else {
|
|
49
|
+
treeNode.collapse();
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const handleTreeNodes = (nodes) => {
|
|
53
|
+
if (nodes.length === 0) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
const list = [];
|
|
57
|
+
nodes.forEach((codeItem) => {
|
|
58
|
+
var _a;
|
|
59
|
+
const index = codeListItems.value.findIndex((_item) => {
|
|
60
|
+
return _item.value === codeItem.value;
|
|
61
|
+
});
|
|
62
|
+
if (index === -1) {
|
|
63
|
+
codeListItems.value.push(codeItem);
|
|
64
|
+
}
|
|
65
|
+
const tempObj = {
|
|
66
|
+
label: codeItem.text,
|
|
67
|
+
value: (_a = codeItem.value) == null ? void 0 : _a.toString(),
|
|
68
|
+
color: codeItem == null ? void 0 : codeItem.color,
|
|
69
|
+
textCls: codeItem == null ? void 0 : codeItem.textCls,
|
|
70
|
+
sysImage: codeItem.sysImage,
|
|
71
|
+
disabled: codeItem.disableSelect === true,
|
|
72
|
+
children: []
|
|
73
|
+
};
|
|
74
|
+
if (codeItem.children && codeItem.children.length > 0) {
|
|
75
|
+
tempObj.children = handleTreeNodes(codeItem.children);
|
|
76
|
+
}
|
|
77
|
+
list.push(tempObj);
|
|
78
|
+
});
|
|
79
|
+
return list;
|
|
80
|
+
};
|
|
81
|
+
const afterLoadCodeList = (codeList) => {
|
|
82
|
+
items.value = [];
|
|
83
|
+
codeListItems.value = [];
|
|
84
|
+
let tempCodeList = codeList;
|
|
85
|
+
if (c.multiple && !tempCodeList.some((item) => item.children)) {
|
|
86
|
+
tempCodeList = c.handleCodeListAllItems(tempCodeList);
|
|
87
|
+
}
|
|
88
|
+
items.value = tempCodeList;
|
|
89
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
90
|
+
const _item = items.value[i];
|
|
91
|
+
if (_item.children) {
|
|
92
|
+
treeNodes.value = handleTreeNodes(tempCodeList);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const loadCodeList = async () => {
|
|
98
|
+
if (c.model.appCodeListId) {
|
|
99
|
+
const app = ibiz.hub.getApp(c.context.srfappid);
|
|
100
|
+
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
101
|
+
if (codeListModel) {
|
|
102
|
+
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
isLoading.value = true;
|
|
106
|
+
const codeList = await c.loadCodeList(props.data);
|
|
107
|
+
afterLoadCodeList(codeList);
|
|
108
|
+
isLoadedCodeList.value = true;
|
|
109
|
+
isLoading.value = false;
|
|
110
|
+
};
|
|
111
|
+
watch(() => props.value, async (newVal, oldVal) => {
|
|
112
|
+
if (newVal) {
|
|
113
|
+
let val = [];
|
|
114
|
+
if (!isLoadedCodeList.value && oldVal === void 0) {
|
|
115
|
+
await loadCodeList();
|
|
116
|
+
}
|
|
117
|
+
if (isArray(newVal)) {
|
|
118
|
+
val = newVal;
|
|
119
|
+
} else if (isString(newVal)) {
|
|
120
|
+
val = newVal.split(valueSeparator);
|
|
121
|
+
}
|
|
122
|
+
defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && item.isLeaf));
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
immediate: true
|
|
126
|
+
});
|
|
127
|
+
const onChange = (values) => {
|
|
128
|
+
let selectArr = null;
|
|
129
|
+
if (c.model.valueType === "SIMPLES") {
|
|
130
|
+
selectArr = values;
|
|
131
|
+
} else {
|
|
132
|
+
selectArr = values.join(valueSeparator);
|
|
133
|
+
}
|
|
134
|
+
emit("change", selectArr);
|
|
135
|
+
};
|
|
136
|
+
const customNodeClass = (data) => {
|
|
137
|
+
return data.children.length ? ns.e("branch-node") : null;
|
|
138
|
+
};
|
|
139
|
+
const fn = (data) => {
|
|
140
|
+
if (data)
|
|
141
|
+
afterLoadCodeList(data);
|
|
142
|
+
};
|
|
143
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
144
|
+
onMounted(() => {
|
|
145
|
+
loadCodeList();
|
|
146
|
+
});
|
|
147
|
+
const filterNode = (value, data) => {
|
|
148
|
+
if (!value)
|
|
149
|
+
return true;
|
|
150
|
+
return data.label && data.label.includes(value);
|
|
151
|
+
};
|
|
152
|
+
watch(filterText, (val) => {
|
|
153
|
+
var _a;
|
|
154
|
+
(_a = treeRef.value) == null ? void 0 : _a.filter(val);
|
|
155
|
+
});
|
|
156
|
+
const handleExpandSwitch = (state = true) => {
|
|
157
|
+
codeListItems.value.forEach((item) => {
|
|
158
|
+
if (item.children && item.children.length > 0) {
|
|
159
|
+
handleExpand(item.value, state);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
const onAllExpand = () => {
|
|
164
|
+
allExpand.value = true;
|
|
165
|
+
handleExpandSwitch();
|
|
166
|
+
};
|
|
167
|
+
const onAllCollapse = () => {
|
|
168
|
+
allExpand.value = false;
|
|
169
|
+
handleExpandSwitch(false);
|
|
170
|
+
};
|
|
171
|
+
const onAllSelect = () => {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
const checkedKeys = (_a = codeListItems.value) == null ? void 0 : _a.map((item) => item.value);
|
|
174
|
+
handleExpandSwitch(allExpand.value);
|
|
175
|
+
(_b = treeRef.value) == null ? void 0 : _b.setCheckedKeys(checkedKeys);
|
|
176
|
+
onChange(checkedKeys);
|
|
177
|
+
};
|
|
178
|
+
const onAllCancel = () => {
|
|
179
|
+
var _a;
|
|
180
|
+
handleExpandSwitch(allExpand.value);
|
|
181
|
+
(_a = treeRef.value) == null ? void 0 : _a.setCheckedKeys([]);
|
|
182
|
+
onChange([]);
|
|
183
|
+
};
|
|
184
|
+
const onCheck = (...args) => {
|
|
185
|
+
if (args[1]) {
|
|
186
|
+
const {
|
|
187
|
+
checkedKeys,
|
|
188
|
+
halfCheckedKeys
|
|
189
|
+
} = args[1];
|
|
190
|
+
const combinedKeys = [...halfCheckedKeys, ...checkedKeys];
|
|
191
|
+
const filterArr = combinedKeys.filter((value, index, self) => {
|
|
192
|
+
return self.indexOf(value) === index;
|
|
193
|
+
});
|
|
194
|
+
onChange(filterArr);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
const onNodeExpand = (...args) => {
|
|
198
|
+
if (args[0] && args[0].value) {
|
|
199
|
+
expandedKeys.value.push(args[0].value);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const onNodeCollapse = (...args) => {
|
|
203
|
+
if (args[0] && args[0].value) {
|
|
204
|
+
const index = expandedKeys.value.findIndex((_key) => args[0].value === _key);
|
|
205
|
+
if (index !== -1) {
|
|
206
|
+
expandedKeys.value.splice(index, 1);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
return {
|
|
211
|
+
ns,
|
|
212
|
+
c,
|
|
213
|
+
items,
|
|
214
|
+
treeRef,
|
|
215
|
+
filterText,
|
|
216
|
+
treeNodes,
|
|
217
|
+
isCancel,
|
|
218
|
+
defaultCheckedKeys,
|
|
219
|
+
expandedKeys,
|
|
220
|
+
showToolbar,
|
|
221
|
+
onNodeExpand,
|
|
222
|
+
onNodeCollapse,
|
|
223
|
+
filterNode,
|
|
224
|
+
customNodeClass,
|
|
225
|
+
onAllExpand,
|
|
226
|
+
onAllCollapse,
|
|
227
|
+
onAllSelect,
|
|
228
|
+
onAllCancel,
|
|
229
|
+
onCheck
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
render() {
|
|
233
|
+
const isReadonly = this.readonly || this.disabled;
|
|
234
|
+
const content = [createVNode("div", {
|
|
235
|
+
"class": [this.ns.e("search")]
|
|
236
|
+
}, [createVNode(resolveComponent("el-input"), {
|
|
237
|
+
"modelValue": this.filterText,
|
|
238
|
+
"onUpdate:modelValue": ($event) => this.filterText = $event,
|
|
239
|
+
"placeholder": this.c.placeHolder || " "
|
|
240
|
+
}, null)]), createVNode("div", {
|
|
241
|
+
"class": [this.ns.e("tree")]
|
|
242
|
+
}, [createVNode(resolveComponent("el-tree"), {
|
|
243
|
+
"ref": "treeRef",
|
|
244
|
+
"class": this.ns.b("tree"),
|
|
245
|
+
"data": this.treeNodes,
|
|
246
|
+
"node-key": "value",
|
|
247
|
+
"props": {
|
|
248
|
+
children: "children",
|
|
249
|
+
label: "label",
|
|
250
|
+
class: this.customNodeClass
|
|
251
|
+
},
|
|
252
|
+
"show-checkbox": !isReadonly,
|
|
253
|
+
"default-checked-keys": this.defaultCheckedKeys,
|
|
254
|
+
"default-expanded-keys": this.expandedKeys,
|
|
255
|
+
"filter-node-method": this.filterNode,
|
|
256
|
+
"onNodeExpand": this.onNodeExpand,
|
|
257
|
+
"onNodeCollapse": this.onNodeCollapse,
|
|
258
|
+
"onCheck": this.onCheck
|
|
259
|
+
}, null)])];
|
|
260
|
+
if (!isReadonly && this.showToolbar) {
|
|
261
|
+
let _slot, _slot2, _slot3, _slot4;
|
|
262
|
+
content.unshift(...[createVNode("div", {
|
|
263
|
+
"class": [this.ns.e("header")]
|
|
264
|
+
}, [createVNode(resolveComponent("el-button"), {
|
|
265
|
+
"type": "primary",
|
|
266
|
+
"onClick": this.onAllSelect
|
|
267
|
+
}, _isSlot(_slot = ibiz.i18n.t("editor.treePicker.allowAll")) ? _slot : {
|
|
268
|
+
default: () => [_slot]
|
|
269
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
270
|
+
"type": "primary",
|
|
271
|
+
"onClick": this.onAllCancel
|
|
272
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("editor.treePicker.allProhibited")) ? _slot2 : {
|
|
273
|
+
default: () => [_slot2]
|
|
274
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
275
|
+
"type": "primary",
|
|
276
|
+
"onClick": this.onAllExpand
|
|
277
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("editor.treePicker.expandAll")) ? _slot3 : {
|
|
278
|
+
default: () => [_slot3]
|
|
279
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
280
|
+
"type": "primary",
|
|
281
|
+
"onClick": this.onAllCollapse
|
|
282
|
+
}, _isSlot(_slot4 = ibiz.i18n.t("editor.treePicker.collapseAll")) ? _slot4 : {
|
|
283
|
+
default: () => [_slot4]
|
|
284
|
+
})])]);
|
|
285
|
+
}
|
|
286
|
+
return createVNode("div", {
|
|
287
|
+
"class": [this.ns.b()]
|
|
288
|
+
}, [content]);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
export { IBizTreePicker };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { IBizDropdown } from './ibiz-dropdown/ibiz-dropdown';
|
|
2
2
|
export { IBizEmojiPicker } from './ibiz-emoji-picker/ibiz-emoji-picker';
|
|
3
3
|
export { IBizVirtualizedList } from './ibiz-virtualized-list/ibiz-virtualized-list';
|
|
4
|
+
export { IBizTreePicker } from './ibiz-tree-picker/ibiz-tree-picker';
|
|
4
5
|
export * from './dropdown-list-editor.controller';
|
|
5
6
|
export * from './dropdown-list-editor.provider';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { IBizDropdown } from './ibiz-dropdown/ibiz-dropdown.mjs';
|
|
2
2
|
export { IBizEmojiPicker } from './ibiz-emoji-picker/ibiz-emoji-picker.mjs';
|
|
3
3
|
export { IBizVirtualizedList } from './ibiz-virtualized-list/ibiz-virtualized-list.mjs';
|
|
4
|
+
export { IBizTreePicker } from './ibiz-tree-picker/ibiz-tree-picker.mjs';
|
|
4
5
|
export { DropDownListEditorController } from './dropdown-list-editor.controller.mjs';
|
|
5
6
|
export { DropDownListEditorProvider } from './dropdown-list-editor.provider.mjs';
|
|
6
7
|
|
package/es/editor/index.mjs
CHANGED
|
@@ -38,6 +38,7 @@ import { IBizInputNumber } from './text-box/ibiz-input-number/ibiz-input-number.
|
|
|
38
38
|
import { IBizInputIP } from './text-box/ibiz-input-ip/ibiz-input-ip.mjs';
|
|
39
39
|
import { IBizDropdown } from './dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs';
|
|
40
40
|
import { IBizEmojiPicker } from './dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs';
|
|
41
|
+
import { IBizTreePicker } from './dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs';
|
|
41
42
|
import { IBizCheckbox } from './check-box/ibiz-checkbox/ibiz-checkbox.mjs';
|
|
42
43
|
import { IBizCheckboxList } from './check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs';
|
|
43
44
|
import { IBizRadio } from './radio-button-list/ibiz-radio/ibiz-radio.mjs';
|
|
@@ -59,6 +60,7 @@ import { IBizPickerDropDown } from './data-picker/ibiz-picker-dropdown/ibiz-pick
|
|
|
59
60
|
import { IBizPickerLink } from './data-picker/ibiz-picker-link/ibiz-picker-link.mjs';
|
|
60
61
|
import { IBizPickerEmbedView } from './data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs';
|
|
61
62
|
import { IBizPickerSelectView } from './data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs';
|
|
63
|
+
import { IBizTransferPicker } from './data-picker/ibiz-transfer-picker/ibiz-transfer-picker.mjs';
|
|
62
64
|
import { IBizNumberRangePicker } from './number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs';
|
|
63
65
|
import { IBizDateRangePicker } from './date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs';
|
|
64
66
|
import { IBizCode } from './code/monaco-editor/monaco-editor.mjs';
|
|
@@ -112,6 +114,7 @@ const IBizEditor = {
|
|
|
112
114
|
v.component(IBizInputIP.name, IBizInputIP);
|
|
113
115
|
v.component(IBizDropdown.name, IBizDropdown);
|
|
114
116
|
v.component(IBizEmojiPicker.name, IBizEmojiPicker);
|
|
117
|
+
v.component(IBizTreePicker.name, IBizTreePicker);
|
|
115
118
|
v.component(IBizCheckbox.name, IBizCheckbox);
|
|
116
119
|
v.component(IBizCheckboxList.name, IBizCheckboxList);
|
|
117
120
|
v.component(IBizRadio.name, IBizRadio);
|
|
@@ -133,6 +136,7 @@ const IBizEditor = {
|
|
|
133
136
|
v.component(IBizPickerLink.name, IBizPickerLink);
|
|
134
137
|
v.component(IBizPickerEmbedView.name, IBizPickerEmbedView);
|
|
135
138
|
v.component(IBizPickerSelectView.name, IBizPickerSelectView);
|
|
139
|
+
v.component(IBizTransferPicker.name, IBizTransferPicker);
|
|
136
140
|
v.component(IBizNumberRangePicker.name, IBizNumberRangePicker);
|
|
137
141
|
v.component(IBizDateRangePicker.name, IBizDateRangePicker);
|
|
138
142
|
v.component(IBizCode.name, IBizCode);
|
|
@@ -205,6 +209,10 @@ const IBizEditor = {
|
|
|
205
209
|
"DROPDOWNLIST_EMOJI_PICKER",
|
|
206
210
|
() => new DropDownListEditorProvider("EMOJI_PICKER")
|
|
207
211
|
);
|
|
212
|
+
registerEditorProvider(
|
|
213
|
+
"MDROPDOWNLIST_TREE_PICKER",
|
|
214
|
+
() => new DropDownListEditorProvider("TREE_PICKER")
|
|
215
|
+
);
|
|
208
216
|
registerEditorProvider(
|
|
209
217
|
"DROPDOWNLIST_VIRTUALIZED_LIST",
|
|
210
218
|
() => new DropDownListEditorProvider("VIRTUALIZED_LIST")
|
|
@@ -317,6 +325,10 @@ const IBizEditor = {
|
|
|
317
325
|
"PICKER",
|
|
318
326
|
() => new DataPickerEditorProvider("PICKER")
|
|
319
327
|
);
|
|
328
|
+
registerEditorProvider(
|
|
329
|
+
"PICKER_TRANSFER_PICKER",
|
|
330
|
+
() => new DataPickerEditorProvider("TRANSFER_PICKER")
|
|
331
|
+
);
|
|
320
332
|
registerEditorProvider(
|
|
321
333
|
"PICKEREX_NOAC",
|
|
322
334
|
() => new DataPickerEditorProvider("PICKEREX_NOAC")
|
|
@@ -8,6 +8,7 @@ import { RateEditorController } from '../rate-editor.controller';
|
|
|
8
8
|
* @editorparams {name:showText,parameterType:boolean,defaultvalue:false,description:el-rate组件的showText属性,是否显示辅助文字,值为 true 时会在右侧显示辅助文字}
|
|
9
9
|
* @editorparams {name:maxvalue,parameterType:number,defaultvalue:5,description:el-rate组件的max属性,设置允许的最大分值}
|
|
10
10
|
* @editorparams {name:texts,parameterType:string[],defaultvalue:[],description:el-rate组件的texts属性,辅助文字数组}
|
|
11
|
+
* @editorparams {"name":"colors","parameterType":"string[]","defaultvalue":"[]","description":"设置评分不同阶段展示的颜色,传入数组,共有 3 个元素,为 3 个分段所对应的颜色。示例配置:[\"#99A9BF\",\"#F7BA2A\",\"#FF9900\"]"}
|
|
11
12
|
* @ignoreprops autoFocus | overflowMode
|
|
12
13
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
13
14
|
*/
|
|
@@ -22,6 +23,7 @@ export declare const IBizRate: import("vue").DefineComponent<{
|
|
|
22
23
|
* @editorparams {name:showText,parameterType:boolean,defaultvalue:false,description:el-rate组件的showText属性,是否显示辅助文字,值为 true 时会在右侧显示辅助文字}
|
|
23
24
|
* @editorparams {name:maxvalue,parameterType:number,defaultvalue:5,description:el-rate组件的max属性,设置允许的最大分值}
|
|
24
25
|
* @editorparams {name:texts,parameterType:string[],defaultvalue:[],description:el-rate组件的texts属性,辅助文字数组}
|
|
26
|
+
* @editorparams {"name":"colors","parameterType":"string[]","defaultvalue":"[]","description":"设置评分不同阶段展示的颜色,传入数组,共有 3 个元素,为 3 个分段所对应的颜色。示例配置:[\"#99A9BF\",\"#F7BA2A\",\"#FF9900\"]"}
|
|
25
27
|
* @ignoreprops autoFocus | overflowMode
|
|
26
28
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
27
29
|
*/
|
|
@@ -71,6 +73,7 @@ export declare const IBizRate: import("vue").DefineComponent<{
|
|
|
71
73
|
* @editorparams {name:showText,parameterType:boolean,defaultvalue:false,description:el-rate组件的showText属性,是否显示辅助文字,值为 true 时会在右侧显示辅助文字}
|
|
72
74
|
* @editorparams {name:maxvalue,parameterType:number,defaultvalue:5,description:el-rate组件的max属性,设置允许的最大分值}
|
|
73
75
|
* @editorparams {name:texts,parameterType:string[],defaultvalue:[],description:el-rate组件的texts属性,辅助文字数组}
|
|
76
|
+
* @editorparams {"name":"colors","parameterType":"string[]","defaultvalue":"[]","description":"设置评分不同阶段展示的颜色,传入数组,共有 3 个元素,为 3 个分段所对应的颜色。示例配置:[\"#99A9BF\",\"#F7BA2A\",\"#FF9900\"]"}
|
|
74
77
|
* @ignoreprops autoFocus | overflowMode
|
|
75
78
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
76
79
|
*/
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -1404,6 +1404,16 @@ declare const _default: {
|
|
|
1404
1404
|
title: string;
|
|
1405
1405
|
searchPlaceholder: string;
|
|
1406
1406
|
};
|
|
1407
|
+
transferPicker: {
|
|
1408
|
+
optionalList: string;
|
|
1409
|
+
selectedList: string;
|
|
1410
|
+
};
|
|
1411
|
+
treePicker: {
|
|
1412
|
+
allowAll: string;
|
|
1413
|
+
allProhibited: string;
|
|
1414
|
+
expandAll: string;
|
|
1415
|
+
collapseAll: string;
|
|
1416
|
+
};
|
|
1407
1417
|
};
|
|
1408
1418
|
panelComponent: {
|
|
1409
1419
|
authUserinfo: {
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -678,6 +678,16 @@ var index = {
|
|
|
678
678
|
mapPicker: {
|
|
679
679
|
title: "Please select an address",
|
|
680
680
|
searchPlaceholder: "Please enter a keyword to select a location"
|
|
681
|
+
},
|
|
682
|
+
transferPicker: {
|
|
683
|
+
optionalList: "Optional list",
|
|
684
|
+
selectedList: "Selected list"
|
|
685
|
+
},
|
|
686
|
+
treePicker: {
|
|
687
|
+
allowAll: "Allow all",
|
|
688
|
+
allProhibited: "All prohibited",
|
|
689
|
+
expandAll: "Expand all",
|
|
690
|
+
collapseAll: "Collapse all"
|
|
681
691
|
}
|
|
682
692
|
},
|
|
683
693
|
panelComponent: {
|
|
@@ -1399,6 +1399,16 @@ declare const _default: {
|
|
|
1399
1399
|
title: string;
|
|
1400
1400
|
searchPlaceholder: string;
|
|
1401
1401
|
};
|
|
1402
|
+
transferPicker: {
|
|
1403
|
+
optionalList: string;
|
|
1404
|
+
selectedList: string;
|
|
1405
|
+
};
|
|
1406
|
+
treePicker: {
|
|
1407
|
+
allowAll: string;
|
|
1408
|
+
allProhibited: string;
|
|
1409
|
+
expandAll: string;
|
|
1410
|
+
collapseAll: string;
|
|
1411
|
+
};
|
|
1402
1412
|
};
|
|
1403
1413
|
panelComponent: {
|
|
1404
1414
|
authUserinfo: {
|
|
@@ -674,6 +674,16 @@ var index = {
|
|
|
674
674
|
mapPicker: {
|
|
675
675
|
title: "\u8BF7\u9009\u62E9\u5730\u5740",
|
|
676
676
|
searchPlaceholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u9009\u62E9\u5730\u70B9"
|
|
677
|
+
},
|
|
678
|
+
transferPicker: {
|
|
679
|
+
optionalList: "\u53EF\u9009\u5217\u8868",
|
|
680
|
+
selectedList: "\u5DF2\u9009\u5217\u8868"
|
|
681
|
+
},
|
|
682
|
+
treePicker: {
|
|
683
|
+
allowAll: "\u5168\u90E8\u5141\u8BB8",
|
|
684
|
+
allProhibited: "\u5168\u90E8\u7981\u6B62",
|
|
685
|
+
expandAll: "\u5168\u90E8\u5C55\u5F00",
|
|
686
|
+
collapseAll: "\u5168\u90E8\u6536\u8D77"
|
|
677
687
|
}
|
|
678
688
|
},
|
|
679
689
|
panelComponent: {
|
|
@@ -145,7 +145,7 @@ class AppSwitchController extends PanelItemController {
|
|
|
145
145
|
async loadAppsWithUtil() {
|
|
146
146
|
const result = [];
|
|
147
147
|
if (!this.util) {
|
|
148
|
-
const app = ibiz.hub.getApp(
|
|
148
|
+
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
149
149
|
const hubAppUtil = app.getAppUtil("HUBAPP", "CUSTOM");
|
|
150
150
|
if (!hubAppUtil) {
|
|
151
151
|
return result;
|
|
@@ -156,7 +156,17 @@ class AppSwitchController extends PanelItemController {
|
|
|
156
156
|
if (!data || data.length === 0) {
|
|
157
157
|
return result;
|
|
158
158
|
}
|
|
159
|
+
const defaultAppModel = ibiz.hub.getAppSourceModel(ibiz.env.appId);
|
|
160
|
+
const allPSSubAppRefs = defaultAppModel.getAllPSSubAppRefs;
|
|
159
161
|
for (let i = 0; i < data.length; i++) {
|
|
162
|
+
if (data[i].id !== ibiz.env.appId && !/^[0-9a-zA-Z]+__[0-9a-zA-Z]+__[0-9a-zA-Z]+$/.test(data[i].id)) {
|
|
163
|
+
const targetSubAppRef = allPSSubAppRefs.find((subAppRef) => {
|
|
164
|
+
return subAppRef.id.endsWith(data[i].id);
|
|
165
|
+
});
|
|
166
|
+
if (targetSubAppRef) {
|
|
167
|
+
data[i].id = targetSubAppRef.id;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
160
170
|
result.push({
|
|
161
171
|
// 应用标识@首页视图标识
|
|
162
172
|
id: "".concat(data[i].id, "@").concat(data[i].indexViewName.toLowerCase()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-tab-panel{width:100%;height:100%}.ibiz-panel-tab-panel>.el-tabs__header{margin-bottom:0}.ibiz-panel-tab-panel>.el-tabs__content{height:calc(100% - var(--el-tabs-header-height));overflow:auto}
|
|
1
|
+
.ibiz-panel-tab-panel{width:100%;height:100%}.ibiz-panel-tab-panel>.el-tabs__header{height:var(--el-tabs-header-height);margin-bottom:0}.ibiz-panel-tab-panel>.el-tabs__content{height:calc(100% - var(--el-tabs-header-height));overflow:auto}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-searchform-buttons{--ibiz-searchform-buttons-height:40px;display:flex;gap:var(--ibiz-spacing-tight);align-items:center;height:var(--ibiz-searchform-buttons-height);margin
|
|
1
|
+
.ibiz-searchform-buttons{--ibiz-searchform-buttons-height:40px;display:flex;gap:var(--ibiz-spacing-tight);align-items:center;height:var(--ibiz-searchform-buttons-height);margin:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-extra-tight) 0 var(--ibiz-spacing-tight)}.ibiz-searchform-buttons .el-button+.el-button{margin-left:0}.ibiz-searchform-buttons-filter-item{position:relative}.ibiz-searchform-buttons-filter-item__text{padding-right:var(--ibiz-spacing-extra-tight)}.ibiz-searchform-buttons-filter-item__remove{position:absolute;top:var(--ibiz-spacing-base-tight);right:0;display:none;font-size:var(--ibiz-font-size-header-5)}.ibiz-searchform-buttons-filter-item:hover .ibiz-searchform-buttons-filter-item__remove{display:block}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -15,6 +15,7 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
setup(props) {
|
|
18
|
+
var _a;
|
|
18
19
|
const route = useRoute();
|
|
19
20
|
const router = useRouter();
|
|
20
21
|
const viewData = ref({});
|
|
@@ -29,11 +30,13 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
context.destroy();
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
const routeDepth = props.modal.routeDepth;
|
|
33
|
+
const routeDepth = (_a = props.modal) == null ? void 0 : _a.routeDepth;
|
|
33
34
|
onUnmounted(() => {
|
|
34
35
|
destroyContext();
|
|
35
36
|
});
|
|
36
37
|
const calcViewData = async () => {
|
|
38
|
+
if (!routeDepth)
|
|
39
|
+
return;
|
|
37
40
|
try {
|
|
38
41
|
const _viewData = await parseRouteViewData(route, routeDepth);
|
|
39
42
|
const _context = IBizContext.create(_viewData.context);
|
|
@@ -60,7 +63,7 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
60
63
|
});
|
|
61
64
|
const routeModal = new Modal({
|
|
62
65
|
mode: ViewMode.ROUTE,
|
|
63
|
-
routeDepth: routeDepth + 1
|
|
66
|
+
routeDepth: (routeDepth || 0) + 1
|
|
64
67
|
});
|
|
65
68
|
onActivated(() => {
|
|
66
69
|
isActivated.value = true;
|
|
@@ -77,9 +80,8 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
77
80
|
};
|
|
78
81
|
},
|
|
79
82
|
render() {
|
|
80
|
-
if (!this.isLoaded)
|
|
83
|
+
if (!this.isLoaded)
|
|
81
84
|
return null;
|
|
82
|
-
}
|
|
83
85
|
const {
|
|
84
86
|
context,
|
|
85
87
|
params,
|
|
@@ -59,7 +59,7 @@ const getCssVarByName = (name) => {
|
|
|
59
59
|
const getPointStaticOption = (params) => {
|
|
60
60
|
const { pointSymbol } = params;
|
|
61
61
|
const ns = vue3Util.useNamespace("map-chart-user");
|
|
62
|
-
const textColor = getCssVarByName(ns.cssVarName("color-
|
|
62
|
+
const textColor = getCssVarByName(ns.cssVarName("color-danger"));
|
|
63
63
|
const fontSize = getCssVarByName(ns.cssVarName("font-size-header-4"));
|
|
64
64
|
const options = {
|
|
65
65
|
type: "scatter",
|