doway-coms 2.11.76 → 2.11.78

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 (92) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
  4. package/dist/css/index.7946d50b.css +1 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.28fda91d.js +340 -0
  7. package/dist/js/index.49bc6add.js +2 -0
  8. package/lib/doway-coms.common.js +120397 -0
  9. package/lib/doway-coms.css +1 -0
  10. package/lib/doway-coms.umd.js +120407 -0
  11. package/lib/doway-coms.umd.min.js +328 -0
  12. package/package.json +62 -62
  13. package/packages/AuditsList/index.js +7 -7
  14. package/packages/AuditsList/src/index.vue +314 -314
  15. package/packages/BaseButton/index.js +7 -7
  16. package/packages/BaseButton/src/index.vue +242 -242
  17. package/packages/BaseCheckbox/index.js +7 -7
  18. package/packages/BaseCheckbox/src/index.vue +134 -134
  19. package/packages/BaseDate/index.js +7 -7
  20. package/packages/BaseDate/src/index.vue +233 -233
  21. package/packages/BaseDateWeek/index.js +7 -7
  22. package/packages/BaseDateWeek/src/index.vue +163 -163
  23. package/packages/BaseDatetime/index.js +7 -7
  24. package/packages/BaseDatetime/src/index.vue +196 -196
  25. package/packages/BaseFileGroup/index.js +7 -7
  26. package/packages/BaseFileGroup/src/index.vue +724 -724
  27. package/packages/BaseForm/index.js +7 -7
  28. package/packages/BaseForm/src/index.vue +902 -901
  29. package/packages/BaseGantt/index.js +9 -9
  30. package/packages/BaseGantt/src/index.vue +617 -617
  31. package/packages/BaseGrid/index.js +9 -9
  32. package/packages/BaseGrid/src/exportCmp.vue +105 -105
  33. package/packages/BaseGrid/src/gridApi.js +32 -32
  34. package/packages/BaseGrid/src/index.vue +4607 -4607
  35. package/packages/BaseGridAdjust/index.js +9 -9
  36. package/packages/BaseGridAdjust/src/index.vue +482 -482
  37. package/packages/BaseInput/index.js +7 -7
  38. package/packages/BaseInput/src/index.vue +207 -207
  39. package/packages/BaseIntervalInput/index.js +7 -7
  40. package/packages/BaseIntervalInput/src/index.vue +316 -310
  41. package/packages/BaseKanbanEmpty/index.js +7 -7
  42. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  43. package/packages/BaseNumberInput/index.js +7 -7
  44. package/packages/BaseNumberInput/src/index.vue +278 -278
  45. package/packages/BasePagination/index.js +7 -7
  46. package/packages/BasePagination/src/index.vue +90 -90
  47. package/packages/BasePictureCard/index.js +7 -7
  48. package/packages/BasePictureCard/src/index.vue +671 -671
  49. package/packages/BasePrintPreview/index.js +7 -7
  50. package/packages/BasePrintPreview/src/index.vue +150 -150
  51. package/packages/BasePulldown/index.js +7 -7
  52. package/packages/BasePulldown/src/index.vue +1400 -1400
  53. package/packages/BaseSearch/index.js +7 -7
  54. package/packages/BaseSearch/src/index.vue +935 -935
  55. package/packages/BaseSelect/index.js +7 -7
  56. package/packages/BaseSelect/src/index.vue +169 -162
  57. package/packages/BaseSelectMulti/index.js +7 -7
  58. package/packages/BaseSelectMulti/src/index.vue +148 -148
  59. package/packages/BaseTextArea/index.js +7 -7
  60. package/packages/BaseTextArea/src/index.vue +197 -197
  61. package/packages/BaseTime/index.js +7 -7
  62. package/packages/BaseTime/src/index.vue +166 -166
  63. package/packages/BaseTool/index.js +7 -7
  64. package/packages/BaseTool/src/index.vue +353 -353
  65. package/packages/BaseToolStatus/index.js +7 -7
  66. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  67. package/packages/BaseToolStatus/src/index.vue +439 -439
  68. package/packages/BaseTreeSelect/index.js +8 -8
  69. package/packages/BaseTreeSelect/src/index.vue +437 -437
  70. package/packages/HistoryModal/index.js +8 -8
  71. package/packages/HistoryModal/src/index.vue +161 -161
  72. package/packages/LeaveAMessage/index.js +7 -7
  73. package/packages/LeaveAMessage/src/index.vue +601 -601
  74. package/packages/directive/clickoutside.js +44 -44
  75. package/packages/index.js +197 -197
  76. package/packages/styles/default.css +78 -78
  77. package/packages/styles/default.less +91 -91
  78. package/packages/styles/hps/default.less +73 -73
  79. package/packages/utils/api.js +128 -128
  80. package/packages/utils/auth.js +38 -38
  81. package/packages/utils/common.js +728 -728
  82. package/packages/utils/dom.js +181 -181
  83. package/packages/utils/enum.js +86 -86
  84. package/packages/utils/filters.js +542 -542
  85. package/packages/utils/gridFormat.js +66 -66
  86. package/packages/utils/msg.js +104 -104
  87. package/packages/utils/patchFiles.js +44 -44
  88. package/packages/utils/request.js +181 -181
  89. package/packages/utils/store.js +378 -378
  90. package/packages/utils/tscPrinter.js +101 -101
  91. package/sync.bash +6 -6
  92. package/vue.config.js +59 -59
