cloud-web-corejs 1.0.112 → 1.0.114

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/table/vxeFilter/mixin.js +6 -6
  3. package/src/components/wf/content.vue +106 -27
  4. package/src/components/wf/wf.js +1 -3
  5. package/src/components/xform/form-designer/designer.js +3 -2
  6. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  7. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  8. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -632
  9. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  11. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  12. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +323 -202
  13. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  14. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  15. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -1
  16. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +778 -666
  17. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  18. package/src/components/xform/form-render/indexMixin.js +1 -1
  19. package/src/components/xform/lang/zh-CN.js +2 -0
  20. package/src/utils/vab.js +3 -3
  21. package/src/views/user/form/vform/out_render.vue +1 -1
  22. package/src/views/user/form/vform/render.vue +8 -4
  23. package/src/views/user/form/view/edit.vue +38 -37
  24. package/src/views/user/form/view/list.vue +27 -7
  25. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  26. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  27. package/src/views/user/wf/wf_obj_config/list.vue +19 -1
@@ -13,12 +13,12 @@
13
13
  :index-of-parent-list="indexOfParentList" :class="widget.options.isFullscreen ? 'full-height':''">
14
14
  <div class="detail-wrap grid-container" :key="widget.id"
15
15
  :class="{'selected': selected}" @click.stop="selectWidget(widget)">
16
- <div class="d-header clearfix">
17
- <div class="fl">
16
+ <div class="d-header clearfix" style="height: auto;">
17
+ <div class="fl" style="width: 20%;overflow: hidden;height: 40px;">
18
18
  <i class="el-icon-info"/>
19
19
  {{ widget.options.label }}
20
20
  </div>
21
- <div class="fr">
21
+ <div class="fr" style="overflow: auto;">
22
22
  <div class="grid-cell">
23
23
  <draggable
24
24
  :list="widget.widgetList"
@@ -0,0 +1,89 @@
1
+ <template>
2
+ <static-content-wrapper :designer="designer" :field="field" :design-state="designState" :display-style="field.options.displayStyle"
3
+ :parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
4
+ :sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
5
+ <el-button class="button-sty" @click="clickHandle" icon="el-icon-document-copy" :disabled="!designState && field.options.disabled">
6
+ {{ getI18nLabel(field.options.label)}}
7
+ </el-button>
8
+ </static-content-wrapper>
9
+ </template>
10
+
11
+ <script>
12
+ import StaticContentWrapper from './static-content-wrapper'
13
+ import emitter from '../../../../../components/xform/utils/emitter'
14
+ import i18n from "../../../../../components/xform/utils/i18n";
15
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
16
+
17
+ export default {
18
+ name: "copy_button-widget",
19
+ componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
20
+ mixins: [emitter, fieldMixin, i18n],
21
+ props: {
22
+ field: Object,
23
+ parentWidget: Object,
24
+ parentList: Array,
25
+ indexOfParentList: Number,
26
+ designer: Object,
27
+
28
+ designState: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+
33
+ subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
34
+ type: Number,
35
+ default: -1
36
+ },
37
+ subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
38
+ type: Number,
39
+ default: -1
40
+ },
41
+ subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
42
+ type: String,
43
+ default: ''
44
+ },
45
+
46
+ },
47
+ components: {
48
+ StaticContentWrapper,
49
+ },
50
+ computed: {
51
+
52
+ },
53
+ beforeCreate() {
54
+ /* 这里不能访问方法和属性!! */
55
+ },
56
+ created() {
57
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
58
+ 需要在父组件created中初始化!! */
59
+ this.registerToRefList()
60
+ this.initEventHandler()
61
+
62
+ this.handleOnCreated()
63
+ },
64
+
65
+ mounted() {
66
+ this.handleOnMounted()
67
+ },
68
+
69
+ beforeDestroy() {
70
+ this.unregisterFromRefList()
71
+ },
72
+
73
+ methods: {
74
+ clickHandle(){
75
+ if(this.designState || this.field.options.disabled)return
76
+ let copyData = this.$baseLodash.cloneDeep(this.formModel);
77
+
78
+ this.handleCustomEvent(this.field.options.copyDataHandle, ["copyData"], [copyData])
79
+ this.getFormRef().openCopyEditTab(copyData);
80
+ }
81
+ }
82
+
83
+ }
84
+ </script>
85
+
86
+ <style lang="scss" scoped>
87
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
88
+
89
+ </style>