super-pages 0.0.18-up → 0.0.21-up

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 (38) hide show
  1. package/README.md +7 -7
  2. package/index.html +13 -13
  3. package/lib/super-pages.css +1 -1
  4. package/lib/super-pages.js +2164 -2056
  5. package/lib/super-pages.umd.cjs +5 -5
  6. package/package.json +2 -2
  7. package/packages/index.js +30 -30
  8. package/packages/super-page/index.js +9 -9
  9. package/packages/super-page/src/button-group.vue +2 -1
  10. package/packages/super-page/src/common-form-page.vue +2 -1
  11. package/packages/super-page/src/export-form-report-dialog.vue +15 -17
  12. package/packages/super-page/src/form-head.vue +74 -74
  13. package/packages/super-page/src/group-tag.vue +21 -21
  14. package/packages/super-page/src/list-page.vue +2 -1
  15. package/packages/super-page/src/list-toolbar-dynamic-source.vue +89 -89
  16. package/packages/super-page/src/list-toolbar-page.vue +377 -377
  17. package/packages/super-page/src/my-button-base.vue +7 -2
  18. package/packages/super-page/src/my-button.vue +3 -1
  19. package/packages/super-page/src/remove-signer-dialog.vue +103 -103
  20. package/packages/super-page/src/sub-tab-page.vue +79 -79
  21. package/packages/super-page/src/task-informition-dialog.vue +82 -82
  22. package/packages/super-page/src/util/api.js +37 -37
  23. package/packages/super-page/src/util/callEvents.js +62 -62
  24. package/packages/super-page/src/util/common-util.js +5 -10
  25. package/packages/super-page/src/util/commonButtonEvent.js +70 -70
  26. package/packages/super-page/src/util/store.js +3 -3
  27. package/packages/super-page/src/util/super-page.js +29 -29
  28. package/packages/super-page/src/util/util.js +95 -36
  29. package/packages/super-page/src/util/workflowButtonEvent.js +16 -0
  30. package/packages/super-page/src/widget-col-page.vue +8 -3
  31. package/packages/super-page/src/widget-sub-tab-pane-page.vue +115 -115
  32. package/packages/super-page/src/widget-tab-pane-page.vue +135 -135
  33. package/packages/super-page/src/workflow-button-group.vue +15 -8
  34. package/packages/super-page/src/workflow-form-page.vue +15 -7
  35. package/packages/super-page-dialog/index.js +9 -9
  36. package/packages/utils/gogocodeTransfer.js +59 -59
  37. package/src/utils/common-util.js +9 -9
  38. package/vite.config.js +36 -36
