cloud-web-corejs 1.0.54-dev.797 → 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 -1141
- 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,124 +1,124 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
因panes属性并不包含于options属性之中,故只能跟其他options属性之内的属性值合并设置,此处选择与customClass合并!!
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div>
|
|
7
|
-
<el-form-item :label="i18nt('designer.setting.tabPaneSetting')"></el-form-item>
|
|
8
|
-
<el-form-item label-width="0" class="panes-setting">
|
|
9
|
-
<draggable tag="ul" :list="selectedWidget.panes"
|
|
10
|
-
v-bind="{group:'panesGroup', ghostClass: 'ghost', handle: '.drag-option'}" class="draggable-box">
|
|
11
|
-
<li v-for="(tpItem, tpIdx) in selectedWidget.panes" :key="tpIdx" class="col-item">
|
|
12
|
-
<!-- span style="margin-right: 12px">{{tpIdx + 1}}</span -->
|
|
13
|
-
<el-checkbox v-model="tpItem.options.active" disabled @change="(evt) => onTabPaneActiveChange(evt, tpItem)"
|
|
14
|
-
style="margin-right: 8px">{{ i18nt('designer.setting.paneActive') }}
|
|
15
|
-
</el-checkbox>
|
|
16
|
-
<el-input type="text" v-model="tpItem.options.label" style="width:calc(100% - 65px) !important;"></el-input>
|
|
17
|
-
<i class="el-icon-s-operation drag-option"></i>
|
|
18
|
-
<el-button circle plain size="mini" type="danger" @click="deleteTabPane(selectedWidget, tpIdx)"
|
|
19
|
-
icon="el-icon-minus" class="col-delete-button"></el-button>
|
|
20
|
-
</li>
|
|
21
|
-
<div>
|
|
22
|
-
<el-button type="text" @click="addTabPane(selectedWidget)" icon="el-icon-circle-plus-outline"
|
|
23
|
-
class="add-option">{{ i18nt('designer.setting.addTabPane') }}
|
|
24
|
-
</el-button>
|
|
25
|
-
</div>
|
|
26
|
-
</draggable>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
33
|
-
import Draggable from 'vuedraggable'
|
|
34
|
-
import {deepClone, generateId} from "../../../../../../components/xform/utils/util";
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: "h5-card-editor",
|
|
38
|
-
componentName: 'PropertyEditor',
|
|
39
|
-
mixins: [i18n],
|
|
40
|
-
components: {
|
|
41
|
-
Draggable,
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
designer: Object,
|
|
45
|
-
selectedWidget: Object,
|
|
46
|
-
optionModel: Object,
|
|
47
|
-
},
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
cssClassList: [],
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
created() {
|
|
54
|
-
this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
55
|
-
//监听表单css代码改动事件并重新加载!
|
|
56
|
-
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
57
|
-
this.cssClassList = cssClassList
|
|
58
|
-
})
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
onTabPaneActiveChange(evt, tpItem) {
|
|
62
|
-
//TODO: !!!
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
addTabPane(tabsWidget) {
|
|
66
|
-
// this.designer.addTabPaneOfTabs(curTabs)
|
|
67
|
-
|
|
68
|
-
const tabPanes = tabsWidget.panes;
|
|
69
|
-
let newTabPane = deepClone(this.designer.getContainerByType('h5-card-pane'));
|
|
70
|
-
newTabPane.id = 'h5-card-pane-' + generateId();
|
|
71
|
-
newTabPane.options.name = newTabPane.id;
|
|
72
|
-
newTabPane.options.label = 'h5-card ' + (tabPanes.length + 1);
|
|
73
|
-
tabPanes.push(newTabPane);
|
|
74
|
-
|
|
75
|
-
this.designer.emitHistoryChange()
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
deleteTabPane(curTabs, tpIdx) {
|
|
79
|
-
if (curTabs.panes.length === 1) {
|
|
80
|
-
this.$message.info(this.i18nt('designer.hint.lastPaneCannotBeDeleted'))
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
curTabs.panes.splice(tpIdx, 1);
|
|
85
|
-
this.designer.emitHistoryChange()
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
</script>
|
|
91
|
-
|
|
92
|
-
<style lang="scss" scoped>
|
|
93
|
-
li.col-item {
|
|
94
|
-
list-style: none;
|
|
95
|
-
|
|
96
|
-
span.col-span-title {
|
|
97
|
-
display: inline-block;
|
|
98
|
-
font-size: 13px;
|
|
99
|
-
width: 120px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.col-delete-button {
|
|
103
|
-
margin-left: 6px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.panes-setting {
|
|
108
|
-
ul {
|
|
109
|
-
padding-inline-start: 0;
|
|
110
|
-
padding-left: 0; /* 重置IE11默认样式 */
|
|
111
|
-
margin: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.drag-option {
|
|
115
|
-
cursor: move;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
li.ghost {
|
|
119
|
-
background: #fff;
|
|
120
|
-
border: 2px dotted $--color-primary;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
因panes属性并不包含于options属性之中,故只能跟其他options属性之内的属性值合并设置,此处选择与customClass合并!!
|
|
3
|
+
-->
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<el-form-item :label="i18nt('designer.setting.tabPaneSetting')"></el-form-item>
|
|
8
|
+
<el-form-item label-width="0" class="panes-setting form-item-label-top">
|
|
9
|
+
<draggable tag="ul" :list="selectedWidget.panes"
|
|
10
|
+
v-bind="{group:'panesGroup', ghostClass: 'ghost', handle: '.drag-option'}" class="draggable-box">
|
|
11
|
+
<li v-for="(tpItem, tpIdx) in selectedWidget.panes" :key="tpIdx" class="col-item">
|
|
12
|
+
<!-- span style="margin-right: 12px">{{tpIdx + 1}}</span -->
|
|
13
|
+
<el-checkbox v-model="tpItem.options.active" disabled @change="(evt) => onTabPaneActiveChange(evt, tpItem)"
|
|
14
|
+
style="margin-right: 8px">{{ i18nt('designer.setting.paneActive') }}
|
|
15
|
+
</el-checkbox>
|
|
16
|
+
<el-input type="text" v-model="tpItem.options.label" style="width:calc(100% - 65px) !important;"></el-input>
|
|
17
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
18
|
+
<el-button circle plain size="mini" type="danger" @click="deleteTabPane(selectedWidget, tpIdx)"
|
|
19
|
+
icon="el-icon-minus" class="col-delete-button"></el-button>
|
|
20
|
+
</li>
|
|
21
|
+
<div>
|
|
22
|
+
<el-button type="text" @click="addTabPane(selectedWidget)" icon="el-icon-circle-plus-outline"
|
|
23
|
+
class="add-option">{{ i18nt('designer.setting.addTabPane') }}
|
|
24
|
+
</el-button>
|
|
25
|
+
</div>
|
|
26
|
+
</draggable>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
33
|
+
import Draggable from 'vuedraggable'
|
|
34
|
+
import {deepClone, generateId} from "../../../../../../components/xform/utils/util";
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: "h5-card-editor",
|
|
38
|
+
componentName: 'PropertyEditor',
|
|
39
|
+
mixins: [i18n],
|
|
40
|
+
components: {
|
|
41
|
+
Draggable,
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
designer: Object,
|
|
45
|
+
selectedWidget: Object,
|
|
46
|
+
optionModel: Object,
|
|
47
|
+
},
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
cssClassList: [],
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
created() {
|
|
54
|
+
this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
55
|
+
//监听表单css代码改动事件并重新加载!
|
|
56
|
+
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
57
|
+
this.cssClassList = cssClassList
|
|
58
|
+
})
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
onTabPaneActiveChange(evt, tpItem) {
|
|
62
|
+
//TODO: !!!
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
addTabPane(tabsWidget) {
|
|
66
|
+
// this.designer.addTabPaneOfTabs(curTabs)
|
|
67
|
+
|
|
68
|
+
const tabPanes = tabsWidget.panes;
|
|
69
|
+
let newTabPane = deepClone(this.designer.getContainerByType('h5-card-pane'));
|
|
70
|
+
newTabPane.id = 'h5-card-pane-' + generateId();
|
|
71
|
+
newTabPane.options.name = newTabPane.id;
|
|
72
|
+
newTabPane.options.label = 'h5-card ' + (tabPanes.length + 1);
|
|
73
|
+
tabPanes.push(newTabPane);
|
|
74
|
+
|
|
75
|
+
this.designer.emitHistoryChange()
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
deleteTabPane(curTabs, tpIdx) {
|
|
79
|
+
if (curTabs.panes.length === 1) {
|
|
80
|
+
this.$message.info(this.i18nt('designer.hint.lastPaneCannotBeDeleted'))
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
curTabs.panes.splice(tpIdx, 1);
|
|
85
|
+
this.designer.emitHistoryChange()
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
91
|
+
|
|
92
|
+
<style lang="scss" scoped>
|
|
93
|
+
li.col-item {
|
|
94
|
+
list-style: none;
|
|
95
|
+
|
|
96
|
+
span.col-span-title {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
width: 120px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.col-delete-button {
|
|
103
|
+
margin-left: 6px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.panes-setting {
|
|
108
|
+
ul {
|
|
109
|
+
padding-inline-start: 0;
|
|
110
|
+
padding-left: 0; /* 重置IE11默认样式 */
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.drag-option {
|
|
115
|
+
cursor: move;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
li.ghost {
|
|
119
|
+
background: #fff;
|
|
120
|
+
border: 2px dotted $--color-primary;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
</style>
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
因tabs属性并不包含于options属性之中,故只能跟其他options属性之内的属性值合并设置,此处选择与customClass合并!!
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div>
|
|
7
|
-
<el-form-item :label="i18nt('designer.setting.customClass')">
|
|
8
|
-
<el-select v-model="optionModel.customClass" multiple filterable allow-create
|
|
9
|
-
default-first-option>
|
|
10
|
-
<el-option v-for="(item, idx) in cssClassList" :key="idx" :label="item" :value="item"></el-option>
|
|
11
|
-
</el-select>
|
|
12
|
-
</el-form-item>
|
|
13
|
-
<el-form-item :label="i18nt('designer.setting.tabPaneSetting')"></el-form-item>
|
|
14
|
-
<el-form-item label-width="0" class="panes-setting">
|
|
15
|
-
<draggable tag="ul" :list="selectedWidget.tabs"
|
|
16
|
-
v-bind="{group:'panesGroup', ghostClass: 'ghost', handle: '.drag-option'}" class="draggable-box">
|
|
17
|
-
<li v-for="(tpItem, tpIdx) in selectedWidget.tabs" :key="tpIdx" class="col-item">
|
|
18
|
-
<!-- span style="margin-right: 12px">{{tpIdx + 1}}</span -->
|
|
19
|
-
<el-checkbox v-model="tpItem.options.active" disabled @change="(evt) => onTabPaneActiveChange(evt, tpItem)"
|
|
20
|
-
style="margin-right: 8px">{{i18nt('designer.setting.paneActive')}}</el-checkbox>
|
|
21
|
-
<el-input type="text" v-model="tpItem.options.label" style="width:calc(100% - 65px) !important;"></el-input>
|
|
22
|
-
<i class="el-icon-s-operation drag-option"></i>
|
|
23
|
-
<el-button circle plain size="mini" type="danger" @click="deleteTabPane(selectedWidget, tpIdx)"
|
|
24
|
-
icon="el-icon-minus" class="col-delete-button"></el-button>
|
|
25
|
-
</li>
|
|
26
|
-
<div>
|
|
27
|
-
<el-button type="text" @click="addTabPane(selectedWidget)" icon="el-icon-circle-plus-outline" class="add-option">{{i18nt('designer.setting.addTabPane')}}</el-button>
|
|
28
|
-
</div>
|
|
29
|
-
</draggable>
|
|
30
|
-
</el-form-item>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
36
|
-
import Draggable from 'vuedraggable'
|
|
37
|
-
import {deepClone} from "../../../../../../components/xform/utils/util";
|
|
38
|
-
|
|
39
|
-
export default {
|
|
40
|
-
name: "tab-customClass-editor",
|
|
41
|
-
componentName: 'PropertyEditor',
|
|
42
|
-
mixins: [i18n],
|
|
43
|
-
components: {
|
|
44
|
-
Draggable,
|
|
45
|
-
},
|
|
46
|
-
props: {
|
|
47
|
-
designer: Object,
|
|
48
|
-
selectedWidget: Object,
|
|
49
|
-
optionModel: Object,
|
|
50
|
-
},
|
|
51
|
-
data() {
|
|
52
|
-
return {
|
|
53
|
-
cssClassList: [],
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
created() {
|
|
57
|
-
this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
58
|
-
//监听表单css代码改动事件并重新加载!
|
|
59
|
-
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
60
|
-
this.cssClassList = cssClassList
|
|
61
|
-
})
|
|
62
|
-
},
|
|
63
|
-
methods: {
|
|
64
|
-
onTabPaneActiveChange(evt, tpItem) {
|
|
65
|
-
//TODO: !!!
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
addTabPane(curTabs) {
|
|
69
|
-
this.designer.addTabPaneOfTabs(curTabs)
|
|
70
|
-
this.designer.emitHistoryChange()
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
deleteTabPane(curTabs, tpIdx) {
|
|
74
|
-
if (curTabs.tabs.length === 1) {
|
|
75
|
-
this.$message.info(this.i18nt('designer.hint.lastPaneCannotBeDeleted'))
|
|
76
|
-
return
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
this.designer.deleteTabPaneOfTabs(curTabs, tpIdx)
|
|
80
|
-
this.designer.emitHistoryChange()
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style lang="scss" scoped>
|
|
88
|
-
li.col-item {
|
|
89
|
-
list-style: none;
|
|
90
|
-
|
|
91
|
-
span.col-span-title {
|
|
92
|
-
display: inline-block;
|
|
93
|
-
font-size: 13px;
|
|
94
|
-
width: 120px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.col-delete-button {
|
|
98
|
-
margin-left: 6px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.panes-setting {
|
|
103
|
-
ul {
|
|
104
|
-
padding-inline-start: 0;
|
|
105
|
-
padding-left: 0; /* 重置IE11默认样式 */
|
|
106
|
-
margin: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.drag-option {
|
|
110
|
-
cursor: move;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
li.ghost {
|
|
114
|
-
background: #fff;
|
|
115
|
-
border: 2px dotted $--color-primary;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
因tabs属性并不包含于options属性之中,故只能跟其他options属性之内的属性值合并设置,此处选择与customClass合并!!
|
|
3
|
+
-->
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<el-form-item class="form-item-label-top" :label="i18nt('designer.setting.customClass')">
|
|
8
|
+
<el-select v-model="optionModel.customClass" multiple filterable allow-create
|
|
9
|
+
default-first-option>
|
|
10
|
+
<el-option v-for="(item, idx) in cssClassList" :key="idx" :label="item" :value="item"></el-option>
|
|
11
|
+
</el-select>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-form-item :label="i18nt('designer.setting.tabPaneSetting')"></el-form-item>
|
|
14
|
+
<el-form-item label-width="0" class="panes-setting form-item-label-top">
|
|
15
|
+
<draggable tag="ul" :list="selectedWidget.tabs"
|
|
16
|
+
v-bind="{group:'panesGroup', ghostClass: 'ghost', handle: '.drag-option'}" class="draggable-box">
|
|
17
|
+
<li v-for="(tpItem, tpIdx) in selectedWidget.tabs" :key="tpIdx" class="col-item">
|
|
18
|
+
<!-- span style="margin-right: 12px">{{tpIdx + 1}}</span -->
|
|
19
|
+
<el-checkbox v-model="tpItem.options.active" disabled @change="(evt) => onTabPaneActiveChange(evt, tpItem)"
|
|
20
|
+
style="margin-right: 8px">{{i18nt('designer.setting.paneActive')}}</el-checkbox>
|
|
21
|
+
<el-input type="text" v-model="tpItem.options.label" style="width:calc(100% - 65px) !important;"></el-input>
|
|
22
|
+
<i class="el-icon-s-operation drag-option"></i>
|
|
23
|
+
<el-button circle plain size="mini" type="danger" @click="deleteTabPane(selectedWidget, tpIdx)"
|
|
24
|
+
icon="el-icon-minus" class="col-delete-button"></el-button>
|
|
25
|
+
</li>
|
|
26
|
+
<div>
|
|
27
|
+
<el-button type="text" @click="addTabPane(selectedWidget)" icon="el-icon-circle-plus-outline" class="add-option">{{i18nt('designer.setting.addTabPane')}}</el-button>
|
|
28
|
+
</div>
|
|
29
|
+
</draggable>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import i18n from "../../../../../../components/xform/utils/i18n"
|
|
36
|
+
import Draggable from 'vuedraggable'
|
|
37
|
+
import {deepClone} from "../../../../../../components/xform/utils/util";
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: "tab-customClass-editor",
|
|
41
|
+
componentName: 'PropertyEditor',
|
|
42
|
+
mixins: [i18n],
|
|
43
|
+
components: {
|
|
44
|
+
Draggable,
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
designer: Object,
|
|
48
|
+
selectedWidget: Object,
|
|
49
|
+
optionModel: Object,
|
|
50
|
+
},
|
|
51
|
+
data() {
|
|
52
|
+
return {
|
|
53
|
+
cssClassList: [],
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
created() {
|
|
57
|
+
this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
58
|
+
//监听表单css代码改动事件并重新加载!
|
|
59
|
+
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
60
|
+
this.cssClassList = cssClassList
|
|
61
|
+
})
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
onTabPaneActiveChange(evt, tpItem) {
|
|
65
|
+
//TODO: !!!
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
addTabPane(curTabs) {
|
|
69
|
+
this.designer.addTabPaneOfTabs(curTabs)
|
|
70
|
+
this.designer.emitHistoryChange()
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
deleteTabPane(curTabs, tpIdx) {
|
|
74
|
+
if (curTabs.tabs.length === 1) {
|
|
75
|
+
this.$message.info(this.i18nt('designer.hint.lastPaneCannotBeDeleted'))
|
|
76
|
+
return
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
this.designer.deleteTabPaneOfTabs(curTabs, tpIdx)
|
|
80
|
+
this.designer.emitHistoryChange()
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style lang="scss" scoped>
|
|
88
|
+
li.col-item {
|
|
89
|
+
list-style: none;
|
|
90
|
+
|
|
91
|
+
span.col-span-title {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
font-size: 13px;
|
|
94
|
+
width: 120px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.col-delete-button {
|
|
98
|
+
margin-left: 6px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.panes-setting {
|
|
103
|
+
ul {
|
|
104
|
+
padding-inline-start: 0;
|
|
105
|
+
padding-left: 0; /* 重置IE11默认样式 */
|
|
106
|
+
margin: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.drag-option {
|
|
110
|
+
cursor: move;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
li.ghost {
|
|
114
|
+
background: #fff;
|
|
115
|
+
border: 2px dotted $--color-primary;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
</style>
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form-item :label="i18nt('designer.setting.tabClass')">
|
|
3
|
-
<el-select v-model="optionModel.tabClass">
|
|
4
|
-
<el-option v-for="(item, idx) in classList" :key="idx" :label="item.name" :value="item.value"></el-option>
|
|
5
|
-
</el-select>
|
|
6
|
-
</el-form-item>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
11
|
-
// import {deepClone} from "../../../../../../components/xform/utils/util";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
name: "tabClass-editor",
|
|
15
|
-
componentName: 'PropertyEditor',
|
|
16
|
-
mixins: [i18n],
|
|
17
|
-
props: {
|
|
18
|
-
designer: Object,
|
|
19
|
-
selectedWidget: Object,
|
|
20
|
-
optionModel: Object,
|
|
21
|
-
},
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
classList:[{
|
|
25
|
-
name:'样式一',
|
|
26
|
-
value:'tab-boxCard tabCard-sty1'
|
|
27
|
-
},{
|
|
28
|
-
name:'样式二',
|
|
29
|
-
value:'tab-box'
|
|
30
|
-
}],
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
created() {
|
|
34
|
-
/* this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
35
|
-
//监听表单css代码改动事件并重新加载!
|
|
36
|
-
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
37
|
-
this.cssClassList = cssClassList
|
|
38
|
-
}) */
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style scoped>
|
|
44
|
-
|
|
45
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-form-item class="form-item-label-top" :label="i18nt('designer.setting.tabClass')">
|
|
3
|
+
<el-select v-model="optionModel.tabClass">
|
|
4
|
+
<el-option v-for="(item, idx) in classList" :key="idx" :label="item.name" :value="item.value"></el-option>
|
|
5
|
+
</el-select>
|
|
6
|
+
</el-form-item>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
11
|
+
// import {deepClone} from "../../../../../../components/xform/utils/util";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "tabClass-editor",
|
|
15
|
+
componentName: 'PropertyEditor',
|
|
16
|
+
mixins: [i18n],
|
|
17
|
+
props: {
|
|
18
|
+
designer: Object,
|
|
19
|
+
selectedWidget: Object,
|
|
20
|
+
optionModel: Object,
|
|
21
|
+
},
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
classList:[{
|
|
25
|
+
name:'样式一',
|
|
26
|
+
value:'tab-boxCard tabCard-sty1'
|
|
27
|
+
},{
|
|
28
|
+
name:'样式二',
|
|
29
|
+
value:'tab-box'
|
|
30
|
+
}],
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
created() {
|
|
34
|
+
/* this.cssClassList = deepClone(this.designer.getCssClassList())
|
|
35
|
+
//监听表单css代码改动事件并重新加载!
|
|
36
|
+
this.designer.handleEvent('form-css-updated', (cssClassList) => {
|
|
37
|
+
this.cssClassList = cssClassList
|
|
38
|
+
}) */
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped>
|
|
44
|
+
|
|
45
|
+
</style>
|