sohelp-eleplus 1.1.13
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/README.md +7 -0
- package/cache/DictCache.js +58 -0
- package/cache/ModuleCache.js +352 -0
- package/components.js +45 -0
- package/core-export.js +4 -0
- package/http/CrudHttp.js +115 -0
- package/http/DictHttp.js +12 -0
- package/http/ModuleHttp.js +68 -0
- package/http/SohelpHttp.js +125 -0
- package/index.js +6 -0
- package/installer.js +8 -0
- package/lang/en_US.js +4 -0
- package/lang/zh_CN.js +4 -0
- package/lang/zh_TW.js +4 -0
- package/package.json +9 -0
- package/sohelp-ace-editor/index.vue +198 -0
- package/sohelp-application-select/index.vue +15 -0
- package/sohelp-autocode/index.vue +53 -0
- package/sohelp-calendar-view/index.vue +11 -0
- package/sohelp-card-view/index.vue +11 -0
- package/sohelp-condition/index.vue +210 -0
- package/sohelp-cry-input/index.vue +64 -0
- package/sohelp-date/index.vue +27 -0
- package/sohelp-datetime/index.vue +44 -0
- package/sohelp-datetime-picker/index.vue +86 -0
- package/sohelp-datetime-range/index.vue +59 -0
- package/sohelp-dict/index.vue +207 -0
- package/sohelp-dict/props.js +68 -0
- package/sohelp-drawer/index.vue +31 -0
- package/sohelp-drop-card/index.vue +94 -0
- package/sohelp-drop-card/props.js +68 -0
- package/sohelp-dyn-select/index.vue +99 -0
- package/sohelp-dyn-select/props.js +67 -0
- package/sohelp-dyn-tree/index.vue +82 -0
- package/sohelp-dyn-tree-select/index.vue +114 -0
- package/sohelp-entity-form/index.vue +524 -0
- package/sohelp-entity-grid/index.vue +30 -0
- package/sohelp-file-upload/index.vue +218 -0
- package/sohelp-filter-scheme/components/condition.vue +102 -0
- package/sohelp-filter-scheme/components/filter.vue +45 -0
- package/sohelp-filter-scheme/components/keywords.vue +15 -0
- package/sohelp-filter-scheme/components/scheme.vue +49 -0
- package/sohelp-filter-scheme/index.vue +113 -0
- package/sohelp-grid/SohelpGridConfig.js~ +408 -0
- package/sohelp-grid/components/filter-condition-item.vue +298 -0
- package/sohelp-grid/index.vue +1886 -0
- package/sohelp-grid/js/ConditionType.js +101 -0
- package/sohelp-grid/js/DefaultGridOptions.js +141 -0
- package/sohelp-grid/js/DefaultProps.js +27 -0
- package/sohelp-grid/js/SohelpConfigFunction.js +0 -0
- package/sohelp-grid/js/SohelpGridConfig.js +101 -0
- package/sohelp-grid/js/useSohelpGridConfig.js +519 -0
- package/sohelp-grid-select/index.vue +245 -0
- package/sohelp-grid-view/filter/config/grid-filter-condition.vue +221 -0
- package/sohelp-grid-view/filter/config/grid-filter-config.vue +27 -0
- package/sohelp-grid-view/filter/config/grid-filter-field.vue +378 -0
- package/sohelp-grid-view/filter/config/grid-filter-keywords.vue +310 -0
- package/sohelp-grid-view/filter/config/grid-filter-list.vue +313 -0
- package/sohelp-grid-view/filter/config/grid-filter-scheme.vue +264 -0
- package/sohelp-grid-view/filter/config/grid-filter-sort.vue +310 -0
- package/sohelp-grid-view/filter/config/index.vue +206 -0
- package/sohelp-grid-view/filter/filter-form.vue +427 -0
- package/sohelp-grid-view/filter/filter-toolbar.vue +110 -0
- package/sohelp-grid-view/filter/index.vue +160 -0
- package/sohelp-grid-view/index.vue +379 -0
- package/sohelp-grid-view-select/index.vue +141 -0
- package/sohelp-group-view/index.vue +11 -0
- package/sohelp-icon-select/index.vue +96 -0
- package/sohelp-icon-select/vxeui-icon.js +90 -0
- package/sohelp-image-upload/index.vue +286 -0
- package/sohelp-input/index.vue +39 -0
- package/sohelp-modal/index.vue +49 -0
- package/sohelp-module/index.vue +54 -0
- package/sohelp-module/useModalManager.js +89 -0
- package/sohelp-module/useSohelpModule.js +66 -0
- package/sohelp-number-input/index.vue +32 -0
- package/sohelp-number-range/index.vue +135 -0
- package/sohelp-org-select/index.vue +30 -0
- package/sohelp-org-tree/index.vue +18 -0
- package/sohelp-org-tree-select/index.vue +93 -0
- package/sohelp-org-user-tree/index.vue +26 -0
- package/sohelp-org-user-tree-select/index.vue +11 -0
- package/sohelp-pagination/index.vue +11 -0
- package/sohelp-power/index.vue +105 -0
- package/sohelp-pro-form/components/pro-form-footer.vue +44 -0
- package/sohelp-pro-form/components/pro-form-item.vue +1133 -0
- package/sohelp-pro-form/index.vue +257 -0
- package/sohelp-pro-form/util.js +140 -0
- package/sohelp-pro-layout/index.vue +11 -0
- package/sohelp-pro-table/index.vue +14 -0
- package/sohelp-process/index.vue +216 -0
- package/sohelp-rate/index.vue +56 -0
- package/sohelp-rate/props.js +71 -0
- package/sohelp-relation/index.vue +11 -0
- package/sohelp-rich-text/index.vue +242 -0
- package/sohelp-rich-text/util.js +231 -0
- package/sohelp-richtext/index.vue +10 -0
- package/sohelp-role-select/index.vue +33 -0
- package/sohelp-search/components/search-config.vue +0 -0
- package/sohelp-search/index.vue +49 -0
- package/sohelp-search-pro-form/index.vue +11 -0
- package/sohelp-select/index.vue +120 -0
- package/sohelp-split-panel/index.vue +15 -0
- package/sohelp-switch/index.vue +56 -0
- package/sohelp-table/index.vue +151 -0
- package/sohelp-tenant-select/index.vue +128 -0
- package/sohelp-text/index.vue +14 -0
- package/sohelp-textarea-input/index.vue +36 -0
- package/sohelp-time/index.vue +10 -0
- package/sohelp-tree/index.vue +37 -0
- package/sohelp-tree-select/index.vue +18 -0
- package/sohelp-user-select/index.vue +44 -0
- package/sohelp-user-select/index.vue~ +53 -0
- package/sohelp-user-select/props.js +71 -0
- package/sohelp-user-tag/index.vue +12 -0
- package/sohelp-user-tree/index.vue +11 -0
- package/sohelp-vform-drawer/index.vue +40 -0
- package/sohelp-vform-eleplus/favicon.ico +0 -0
- package/sohelp-vform-eleplus/index.vue +297 -0
- package/sohelp-vform-eleplus/preview.html +91 -0
- package/sohelp-vform-eleplus/render.es.js +72433 -0
- package/sohelp-vform-eleplus/render.style.css +16 -0
- package/sohelp-vform-eleplus/render.umd.js +57 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_CN.js +462 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_TW.js +419 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.css +67 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.css +68 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.css +732 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.css +714 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-modal/index.vue +41 -0
- package/sohelp-vform-select/index.vue +11 -0
- package/sohelp-vform-vant/favicon.ico +0 -0
- package/sohelp-vform-vant/render.es.js +14608 -0
- package/sohelp-vform-vant/render.style.css +1 -0
- package/sohelp-vform-vant/render.umd.js +22 -0
- package/sohelp-vxe-grid/DefaultGridOptions.js +102 -0
- package/sohelp-vxe-grid/DefaultProps.js +37 -0
- package/sohelp-vxe-grid/SohelpGridConfig.js +142 -0
- package/sohelp-vxe-grid/index.vue +518 -0
- package/sohelp-vxe-grid-select/index.vue +148 -0
- package/sohelp-vxe-table/index.vue +184 -0
- package/sohelp-workflow/index.vue +495 -0
- package/sohelp-workflow/nodeWrap.vue +53 -0
- package/sohelp-workflow/nodes/addNode.vue +27 -0
- package/sohelp-workflow/nodes/approver.vue +125 -0
- package/sohelp-workflow/nodes/branch.vue +434 -0
- package/sohelp-workflow/nodes/promoter.vue +80 -0
- package/sohelp-workflow/nodes/send.vue +95 -0
- package/sohelp-workflow-drawer/components/approval-modal.vue +182 -0
- package/sohelp-workflow-drawer/components/draw-box.vue +141 -0
- package/sohelp-workflow-drawer/components/form.vue +79 -0
- package/sohelp-workflow-drawer/components/table.vue +153 -0
- package/sohelp-workflow-drawer/components/timeline.vue +189 -0
- package/sohelp-workflow-drawer/components/workflow.vue +68 -0
- package/sohelp-workflow-drawer/index.vue +311 -0
- package/sohelp-workflow-drawer/js/index.js +119 -0
- package/style/index.scss +0 -0
- package/utils/ProFormConvertUtil.js +76 -0
- package/utils/core.js +310 -0
- package/utils/use-form-data.js +48 -0
- package/utils/use-mobile.js +43 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
loading: false,
|
|
3
|
+
customConfig: {
|
|
4
|
+
placement: "top-right" // 自定义列工具栏位置
|
|
5
|
+
},
|
|
6
|
+
|
|
7
|
+
params: {},
|
|
8
|
+
|
|
9
|
+
rowConfig: {
|
|
10
|
+
useKey: true,
|
|
11
|
+
//sortable 排序
|
|
12
|
+
// sHover: true,
|
|
13
|
+
// isCurrent: true,
|
|
14
|
+
drag: true,
|
|
15
|
+
keyField: "id"
|
|
16
|
+
},
|
|
17
|
+
rowDragConfig: {
|
|
18
|
+
trigger: "cell",
|
|
19
|
+
showGuidesStatus: true
|
|
20
|
+
},
|
|
21
|
+
keyboardConfig: {
|
|
22
|
+
isEdit: true,
|
|
23
|
+
isArrow: true,
|
|
24
|
+
isEnter: true,
|
|
25
|
+
isTab: true,
|
|
26
|
+
isDel: true,
|
|
27
|
+
isBack: true
|
|
28
|
+
},
|
|
29
|
+
mouseConfig: {
|
|
30
|
+
selected: true
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
checkboxConfig: {
|
|
34
|
+
checkRowKey: "id",
|
|
35
|
+
highlight: true,
|
|
36
|
+
range: true,
|
|
37
|
+
trigger: "row", // 关键配置:点击行触发选中
|
|
38
|
+
reserve: true // 跨页保留选中状态
|
|
39
|
+
},
|
|
40
|
+
radioConfig: {
|
|
41
|
+
strict: false,
|
|
42
|
+
checkRowKey: "id",
|
|
43
|
+
highlight: true,
|
|
44
|
+
reserve: true,
|
|
45
|
+
trigger: "row" // 关键配置:点击行触发选中
|
|
46
|
+
},
|
|
47
|
+
border: true,
|
|
48
|
+
stripe: true,
|
|
49
|
+
loading: false,
|
|
50
|
+
minHeight: 200,
|
|
51
|
+
maxHeight: "100%",
|
|
52
|
+
size: "mini",
|
|
53
|
+
pagerConfig: {
|
|
54
|
+
enabled: true,
|
|
55
|
+
total: 0,
|
|
56
|
+
currentPage: 1,
|
|
57
|
+
pageSize: 50,
|
|
58
|
+
align: "right"
|
|
59
|
+
},
|
|
60
|
+
columnConfig: {
|
|
61
|
+
resizable: true,
|
|
62
|
+
isCurrent: false
|
|
63
|
+
},
|
|
64
|
+
formConfig: {
|
|
65
|
+
data: {},
|
|
66
|
+
items: []
|
|
67
|
+
},
|
|
68
|
+
toolbarConfig: {
|
|
69
|
+
refresh: true,
|
|
70
|
+
custom: true, //是否开启自定义列工具栏
|
|
71
|
+
slots: {
|
|
72
|
+
buttons: "searchSlot"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
proxyConfig: {
|
|
77
|
+
response: {
|
|
78
|
+
result: "result",
|
|
79
|
+
total: "page.total"
|
|
80
|
+
},
|
|
81
|
+
ajax: {}
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
menuConfig: {
|
|
85
|
+
//右键菜单配置
|
|
86
|
+
header: {
|
|
87
|
+
options: []
|
|
88
|
+
},
|
|
89
|
+
body: {
|
|
90
|
+
options: [
|
|
91
|
+
[
|
|
92
|
+
{ code: "insert", name: "插入行", visible: true, disabled: false },
|
|
93
|
+
{ code: "copy", name: "复制行", prefixIcon: "vxe-icon-copy", visible: true, disabled: false }
|
|
94
|
+
]
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
footer: {
|
|
98
|
+
options: []
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
columns: []
|
|
102
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
value: [Array, String],
|
|
3
|
+
data: Array,
|
|
4
|
+
/**网格列表配置ID*/
|
|
5
|
+
refid: {
|
|
6
|
+
type: String,
|
|
7
|
+
defaultValue: '',
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
/**自动加载数据*/
|
|
11
|
+
autoLoad: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
defaultValue: false
|
|
14
|
+
},
|
|
15
|
+
gridOptions:Object,
|
|
16
|
+
/**数据源URL**/
|
|
17
|
+
url: {
|
|
18
|
+
type: String,
|
|
19
|
+
defaultValue: ''
|
|
20
|
+
},
|
|
21
|
+
/**允许拖动记录*/
|
|
22
|
+
drag: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 是否实体列表
|
|
28
|
+
*/
|
|
29
|
+
isEntityGrid: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
multiple: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import DefaultGridOptions from './DefaultGridOptions';
|
|
2
|
+
import { nextTick, reactive, ref } from 'vue';
|
|
3
|
+
import Sortable from 'sortablejs';
|
|
4
|
+
import { moduleCache } from '../cache/ModuleCache';
|
|
5
|
+
|
|
6
|
+
/**列转换*/
|
|
7
|
+
const switchVxeProperty = (property) => {
|
|
8
|
+
let editor = {
|
|
9
|
+
field: property.name,
|
|
10
|
+
title: property.label,
|
|
11
|
+
width: property.width || 120,
|
|
12
|
+
showOverflow: true
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
if (property.name === 'id') {
|
|
16
|
+
editor['width'] = 50;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (property.edit) {
|
|
20
|
+
editor['editRender'] = {
|
|
21
|
+
enabled: true,
|
|
22
|
+
name: property.editor || 'input'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return editor;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**行拖拽*/
|
|
29
|
+
const sortable = ref();
|
|
30
|
+
const rowDrop = (sohelpVxeGridRef) => {
|
|
31
|
+
nextTick(() => {
|
|
32
|
+
const xGTable = sohelpVxeGridRef.value;
|
|
33
|
+
sortable.value = Sortable.create(xGTable.$el.querySelector('.body--wrapper>.vxe-table--body tbody'), {
|
|
34
|
+
handle: '.drag-btn',
|
|
35
|
+
onEnd: ({ newIndex, oldIndex }) => {}
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**商邦网格列表参数*/
|
|
41
|
+
const SohelpConfig = reactive({});
|
|
42
|
+
const propertiesMap = reactive({});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* properties中过滤掉删除的属性
|
|
46
|
+
* @param {*} _filter
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
const filterFieldsByProperties = (_filter) => {
|
|
50
|
+
const filter = { ..._filter };
|
|
51
|
+
const properties = new Set(filter.properties?.map((item) => item.name) || []);
|
|
52
|
+
const filterArray = (list, key) => {
|
|
53
|
+
return Array.isArray(list) ? list.filter((item) => properties.has(key ? item?.[key] : item)) : [];
|
|
54
|
+
};
|
|
55
|
+
filter.list = filterArray(filter.list);
|
|
56
|
+
filter.filter.keywords = filterArray(filter.filter.keywords);
|
|
57
|
+
filter.filter.sort = filterArray(filter.filter.sort);
|
|
58
|
+
filter.filter.field = filterArray(filter.filter.field, 'name');
|
|
59
|
+
return filter;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**初始化配置实例*/
|
|
63
|
+
export async function initial(sohelpVxeGridRef, props) {
|
|
64
|
+
var data = null;
|
|
65
|
+
if (props.refid) {
|
|
66
|
+
data = props.isEntityGrid ? await moduleCache.getEntityGrid(props.refid) : await moduleCache.getGrid(props.refid);
|
|
67
|
+
|
|
68
|
+
if (!data) {
|
|
69
|
+
throw new Error('Invalid config data or missing code');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
try {
|
|
73
|
+
Object.assign(SohelpConfig, filterFieldsByProperties(data));
|
|
74
|
+
Object.assign(
|
|
75
|
+
propertiesMap,
|
|
76
|
+
data?.properties
|
|
77
|
+
.filter((item) => !item.hidden)
|
|
78
|
+
.reduce((acc, cur) => {
|
|
79
|
+
let param = {};
|
|
80
|
+
if (cur?.editorParam?.length > 0) {
|
|
81
|
+
param = JSON.parse(cur.editorParam);
|
|
82
|
+
}
|
|
83
|
+
acc[cur.name] = { ...cur, editorParam: param };
|
|
84
|
+
return acc;
|
|
85
|
+
}, {})
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
//初始化属性列表配置
|
|
89
|
+
DefaultGridOptions.columns = [
|
|
90
|
+
{
|
|
91
|
+
field: props.multiple ? 'checkbox' : 'radio',
|
|
92
|
+
fixed: 'left',
|
|
93
|
+
type: props.multiple ? 'checkbox' : 'radio',
|
|
94
|
+
width: 35,
|
|
95
|
+
align: 'center'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: 'seq',
|
|
99
|
+
title: '#',
|
|
100
|
+
fixe: 'left',
|
|
101
|
+
align: 'center',
|
|
102
|
+
width: 40
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
//商邦列转换成Vxe列
|
|
107
|
+
if (SohelpConfig?.list && SohelpConfig.list.length > 0) {
|
|
108
|
+
SohelpConfig.list.forEach((name) => {
|
|
109
|
+
let item = propertiesMap[name];
|
|
110
|
+
if (item) {
|
|
111
|
+
DefaultGridOptions.columns.push(switchVxeProperty(item, SohelpConfig.filter?.sort));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//是否支持拖动
|
|
117
|
+
const drag = props.drag || sohelpVxeGridRef.isMove;
|
|
118
|
+
|
|
119
|
+
if (drag) {
|
|
120
|
+
DefaultGridOptions.columns.unshift({
|
|
121
|
+
title: '',
|
|
122
|
+
fixed: 'left',
|
|
123
|
+
width: 40,
|
|
124
|
+
align: 'center',
|
|
125
|
+
dragSort: true,
|
|
126
|
+
slots: {
|
|
127
|
+
default: 'draggableDefault'
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
//转化初始化其他参数...
|
|
133
|
+
} catch (error) {
|
|
134
|
+
throw error; //重新抛出错误,以便调用者可以处理它
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const gridOptions = props.refid ? DefaultGridOptions : props.gridOptions || DefaultGridOptions;
|
|
138
|
+
|
|
139
|
+
return { gridOptions, sohelpConfig: SohelpConfig, propertiesMap};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export default initial;
|