@@ -1,115 +1,115 @@
1
- <template>
2
- <div>
3
- <template
4
- v-if="
5
- pageSettingList &&
6
- pageSettingList !== null &&
7
- pageSettingList.length > 0
8
- "
9
- >
10
- <el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
11
- <template v-for="(col, colIndex) in row.colList" :key="colIndex">
12
- <el-col
13
- :span="
14
- col.options && col.options.colWidth ? col.options.colWidth : 24
15
- "
16
- :class="{
17
- placeholder:
18
- col.baseSetting.type === 'placeholder' ||
19
- col.baseSetting.type === 'enter',
20
- }"
21
- >
22
- <widget-col-page
23
- :col="col"
24
- :data-id="dataId"
25
- :workflow-id="workflowId"
26
- :task-id="taskId"
27
- :page-code="pageCode"
28
- :field-permissions="fieldPermissions"
29
- :chart-query-setting="chartQuerySetting"
30
- @update-value="updateValues"
31
- @prohibi-edit="fnProhibitToEdit"
32
- @export="exportReport"
33
- />
34
- </el-col>
35
- </template>
36
- </el-row>
37
- </template>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
43
- import WidgetColPage from './widget-col-page'
44
- import { getStoreInfo } from './util/common-util'
45
- export default {
46
- name: 'WidgetSubTabPage',
47
- components: {
48
- WidgetColPage,
49
- },
50
- props: {
51
- // 页面编码
52
- pageCode: {
53
- type: String,
54
- default: null,
55
- },
56
- // 表单页面修改记录时记录id
57
- dataId: {
58
- type: Number,
59
- default: null,
60
- },
61
- // 流程表单页面办理任务时任务id
62
- taskId: {
63
- type: Number,
64
- default: null,
65
- },
66
- // 1个页签的内容配置
67
- oneTabContent: {
68
- type: Array,
69
- default: null,
70
- },
71
- // 流程实例id
72
- workflowId: {
73
- type: Number,
74
- default: null,
75
- },
76
- // 图表查询组件配置col
77
- chartQuerySetting: {
78
- type: Object,
79
- default: null,
80
- },
81
- },
82
- data() {
83
- const system = getStoreInfo(this.pageCode, '_systemInfo')
84
- return {
85
- pageSettingList: [],
86
- system,
87
- fieldPermissions: {},
88
- }
89
- },
90
- created() {
91
- if (this.oneTabContent) {
92
- // 表示是页签页面
93
- this.pageSettingList = this.oneTabContent
94
- }
95
- },
96
- methods: {
97
- updateValues(sourceModel, sourceTableName, targetRowIndex) {
98
- $emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
99
- },
100
- fnProhibitToEdit(entity) {
101
- this.fieldPermissions = entity
102
- },
103
- // chartQuery组件,导出报告
104
- exportReport(beanName) {
105
- // 向父页面传递
106
- $emit(this, 'export', beanName)
107
- },
108
- },
109
- emits: ['update-value', 'export'],
110
- }
111
- </script>
112
-
113
- <style lang="scss" scoped>
114
- @import '../../../src/styles/index';
115
- </style>
1
+ <template>
2
+ <div>
3
+ <template
4
+ v-if="
5
+ pageSettingList &&
6
+ pageSettingList !== null &&
7
+ pageSettingList.length > 0
8
+ "
9
+ >
10
+ <el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
11
+ <template v-for="(col, colIndex) in row.colList" :key="colIndex">
12
+ <el-col
13
+ :span="
14
+ col.options && col.options.colWidth ? col.options.colWidth : 24
15
+ "
16
+ :class="{
17
+ placeholder:
18
+ col.baseSetting.type === 'placeholder' ||
19
+ col.baseSetting.type === 'enter',
20
+ }"
21
+ >
22
+ <widget-col-page
23
+ :col="col"
24
+ :data-id="dataId"
25
+ :workflow-id="workflowId"
26
+ :task-id="taskId"
27
+ :page-code="pageCode"
28
+ :field-permissions="fieldPermissions"
29
+ :chart-query-setting="chartQuerySetting"
30
+ @update-value="updateValues"
31
+ @prohibi-edit="fnProhibitToEdit"
32
+ @export="exportReport"
33
+ />
34
+ </el-col>
35
+ </template>
36
+ </el-row>
37
+ </template>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
43
+ import WidgetColPage from './widget-col-page'
44
+ import { getStoreInfo } from './util/common-util'
45
+ export default {
46
+ name: 'WidgetSubTabPage',
47
+ components: {
48
+ WidgetColPage,
49
+ },
50
+ props: {
51
+ // 页面编码
52
+ pageCode: {
53
+ type: String,
54
+ default: null,
55
+ },
56
+ // 表单页面修改记录时记录id
57
+ dataId: {
58
+ type: Number,
59
+ default: null,
60
+ },
61
+ // 流程表单页面办理任务时任务id
62
+ taskId: {
63
+ type: Number,
64
+ default: null,
65
+ },
66
+ // 1个页签的内容配置
67
+ oneTabContent: {
68
+ type: Array,
69
+ default: null,
70
+ },
71
+ // 流程实例id
72
+ workflowId: {
73
+ type: Number,
74
+ default: null,
75
+ },
76
+ // 图表查询组件配置col
77
+ chartQuerySetting: {
78
+ type: Object,
79
+ default: null,
80
+ },
81
+ },
82
+ data() {
83
+ const system = getStoreInfo(this.pageCode, '_systemInfo')
84
+ return {
85
+ pageSettingList: [],
86
+ system,
87
+ fieldPermissions: {},
88
+ }
89
+ },
90
+ created() {
91
+ if (this.oneTabContent) {
92
+ // 表示是页签页面
93
+ this.pageSettingList = this.oneTabContent
94
+ }
95
+ },
96
+ methods: {
97
+ updateValues(sourceModel, sourceTableName, targetRowIndex) {
98
+ $emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
99
+ },
100
+ fnProhibitToEdit(entity) {
101
+ this.fieldPermissions = entity
102
+ },
103
+ // chartQuery组件,导出报告
104
+ exportReport(beanName) {
105
+ // 向父页面传递
106
+ $emit(this, 'export', beanName)
107
+ },
108
+ },
109
+ emits: ['update-value', 'export'],
110
+ }
111
+ </script>
112
+
113
+ <style lang="scss" scoped>
114
+ @import '../../../src/styles/index';
115
+ </style>
@@ -1,135 +1,135 @@
1
- <template>
2
- <div>
3
- <template
4
- v-if="
5
- pageSettingList &&
6
- pageSettingList !== null &&
7
- pageSettingList.length > 0
8
- "
9
- >
10
- <el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
11
- <template v-for="(col, colIndex) in row.colList" :key="colIndex">
12
- <el-col
13
- :span="
14
- col.options && col.options.colWidth ? col.options.colWidth : 24
15
- "
16
- :class="{
17
- placeholder:
18
- col.baseSetting.type === 'placeholder' ||
19
- col.baseSetting.type === 'enter',
20
- }"
21
- >
22
- <sub-tab-page
23
- v-if="col.baseSetting.type === 'tab'"
24
- :col-setting="col"
25
- :workflow-id="workflowId"
26
- :data-id="dataId"
27
- :task-id="taskId"
28
- :page-code="pageCode"
29
- :chart-query-setting="chartQuerySetting"
30
- @export="exportReport"
31
- @update-value="updateValues"
32
- />
33
- <widget-col-page
34
- v-else
35
- :col="col"
36
- :data-id="dataId"
37
- :workflow-id="workflowId"
38
- :task-id="taskId"
39
- :page-code="pageCode"
40
- :tab-code="tabCode"
41
- :field-permissions="fieldPermissions"
42
- :chart-query-setting="chartQuerySetting"
43
- @update-value="updateValues"
44
- @prohibi-edit="fnProhibitToEdit"
45
- @export="exportReport"
46
- />
47
- </el-col>
48
- </template>
49
- </el-row>
50
- </template>
51
- </div>
52
- </template>
53
-
54
- <script>
55
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
56
- import SubTabPage from './sub-tab-page'
57
- import WidgetColPage from './widget-col-page'
58
- import { getStoreInfo } from './util/common-util'
59
- export default {
60
- name: 'WidgetTabPage',
61
- components: {
62
- SubTabPage,
63
- WidgetColPage,
64
- },
65
- props: {
66
- // 页面编码
67
- pageCode: {
68
- type: String,
69
- default: null,
70
- },
71
- // 表单页面修改记录时记录id
72
- dataId: {
73
- type: Number,
74
- default: null,
75
- },
76
- // 流程表单页面办理任务时任务id
77
- taskId: {
78
- type: Number,
79
- default: null,
80
- },
81
- // 1个页签的内容配置
82
- oneTabContent: {
83
- type: Array,
84
- default: null,
85
- },
86
- // 流程实例id
87
- workflowId: {
88
- type: Number,
89
- default: null,
90
- },
91
- // 页签编码
92
- tabCode: {
93
- type: String,
94
- default: null,
95
- },
96
- // 图表查询组件配置col
97
- chartQuerySetting: {
98
- type: Object,
99
- default: null,
100
- },
101
- },
102
- data() {
103
- const system = getStoreInfo(this.pageCode, '_systemInfo')
104
- return {
105
- pageSettingList: [],
106
- system,
107
- fieldPermissions: {},
108
- }
109
- },
110
- created() {
111
- if (this.oneTabContent) {
112
- // 表示是页签页面
113
- this.pageSettingList = this.oneTabContent
114
- }
115
- },
116
- methods: {
117
- updateValues(sourceModel, sourceTableName, targetRowIndex) {
118
- $emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
119
- },
120
- fnProhibitToEdit(entity) {
121
- this.entity = entity
122
- },
123
- // chartQuery组件,导出报告
124
- exportReport(beanName) {
125
- // 向父页面传递
126
- $emit(this, 'export', beanName)
127
- },
128
- },
129
- emits: ['update-value', 'export'],
130
- }
131
- </script>
132
-
133
- <style lang="scss" scoped>
134
- @import '../../../src/styles/index';
135
- </style>
1
+ <template>
2
+ <div>
3
+ <template
4
+ v-if="
5
+ pageSettingList &&
6
+ pageSettingList !== null &&
7
+ pageSettingList.length > 0
8
+ "
9
+ >
10
+ <el-row v-for="(row, rowIndex) in pageSettingList" :key="rowIndex">
11
+ <template v-for="(col, colIndex) in row.colList" :key="colIndex">
12
+ <el-col
13
+ :span="
14
+ col.options && col.options.colWidth ? col.options.colWidth : 24
15
+ "
16
+ :class="{
17
+ placeholder:
18
+ col.baseSetting.type === 'placeholder' ||
19
+ col.baseSetting.type === 'enter',
20
+ }"
21
+ >
22
+ <sub-tab-page
23
+ v-if="col.baseSetting.type === 'tab'"
24
+ :col-setting="col"
25
+ :workflow-id="workflowId"
26
+ :data-id="dataId"
27
+ :task-id="taskId"
28
+ :page-code="pageCode"
29
+ :chart-query-setting="chartQuerySetting"
30
+ @export="exportReport"
31
+ @update-value="updateValues"
32
+ />
33
+ <widget-col-page
34
+ v-else
35
+ :col="col"
36
+ :data-id="dataId"
37
+ :workflow-id="workflowId"
38
+ :task-id="taskId"
39
+ :page-code="pageCode"
40
+ :tab-code="tabCode"
41
+ :field-permissions="fieldPermissions"
42
+ :chart-query-setting="chartQuerySetting"
43
+ @update-value="updateValues"
44
+ @prohibi-edit="fnProhibitToEdit"
45
+ @export="exportReport"
46
+ />
47
+ </el-col>
48
+ </template>
49
+ </el-row>
50
+ </template>
51
+ </div>
52
+ </template>
53
+
54
+ <script>
55
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
56
+ import SubTabPage from './sub-tab-page'
57
+ import WidgetColPage from './widget-col-page'
58
+ import { getStoreInfo } from './util/common-util'
59
+ export default {
60
+ name: 'WidgetTabPage',
61
+ components: {
62
+ SubTabPage,
63
+ WidgetColPage,
64
+ },
65
+ props: {
66
+ // 页面编码
67
+ pageCode: {
68
+ type: String,
69
+ default: null,
70
+ },
71
+ // 表单页面修改记录时记录id
72
+ dataId: {
73
+ type: Number,
74
+ default: null,
75
+ },
76
+ // 流程表单页面办理任务时任务id
77
+ taskId: {
78
+ type: Number,
79
+ default: null,
80
+ },
81
+ // 1个页签的内容配置
82
+ oneTabContent: {
83
+ type: Array,
84
+ default: null,
85
+ },
86
+ // 流程实例id
87
+ workflowId: {
88
+ type: Number,
89
+ default: null,
90
+ },
91
+ // 页签编码
92
+ tabCode: {
93
+ type: String,
94
+ default: null,
95
+ },
96
+ // 图表查询组件配置col
97
+ chartQuerySetting: {
98
+ type: Object,
99
+ default: null,
100
+ },
101
+ },
102
+ data() {
103
+ const system = getStoreInfo(this.pageCode, '_systemInfo')
104
+ return {
105
+ pageSettingList: [],
106
+ system,
107
+ fieldPermissions: {},
108
+ }
109
+ },
110
+ created() {
111
+ if (this.oneTabContent) {
112
+ // 表示是页签页面
113
+ this.pageSettingList = this.oneTabContent
114
+ }
115
+ },
116
+ methods: {
117
+ updateValues(sourceModel, sourceTableName, targetRowIndex) {
118
+ $emit(this, 'update-value', sourceModel, sourceTableName, targetRowIndex)
119
+ },
120
+ fnProhibitToEdit(entity) {
121
+ this.entity = entity
122
+ },
123
+ // chartQuery组件,导出报告
124
+ exportReport(beanName) {
125
+ // 向父页面传递
126
+ $emit(this, 'export', beanName)
127
+ },
128
+ },
129
+ emits: ['update-value', 'export'],
130
+ }
131
+ </script>
132
+
133
+ <style lang="scss" scoped>
134
+ @import '../../../src/styles/index';
135
+ </style>
@@ -28,13 +28,13 @@
28
28
  <template v-slot:after>
