meixioacomponent 0.4.2 → 0.4.6
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/lib/meixioacomponent.common.js +16241 -19856
- package/lib/meixioacomponent.umd.js +16353 -19968
- package/lib/meixioacomponent.umd.min.js +33 -34
- package/lib/style/element/index.css +1182 -1153
- package/lib/style/theme/light.less +5 -4
- package/package.json +2 -2
- package/packages/components/base/baseCropper/index.vue +2 -1
- package/packages/components/base/baseDialog/index.vue +13 -7
- package/packages/components/base/baseDrawer/index.vue +5 -2
- package/packages/components/base/baseIcon/index.vue +1 -2
- package/packages/components/base/baseList/index.js +6 -0
- package/packages/components/base/baseList/index.vue +48 -0
- package/packages/components/base/baseList/scrollbar/index.js +8 -0
- package/packages/components/base/baseList/scrollbar/src/bar.js +92 -0
- package/packages/components/base/baseList/scrollbar/src/main.js +150 -0
- package/packages/components/base/baseList/scrollbar/src/util.js +34 -0
- package/packages/components/base/baseNumberInput/index.js +6 -0
- package/packages/components/base/baseNumberInput/index.vue +191 -0
- package/packages/components/base/basePlainTable/basePlainTable.vue +78 -12
- package/packages/components/base/basePopoverButton/index.vue +1 -1
- package/packages/components/base/baseSection/baseSection.vue +24 -11
- package/packages/components/base/baseSingleImgUpload/index.js +6 -0
- package/packages/components/base/baseSingleImgUpload/index.vue +147 -0
- package/packages/components/base/baseStoreSelect/index.js +6 -0
- package/packages/components/base/baseStoreSelect/index.vue +159 -0
- package/packages/components/base/baseToggle/toggle.vue +22 -3
- package/packages/components/base/baseTreeSelect/index.vue +7 -1
- package/packages/components/base/baseUpload/baseUpload.vue +23 -0
- package/packages/components/base/baseUpload/baseUploadItem.vue +2 -3
- package/packages/components/base/baseUpload/mixins.js +12 -2
- package/packages/components/base/baseUploadTemplate/index.vue +19 -3
- package/packages/components/base/upload/upload.vue +36 -13
- package/packages/components/base/upload/uploadItem.vue +40 -17
- package/packages/components/dynamicmount/index.js +30 -29
- package/packages/components/index.js +19 -2
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +29 -19
- package/packages/components/proForm/proForm/proFormItem/index.js +6 -0
- package/packages/components/proForm/proForm/{pro_form_item.vue → proFormItem/pro_form_item.vue} +161 -99
- package/packages/components/proForm/proForm/pro_form.vue +70 -16
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +70 -28
- package/packages/components/proPageTable/oa_pro_colum_config.vue +24 -28
- package/packages/components/proPageTable/oa_pro_footer.vue +12 -10
- package/packages/components/proPageTable/oa_pro_screen.vue +1 -0
- package/packages/components/proPageTable/oa_pro_screen_item.vue +6 -6
- package/packages/components/proPageTable/oa_pro_table.vue +44 -20
- package/packages/components/style/element/index.css +1182 -1153
- package/packages/components/style/theme/light.less +5 -4
- package/packages/config/selectStore/SelectStore.js +26 -17
- package/packages/config/uploadRequest.js +1 -0
- package/packages/utils/upload.js +22 -21
- package/packages/utils/utils.js +110 -111
- package/src/App.vue +9 -14
- package/src/component/test.vue +333 -233
- package/src/component/testSelectStore.js +25 -13
- package/src/config/CompanyInfoConfig.js +4 -2
- package/packages/components/base/brieflyItem.vue +0 -198
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
//滚动条样式
|
|
13
13
|
--scrollbar-color: #1f23392d;
|
|
14
14
|
// 灰色类型
|
|
15
|
-
--color-gray-d: #dfe1e6;
|
|
15
|
+
// --color-gray-d: #dfe1e6;
|
|
16
|
+
--color-gray-d: #ebecf0;
|
|
16
17
|
--color-gray-m: #f4f5f7;
|
|
17
18
|
--color-gray-s: #fafbfc;
|
|
18
19
|
|
|
@@ -20,10 +21,10 @@
|
|
|
20
21
|
--font-color-d: #172b4d;
|
|
21
22
|
--font-color-m: #344563;
|
|
22
23
|
--font-color-s: #5e6c84;
|
|
23
|
-
--font-color-ds: #8f959e;
|
|
24
|
+
--font-color-ds: #8f959e;
|
|
24
25
|
// 字体颜色 按钮等primary 里面文字的白色非必要不要改
|
|
25
26
|
--text-white: white;
|
|
26
|
-
--form-label-color: #
|
|
27
|
+
--form-label-color: #42526E;
|
|
27
28
|
// 下拉 使用的组件包括:下拉菜单 / 气泡确认框 / 选择器 /
|
|
28
29
|
--shadow-down: 0px 4px 10px rgba(0, 0, 0, 0.05);
|
|
29
30
|
// fixed 使用的组件包括:全局提示 / 消息通知
|
|
@@ -35,4 +36,4 @@
|
|
|
35
36
|
--color-table-header: #ebecf0;
|
|
36
37
|
// tooltip 背景颜色
|
|
37
38
|
--color-tooltip: #242424;
|
|
38
|
-
}
|
|
39
|
+
}
|
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
class SelectStore {
|
|
2
2
|
constructor(params) {
|
|
3
|
-
this.data =
|
|
4
|
-
this.loading = false
|
|
5
|
-
this.name = params.name
|
|
6
|
-
this.request = params.request
|
|
3
|
+
this.data = null
|
|
4
|
+
this.loading = false
|
|
5
|
+
this.name = params.name
|
|
6
|
+
this.request = params.request
|
|
7
7
|
this.config = {
|
|
8
|
-
label:
|
|
9
|
-
value:
|
|
10
|
-
}
|
|
8
|
+
label: 'label',
|
|
9
|
+
value: 'value',
|
|
10
|
+
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
async loadData() {
|
|
13
|
+
async loadData(params) {
|
|
14
14
|
if (this.loading) {
|
|
15
|
-
return
|
|
15
|
+
return
|
|
16
16
|
}
|
|
17
|
-
this.loading = true
|
|
18
|
-
let result =
|
|
17
|
+
this.loading = true
|
|
18
|
+
let result = []
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
try {
|
|
21
|
+
result = await this.request(params)
|
|
22
|
+
} catch (error) {
|
|
23
|
+
} finally {
|
|
24
|
+
this.loading = false
|
|
25
|
+
this.data = result
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
getData() {
|
|
25
|
-
return this.data
|
|
30
|
+
return this.data
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
getConfig() {
|
|
29
|
-
return this.config
|
|
34
|
+
return this.config
|
|
30
35
|
}
|
|
31
36
|
getLoading() {
|
|
32
|
-
return this.loading
|
|
37
|
+
return this.loading
|
|
38
|
+
}
|
|
39
|
+
cancelLoad() {
|
|
40
|
+
|
|
41
|
+
this.loading = false
|
|
33
42
|
}
|
|
34
43
|
}
|
|
35
44
|
|
|
36
|
-
export default SelectStore
|
|
45
|
+
export default SelectStore
|
package/packages/utils/upload.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import axios from
|
|
2
|
-
import uploadRequest from
|
|
1
|
+
import axios from 'axios'
|
|
2
|
+
import uploadRequest from '../config/uploadRequest'
|
|
3
3
|
// state 0是未开始 1是已完成 2是以失败
|
|
4
4
|
class Upload {
|
|
5
5
|
constructor(config) {
|
|
6
|
-
this.file = config.file
|
|
7
|
-
this.state = 0
|
|
8
|
-
this.cancelToken = axios.CancelToken.source()
|
|
6
|
+
this.file = config.file
|
|
7
|
+
this.state = 0
|
|
8
|
+
this.cancelToken = axios.CancelToken.source()
|
|
9
9
|
this.uploadProgressFn = config.uploadProgressFn
|
|
10
10
|
? config.uploadProgressFn
|
|
11
|
-
: () => {}
|
|
11
|
+
: () => {}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
async start() {
|
|
15
15
|
return new Promise(async (resolve, reject) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
try {
|
|
17
|
+
let uploadEdUrl = await uploadRequest(
|
|
18
|
+
this.file,
|
|
19
|
+
this.uploadProgressFn,
|
|
20
|
+
this.cancelToken,
|
|
21
|
+
)
|
|
22
|
+
this.state = 1
|
|
23
|
+
resolve(uploadEdUrl)
|
|
24
|
+
} catch (error) {
|
|
25
|
+
this.state = 2
|
|
26
|
+
reject(error)
|
|
27
|
+
} finally {
|
|
28
|
+
}
|
|
29
|
+
})
|
|
29
30
|
}
|
|
30
31
|
cancel() {
|
|
31
|
-
this.cancelToken.cancel(
|
|
32
|
+
this.cancelToken.cancel('取消接口')
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export default Upload
|
|
36
|
+
export default Upload
|
package/packages/utils/utils.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import dayjs from
|
|
1
|
+
import dayjs from 'dayjs'
|
|
2
2
|
|
|
3
|
-
export const formatDate = (dateObj, fmt =
|
|
4
|
-
const date = new Date(dateObj)
|
|
3
|
+
export const formatDate = (dateObj, fmt = 'YYYY-MM-DD hh:mm:ss') => {
|
|
4
|
+
const date = new Date(dateObj)
|
|
5
5
|
if (/(Y+)/.test(fmt)) {
|
|
6
6
|
fmt = fmt.replace(
|
|
7
7
|
RegExp.$1,
|
|
8
|
-
(date.getFullYear() +
|
|
9
|
-
)
|
|
8
|
+
(date.getFullYear() + '').substr(4 - RegExp.$1.length),
|
|
9
|
+
)
|
|
10
10
|
}
|
|
11
11
|
const o = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
12
|
+
'M+': date.getMonth() + 1,
|
|
13
|
+
'D+': date.getDate(),
|
|
14
|
+
'h+': date.getHours(),
|
|
15
|
+
'm+': date.getMinutes(),
|
|
16
|
+
's+': date.getSeconds(),
|
|
17
|
+
}
|
|
18
18
|
for (let k in o) {
|
|
19
|
-
if (new RegExp(
|
|
20
|
-
const str = o[k] +
|
|
19
|
+
if (new RegExp('(' + k + ')').test(fmt)) {
|
|
20
|
+
const str = o[k] + ''
|
|
21
21
|
fmt = fmt.replace(
|
|
22
22
|
RegExp.$1,
|
|
23
|
-
RegExp.$1.length === 1 ? str : (
|
|
24
|
-
)
|
|
23
|
+
RegExp.$1.length === 1 ? str : ('00' + str).substr(str.length),
|
|
24
|
+
)
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
return fmt
|
|
28
|
-
}
|
|
27
|
+
return fmt
|
|
28
|
+
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @title 获取文件后缀名
|
|
@@ -33,165 +33,164 @@ export const formatDate = (dateObj, fmt = "YYYY-MM-DD hh:mm:ss") => {
|
|
|
33
33
|
* @returns {String} 文件后缀名
|
|
34
34
|
*/
|
|
35
35
|
export const fileSuffix = (fileName) => {
|
|
36
|
-
return fileName.split(
|
|
37
|
-
}
|
|
36
|
+
return fileName.split('.').pop()
|
|
37
|
+
}
|
|
38
38
|
|
|
39
39
|
export const setLocalToken = (token) => {
|
|
40
|
-
window.localStorage.setItem(
|
|
41
|
-
}
|
|
40
|
+
window.localStorage.setItem('token', token)
|
|
41
|
+
}
|
|
42
42
|
|
|
43
43
|
// 过滤时间
|
|
44
44
|
export const FilterTime = (time = null, format) => {
|
|
45
|
-
let filterTime = null
|
|
46
|
-
let _time = time ? time : new Date().valueOf() / 1000;
|
|
45
|
+
let filterTime = null
|
|
47
46
|
switch (format) {
|
|
48
|
-
case
|
|
49
|
-
filterTime = dayjs(
|
|
50
|
-
break
|
|
51
|
-
case
|
|
52
|
-
filterTime = dayjs(
|
|
53
|
-
break
|
|
47
|
+
case 'YYYY-MM-DD HH:mm:ss':
|
|
48
|
+
filterTime = dayjs(parseInt(time)).format(`${format}`)
|
|
49
|
+
break
|
|
50
|
+
case 'YYYY-MM-DD':
|
|
51
|
+
filterTime = dayjs(parseInt(time)).format(`${format}`)
|
|
52
|
+
break
|
|
54
53
|
default:
|
|
55
|
-
break
|
|
54
|
+
break
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
return filterTime
|
|
59
|
-
}
|
|
57
|
+
return filterTime
|
|
58
|
+
}
|
|
60
59
|
|
|
61
60
|
export const GetToken = (tokenName) => {
|
|
62
|
-
return window.localStorage.getItem(`${tokenName}`)
|
|
63
|
-
}
|
|
61
|
+
return window.localStorage.getItem(`${tokenName}`)
|
|
62
|
+
}
|
|
64
63
|
export const SetToken = (tokenName, value) => {
|
|
65
|
-
window.localStorage.setItem(`${tokenName}`, value)
|
|
66
|
-
}
|
|
64
|
+
window.localStorage.setItem(`${tokenName}`, value)
|
|
65
|
+
}
|
|
67
66
|
export const RemoveToken = (tokenName) => {
|
|
68
|
-
window.localStorage.removeItem(`${tokenName}`)
|
|
69
|
-
}
|
|
67
|
+
window.localStorage.removeItem(`${tokenName}`)
|
|
68
|
+
}
|
|
70
69
|
|
|
71
70
|
export function isExternal(path) {
|
|
72
|
-
return /^(https?:|mailto:|tel:)/.test(path)
|
|
71
|
+
return /^(https?:|mailto:|tel:)/.test(path)
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
// array chunk方法1
|
|
76
75
|
export const ArrayChunk = (arr, size) => {
|
|
77
|
-
let _size = size || 1
|
|
78
|
-
let result = []
|
|
79
|
-
let l = arr.length
|
|
80
|
-
let s = Math.ceil(l / _size)
|
|
76
|
+
let _size = size || 1
|
|
77
|
+
let result = []
|
|
78
|
+
let l = arr.length
|
|
79
|
+
let s = Math.ceil(l / _size)
|
|
81
80
|
for (let i = 0; i < s; i++) {
|
|
82
|
-
result[i] = arr.slice(_size * i, _size * (i + 1))
|
|
81
|
+
result[i] = arr.slice(_size * i, _size * (i + 1))
|
|
83
82
|
}
|
|
84
|
-
return result
|
|
85
|
-
}
|
|
83
|
+
return result
|
|
84
|
+
}
|
|
86
85
|
|
|
87
86
|
// 文件大小
|
|
88
87
|
export const filterFileSize = (fileSize) => {
|
|
89
88
|
//console.log(fileSize);
|
|
90
|
-
let fileSizeByte = fileSize
|
|
91
|
-
let fileSizeMsg =
|
|
89
|
+
let fileSizeByte = fileSize
|
|
90
|
+
let fileSizeMsg = ''
|
|
92
91
|
if (fileSizeByte < 1048576)
|
|
93
|
-
fileSizeMsg = (fileSizeByte / 1024).toFixed(1) +
|
|
94
|
-
else if (fileSizeByte == 1048576) fileSizeMsg =
|
|
92
|
+
fileSizeMsg = (fileSizeByte / 1024).toFixed(1) + 'K'
|
|
93
|
+
else if (fileSizeByte == 1048576) fileSizeMsg = '1M'
|
|
95
94
|
else if (fileSizeByte > 1048576 && fileSizeByte < 1073741824)
|
|
96
|
-
fileSizeMsg = (fileSizeByte / (1024 * 1024)).toFixed(1) +
|
|
95
|
+
fileSizeMsg = (fileSizeByte / (1024 * 1024)).toFixed(1) + 'M'
|
|
97
96
|
else if (fileSizeByte > 1048576 && fileSizeByte == 1073741824)
|
|
98
|
-
fileSizeMsg =
|
|
97
|
+
fileSizeMsg = '1G'
|
|
99
98
|
else if (fileSizeByte > 1073741824 && fileSizeByte < 1099511627776)
|
|
100
|
-
fileSizeMsg = (fileSizeByte / (1024 * 1024 * 1024)).toFixed(1) +
|
|
101
|
-
else fileSizeMsg =
|
|
102
|
-
return fileSizeMsg
|
|
103
|
-
}
|
|
99
|
+
fileSizeMsg = (fileSizeByte / (1024 * 1024 * 1024)).toFixed(1) + 'G'
|
|
100
|
+
else fileSizeMsg = '文件超过1T'
|
|
101
|
+
return fileSizeMsg
|
|
102
|
+
}
|
|
104
103
|
|
|
105
104
|
export const jugeFileTypeKey = (suffix) => {
|
|
106
|
-
let key = null
|
|
105
|
+
let key = null
|
|
107
106
|
const jugeArray = [
|
|
108
107
|
{
|
|
109
|
-
list: [
|
|
110
|
-
key:
|
|
108
|
+
list: ['jpg', 'png'],
|
|
109
|
+
key: 'img',
|
|
111
110
|
},
|
|
112
111
|
{
|
|
113
|
-
list: [
|
|
114
|
-
key:
|
|
112
|
+
list: ['csv', 'xlsx', 'xls'],
|
|
113
|
+
key: 'Excel',
|
|
115
114
|
},
|
|
116
115
|
{
|
|
117
116
|
list: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
'wav',
|
|
118
|
+
'aif',
|
|
119
|
+
'au',
|
|
120
|
+
'mp3',
|
|
121
|
+
'ram',
|
|
122
|
+
'wma',
|
|
123
|
+
'mmf',
|
|
124
|
+
'amr',
|
|
125
|
+
'aac',
|
|
126
|
+
'flac',
|
|
128
127
|
],
|
|
129
|
-
key:
|
|
128
|
+
key: 'music',
|
|
130
129
|
},
|
|
131
130
|
|
|
132
131
|
{
|
|
133
|
-
list: [
|
|
134
|
-
key:
|
|
132
|
+
list: ['pdf'],
|
|
133
|
+
key: 'Pdf',
|
|
135
134
|
},
|
|
136
135
|
{
|
|
137
|
-
list: [
|
|
138
|
-
key:
|
|
136
|
+
list: ['ppt', 'pptx'],
|
|
137
|
+
key: 'PPT',
|
|
139
138
|
},
|
|
140
139
|
{
|
|
141
140
|
list: [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
141
|
+
'mp4',
|
|
142
|
+
'wmv',
|
|
143
|
+
'3gp',
|
|
144
|
+
'm4v',
|
|
145
|
+
'mov',
|
|
146
|
+
'avi',
|
|
147
|
+
'dat',
|
|
148
|
+
'mkv',
|
|
149
|
+
'flv',
|
|
150
|
+
'vob',
|
|
152
151
|
],
|
|
153
|
-
key:
|
|
152
|
+
key: 'shipin',
|
|
154
153
|
},
|
|
155
154
|
{
|
|
156
|
-
list: [
|
|
157
|
-
key:
|
|
155
|
+
list: ['txt'],
|
|
156
|
+
key: 'txt',
|
|
158
157
|
},
|
|
159
158
|
{
|
|
160
|
-
list: [
|
|
161
|
-
key:
|
|
159
|
+
list: ['doc', 'docx'],
|
|
160
|
+
key: 'Word',
|
|
162
161
|
},
|
|
163
162
|
{
|
|
164
|
-
list: [
|
|
165
|
-
key:
|
|
163
|
+
list: ['rar', 'zip', 'arj', 'z'],
|
|
164
|
+
key: 'yasuobao',
|
|
166
165
|
},
|
|
167
166
|
{
|
|
168
|
-
list: [
|
|
169
|
-
key:
|
|
167
|
+
list: ['exe'],
|
|
168
|
+
key: 'Exe',
|
|
170
169
|
},
|
|
171
|
-
]
|
|
170
|
+
]
|
|
172
171
|
for (let i = 0; i < jugeArray.length; i++) {
|
|
173
|
-
const is = jugeArray[i].list.includes(suffix)
|
|
172
|
+
const is = jugeArray[i].list.includes(suffix)
|
|
174
173
|
if (is) {
|
|
175
|
-
key = jugeArray[i].key
|
|
176
|
-
break
|
|
174
|
+
key = jugeArray[i].key
|
|
175
|
+
break
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
178
|
if (!key) {
|
|
180
|
-
key =
|
|
179
|
+
key = 'weizhiwenjian'
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
return key
|
|
184
|
-
}
|
|
182
|
+
return key
|
|
183
|
+
}
|
|
185
184
|
|
|
186
185
|
export const vhToNumber = (type, value) => {
|
|
187
|
-
if (type ==
|
|
188
|
-
let heightValue = window.innerHeight
|
|
189
|
-
console.log(heightValue)
|
|
190
|
-
return heightValue * (value / 100)
|
|
191
|
-
} else if (type ==
|
|
192
|
-
let widthValue = window.innerWidth
|
|
193
|
-
return widthValue * (value / 100)
|
|
186
|
+
if (type == 'height') {
|
|
187
|
+
let heightValue = window.innerHeight
|
|
188
|
+
console.log(heightValue)
|
|
189
|
+
return heightValue * (value / 100)
|
|
190
|
+
} else if (type == 'width') {
|
|
191
|
+
let widthValue = window.innerWidth
|
|
192
|
+
return widthValue * (value / 100)
|
|
194
193
|
} else {
|
|
195
|
-
return value
|
|
194
|
+
return value
|
|
196
195
|
}
|
|
197
|
-
}
|
|
196
|
+
}
|
package/src/App.vue
CHANGED
|
@@ -2,29 +2,24 @@
|
|
|
2
2
|
<div id="app">
|
|
3
3
|
<div style="height: 100vh;">
|
|
4
4
|
<testVue></testVue>
|
|
5
|
+
<!-- <base-upload-template></base-upload-template> -->
|
|
6
|
+
<!-- <base-popover-button
|
|
7
|
+
v-model="flag"
|
|
8
|
+
:buttonIcon="`el-icon-s-tools`"
|
|
9
|
+
:iconClass="`element`"
|
|
10
|
+
></base-popover-button> -->
|
|
5
11
|
</div>
|
|
6
12
|
</div>
|
|
7
13
|
</template>
|
|
8
14
|
|
|
9
15
|
<script>
|
|
10
16
|
import testVue from './component/test.vue'
|
|
11
|
-
import baseUploadTemplate from '../packages/components/base/baseUploadTemplate/index.vue'
|
|
12
|
-
import BaseArea from '../packages/components/base/baseArea/baseArea.vue'
|
|
13
|
-
import BaseTimeLine from '../packages/components/base/baseTimeLine/baseTimeLine.vue'
|
|
14
|
-
import BaseUpload from '../packages/components/base/baseUpload/baseUpload.vue'
|
|
15
|
-
import BaseUploadItem from '../packages/components/base/baseUpload/baseUploadItem.vue'
|
|
16
17
|
export default {
|
|
17
|
-
components: {
|
|
18
|
-
testVue,
|
|
19
|
-
BaseArea,
|
|
20
|
-
BaseTimeLine,
|
|
21
|
-
BaseUpload,
|
|
22
|
-
BaseUploadItem,
|
|
23
|
-
baseUploadTemplate,
|
|
24
|
-
},
|
|
18
|
+
components: { testVue },
|
|
25
19
|
data() {
|
|
26
20
|
return {
|
|
27
|
-
|
|
21
|
+
flag: false,
|
|
22
|
+
test: 5,
|
|
28
23
|
toggleList: [
|
|
29
24
|
{ label: '开启', value: true },
|
|
30
25
|
{ label: '关闭', value: false },
|