meixioacomponent 1.1.49 → 2.0.2
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/components/index.d.ts +1 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/config/use/UseImg.d.ts.map +1 -1
- package/lib/config/use/UseImg.js +1 -0
- package/lib/meixioacomponent.common.js +17542 -38683
- package/lib/meixioacomponent.umd.js +17594 -38735
- package/lib/meixioacomponent.umd.min.js +6 -159
- package/lib/style/font-family.less +2 -1
- package/lib/style/index.less +9 -2
- package/lib/style/meixioacomponenticonfont/TCloudNumberVF.ttf +0 -0
- package/lib/style/tableStyle.less +15 -13
- package/lib/style/tdesignStyle.less +9 -0
- package/lib/style/variables.less +1 -1
- package/package.json +3 -3
- package/packages/components/base/baseAppendix/baseAppendix.vue +12 -11
- package/packages/components/base/baseArea/baseArea.vue +49 -54
- package/packages/components/base/baseAvatar/baseAvatar.vue +16 -14
- package/packages/components/base/baseButton/baseButton.vue +80 -0
- package/packages/components/base/baseButton/index.js +6 -0
- package/packages/components/base/baseButtonHandle/baseButtonHandle.vue +36 -4
- package/packages/components/base/baseDialog/index.vue +131 -102
- package/packages/components/base/baseDialogTable/dialogTable.vue +1 -0
- package/packages/components/base/baseDrawer/index.vue +121 -96
- package/packages/components/base/baseEdito/baseEdito.vue +56 -50
- package/packages/components/base/baseFixedHeader/baseFixedHeader.vue +44 -37
- package/packages/components/base/baseImageViewer/image-viewer.vue +29 -311
- package/packages/components/base/baseImg/baseImg.vue +8 -7
- package/packages/components/base/baseInforWrap/baseInforWrap.vue +14 -7
- package/packages/components/base/baseLineInfoItem/baseLineInfoItem.vue +4 -4
- package/packages/components/base/baseList/index.vue +10 -23
- package/packages/components/base/baseMoverVerifiBar/baseMoverVerifiBar.vue +7 -13
- package/packages/components/base/baseNumberInput/index.vue +42 -158
- package/packages/components/base/basePagination/index.vue +24 -31
- package/packages/components/base/basePlainTable/basePlainTable.vue +89 -183
- package/packages/components/base/basePopoverButton/index.vue +45 -36
- package/packages/components/base/baseSection/baseSection.vue +17 -8
- package/packages/components/base/baseSingleImgUpload/index.vue +2 -2
- package/packages/components/base/baseSkeleton/baseSkeleton.vue +0 -1
- package/packages/components/base/baseStoreSelect/index.vue +48 -64
- package/packages/components/base/baseTag/index.vue +12 -96
- package/packages/components/base/baseText/index.vue +66 -79
- package/packages/components/base/baseTimeLine/baseTimeLineLeft.vue +1 -1
- package/packages/components/base/baseTimeLine/baseTimeLineRight.vue +1 -1
- package/packages/components/base/baseTimeTypeSelect/base_time_type_select.vue +73 -78
- package/packages/components/base/baseToggle/toggle.vue +28 -48
- package/packages/components/base/baseTreeSelect/index.vue +20 -147
- package/packages/components/base/baseUpload/baseUploadItem.vue +74 -77
- package/packages/components/base/baseUpload/mixins.js +0 -1
- package/packages/components/base/baseUpload/uploadMediaView.vue +14 -13
- package/packages/components/base/baseUploadImgAndName/index.vue +28 -11
- package/packages/components/base/baseUploadTemplate/index.vue +27 -11
- package/packages/components/base/baseVideo/index.vue +9 -7
- package/packages/components/base/upload/upload.vue +17 -14
- package/packages/components/base/upload/uploadItem.vue +40 -46
- package/packages/components/dialogCache/index.vue +30 -24
- package/packages/components/index.js +3 -3
- package/packages/components/index.ts +4 -3
- package/packages/components/mixins/tableSectionMixins.js +0 -12
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +17 -14
- package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +95 -79
- package/packages/components/proForm/proForm/pro_form.vue +47 -52
- package/packages/components/proPageTable/oaProTableSearch/oa_pro-table-search.vue +2 -2
- package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen.vue +19 -10
- package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen_item.vue +28 -27
- package/packages/components/proPageTable/oa_pro_colum_config.vue +8 -10
- package/packages/components/proPageTable/oa_pro_footer.vue +15 -15
- package/packages/components/proPageTable/oa_pro_table-header.vue +19 -31
- package/packages/components/proPageTable/oa_pro_table.vue +208 -284
- package/packages/components/proPageTable/oa_pro_table_check_handle_bar.vue +28 -16
- package/packages/components/searchHeader/searchHeader.vue +16 -17
- package/packages/components/style/font-family.less +2 -1
- package/packages/components/style/index.less +9 -2
- package/packages/components/style/meixioacomponenticonfont/TCloudNumberVF.ttf +0 -0
- package/packages/components/style/tableStyle.less +15 -13
- package/packages/components/style/tdesignStyle.less +9 -0
- package/packages/components/style/variables.less +1 -1
- package/packages/config/use/UseImg.js +1 -0
- package/packages/config/use/UseImg.ts +1 -0
- package/packages/utils/upload.js +61 -72
- package/packages/utils/utils.js +316 -276
- package/lib/fonts/element-icons.f1a45d74.ttf +0 -0
- package/lib/fonts/element-icons.ff18efd1.woff +0 -0
- package/lib/style/element/common_class.less +0 -3
- package/lib/style/element/fonts/element-icons.ttf +0 -0
- package/lib/style/element/fonts/element-icons.woff +0 -0
- package/lib/style/element/index.css +0 -30219
- package/packages/components/base/elDatePicker/basic/date-table.vue +0 -441
- package/packages/components/base/elDatePicker/basic/month-table.vue +0 -269
- package/packages/components/base/elDatePicker/basic/time-spinner.vue +0 -304
- package/packages/components/base/elDatePicker/basic/year-table.vue +0 -111
- package/packages/components/base/elDatePicker/index.js +0 -6
- package/packages/components/base/elDatePicker/index.vue +0 -28
- package/packages/components/base/elDatePicker/panel/date-range.vue +0 -680
- package/packages/components/base/elDatePicker/panel/date.vue +0 -609
- package/packages/components/base/elDatePicker/panel/month-range.vue +0 -289
- package/packages/components/base/elDatePicker/panel/time-range.vue +0 -248
- package/packages/components/base/elDatePicker/panel/time-select.vue +0 -178
- package/packages/components/base/elDatePicker/panel/time.vue +0 -186
- package/packages/components/base/elDatePicker/picker/date-picker.js +0 -55
- package/packages/components/base/elDatePicker/picker/time-picker.js +0 -39
- package/packages/components/base/elDatePicker/picker/time-select.js +0 -21
- package/packages/components/base/elDatePicker/picker.vue +0 -956
- package/packages/components/style/element/common_class.less +0 -3
- package/packages/components/style/element/fonts/element-icons.ttf +0 -0
- package/packages/components/style/element/fonts/element-icons.woff +0 -0
- package/packages/components/style/element/index.css +0 -30219
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="base-video-wrap" title="点击播放视频">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
></base-icon>
|
|
3
|
+
<t-button shape="square" variant="outline" @click="iconClick">
|
|
4
|
+
<template #icon>
|
|
5
|
+
<video-icon></video-icon>
|
|
6
|
+
</template>
|
|
7
|
+
</t-button>
|
|
9
8
|
</div>
|
|
10
9
|
</template>
|
|
11
10
|
|
|
12
11
|
<script>
|
|
12
|
+
import {VideoIcon} from "tdesign-icons-vue"
|
|
13
13
|
import useViewVideo from '../../../config/use/UseViewVideo'
|
|
14
14
|
|
|
15
15
|
export default {
|
|
@@ -17,7 +17,9 @@ export default {
|
|
|
17
17
|
data() {
|
|
18
18
|
return {}
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
components:{
|
|
21
|
+
VideoIcon
|
|
22
|
+
},
|
|
21
23
|
props: {
|
|
22
24
|
resource: {
|
|
23
25
|
type: String,
|
|
@@ -5,20 +5,19 @@
|
|
|
5
5
|
<span>附件上传</span>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="title-right">
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
></base-icon>
|
|
8
|
+
|
|
9
|
+
<t-button shape="square" variant="outline" @click="handleDown">
|
|
10
|
+
<template #icon>
|
|
11
|
+
<arrow-down-icon v-if="isDown"></arrow-down-icon>
|
|
12
|
+
<arrow-up-icon v-else></arrow-up-icon>
|
|
13
|
+
</template>
|
|
14
|
+
</t-button>
|
|
15
|
+
|
|
16
|
+
<t-button shape="square" variant="outline" @click="uploadCancel">
|
|
17
|
+
<template #icon>
|
|
18
|
+
<close-icon></close-icon>
|
|
19
|
+
</template>
|
|
20
|
+
</t-button>
|
|
22
21
|
</div>
|
|
23
22
|
<div v-if="isDown" :style="totalStyle" class="total-process-wrap"></div>
|
|
24
23
|
</div>
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
import uploadItemVue from "./uploadItem.vue";
|
|
38
37
|
//
|
|
39
38
|
import Upload from "../../../utils/upload";
|
|
39
|
+
import {ArrowDownIcon,ArrowUpIcon,CloseIcon} from "tdesign-icons-vue"
|
|
40
40
|
|
|
41
41
|
export default {
|
|
42
42
|
name: "upload",
|
|
@@ -52,6 +52,9 @@ export default {
|
|
|
52
52
|
},
|
|
53
53
|
components: {
|
|
54
54
|
uploadItemVue,
|
|
55
|
+
ArrowDownIcon,
|
|
56
|
+
ArrowUpIcon,
|
|
57
|
+
CloseIcon
|
|
55
58
|
},
|
|
56
59
|
props: {
|
|
57
60
|
toUploadList: {
|
|
@@ -16,42 +16,37 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class="item-status">
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
v-if="type == 'appendix' && !disabled"
|
|
40
|
-
@iconClick="handleClose"
|
|
41
|
-
:name="`meixicomponenticon-lajixiang`"
|
|
42
|
-
></base-icon>
|
|
19
|
+
<t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'upload'">
|
|
20
|
+
<template #icon>
|
|
21
|
+
<div v-if="process==100">
|
|
22
|
+
<check-icon v-if="upload.state==1 "></check-icon>
|
|
23
|
+
<close-icon v-else-if="upload.state==2"></close-icon>
|
|
24
|
+
</div>
|
|
25
|
+
<close-icon v-else></close-icon>
|
|
26
|
+
</template>
|
|
27
|
+
</t-button>
|
|
28
|
+
<t-button shape="square" variant="outline" @click="onHandleToDown" v-if="type == 'appendix' && url">
|
|
29
|
+
<template #icon>
|
|
30
|
+
<arrow-down-icon></arrow-down-icon>
|
|
31
|
+
</template>
|
|
32
|
+
</t-button>
|
|
33
|
+
|
|
34
|
+
<t-button shape="square" variant="outline" @click="handleClose" v-if="type == 'appendix' && !disabled">
|
|
35
|
+
<template #icon>
|
|
36
|
+
<delete-icon></delete-icon>
|
|
37
|
+
</template>
|
|
38
|
+
</t-button>
|
|
43
39
|
</div>
|
|
44
40
|
</div>
|
|
45
41
|
</template>
|
|
46
42
|
|
|
47
43
|
<script>
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
jugeFileTypeKey,
|
|
53
|
-
} from "../../../utils/utils";
|
|
44
|
+
import {fileSuffix, filterFileSize, fromUrlToDownFile, jugeFileTypeKey,} from "../../../utils/utils";
|
|
45
|
+
import {ArrowDownIcon, CheckIcon, CloseIcon, DeleteIcon} from "tdesign-icons-vue"
|
|
46
|
+
|
|
47
|
+
|
|
54
48
|
export default {
|
|
49
|
+
components: {DeleteIcon, ArrowDownIcon, CheckIcon, CloseIcon},
|
|
55
50
|
data() {
|
|
56
51
|
return {};
|
|
57
52
|
},
|
|
@@ -70,25 +65,12 @@ export default {
|
|
|
70
65
|
default: false,
|
|
71
66
|
},
|
|
72
67
|
},
|
|
73
|
-
created() {
|
|
68
|
+
created() {
|
|
69
|
+
},
|
|
74
70
|
computed: {
|
|
75
71
|
zhengqueShow() {
|
|
76
72
|
return this.process === 100 && this.$props.type === "upload";
|
|
77
73
|
},
|
|
78
|
-
|
|
79
|
-
uploadTypeIcon() {
|
|
80
|
-
const { item } = this.$props;
|
|
81
|
-
if (this.process == 100) {
|
|
82
|
-
const { upload } = item;
|
|
83
|
-
if (upload.state == 1) {
|
|
84
|
-
return "meixicomponenticon-zhengque";
|
|
85
|
-
} else if (upload.state == 2) {
|
|
86
|
-
return "meixicomponenticon-close";
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
return "meixicomponenticon-close";
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
74
|
fileName() {
|
|
93
75
|
return this.item.file.name;
|
|
94
76
|
},
|
|
@@ -112,7 +94,7 @@ export default {
|
|
|
112
94
|
},
|
|
113
95
|
methods: {
|
|
114
96
|
handleClose() {
|
|
115
|
-
const {
|
|
97
|
+
const {type} = this.$props;
|
|
116
98
|
if (type === "upload") {
|
|
117
99
|
if (this.process !== 100) {
|
|
118
100
|
this.$emit("deleteAppendixItem", this.$props.item);
|
|
@@ -138,6 +120,7 @@ export default {
|
|
|
138
120
|
justify-content: space-between;
|
|
139
121
|
margin: var(--margin-4) 0px;
|
|
140
122
|
border-radius: calc(var(--radius) * 2);
|
|
123
|
+
|
|
141
124
|
.item-wrap-prefix {
|
|
142
125
|
display: flex;
|
|
143
126
|
align-items: center;
|
|
@@ -145,6 +128,7 @@ export default {
|
|
|
145
128
|
width: calc(100% - 40px);
|
|
146
129
|
justify-content: flex-start;
|
|
147
130
|
}
|
|
131
|
+
|
|
148
132
|
.item-type,
|
|
149
133
|
.item-status {
|
|
150
134
|
width: 40px;
|
|
@@ -154,6 +138,7 @@ export default {
|
|
|
154
138
|
justify-content: center;
|
|
155
139
|
flex-flow: row nowrap;
|
|
156
140
|
}
|
|
141
|
+
|
|
157
142
|
.item-content {
|
|
158
143
|
width: auto;
|
|
159
144
|
height: 100%;
|
|
@@ -175,11 +160,13 @@ export default {
|
|
|
175
160
|
text-overflow: ellipsis;
|
|
176
161
|
display: inline-block;
|
|
177
162
|
}
|
|
163
|
+
|
|
178
164
|
.item-name {
|
|
179
165
|
width: auto;
|
|
180
166
|
color: var(--font-color-s);
|
|
181
167
|
font-size: var(--font-size-base);
|
|
182
168
|
}
|
|
169
|
+
|
|
183
170
|
.item-size {
|
|
184
171
|
width: auto;
|
|
185
172
|
margin-left: var(--margin-4);
|
|
@@ -188,11 +175,13 @@ export default {
|
|
|
188
175
|
font-weight: var(--font-weight-kg);
|
|
189
176
|
}
|
|
190
177
|
}
|
|
178
|
+
|
|
191
179
|
.item-process-wrap {
|
|
192
180
|
width: 100%;
|
|
193
181
|
height: 4px;
|
|
194
182
|
position: relative;
|
|
195
183
|
background: var(--color-gray-m);
|
|
184
|
+
|
|
196
185
|
.item-process-bar {
|
|
197
186
|
height: 100%;
|
|
198
187
|
transition: all 0.3s ease;
|
|
@@ -201,19 +190,24 @@ export default {
|
|
|
201
190
|
}
|
|
202
191
|
}
|
|
203
192
|
}
|
|
193
|
+
|
|
204
194
|
.upload,
|
|
205
195
|
.appendix {
|
|
206
196
|
background: var(--color-gray-m);
|
|
197
|
+
|
|
207
198
|
.item-content {
|
|
208
199
|
width: calc(100% - 40px) !important;
|
|
200
|
+
|
|
209
201
|
.item-name {
|
|
210
202
|
max-width: 80%;
|
|
211
203
|
}
|
|
204
|
+
|
|
212
205
|
.item-size {
|
|
213
206
|
max-width: 20%;
|
|
214
207
|
}
|
|
215
208
|
}
|
|
216
209
|
}
|
|
210
|
+
|
|
217
211
|
.appendix {
|
|
218
212
|
justify-content: space-between;
|
|
219
213
|
padding: var(--padding-4);
|
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
v-if="getRenderShow"
|
|
4
|
+
ref="dialogCacheWrapRef"
|
|
5
|
+
class="dialog-cache-wrap"
|
|
6
|
+
v-clickOutside="dialogCacheWrapOnBlue"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
class="dialog-no-cache"
|
|
10
|
+
v-if="getCacheList && getCacheList.length <= 0"
|
|
11
11
|
>
|
|
12
12
|
<baseDefaultSvg
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
:width="100"
|
|
14
|
+
:height="100"
|
|
15
|
+
:text="`暂无缓存表单`"
|
|
16
|
+
:svgName="`no-content`"
|
|
17
17
|
></baseDefaultSvg>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="dialog-cache-content" v-else>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
v-for="(item, index) in getCacheList"
|
|
20
|
+
<base-button
|
|
21
|
+
type="info"
|
|
22
|
+
:key="index"
|
|
23
|
+
size="medium"
|
|
24
|
+
@click="openDialogCache(index)"
|
|
25
|
+
v-for="(item, index) in getCacheList"
|
|
27
26
|
>
|
|
27
|
+
<template #icon>
|
|
28
|
+
<TicketIcon></TicketIcon>
|
|
29
|
+
</template>
|
|
28
30
|
{{ item.title }}
|
|
29
|
-
</
|
|
31
|
+
</base-button>
|
|
30
32
|
</div>
|
|
31
33
|
</div>
|
|
32
34
|
</template>
|
|
33
35
|
|
|
34
36
|
<script>
|
|
35
37
|
import baseDefaultSvg from '../base/baseDefaultSvg/baseDefaultSvg.vue'
|
|
38
|
+
import {TicketIcon} from "tdesign-icons-vue"
|
|
39
|
+
|
|
36
40
|
export default {
|
|
37
41
|
data() {
|
|
38
42
|
return {}
|
|
39
43
|
},
|
|
40
|
-
created() {
|
|
41
|
-
|
|
44
|
+
created() {
|
|
45
|
+
},
|
|
46
|
+
mounted() {
|
|
47
|
+
},
|
|
42
48
|
computed: {
|
|
43
49
|
getCacheList() {
|
|
44
50
|
return this.$store.getters['dialogCacheStore/getCacheList']
|
|
@@ -47,7 +53,7 @@ export default {
|
|
|
47
53
|
return this.$store.getters['dialogCacheStore/getRenderShow']
|
|
48
54
|
},
|
|
49
55
|
},
|
|
50
|
-
components: {
|
|
56
|
+
components: {baseDefaultSvg, TicketIcon},
|
|
51
57
|
methods: {
|
|
52
58
|
openDialogCache(index) {
|
|
53
59
|
this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index)
|
|
@@ -56,9 +62,7 @@ export default {
|
|
|
56
62
|
this.$store.commit('dialogCacheStore/SET_RENDER_SHOW', false)
|
|
57
63
|
},
|
|
58
64
|
},
|
|
59
|
-
watch: {
|
|
60
|
-
|
|
61
|
-
},
|
|
65
|
+
watch: {},
|
|
62
66
|
}
|
|
63
67
|
</script>
|
|
64
68
|
|
|
@@ -74,6 +78,7 @@ export default {
|
|
|
74
78
|
background: var(--bg-white);
|
|
75
79
|
padding: calc(var(--padding-4) * 2);
|
|
76
80
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
|
|
81
|
+
|
|
77
82
|
.dialog-no-cache {
|
|
78
83
|
width: 100%;
|
|
79
84
|
height: auto;
|
|
@@ -82,6 +87,7 @@ export default {
|
|
|
82
87
|
flex-flow: row nowrap;
|
|
83
88
|
justify-content: center;
|
|
84
89
|
}
|
|
90
|
+
|
|
85
91
|
.dialog-cache-content {
|
|
86
92
|
}
|
|
87
93
|
}
|
|
@@ -9,7 +9,6 @@ var baseDefaultSvg_1 = require("./base/baseDefaultSvg");
|
|
|
9
9
|
var baseDialog_1 = require("./base/baseDialog");
|
|
10
10
|
var baseDialogTable_1 = require("./base/baseDialogTable");
|
|
11
11
|
var baseDrawer_1 = require("./base/baseDrawer");
|
|
12
|
-
var elDatePicker_1 = require("./base/elDatePicker");
|
|
13
12
|
var baseEdito_1 = require("./base/baseEdito");
|
|
14
13
|
var baseFixedHeader_1 = require("./base/baseFixedHeader");
|
|
15
14
|
var baseIcon_1 = require("./base/baseIcon");
|
|
@@ -51,6 +50,7 @@ var baseTag_1 = require("./base/baseTag");
|
|
|
51
50
|
var oaProTableSearch_1 = require("./proPageTable/oaProTableSearch");
|
|
52
51
|
var baseWait_1 = require("./base/baseWait");
|
|
53
52
|
var vuedraggable_1 = require("vuedraggable");
|
|
53
|
+
var baseButton_1 = require("./base/baseButton");
|
|
54
54
|
// js 文件相关
|
|
55
55
|
var theme_1 = require("../config/theme/theme");
|
|
56
56
|
var dynamicmount_1 = require("./dynamicmount");
|
|
@@ -68,6 +68,7 @@ var useCropper_1 = require("../config/use/useCropper");
|
|
|
68
68
|
var UseViewVideo_1 = require("../config/use/UseViewVideo");
|
|
69
69
|
var UseGuide_1 = require("../config/use/UseGuide");
|
|
70
70
|
var LinkViewClass_1 = require("../config/LinkViewClass");
|
|
71
|
+
require("tdesign-vue/es/style/index.css");
|
|
71
72
|
//组件库type类型
|
|
72
73
|
var useType_1 = require("../useType/useType");
|
|
73
74
|
var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage");
|
|
@@ -121,7 +122,7 @@ var meixicomponents = [
|
|
|
121
122
|
baseWait_1["default"],
|
|
122
123
|
vuedraggable_1["default"],
|
|
123
124
|
baseUploadImgAndName_1["default"],
|
|
124
|
-
|
|
125
|
+
baseButton_1["default"]
|
|
125
126
|
];
|
|
126
127
|
var install = function (Vue) {
|
|
127
128
|
componentConfig_1["default"].Vue = Vue;
|
|
@@ -195,7 +196,6 @@ var meixioacomponent = {
|
|
|
195
196
|
baseGuide: baseGuide_1["default"],
|
|
196
197
|
baseText: baseText_1["default"],
|
|
197
198
|
baseTag: baseTag_1["default"],
|
|
198
|
-
elDatePicker: elDatePicker_1["default"],
|
|
199
199
|
oaProTableSearch: oaProTableSearch_1["default"],
|
|
200
200
|
baseWait: baseWait_1["default"],
|
|
201
201
|
Theme: theme_1["default"],
|
|
@@ -7,7 +7,6 @@ import baseDefaultSvg from "./base/baseDefaultSvg";
|
|
|
7
7
|
import baseDialog from "./base/baseDialog";
|
|
8
8
|
import baseDialogTable from "./base/baseDialogTable";
|
|
9
9
|
import baseDrawer from "./base/baseDrawer";
|
|
10
|
-
import elDatePicker from "./base/elDatePicker";
|
|
11
10
|
import baseEdito from "./base/baseEdito";
|
|
12
11
|
import baseFixedHeader from "./base/baseFixedHeader";
|
|
13
12
|
import Icon from "./base/baseIcon";
|
|
@@ -49,6 +48,7 @@ import baseTag from "./base/baseTag";
|
|
|
49
48
|
import oaProTableSearch from "./proPageTable/oaProTableSearch";
|
|
50
49
|
import baseWait from "./base/baseWait";
|
|
51
50
|
import draggable from 'vuedraggable'
|
|
51
|
+
import baseButton from "./base/baseButton";
|
|
52
52
|
|
|
53
53
|
// js 文件相关
|
|
54
54
|
import Theme from "../config/theme/theme";
|
|
@@ -68,6 +68,8 @@ import useViewVideo from "../config/use/UseViewVideo";
|
|
|
68
68
|
import useGuide from "../config/use/UseGuide";
|
|
69
69
|
import LinkViewClass from "../config/LinkViewClass";
|
|
70
70
|
|
|
71
|
+
import 'tdesign-vue/es/style/index.css';
|
|
72
|
+
|
|
71
73
|
//组件库type类型
|
|
72
74
|
import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
|
|
73
75
|
import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
|
|
@@ -123,7 +125,7 @@ const meixicomponents: any[] = [
|
|
|
123
125
|
baseWait,
|
|
124
126
|
draggable,
|
|
125
127
|
baseUploadImgAndName,
|
|
126
|
-
|
|
128
|
+
baseButton
|
|
127
129
|
];
|
|
128
130
|
|
|
129
131
|
const install = (Vue) => {
|
|
@@ -202,7 +204,6 @@ const meixioacomponent = {
|
|
|
202
204
|
baseGuide,
|
|
203
205
|
baseText,
|
|
204
206
|
baseTag,
|
|
205
|
-
elDatePicker,
|
|
206
207
|
oaProTableSearch,
|
|
207
208
|
baseWait,
|
|
208
209
|
Theme,
|
|
@@ -17,18 +17,6 @@ export const tableSectionMixins = {
|
|
|
17
17
|
name() {
|
|
18
18
|
return this.$options.name;
|
|
19
19
|
},
|
|
20
|
-
checkType() {
|
|
21
|
-
|
|
22
|
-
let checkType = null;
|
|
23
|
-
if (this.name === "baseProTable") {
|
|
24
|
-
let tableCheckboxConfig = this.$props.tableCheckboxConfig
|
|
25
|
-
checkType = tableCheckboxConfig.type
|
|
26
|
-
} else if (this.name === "basePlainTable") {
|
|
27
|
-
checkType = this.$props.tableExtend;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return checkType;
|
|
31
|
-
}
|
|
32
20
|
},
|
|
33
21
|
methods: {
|
|
34
22
|
|
|
@@ -286,21 +286,24 @@ export default {
|
|
|
286
286
|
},
|
|
287
287
|
|
|
288
288
|
beforeClose(done) {
|
|
289
|
-
this.$confirm(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
done
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
289
|
+
const confirmDia = this.$dialog.confirm({
|
|
290
|
+
header: '关闭对话框',
|
|
291
|
+
body: `是否关闭当前表单?`,
|
|
292
|
+
confirmBtn: '确定',
|
|
293
|
+
cancelBtn: '取消',
|
|
294
|
+
onConfirm: ({ e }) => {
|
|
295
|
+
confirmDia.destroy();
|
|
296
|
+
if (done) {
|
|
297
|
+
done();
|
|
298
|
+
} else {
|
|
299
|
+
this.$refs.dialog.closeDialog();
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
onClose: ({ e, trigger }) => {
|
|
303
|
+
confirmDia.destroy();
|
|
304
|
+
},
|
|
305
|
+
});
|
|
302
306
|
|
|
303
|
-
})
|
|
304
307
|
}
|
|
305
308
|
},
|
|
306
309
|
watch: {},
|