cloud-web-corejs 1.0.54-dev.798 → 1.0.54-dev.799
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/package.json +3 -1
- package/src/components/baseTabs/mixins.js +11 -12
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +687 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +373 -367
- package/src/components/excelExport/exportType.js +49 -0
- package/src/components/excelExport/mixins.js +1153 -1144
- package/src/components/vb-tabs/x-tabs.vue +167 -143
- package/src/components/wf/wfUtil.js +327 -292
- package/src/components/xform/form-designer/designer.js +56 -8
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +60 -8
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -92
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +63 -94
- package/src/components/xform/form-designer/index.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -602
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +13 -13
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -585
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1154 -1154
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -75
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -344
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -84
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -97
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +74 -67
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -71
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +178 -178
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +3 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -13
- package/src/components/xform/form-render/container-item/data-table-mixin copy.js +5910 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +59 -13
- package/src/components/xform/form-render/container-item/detail-item.vue +52 -11
- package/src/components/xform/form-render/container-item/tab-item.vue +6 -2
- package/src/components/xform/form-render/indexMixin.js +56 -16
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/utils/attachmentValueUtil.js +239 -0
- package/src/components/xform/utils/util.js +27 -0
- package/src/mixins/wf/index.js +40 -38
- package/src/router/modules/customer.js +50 -0
- package/src/store/config/index.js +46 -0
- package/src/utils/scrollUtil.js +25 -0
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/user/outLink/cc_form_view.vue +185 -0
|
@@ -1,80 +1,96 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider">{{ i18nt('designer.setting.columnSetting') }}</el-divider>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item :label="i18nt('隐藏导航')">
|
|
7
|
-
<el-switch v-model="optionModel.hideNav"></el-switch>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
<el-form-item :label="i18nt('隐藏标题栏')">
|
|
10
|
-
<el-switch v-model="optionModel.hideHeader"></el-switch>
|
|
11
|
-
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
12
|
-
整条标题栏不渲染(含标题、翻单/流程按钮及拖入的按钮控件)
|
|
13
|
-
</span>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item :label="i18nt('designer.setting.colsOfGrid')"></el-form-item>
|
|
16
|
-
<el-form-item label-width="0">
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider">{{ i18nt('designer.setting.columnSetting') }}</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item :label="i18nt('隐藏导航')">
|
|
7
|
+
<el-switch v-model="optionModel.hideNav"></el-switch>
|
|
8
|
+
</el-form-item>
|
|
9
|
+
<el-form-item :label="i18nt('隐藏标题栏')">
|
|
10
|
+
<el-switch v-model="optionModel.hideHeader"></el-switch>
|
|
11
|
+
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
12
|
+
整条标题栏不渲染(含标题、翻单/流程按钮及拖入的按钮控件)
|
|
13
|
+
</span>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item :label="i18nt('designer.setting.colsOfGrid')"></el-form-item>
|
|
16
|
+
<el-form-item class="form-item-label-top" label-width="0">
|
|
17
|
+
<!-- panes 是通用容器列表(还可能挂 tab 等容器承载标签)。内容模块的 label 可改;
|
|
18
|
+
其它容器的 options.label 在画布上并不渲染,改了没反应,所以只读占位——
|
|
19
|
+
但必须列出来,否则标签形态下这个列表会整个空掉,看着像坏了。
|
|
20
|
+
拖拽排序绑的是原数组 selectedWidget.panes,排序结果能写回去。 -->
|
|
21
|
+
<draggable tag="ul" class="draggable-box" :list="selectedWidget.panes"
|
|
22
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
|
|
23
|
+
<li v-for="(colItem, colIdx) in selectedWidget.panes" :key="colItem.id || colIdx" class="col-item">
|
|
24
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
25
|
+
<el-input v-if="colItem.type === 'detail-pane'" v-model="colItem.options.label"
|
|
26
|
+
class="cell-span-input"></el-input>
|
|
27
|
+
<el-input v-else :value="paneTypeLabel(colItem)" class="cell-span-input" disabled
|
|
28
|
+
:title="i18nt('请在画布中编辑')"></el-input>
|
|
29
|
+
<el-button circle plain size="mini" type="danger" @click="deleteCol(selectedWidget, colItem)"
|
|
30
|
+
icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
|
|
31
|
+
</li>
|
|
32
|
+
</draggable>
|
|
33
|
+
<div>
|
|
34
|
+
<el-button type="text" @click="addNewCol(selectedWidget)" icon="el-icon-circle-plus-outline" class="add-option">
|
|
35
|
+
{{ i18nt('designer.setting.addColumn') }}
|
|
36
|
+
</el-button>
|
|
37
|
+
</div>
|
|
38
|
+
</el-form-item>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script>
|
|
43
|
+
import Draggable from 'vuedraggable';
|
|
44
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
name: "detail-editor",
|
|
48
|
+
mixins: [i18n],
|
|
49
|
+
components: {
|
|
50
|
+
Draggable,
|
|
51
|
+
},
|
|
52
|
+
props: {
|
|
53
|
+
designer: Object,
|
|
54
|
+
selectedWidget: Object,
|
|
55
|
+
optionModel: Object,
|
|
56
|
+
},
|
|
57
|
+
methods: {
|
|
58
|
+
deleteCol(curGrid, colItem) {
|
|
59
|
+
// 传 widget 引用而非下标:列表里混着内容模块和其它容器,下标语义不如引用直白
|
|
60
|
+
this.designer.deletePaneOfDetail(curGrid, colItem)
|
|
61
|
+
this.designer.emitHistoryChange()
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
// 非内容模块(如标签容器)在列表里只做占位展示,取组件面板上的同一套显示名
|
|
65
|
+
paneTypeLabel(colItem) {
|
|
66
|
+
return this.i18n2t(
|
|
67
|
+
`designer.widgetLabel.${colItem.type}`,
|
|
68
|
+
`extension.widgetLabel.${colItem.type}`
|
|
69
|
+
)
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
addNewCol(curGrid) {
|
|
73
|
+
this.designer.addNewPaneOfDetail(curGrid)
|
|
74
|
+
this.designer.emitHistoryChange()
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<style lang="scss" scoped>
|
|
82
|
+
li.col-item {
|
|
83
|
+
list-style: none;
|
|
84
|
+
|
|
85
|
+
span.col-span-title {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
width: 120px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.col-delete-button {
|
|
92
|
+
margin-left: 6px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
</style>
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-form-item label-width="0">
|
|
4
|
-
<el-divider class="custom-divider">{{ i18nt('designer.setting.columnSetting') }}</el-divider>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item :label="i18nt('隐藏导航')">
|
|
7
|
-
<el-switch v-model="optionModel.hideNav"></el-switch>
|
|
8
|
-
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
9
|
-
简洁详情默认隐藏模块导航
|
|
10
|
-
</span>
|
|
11
|
-
</el-form-item>
|
|
12
|
-
<el-form-item :label="i18nt('designer.setting.colsOfGrid')"></el-form-item>
|
|
13
|
-
<el-form-item label-width="0">
|
|
14
|
-
<draggable tag="ul" class="draggable-box" :list="selectedWidget.panes"
|
|
15
|
-
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
|
|
16
|
-
<li v-for="(colItem, colIdx) in selectedWidget.panes" :key="colIdx" class="col-item">
|
|
17
|
-
<i class="el-icon-s-operation drag-option"></i>
|
|
18
|
-
<el-input v-model="colItem.options.label" class="cell-span-input"></el-input>
|
|
19
|
-
<el-button circle plain size="mini" type="danger" @click="deleteCol(selectedWidget, colIdx)"
|
|
20
|
-
icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
|
|
21
|
-
</li>
|
|
22
|
-
</draggable>
|
|
23
|
-
<div>
|
|
24
|
-
<el-button type="text" @click="addNewCol(selectedWidget)" icon="el-icon-circle-plus-outline" class="add-option">
|
|
25
|
-
{{ i18nt('designer.setting.addColumn') }}
|
|
26
|
-
</el-button>
|
|
27
|
-
</div>
|
|
28
|
-
</el-form-item>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script>
|
|
33
|
-
import Draggable from 'vuedraggable';
|
|
34
|
-
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: "detail-plain-editor",
|
|
38
|
-
mixins: [i18n],
|
|
39
|
-
components: {
|
|
40
|
-
Draggable,
|
|
41
|
-
},
|
|
42
|
-
props: {
|
|
43
|
-
designer: Object,
|
|
44
|
-
selectedWidget: Object,
|
|
45
|
-
optionModel: Object,
|
|
46
|
-
},
|
|
47
|
-
methods: {
|
|
48
|
-
deleteCol(curGrid, colIdx) {
|
|
49
|
-
this.designer.deletePaneOfDetail(curGrid, colIdx)
|
|
50
|
-
this.designer.emitHistoryChange()
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
addNewCol(curGrid) {
|
|
54
|
-
this.designer.addNewPaneOfDetail(curGrid)
|
|
55
|
-
this.designer.emitHistoryChange()
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style lang="scss" scoped>
|
|
62
|
-
li.col-item {
|
|
63
|
-
list-style: none;
|
|
64
|
-
|
|
65
|
-
span.col-span-title {
|
|
66
|
-
display: inline-block;
|
|
67
|
-
font-size: 13px;
|
|
68
|
-
width: 120px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.col-delete-button {
|
|
72
|
-
margin-left: 6px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label-width="0">
|
|
4
|
+
<el-divider class="custom-divider">{{ i18nt('designer.setting.columnSetting') }}</el-divider>
|
|
5
|
+
</el-form-item>
|
|
6
|
+
<el-form-item :label="i18nt('隐藏导航')">
|
|
7
|
+
<el-switch v-model="optionModel.hideNav"></el-switch>
|
|
8
|
+
<span style="margin-left: 8px; color: #999; font-size: 12px">
|
|
9
|
+
简洁详情默认隐藏模块导航
|
|
10
|
+
</span>
|
|
11
|
+
</el-form-item>
|
|
12
|
+
<el-form-item :label="i18nt('designer.setting.colsOfGrid')"></el-form-item>
|
|
13
|
+
<el-form-item class="form-item-label-top" label-width="0">
|
|
14
|
+
<draggable tag="ul" class="draggable-box" :list="selectedWidget.panes"
|
|
15
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
|
|
16
|
+
<li v-for="(colItem, colIdx) in selectedWidget.panes" :key="colIdx" class="col-item">
|
|
17
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
18
|
+
<el-input v-model="colItem.options.label" class="cell-span-input"></el-input>
|
|
19
|
+
<el-button circle plain size="mini" type="danger" @click="deleteCol(selectedWidget, colIdx)"
|
|
20
|
+
icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
|
|
21
|
+
</li>
|
|
22
|
+
</draggable>
|
|
23
|
+
<div>
|
|
24
|
+
<el-button type="text" @click="addNewCol(selectedWidget)" icon="el-icon-circle-plus-outline" class="add-option">
|
|
25
|
+
{{ i18nt('designer.setting.addColumn') }}
|
|
26
|
+
</el-button>
|
|
27
|
+
</div>
|
|
28
|
+
</el-form-item>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script>
|
|
33
|
+
import Draggable from 'vuedraggable';
|
|
34
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: "detail-plain-editor",
|
|
38
|
+
mixins: [i18n],
|
|
39
|
+
components: {
|
|
40
|
+
Draggable,
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
designer: Object,
|
|
44
|
+
selectedWidget: Object,
|
|
45
|
+
optionModel: Object,
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
deleteCol(curGrid, colIdx) {
|
|
49
|
+
this.designer.deletePaneOfDetail(curGrid, colIdx)
|
|
50
|
+
this.designer.emitHistoryChange()
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
addNewCol(curGrid) {
|
|
54
|
+
this.designer.addNewPaneOfDetail(curGrid)
|
|
55
|
+
this.designer.emitHistoryChange()
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="scss" scoped>
|
|
62
|
+
li.col-item {
|
|
63
|
+
list-style: none;
|
|
64
|
+
|
|
65
|
+
span.col-span-title {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
font-size: 13px;
|
|
68
|
+
width: 120px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.col-delete-button {
|
|
72
|
+
margin-left: 6px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-form-item :label="i18nt('designer.setting.gridColHeight')">
|
|
3
|
+
<el-form-item :label="i18nt('designer.setting.gridColHeight')" class="form-item-label-top">
|
|
4
4
|
<el-input type="number" v-model="optionModel.colHeight" @input.native="inputNumberHandler"
|
|
5
5
|
min="0" class="hide-spin-button"></el-input>
|
|
6
6
|
</el-form-item>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<el-form-item label-width="0">
|
|
4
4
|
<el-divider class="custom-divider">{{i18nt('designer.setting.columnSetting')}}</el-divider>
|
|
5
5
|
</el-form-item>
|
|
6
|
-
<el-form-item :label="i18nt('designer.setting.gutter')">
|
|
6
|
+
<el-form-item :label="i18nt('designer.setting.gutter')" class="form-item-label-top">
|
|
7
7
|
<el-input-number v-model="optionModel.gutter" style="width: 100%"></el-input-number>
|
|
8
8
|
</el-form-item>
|
|
9
9
|
<el-form-item :label="i18nt('designer.setting.colsOfGrid')"></el-form-item>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.colHeight')">
|
|
2
|
+
<el-form-item :label="i18nt('designer.setting.colHeight')" class="form-item-label-top">
|
|
3
3
|
<el-input type="text" v-model="optionModel.height"
|
|
4
4
|
min="0" class="hide-spin-button"></el-input>
|
|
5
5
|
</el-form-item>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.colOffsetTitle')">
|
|
2
|
+
<el-form-item :label="i18nt('designer.setting.colOffsetTitle')" class="form-item-label-top">
|
|
3
3
|
<el-input-number v-model.number="optionModel.offset" :max="24"
|
|
4
4
|
style="width: 100%"></el-input-number>
|
|
5
5
|
</el-form-item>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.colPullTitle')">
|
|
2
|
+
<el-form-item :label="i18nt('designer.setting.colPullTitle')" class="form-item-label-top">
|
|
3
3
|
<el-input-number v-model.number="optionModel.pull" :max="24"
|
|
4
4
|
style="width: 100%"></el-input-number>
|
|
5
5
|
</el-form-item>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.colPushTitle')">
|
|
2
|
+
<el-form-item :label="i18nt('designer.setting.colPushTitle')" class="form-item-label-top">
|
|
3
3
|
<el-input-number v-model.number="optionModel.push" :max="24"
|
|
4
4
|
style="width: 100%"></el-input-number>
|
|
5
5
|
</el-form-item>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-form-item :label="i18nt('designer.setting.colSpanTitle')" v-if="!optionModel.responsive">
|
|
3
|
+
<el-form-item :label="i18nt('designer.setting.colSpanTitle')" v-if="!optionModel.responsive" class="form-item-label-top">
|
|
4
4
|
<el-input-number v-model.number="optionModel.span" :min="1" :max="24"
|
|
5
5
|
style="width: 100%"></el-input-number>
|
|
6
6
|
</el-form-item>
|
|
7
7
|
<el-form-item :label="i18nt('designer.setting.colSpanTitle') + '(PC)'"
|
|
8
|
-
v-if="!!optionModel.responsive && (formConfig.layoutType === 'PC')">
|
|
8
|
+
v-if="!!optionModel.responsive && (formConfig.layoutType === 'PC')" class="form-item-label-top">
|
|
9
9
|
<el-input-number v-model.number="optionModel.md" :min="1" :max="24"
|
|
10
10
|
style="width: 100%"></el-input-number>
|
|
11
11
|
</el-form-item>
|
|
12
12
|
<el-form-item :label="i18nt('designer.setting.colSpanTitle') + '(Pad)'"
|
|
13
|
-
v-if="!!optionModel.responsive && (formConfig.layoutType === 'Pad')">
|
|
13
|
+
v-if="!!optionModel.responsive && (formConfig.layoutType === 'Pad')" class="form-item-label-top">
|
|
14
14
|
<el-input-number v-model.number="optionModel.sm" :min="1" :max="24"
|
|
15
15
|
style="width: 100%"></el-input-number>
|
|
16
16
|
</el-form-item>
|
|
17
17
|
<el-form-item :label="i18nt('designer.setting.colSpanTitle') + '(H5)'"
|
|
18
|
-
v-if="!!optionModel.responsive && (formConfig.layoutType === 'H5')">
|
|
18
|
+
v-if="!!optionModel.responsive && (formConfig.layoutType === 'H5')" class="form-item-label-top">
|
|
19
19
|
<el-input-number v-model.number="optionModel.xs" :min="1" :max="24"
|
|
20
20
|
style="width: 100%"></el-input-number>
|
|
21
21
|
</el-form-item>
|