29
29
  <template v-if="formButtonPosition === 'bottomRight'">
30
30
  <span
31
- v-if="!isTaskComplete() && getCurrentActivityName()"
31
+ v-if="currentActivityName"
32
32
  :style="{
33
33
  'margin-left': '5px',
34
34
  color: workNameColor ? workNameColor : 'red',
35
35
  }"
36
36
  >{{ $t('superPage.currentActivityName') }}
37
- {{ getCurrentActivityName() }}</span
37
+ {{ currentActivityName }}</span
38
38
  >
39
39
  <el-button
40
40
  v-if="isBackButton && isTaskInput"
@@ -135,6 +135,7 @@
135
135
  @workflowClick="workflowButtonClick"
136
136
  @prohibi-edit="fnProhibitToEdit"
137
137
  @refreshFrom="refreshFrom"
138
+ @getPageParam="getPageParam"
138
139
  />
139
140
  </span>
140
141
  </template>
@@ -162,13 +163,13 @@
162
163
  {{ backButtonName }}
163
164
  </el-button>
164
165
  <span
165
- v-if="!isTaskComplete() && getCurrentActivityName()"
166
+ v-if="currentActivityName"
166
167
  :style="{
167
168
  'margin-left': '5px',
168
169
  color: workNameColor ? workNameColor : 'red',