@@ -1,310 +1,316 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
4
- {{ label
5
- }}
6
- <span
7
- v-if="rules && Object.getOwnPropertyNames(rules).length > 0"
8
- class="d-control-label-required"
9
- >*</span
10
- >
11
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
12
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
13
- </Tooltip>
14
- </div>
15
- <div class="d-control" style="font-size:12px">
16
- <ValidationProvider
17
- :name="label"
18
- v-slot="v"
19
- :rules="rules"
20
- v-if="edit === true"
21
- >
22
- <input v-model="currentValue" style="display:none" />
23
- <div style="display:flex;flex-flow:row nowrap">
24
- <input
25
- type="number"
26
- v-model="dayValue"
27
- @input="dayChange"
28
- @focus="dayFocus"
29
- class="input-class"
30
- />
31
- <div style="width:18px;margin-left:2px">
32
- <span>天</span>
33
- </div>
34
- <input
35
- type="number"
36
- v-model="hourValue"
37
- @input="hourChange"
38
- @focus="hourFocus"
39
- class="input-class"
40
- />
41
- <div style="width:30px">
42
- <span>小时</span>
43
- </div>
44
- <input
45
- @input="minuteChange"
46
- v-if="displayType === 'minute' || displayType === 'second'"
47
- type="number"
48
- v-model="minuteValue"
49
- @focus="minuteFocus"
50
- class="input-class"
51
- />
52
- <div
53
- v-if="displayType === 'minute' || displayType === 'second'"
54
- style="width:30px"
55
- >
56
- <span>分钟</span>
57
- </div>
58
- <input
59
- @input="secondChange"
60
- v-if="displayType === 'second'"
61
- type="number"
62
- @focus="secondFocus"
63
- v-model="secondValue"
64
- class="input-class"
65
- />
66
- <div v-if="displayType === 'second'" style="width:20px">
67
- <span>秒</span>
68
- </div>
69
- <input
70
- @input="secondTotalChange"
71
- v-if="displayType === 'second'"
72
- type="number"
73
- class="input-second-class"
74
- v-model="secondTotalValue"
75
- />
76
- </div>
77
- <div class="d-error-msg">
78
- {{ v.errors[0] }}
79
- </div>
80
- </ValidationProvider>
81
- <span v-else>{{ dayValue }}天{{ hourValue }}小时</span>
82
- </div>
83
- <div style="display:none">
84
- {{ currentValue }}
85
- </div>
86
- </div>
87
- </template>
88
-
89
- <script>
90
- import XEUtils from 'xe-utils'
91
- import moment from 'moment'
92
- import { ValidationProvider } from 'vee-validate'
93
- import { Tooltip } from 'ant-design-vue'
94
-
95
- export default {
96
- name: 'BaseIntervalInput',
97
- components:{
98
- ValidationProvider,
99
- Tooltip,
100
-
101
- },
102
- data() {
103
- return {
104
- dayValue: 0,
105
- hourValue: 0,
106
- minuteValue: 0,
107
- secondValue: 0,
108
- secondTotalValue: 0,
109
- testValue: 0,
110
- filterValue: '',
111
- isInputChanged: false,
112
- inputTimeout: null,
113
- searchRows: [],
114
- filterCols: [],
115
- gridLoading: false,
116
- gridPagerConfig: {
117
- total: 0,
118
- currentPage: 1,
119
- pageSize: 10
120
- }
121
- }
122
- },
123
- computed: {
124
- currentValue: {
125
- // 动态计算currentValue的值
126
- get: function() {
127
- console.debug('get value')
128
- //分钟计算成小时
129
- let tempValue = this.value
130
- if (this.valueType === 'hour') {
131
- tempValue = XEUtils.multiply(tempValue, 3600)
132
- } else if (this.valueType === 'minute') {
133
- tempValue = XEUtils.multiply(tempValue, 60)
134
- }
135
- //设置天数
136
- this.dayValue = XEUtils.floor(XEUtils.divide(tempValue, 24 * 3600))
137
- //天之后的剩余秒数
138
- tempValue = XEUtils.subtract(tempValue, this.dayValue * 3600 * 24)
139
- if (tempValue >= 0) {
140
- //设置小时数
141
- this.hourValue = XEUtils.floor(XEUtils.divide(tempValue, 3600))
142
- //小时之后的剩余秒数
143
- tempValue = XEUtils.subtract(tempValue, this.hourValue * 3600)
144
- }
145
- if (tempValue >= 0) {
146
- //设置分钟
147
- this.minuteValue = XEUtils.floor(XEUtils.divide(tempValue, 60))
148
- //小时之后的剩余秒数
149
- tempValue = XEUtils.subtract(tempValue, this.minuteValue * 60)
150
- }
151
- if (tempValue >= 0) {
152
- //设置秒数
153
- this.secondValue = tempValue
154
- }
155
- this.secondTotalValue = this.value
156
-
157
- return this.value // 将props中的value赋值给currentValue
158
- },
159
- set: function(val) {
160
- if (val === '') {
161
- val = 0
162
- }
163
- if (XEUtils.isNumber(val)) {
164
- this.$emit('input', XEUtils.toInteger(val))
165
- }
166
- // 通过$emit触发父组件
167
- }
168
- }
169
- },
170
- props: {
171
- value: {
172
- type: Number,
173
- default: function() {
174
- return 0
175
- }
176
- },
177
- rules: {
178
- type: Object,
179
- default: function() {
180
- return null
181
- }
182
- },
183
- displayType: {
184
- type: String,
185
- default: function() {
186
- return ''
187
- }
188
- },
189
- valueType: {
190
- type: String,
191
- default: function() {
192
- return ''
193
- }
194
- },
195
- edit: {
196
- type: Boolean,
197
- default: function() {
198
- return false
199
- }
200
- },
201
- name: {
202
- type: String,
203
- default: function() {
204
- return ''
205
- }
206
- },
207
- label: {
208
- type: String,
209
- default: function() {
210
- return ''
211
- }
212
- },
213
- placeholder: {
214
- type: String,
215
- default: function() {
216
- return ''
217
- }
218
- },
219
- tooltip: {
220
- type: String,
221
- default: function() {
222
- return ''
223
- }
224
- }
225
- },
226
- created() {},
227
- methods: {
228
- dayFocus($event) {
229
- $event.target.select()
230
- },
231
- hourFocus($event) {
232
- $event.target.select()
233
- },
234
- minuteFocus($event) {
235
- $event.target.select()
236
- },
237
- secondFocus($event) {
238
- $event.target.select()
239
- },
240
- dayChange() {
241
- this.setCurrentValue()
242
- this.$emit('change')
243
- },
244
- hourChange() {
245
- this.setCurrentValue()
246
- this.$emit('change')
247
- },
248
- minuteChange() {
249
- this.setCurrentValue()
250
- this.$emit('change')
251
- },
252
- secondChange() {
253
- this.setCurrentValue()
254
- this.$emit('change')
255
- },
256
- secondTotalChange() {
257
- this.currentValue = XEUtils.toNumber(this.secondTotalValue)
258
- this.$emit('change')
259
- },
260
- setCurrentValue() {
261
- if (this.valueType === 'hour') {
262
- this.currentValue =
263
- XEUtils.multiply(this.dayValue, 24) +
264
- XEUtils.toInteger(this.hourValue)
265
- }
266
- if (this.valueType === 'minute') {
267
- this.currentValue =
268
- XEUtils.multiply(this.dayValue, 24 * 60) +
269
- XEUtils.multiply(this.hourValue, 60) +
270
- XEUtils.toInteger(this.minuteValue)
271
- }
272
- if (this.valueType === 'second') {
273
- this.currentValue =
274
- XEUtils.multiply(this.dayValue, 24 * 3600) +
275
- XEUtils.multiply(this.hourValue, 3600) +
276
- XEUtils.multiply(this.minuteValue, 60) +
277
- XEUtils.toInteger(this.secondValue)
278
- }
279
- }
280
- }
281
- }
282
- </script>
283
-
284
- <style lang="scss" scoped>
285
- .input-class {
286
- border-top: none;
287
- border-right: none;
288
- border-left: none;
289
- outline: none;
290
- width: 25px;
291
- }
292
- .input-second-class {
293
- border-top: none;
294
- border-right: none;
295
- border-left: none;
296
- outline: none;
297
- width: 100px;
298
- }
299
- input[type="number"] {
300
- &::-webkit-outer-spin-button,
301
- &::-webkit-inner-spin-button {
302
- -webkit-appearance: none;
303
- }
304
-
305
- -moz-appearance: textfield;
306
- }
307
- </style>
308
- <style lang="less">
309
- @import '../../styles/default.less';
310
- </style>
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
4
+ {{ label
5
+ }}
6
+ <span
7
+ v-if="rules && Object.getOwnPropertyNames(rules).length > 0"
8
+ class="d-control-label-required"
9
+ >*</span
10
+ >
11
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
12
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
13
+ </Tooltip>
14
+ </div>
15
+ <div class="d-control" style="font-size:12px">
16
+ <ValidationProvider
17
+ :name="label"
18
+ v-slot="v"
19
+ :rules="rules"
20
+ v-if="edit === true"
21
+ >
22
+ <input v-model="currentValue" style="display:none" />
23
+ <div style="display:flex;flex-flow:row nowrap">
24
+ <input
25
+ type="number"
26
+ v-model="dayValue"
27
+ @input="dayChange"
28
+ @focus="dayFocus"
29
+ class="input-class"
30
+ />
31
+ <div style="width:18px;margin-left:2px">
32
+ <span>天</span>
33
+ </div>
34
+ <input
35
+ type="number"
36
+ v-model="hourValue"
37
+ @input="hourChange"
38
+ @focus="hourFocus"
39
+ class="input-class"
40
+ />
41
+ <div style="width:30px">
42
+ <span>小时</span>
43
+ </div>
44
+ <input
45
+ @input="minuteChange"
46
+ v-if="displayType === 'minute' || displayType === 'second'"
47
+ type="number"
48
+ v-model="minuteValue"
49
+ @focus="minuteFocus"
50
+ class="input-class"
51
+ />
52
+ <div
53
+ v-if="displayType === 'minute' || displayType === 'second'"
54
+ style="width:30px"
55
+ >
56
+ <span>分钟</span>
57
+ </div>
58
+ <input
59
+ @input="secondChange"
60
+ v-if="displayType === 'second'"
61
+ type="number"
62
+ @focus="secondFocus"
63
+ v-model="secondValue"
64
+ class="input-class"
65
+ />
66
+ <div v-if="displayType === 'second'" style="width:20px">
67
+ <span>秒</span>
68
+ </div>
69
+ <input
70
+ @input="secondTotalChange"
71
+ v-if="displayType === 'second'"
72
+ type="number"
73
+ class="input-second-class"
74
+ v-model="secondTotalValue"
75
+ />
76
+ </div>
77
+ <div class="d-error-msg">
78
+ {{ v.errors[0] }}
79
+ </div>
80
+ </ValidationProvider>
81
+ <span v-else>
82
+ <template v-if="displayType === 'second'">{{ dayValue }} 天 {{ hourValue }} 小时 {{ minuteValue }} 分钟 {{ secondValue }} 秒</template>
83
+ <template v-else-if="displayType === 'minute'">{{ dayValue }} 天 {{ hourValue }} 小时 {{ minuteValue }} 分钟</template>
84
+ <template v-else-if="displayType === 'hour'">{{ dayValue }} 天 {{ hourValue }} 小时</template>
85
+ <template v-else>显示格式{{displayType}}错误</template>
86
+ </span>
87
+ <!-- <span v-else>{{ dayValue }}天{{ hourValue }}小时</span> -->
88
+ </div>
89
+ <div style="display:none">
90
+ {{ currentValue }}
91
+ </div>
92
+ </div>
93
+ </template>
94
+
95
+ <script>
96
+ import XEUtils from 'xe-utils'
97
+ import moment from 'moment'
98
+ import { ValidationProvider } from 'vee-validate'
99
+ import { Tooltip } from 'ant-design-vue'
100
+
101
+ export default {
102
+ name: 'BaseIntervalInput',
103
+ components:{
104
+ ValidationProvider,
105
+ Tooltip,
106
+
107
+ },
108
+ data() {
109
+ return {
110
+ dayValue: 0,
111
+ hourValue: 0,
112
+ minuteValue: 0,
113
+ secondValue: 0,
114
+ secondTotalValue: 0,
115
+ testValue: 0,
116
+ filterValue: '',
117
+ isInputChanged: false,
118
+ inputTimeout: null,
119
+ searchRows: [],
120
+ filterCols: [],
121
+ gridLoading: false,
122
+ gridPagerConfig: {
123
+ total: 0,
124
+ currentPage: 1,
125
+ pageSize: 10
126
+ }
127
+ }
128
+ },
129
+ computed: {
130
+ currentValue: {
131
+ // 动态计算currentValue的值
132
+ get: function() {
133
+ console.debug('get value')
134
+ //分钟计算成小时
135
+ let tempValue = this.value
136
+ if (this.valueType === 'hour') {
137
+ tempValue = XEUtils.multiply(tempValue, 3600)
138
+ } else if (this.valueType === 'minute') {
139
+ tempValue = XEUtils.multiply(tempValue, 60)
140
+ }
141
+ //设置天数
142
+ this.dayValue = XEUtils.floor(XEUtils.divide(tempValue, 24 * 3600))
143
+ //天之后的剩余秒数
144
+ tempValue = XEUtils.subtract(tempValue, this.dayValue * 3600 * 24)
145
+ if (tempValue >= 0) {
146
+ //设置小时数
147
+ this.hourValue = XEUtils.floor(XEUtils.divide(tempValue, 3600))
148
+ //小时之后的剩余秒数
149
+ tempValue = XEUtils.subtract(tempValue, this.hourValue * 3600)
150
+ }
151
+ if (tempValue >= 0) {
152
+ //设置分钟
153
+ this.minuteValue = XEUtils.floor(XEUtils.divide(tempValue, 60))
154
+ //小时之后的剩余秒数
155
+ tempValue = XEUtils.subtract(tempValue, this.minuteValue * 60)
156
+ }
157
+ if (tempValue >= 0) {
158
+ //设置秒数
159
+ this.secondValue = tempValue
160
+ }
161
+ this.secondTotalValue = this.value
162
+
163
+ return this.value // 将props中的value赋值给currentValue
164
+ },
165
+ set: function(val) {
166
+ if (val === '') {
167
+ val = 0
168
+ }
169
+ if (XEUtils.isNumber(val)) {
170
+ this.$emit('input', XEUtils.toInteger(val))
171
+ }
172
+ // 通过$emit触发父组件
173
+ }
174
+ }
175
+ },
176
+ props: {
177
+ value: {
178
+ type: Number,
179
+ default: function() {
180
+ return 0
181
+ }
182
+ },
183
+ rules: {
184
+ type: Object,
185
+ default: function() {
186
+ return null
187
+ }
188
+ },
189
+ displayType: {
190
+ type: String,
191
+ default: function() {
192
+ return ''
193
+ }
194
+ },
195
+ valueType: {
196
+ type: String,
197
+ default: function() {
198
+ return ''
199
+ }
200
+ },
201
+ edit: {
202
+ type: Boolean,
203
+ default: function() {
204
+ return false
205
+ }
206
+ },
207
+ name: {
208
+ type: String,
209
+ default: function() {
210
+ return ''
211
+ }
212
+ },
213
+ label: {
214
+ type: String,
215
+ default: function() {
216
+ return ''
217
+ }
218
+ },
219
+ placeholder: {
220
+ type: String,
221
+ default: function() {
222
+ return ''
223
+ }
224
+ },
225
+ tooltip: {
226
+ type: String,
227
+ default: function() {
228
+ return ''
229
+ }
230
+ }
231
+ },
232
+ created() {},
233
+ methods: {
234
+ dayFocus($event) {
235
+ $event.target.select()
236
+ },
237
+ hourFocus($event) {
238
+ $event.target.select()
239
+ },
240
+ minuteFocus($event) {
241
+ $event.target.select()
242
+ },
243
+ secondFocus($event) {
244
+ $event.target.select()
245
+ },
246
+ dayChange() {
247
+ this.setCurrentValue()
248
+ this.$emit('change')
249
+ },
250
+ hourChange() {
251
+ this.setCurrentValue()
252
+ this.$emit('change')
253
+ },
254
+ minuteChange() {
255
+ this.setCurrentValue()
256
+ this.$emit('change')
257
+ },
258
+ secondChange() {
259
+ this.setCurrentValue()
260
+ this.$emit('change')
261
+ },
262
+ secondTotalChange() {
263
+ this.currentValue = XEUtils.toNumber(this.secondTotalValue)
264
+ this.$emit('change')
265
+ },
266
+ setCurrentValue() {
267
+ if (this.valueType === 'hour') {
268
+ this.currentValue =
269
+ XEUtils.multiply(this.dayValue, 24) +
270
+ XEUtils.toInteger(this.hourValue)
271
+ }
272
+ if (this.valueType === 'minute') {
273
+ this.currentValue =
274
+ XEUtils.multiply(this.dayValue, 24 * 60) +
275
+ XEUtils.multiply(this.hourValue, 60) +
276
+ XEUtils.toInteger(this.minuteValue)
277
+ }
278
+ if (this.valueType === 'second') {
279
+ this.currentValue =
280
+ XEUtils.multiply(this.dayValue, 24 * 3600) +
281
+ XEUtils.multiply(this.hourValue, 3600) +
282
+ XEUtils.multiply(this.minuteValue, 60) +
283
+ XEUtils.toInteger(this.secondValue)
284
+ }
285
+ }
286
+ }
287
+ }
288
+ </script>
289
+
290
+ <style lang="scss" scoped>
291
+ .input-class {
292
+ border-top: none;
293
+ border-right: none;
294
+ border-left: none;
295
+ outline: none;
296
+ width: 25px;
297
+ }
298
+ .input-second-class {
299
+ border-top: none;
300
+ border-right: none;
301
+ border-left: none;
302
+ outline: none;
303
+ width: 100px;
304
+ }
305
+ input[type="number"] {
306
+ &::-webkit-outer-spin-button,
307
+ &::-webkit-inner-spin-button {
308
+ -webkit-appearance: none;
309
+ }
310
+
311
+ -moz-appearance: textfield;
312
+ }
313
+ </style>
314
+ <style lang="less">
315
+ @import '../../styles/default.less';
316
+ </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseKanbanEmpty from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseKanbanEmpty.install = function(Vue) {
5
- Vue.component(BaseKanbanEmpty.name, BaseKanbanEmpty);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseKanbanEmpty from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseKanbanEmpty.install = function(Vue) {
5
+ Vue.component(BaseKanbanEmpty.name, BaseKanbanEmpty);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseKanbanEmpty;