cloud-web-corejs 1.0.54-dev.724 → 1.0.54-dev.725

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.724",
4
+ "version": "1.0.54-dev.725",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,87 +1,97 @@
1
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 ref="fieldEditor" :type="field.options.type" :size="field.options.size" class="button-sty"
6
- :plain="field.options.plain" :round="field.options.round"
7
- :circle="field.options.circle" :icon="field.options.icon"
8
- :disabled="!designState &&field.options.disabled" style="margin-right:12px"
9
- @click.native="handleButtonWidgetClick">
10
- {{ getI18nLabel(field.options.label)}}</el-button>
2
+ <static-content-wrapper
3
+ :designer="designer"
4
+ :field="field"
5
+ :design-state="designState"
6
+ :display-style="field.options.displayStyle"
7
+ :parent-widget="parentWidget"
8
+ :parent-list="parentList"
9
+ :index-of-parent-list="indexOfParentList"
10
+ :sub-form-row-index="subFormRowIndex"
11
+ :sub-form-col-index="subFormColIndex"
12
+ :sub-form-row-id="subFormRowId"
13
+ >
14
+ <el-button
15
+ ref="fieldEditor"
16
+ :type="field.options.type"
17
+ :size="field.options.size"
18
+ class="button-sty"
19
+ :plain="field.options.plain"
20
+ :round="field.options.round"
21
+ :circle="field.options.circle"
22
+ :icon="field.options.icon"
23
+ :disabled="!designState && field.options.disabled"
24
+ @click.native="handleButtonWidgetClick"
25
+ >
26
+ {{ getI18nLabel(field.options.label) }}</el-button
27
+ >
11
28
  </static-content-wrapper>
12
29
  </template>
13
30
 
14
31
  <script>
15
- import StaticContentWrapper from './static-content-wrapper'
16
- import emitter from '../../../../../components/xform/utils/emitter'
17
- import i18n from "../../../../../components/xform/utils/i18n";
18
- import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
32
+ import StaticContentWrapper from "./static-content-wrapper";
33
+ import emitter from "../../../../../components/xform/utils/emitter";
34
+ import i18n from "../../../../../components/xform/utils/i18n";
35
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
19
36
 
20
- export default {
21
- name: "button-widget",
22
- componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
23
- mixins: [emitter, fieldMixin, i18n],
24
- props: {
25
- field: Object,
26
- parentWidget: Object,
27
- parentList: Array,
28
- indexOfParentList: Number,
29
- designer: Object,
37
+ export default {
38
+ name: "button-widget",
39
+ componentName: "FieldWidget", //必须固定为FieldWidget,用于接收父级组件的broadcast事件
40
+ mixins: [emitter, fieldMixin, i18n],
41
+ props: {
42
+ field: Object,
43
+ parentWidget: Object,
44
+ parentList: Array,
45
+ indexOfParentList: Number,
46
+ designer: Object,
30
47
 
31
- designState: {
32
- type: Boolean,
33
- default: false
34
- },
35
-
36
- subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
37
- type: Number,
38
- default: -1
39
- },
40
- subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
41
- type: Number,
42
- default: -1
43
- },
44
- subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
45
- type: String,
46
- default: ''
47
- },
48
-
49
- },
50
- components: {
51
- StaticContentWrapper,
48
+ designState: {
49
+ type: Boolean,
50
+ default: false,
52
51
  },
53
- computed: {
54
52
 
53
+ subFormRowIndex: {
54
+ /* 子表单组件行索引,从0开始计数 */ type: Number,
55
+ default: -1,
55
56
  },
56
- beforeCreate() {
57
- /* 这里不能访问方法和属性!! */
57
+ subFormColIndex: {
58
+ /* 子表单组件列索引,从0开始计数 */ type: Number,
59
+ default: -1,
58
60
  },
59
-
60
- created() {
61
- /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
62
- 需要在父组件created中初始化!! */
63
- this.registerToRefList()
64
- this.initEventHandler()
65
-
66
- this.handleOnCreated()
61
+ subFormRowId: {
62
+ /* 子表单组件行Id,唯一id且不可变 */ type: String,
63
+ default: "",
67
64
  },
65
+ },
66
+ components: {
67
+ StaticContentWrapper,
68
+ },
69
+ computed: {},
70
+ beforeCreate() {
71
+ /* 这里不能访问方法和属性!! */
72
+ },
68
73
 
69
- mounted() {
70
- this.handleOnMounted()
71
- },
74
+ created() {
75
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
76
+ 需要在父组件created中初始化!! */
77
+ this.registerToRefList();
78
+ this.initEventHandler();
72
79
 
73
- beforeDestroy() {
74
- this.unregisterFromRefList()
75
- },
80
+ this.handleOnCreated();
81
+ },
76
82
 
77
- methods: {
83
+ mounted() {
84
+ this.handleOnMounted();
85
+ },
78
86
 
79
- }
87
+ beforeDestroy() {
88
+ this.unregisterFromRefList();
89
+ },
80
90
 
81
- }
91
+ methods: {},
92
+ };
82
93
  </script>
83
94
 
84
95
  <style lang="scss" scoped>
85
- @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
86
-
96
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
87
97
  </style>
@@ -15,7 +15,6 @@
15
15
  class="button-sty"
16
16
  @click="clickHandle"
17
17
  icon="el-icon-download"
18
- plain
19
18
  :disabled="!designState && field.options.disabled"
20
19
  >
21
20
  {{ getI18nLabel(field.options.label) }}
@@ -4,7 +4,7 @@
4
4
  :display-style="field.options.displayStyle"
5
5
  :parent-widget="parentWidget" :parent-list="parentList"
6
6
  :index-of-parent-list="indexOfParentList">
7
- <el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" plain @click="importHandle"
7
+ <el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
8
8
  :disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
9
9
  </el-button>
10
10
  </static-content-wrapper>
@@ -4,7 +4,7 @@
4
4
  :display-style="field.options.displayStyle"
5
5
  :parent-widget="parentWidget" :parent-list="parentList"
6
6
  :index-of-parent-list="indexOfParentList">
7
- <el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" plain @click="importHandle"
7
+ <el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
8
8
  :disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
9
9
  </el-button>
10
10
  </static-content-wrapper>
@@ -9,7 +9,7 @@
9
9
  :index-of-parent-list="indexOfParentList"
10
10
  >
11
11
  <el-dropdown trigger="hover" :disabled="field.options.disabled">
12
- <el-button type="primary" class="button-sty" size="mini" plain>
12
+ <el-button type="primary" class="button-sty" size="mini">
13
13
  <span>{{ getI18nLabel("列表导出") }}</span
14
14
  ><span class="line"></span> <i class="el-icon-arrow-down el-icon--right"></i>
15
15
  </el-button>
@@ -1,99 +0,0 @@
1
- <template>
2
- <static-content-wrapper
3
- :designer="designer" :field="field" :design-state="designState"
4
- :display-style="field.options.displayStyle"
5
- :parent-widget="parentWidget" :parent-list="parentList"
6
- :index-of-parent-list="indexOfParentList">
7
- <el-dropdown trigger="hover">
8
- <el-button type="primary" class="button-sty" size="mini" plain>
9
- <span>{{ getI18nLabel('列表导出') }}</span><span class="line"></span> <i
10
- class="el-icon-arrow-down el-icon--right"></i>
11
- </el-button>
12
- <el-dropdown-menu slot="dropdown">
13
- <el-dropdown-item icon="el-icon-upload2"
14
- @click.native="toDo()">
15
- {{ getI18nLabel('条件导出') }}
16
- </el-dropdown-item>
17
- <el-dropdown-item icon="el-icon-upload2"
18
- @click.native="toDo('selected')">
19
- {{ getI18nLabel('选择导出') }}
20
- </el-dropdown-item>
21
- </el-dropdown-menu>
22
- </el-dropdown>
23
- </static-content-wrapper>
24
-
25
- </template>
26
- <script>
27
- import emitter from '../../../../../components/xform/utils/emitter'
28
- import i18n from "../../../../../components/xform/utils/i18n";
29
- import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
30
- import StaticContentWrapper
31
- from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
32
-
33
- export default {
34
- name: 'TableExportButtonWidget',
35
- components: {StaticContentWrapper},
36
- componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
37
- mixins: [emitter, fieldMixin, i18n],
38
- props: {
39
- field: Object,
40
- parentWidget: Object,
41
- parentList: Array,
42
- indexOfParentList: Number,
43
- designer: Object,
44
- designState: {
45
- type: Boolean,
46
- default: false
47
- }
48
- },
49
- data() {
50
- return {}
51
- },
52
- beforeCreate() {
53
- /* 这里不能访问方法和属性!! */
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
- toDo(type = null) {
75
- if (this.designState) {
76
- return
77
- }
78
- let opt = {
79
- title: this.field.options.exportFileName || null,
80
- targetRef: this.field.options.tableRef || null,
81
- pageSize: (this.field.options.exportPageSize || null),
82
- showImageAtTable: this.field.options.showImageAtTable || null
83
- };
84
- let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
85
- let options = {...opt, ...tableExportParam, type: type};
86
- let tableRef = options?.targetRef;
87
- delete options.targetRef
88
- let tableWidget = this.getWidgetRef(tableRef);
89
- tableWidget.exportData(options)
90
- }
91
- }
92
-
93
- }
94
- </script>
95
-
96
- <style lang="scss" scoped>
97
- @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
98
-
99
- </style>