169
170
  }"
170
171
  >{{ $t('superPage.currentActivityName') }}
171
- {{ getCurrentActivityName() }}</span
172
+ {{ currentActivityName }}</span
172
173
  >
173
174
  </template>
174
175
  </template>
@@ -183,6 +184,7 @@ import { mapGetters } from 'vuex'
183
184
  import Util from './util/util'
184
185
  import myButtonBase from './my-button-base'
185
186
  import { getStoreInfo } from './util/common-util'
187
+ import { getValueByField } from 'imatrix-ui/src/utils/util'
186
188
  export default {
187
189
  name: 'MyWorkflowButtonGroup',
188
190
  components: {
@@ -361,7 +363,8 @@ export default {
361
363
  } else {
362
364
  this.buttons = tempButtons
363
365
  }
364
- }
366
+ }
367
+ this.getCurrentActivityName()
365
368
  },
366
369
  methods: {
367
370
  ...Util,
@@ -397,7 +400,11 @@ export default {
397
400
  }
398
401
  },
399
402
  getCurrentActivityName() {
400
- return getStoreInfo(this.pageCode, '_currentActivityName')
403
+ let formData
404
+ if (this.myFormDataFun) {
405
+ formData = this.myFormDataFun()
406
+ this.currentActivityName = getValueByField(formData, 'current_activity_name')
407
+ }
401
408
  },
