@farris/ui-vue 1.2.6 → 1.2.8
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/components/accordion/index.esm.js +150 -142
- package/components/avatar/index.esm.js +393 -457
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +453 -516
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +27221 -26804
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { FTreeView as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
const
|
|
1
|
+
import { ref as s, defineComponent as N, inject as T, createVNode as F } from "vue";
|
|
2
|
+
import { FTreeView as B } from "../tree-view/index.esm.js";
|
|
3
|
+
import { cloneDeep as P } from "lodash-es";
|
|
4
|
+
const D = {
|
|
5
5
|
/** 树表数据 */
|
|
6
6
|
data: { type: Object, default: [] },
|
|
7
7
|
/** 树表是否支持可选状态 */
|
|
@@ -20,200 +20,242 @@ const x = {
|
|
|
20
20
|
lineColor: { type: String, default: "#9399a0" },
|
|
21
21
|
/** 单元格高度 */
|
|
22
22
|
cellHeight: { type: Number, default: 28 }
|
|
23
|
+
}, k = {
|
|
24
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
25
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
26
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
27
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
28
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
29
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
30
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
31
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
32
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
33
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
34
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
35
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
36
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
37
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
38
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
39
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
40
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
41
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
42
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
43
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
44
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
45
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
46
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
47
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
48
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
49
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
50
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
51
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
52
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
53
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
54
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
55
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
56
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
57
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
58
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
59
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
60
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
23
61
|
};
|
|
24
|
-
var
|
|
25
|
-
function E() {
|
|
26
|
-
|
|
27
|
-
|
|
62
|
+
var p = /* @__PURE__ */ ((a) => (a.Frame = "frame", a.dataGrid = "data-grid", a.listView = "list-view", a.form = "form", a.attachmentPanel = "attachment-panel", a.modalFrame = "modal-frame", a.table = "table", a.appointmentCalendar = "appointment-calendar", a))(p || {});
|
|
63
|
+
function E(a) {
|
|
64
|
+
const h = s("");
|
|
65
|
+
function u(e) {
|
|
66
|
+
let i = "controlIcon mr-2 fd-i-Family ", r = "";
|
|
28
67
|
switch (e == null ? void 0 : e.type) {
|
|
29
68
|
case "form-group": {
|
|
30
|
-
|
|
69
|
+
r = e.editor && e.editor.type ? `fd_pc-${e.editor.type}` : "";
|
|
31
70
|
break;
|
|
32
71
|
}
|
|
33
72
|
default:
|
|
34
|
-
|
|
73
|
+
i += `fd_pc-${e.type}`;
|
|
35
74
|
}
|
|
36
|
-
return
|
|
75
|
+
return i += r, i;
|
|
37
76
|
}
|
|
38
|
-
function
|
|
39
|
-
var
|
|
40
|
-
let
|
|
41
|
-
const
|
|
42
|
-
if ((
|
|
43
|
-
const
|
|
44
|
-
e.id === ((
|
|
77
|
+
function b(e, i) {
|
|
78
|
+
var n;
|
|
79
|
+
let r = e.id;
|
|
80
|
+
const t = i == null ? void 0 : i.contents;
|
|
81
|
+
if ((i == null ? void 0 : i.type) === "splitter" && t && t.length === 2) {
|
|
82
|
+
const l = i.direction !== "column";
|
|
83
|
+
e.id === ((n = t[0]) == null ? void 0 : n.id) ? r = l ? "左侧区域" : "上方区域" : r = l ? "右侧区域" : "下方区域";
|
|
45
84
|
}
|
|
46
|
-
return
|
|
85
|
+
return r;
|
|
47
86
|
}
|
|
48
|
-
function
|
|
87
|
+
function m(e) {
|
|
49
88
|
if (e.isLikeCardContainer)
|
|
50
89
|
return "区块";
|
|
51
|
-
const
|
|
52
|
-
return e.id === "page-header" &&
|
|
90
|
+
const i = e.appearance && e.appearance.class || "", r = i.split(" ");
|
|
91
|
+
return e.id === "page-header" && i && i === "f-page-header" ? "页头" : r.includes("f-page-header-base") ? "页头容器" : r.includes("f-page-header-extend") ? "页头扩展容器" : r.includes("f-title") ? "标题容器" : r.includes("f-page") ? "根容器" : r.includes("f-page-main") ? "内容区域" : r.includes("f-scrollspy-content") && e.isScrollspyContainer ? "滚动监听容器" : r.includes("f-grid-is-sub") ? "表格容器" : r.includes("f-filter-container") ? "筛选条容器" : "容器";
|
|
53
92
|
}
|
|
54
|
-
function
|
|
55
|
-
const { componentType:
|
|
56
|
-
switch (
|
|
57
|
-
case
|
|
93
|
+
function w(e) {
|
|
94
|
+
const { componentType: i } = e;
|
|
95
|
+
switch (i) {
|
|
96
|
+
case p.Frame:
|
|
58
97
|
return "根组件";
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
return "表格组件";
|
|
62
|
-
case
|
|
98
|
+
case p.dataGrid:
|
|
99
|
+
case p.table:
|
|
100
|
+
return (a == null ? void 0 : a.formSchemaUtils.selectNode(e, (t) => t.type === (k["tree-grid"] && k["tree-grid"].type))) ? "树表格组件" : "表格组件";
|
|
101
|
+
case p.attachmentPanel:
|
|
63
102
|
return "附件组件";
|
|
64
|
-
case
|
|
65
|
-
case "ListView":
|
|
103
|
+
case p.listView:
|
|
66
104
|
return "列表视图组件";
|
|
67
|
-
case
|
|
105
|
+
case p.modalFrame:
|
|
68
106
|
return "弹窗页面";
|
|
69
|
-
case
|
|
107
|
+
case p.appointmentCalendar:
|
|
70
108
|
return "预约日历组件";
|
|
71
109
|
default:
|
|
72
|
-
if (
|
|
110
|
+
if (i.startsWith("form"))
|
|
73
111
|
return "卡片组件";
|
|
74
112
|
}
|
|
75
113
|
return "组件";
|
|
76
114
|
}
|
|
77
|
-
function
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
115
|
+
function g(e, i) {
|
|
116
|
+
const r = e.name || e.text || e.label || e.title || e.mainTitle;
|
|
117
|
+
if (r && typeof r == "string")
|
|
118
|
+
return r.trim();
|
|
81
119
|
switch (e.type) {
|
|
82
120
|
case "content-container":
|
|
83
|
-
return
|
|
121
|
+
return m(e);
|
|
84
122
|
case "splitter-pane":
|
|
85
|
-
return
|
|
123
|
+
return b(e, i);
|
|
86
124
|
case "component":
|
|
87
|
-
return
|
|
88
|
-
case "response-form":
|
|
89
|
-
return "卡片面板";
|
|
125
|
+
return w(e);
|
|
90
126
|
default:
|
|
91
|
-
return e.id;
|
|
127
|
+
return k[e.type] && k[e.type].name || e.id;
|
|
92
128
|
}
|
|
93
129
|
}
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
130
|
+
function v(e) {
|
|
131
|
+
const i = e.length ? e[0] : null;
|
|
132
|
+
h.value = i.originalId;
|
|
133
|
+
const r = i ? `${i.originalId}-design-item` : "", t = document.getElementById(r);
|
|
134
|
+
t && t && t.click();
|
|
100
135
|
}
|
|
101
|
-
return { getIcon:
|
|
136
|
+
return { getIcon: u, getTitle: g, onChanged: v, currentSelectedNodeId: h };
|
|
102
137
|
}
|
|
103
|
-
function
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
var
|
|
107
|
-
const
|
|
108
|
-
|
|
138
|
+
function G(a, h) {
|
|
139
|
+
const u = a.data.module ? s(a.data.module.components[0]) : s(a.data), { getIcon: b, getTitle: m } = h;
|
|
140
|
+
function w(t, n, l, c) {
|
|
141
|
+
var d;
|
|
142
|
+
const o = (d = a.data.module) == null ? void 0 : d.components.find((f) => f.id === t.component);
|
|
143
|
+
o && g([o], n, l, c);
|
|
109
144
|
}
|
|
110
|
-
function
|
|
111
|
-
return t.forEach((
|
|
112
|
-
if (
|
|
113
|
-
|
|
145
|
+
function g(t, n, l, c) {
|
|
146
|
+
return t.forEach((o) => {
|
|
147
|
+
if (o.type === "component-ref") {
|
|
148
|
+
w(o, n, l, c);
|
|
114
149
|
return;
|
|
115
150
|
}
|
|
116
|
-
const
|
|
117
|
-
originalId:
|
|
118
|
-
layer:
|
|
151
|
+
const d = {
|
|
152
|
+
originalId: o.id,
|
|
153
|
+
layer: l,
|
|
119
154
|
originalParent: c == null ? void 0 : c.id,
|
|
120
|
-
name:
|
|
121
|
-
type:
|
|
122
|
-
controlIcon: b(
|
|
123
|
-
rawSchema:
|
|
155
|
+
name: m(o, c),
|
|
156
|
+
type: o.type,
|
|
157
|
+
controlIcon: b(o),
|
|
158
|
+
rawSchema: o
|
|
124
159
|
};
|
|
125
|
-
|
|
126
|
-
}),
|
|
160
|
+
n.push(P(d)), (o.contents || o.buttons) && g(o.contents || o.buttons, n, l + 1, o);
|
|
161
|
+
}), n;
|
|
127
162
|
}
|
|
128
|
-
function
|
|
129
|
-
const
|
|
130
|
-
t = t.filter((f) => f.layer !== 0),
|
|
131
|
-
let c =
|
|
132
|
-
for (; t.length !== 0 ||
|
|
163
|
+
function v(t) {
|
|
164
|
+
const n = [], l = t.find((f) => f.layer === 0);
|
|
165
|
+
t = t.filter((f) => f.layer !== 0), n.push(l);
|
|
166
|
+
let c = l.originalId, o = 0, d = 1e3;
|
|
167
|
+
for (; t.length !== 0 || d === 0; ) {
|
|
133
168
|
const f = t.find((y) => y.originalParent === c);
|
|
134
|
-
f ? (
|
|
169
|
+
f ? (n.push(f), c = f.originalId, t = t.filter((y) => y.originalId !== c), o = 0) : (o -= 1, c = n.slice(o)[0].originalId), d -= 1;
|
|
135
170
|
}
|
|
136
|
-
return
|
|
171
|
+
return n;
|
|
137
172
|
}
|
|
138
|
-
function
|
|
139
|
-
return t.forEach((
|
|
140
|
-
|
|
141
|
-
}), t.forEach((
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
}), t.forEach((
|
|
145
|
-
|
|
173
|
+
function e(t) {
|
|
174
|
+
return t.forEach((n, l) => {
|
|
175
|
+
n.id = (l + 1).toString();
|
|
176
|
+
}), t.forEach((n) => {
|
|
177
|
+
var l;
|
|
178
|
+
n.parent = ((l = t.find((c) => c.originalId === n.originalParent)) == null ? void 0 : l.id) || "";
|
|
179
|
+
}), t.forEach((n) => {
|
|
180
|
+
n.hasChildren = t.findIndex((l) => l.parent === n.id) > 0;
|
|
146
181
|
}), t;
|
|
147
182
|
}
|
|
148
|
-
function
|
|
149
|
-
const
|
|
183
|
+
function i(t) {
|
|
184
|
+
const n = {
|
|
150
185
|
originalId: "page",
|
|
151
186
|
layer: 0,
|
|
152
187
|
originalParent: null,
|
|
153
188
|
name: "页面",
|
|
154
189
|
type: "Frame",
|
|
155
190
|
controlIcon: "fd-i-Family fd_pc-module",
|
|
156
|
-
rawSchema:
|
|
191
|
+
rawSchema: u
|
|
157
192
|
};
|
|
158
|
-
return t[0].originalParent =
|
|
193
|
+
return t[0].originalParent = n.originalId, t.unshift(n), n;
|
|
159
194
|
}
|
|
160
|
-
function
|
|
195
|
+
function r() {
|
|
161
196
|
let t;
|
|
162
|
-
if (
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
const
|
|
166
|
-
o
|
|
167
|
-
const
|
|
168
|
-
t =
|
|
197
|
+
if (u.value) {
|
|
198
|
+
const n = [];
|
|
199
|
+
n.push(u.value);
|
|
200
|
+
const o = g(n, [], 1, null);
|
|
201
|
+
i(o);
|
|
202
|
+
const d = v(o);
|
|
203
|
+
t = e(d);
|
|
169
204
|
}
|
|
170
205
|
return t;
|
|
171
206
|
}
|
|
172
|
-
return { getData:
|
|
207
|
+
return { getData: r };
|
|
173
208
|
}
|
|
174
|
-
const
|
|
209
|
+
const M = /* @__PURE__ */ N({
|
|
175
210
|
name: "FDesignerOutline",
|
|
176
|
-
props:
|
|
211
|
+
props: D,
|
|
177
212
|
emits: ["outputValue", "currentEvent", "selectionChanged"],
|
|
178
|
-
setup(
|
|
179
|
-
const
|
|
180
|
-
onChanged:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
213
|
+
setup(a, h) {
|
|
214
|
+
const u = s(), b = s(a.selectable), m = s(a.autoCheckChildren), w = s(a.cascade), g = s(a.showTreeNodeIcons), v = s(a.showLines), e = s(a.newDataItem), i = s(a.lineColor), r = s(a.cellHeight), t = T("designer-host-service"), n = E(t), {
|
|
215
|
+
onChanged: l,
|
|
216
|
+
currentSelectedNodeId: c
|
|
217
|
+
} = n, {
|
|
218
|
+
getData: o
|
|
219
|
+
} = G(a, n);
|
|
220
|
+
let d = o();
|
|
221
|
+
function f() {
|
|
222
|
+
d = o(), u.value && u.value.updateDataSource && (u.value.updateDataSource(d), c && u.value.clearSelection && (u.value.clearSelection(), y({
|
|
223
|
+
id: c.value
|
|
224
|
+
})));
|
|
187
225
|
}
|
|
188
|
-
function
|
|
189
|
-
if (
|
|
190
|
-
const
|
|
191
|
-
|
|
226
|
+
function y(S) {
|
|
227
|
+
if (!S && u.value && u.value.clearSelection && u.value.clearSelection(), S && u.value && u.value.selectItem) {
|
|
228
|
+
const C = d.findIndex((x) => x.originalId === S.id);
|
|
229
|
+
if (C > -1) {
|
|
230
|
+
u.value.selectItem(C);
|
|
231
|
+
const x = d[C];
|
|
232
|
+
c && (c.value = x.originalId);
|
|
233
|
+
}
|
|
192
234
|
}
|
|
193
235
|
}
|
|
194
|
-
return
|
|
195
|
-
selectControlTreeNode:
|
|
196
|
-
refreshControlTree:
|
|
236
|
+
return h.expose({
|
|
237
|
+
selectControlTreeNode: y,
|
|
238
|
+
refreshControlTree: f
|
|
197
239
|
}), () => F("div", {
|
|
198
240
|
class: "designer-control-tree"
|
|
199
|
-
}, [F(
|
|
200
|
-
ref:
|
|
201
|
-
data:
|
|
241
|
+
}, [F(B, {
|
|
242
|
+
ref: u,
|
|
243
|
+
data: d,
|
|
202
244
|
selectable: b.value,
|
|
203
|
-
autoCheckChildren:
|
|
204
|
-
cascade:
|
|
205
|
-
showTreeNodeIcons:
|
|
206
|
-
showLines:
|
|
207
|
-
newDataItem:
|
|
208
|
-
lineColor:
|
|
209
|
-
cellHeight:
|
|
245
|
+
autoCheckChildren: m.value,
|
|
246
|
+
cascade: w.value,
|
|
247
|
+
showTreeNodeIcons: g.value,
|
|
248
|
+
showLines: v.value,
|
|
249
|
+
newDataItem: e.value,
|
|
250
|
+
lineColor: i.value,
|
|
251
|
+
cellHeight: r.value,
|
|
210
252
|
iconField: "controlIcon",
|
|
211
|
-
onSelectionChange:
|
|
253
|
+
onSelectionChange: l
|
|
212
254
|
}, null)]);
|
|
213
255
|
}
|
|
214
256
|
});
|
|
215
257
|
export {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
258
|
+
p as ComponentType,
|
|
259
|
+
M as FDesignerOutline,
|
|
260
|
+
D as designerOutlineProps
|
|
219
261
|
};
|
|
@@ -2,7 +2,7 @@ var Je = Object.defineProperty;
|
|
|
2
2
|
var et = (e, t, n) => t in e ? Je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var G = (e, t, n) => et(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as v, defineComponent as tt, computed as V, onMounted as nt, createVNode as c, createTextVNode as de, resolveComponent as ot } from "vue";
|
|
5
|
-
import rt from "
|
|
5
|
+
import rt from "../input-group/index.esm.js";
|
|
6
6
|
const at = {
|
|
7
7
|
cancelVisible: { Type: Boolean, default: !0 },
|
|
8
8
|
personnelsPrimaryKey: { Type: String, default: "id" },
|