402
409
  updateButton(workflowButtonComponent) {
403
410
  console.log(this.workflowButtonComponent)
@@ -413,7 +420,7 @@ export default {
413
420
  const buttonInfo = this.packageButtonInfoForVisible()
414
421
  this.buttonInfo = Object.assign({}, workflowButtonComponent, buttonInfo)
415
422
  // 待领取时不显示暂存按钮
416
- if (this.buttonInfo['active'] === 'DRAW_WAIT') {
423
+ if (this.buttonInfo['active'] === 'DRAW_WAIT' || this.buttonInfo['active'] === 'DEPT_DRAW_WAIT') {
417
424
  this.buttonInfo['isShowButtonSave'] = false
418
425
  this.buttonInfo['showButtonSave'] = false
419
426
  }
@@ -556,6 +563,6 @@ export default {
556
563
  $emit(this, 'prohibi-edit', data)
557
564
  },
558
565
  },
559
- emits: ['workflowClick', 'prohibi-edit','click'],
566
+ emits: ['workflowClick', 'prohibi-edit','click', 'workflowClick', 'getPageParam'],
560
567
  }
561
568
  </script>
@@ -34,6 +34,7 @@
34
34
  @click="clickWorkflowExtensionButtonOn"
35
35
  @refreshFrom="clickRefreshFrom"
36
36
  @prohibi-edit="fnProhibitToEdit"
37
+ @getPageParam="getFormPageParam"
37
38
  />
38
39
  <form-head
39
40
  v-if="formTitle || formNo || formNoLabel"
@@ -392,7 +393,8 @@ export default {
392
393
  operation,
393
394
  eventSetting,
394
395
  workflowButton,
395
- completeTaskParam
396
+ completeTaskParam,
397
+ clickParam
396
398
  ) {
397
399
  console.log('clickWorkflowButtonOn-eventSetting', eventSetting)
398
400
  // console.log('----clickWorkflowButton---', event, operation, eventSetting, workflowButton)
@@ -538,7 +540,10 @@ export default {
538
540
  if (event === 'returnTaskTo') {
539
541
  // 退回按钮
540
542
  this.dataConversionRule = dataConversionRule
541
- this.getTaskInformitions(this.system, this.entityName, this.beanName)
543
+ this.getTaskInformitions(this.system, this.entityName, this.beanName)
544
+ } else if (event === 'customReturnTaskTo') {
545
+ // 自定义退回按钮
546
+ this.customReturnTaskTo(model, clickParam.selectTaskNode)
542
547
  } else if (event === 'returnToPreviousTask') {
543
548
  // 驳回
544
549
  this.returnToPreviousTask(
@@ -635,7 +640,7 @@ export default {
635
640
  let isEnableRequired = false
636
641
  if (
637
642
  typeof button.isRequired === 'undefined' &&
638
- button.code === 'exportForm'
643
+ (button.code === 'exportForm' || button.code === 'exportPDF')
639
644
  ) {
640
645
  // 导出报告按钮不验证表单
641
646
  isEnableRequired = false
@@ -756,8 +761,8 @@ export default {
756
761
  this.beanName,
757
762
  button
758
763
  )
759
- } else if (button.code === 'exportForm') {
760
- // 表示点了“导出报告”
764
+ } else if (button.code === 'exportForm' || button.code === 'exportPDF') {
765
+ // 表示点了“导出报告“或导出pdf
761
766
  this.exportFormReport(
762
767
  button.templateUUID,
763
768
  button.templateShowPath,
@@ -987,7 +992,7 @@ export default {
987
992
  // 修改页面
988
993
  param.id = this.dataId
989
994
  } else {
990
- if (sessionStorage.getItem(this.$route.query._t_) && sessionStorage.getItem(this.$route.query._t_ + '_id')) {
995
+ if (this.$route.query._t_ && sessionStorage.getItem(this.$route.query._t_ + '_id')) {
991
996
  param.id = sessionStorage.getItem(this.$route.query._t_ + '_id')
992
997
  }
993
998
  // 新建页面
@@ -1302,7 +1307,10 @@ export default {
1302
1307
  this.reviewButton(entity)
1303
1308
  return this.$refs.superForm.refresMainTableFields(entity)
1304
1309
  }
1305
- },
1310
+ },
1311
+ getFormPageParam (key, callback) {
1312
+ callback(this[key])
1313
+ }
1306
1314
  },
1307
1315
  emits: [],
1308
1316
  }
@@ -1,9 +1,9 @@
1
- // 本文件用来导出单个组件
2
- import SuperPageDialog from './src/super-page-dialog.vue'
3
-
4
- // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
- SuperPageDialog.install = function (Vue) {
6
- window.$vueApp.component(SuperPageDialog.name, SuperPageDialog)
7
- }
8
-
9
- export default SuperPageDialog
1
+ // 本文件用来导出单个组件
2
+ import SuperPageDialog from './src/super-page-dialog.vue'
3
+
4
+ // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
+ SuperPageDialog.install = function (Vue) {
6
+ window.$vueApp.component(SuperPageDialog.name, SuperPageDialog)
7
+ }
8
+
9
+ export default SuperPageDialog