meixioacomponent 2.0.2 → 2.0.3
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 +341 -347
- package/lib/meixioacomponent.umd.js +345 -351
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/package.json +1 -1
- package/packages/components/base/baseButton/baseButton.vue +10 -5
- package/packages/components/base/baseButtonHandle/baseButtonHandle.vue +1 -1
- package/packages/components/base/baseDialog/index.vue +17 -16
- package/packages/components/base/baseDrawer/index.vue +1 -1
- package/packages/components/base/baseNumberInput/index.vue +13 -9
- package/packages/components/base/basePagination/index.vue +18 -12
- package/packages/components/base/baseText/index.vue +24 -23
- package/packages/components/base/baseTimeLine/baseTimeLineLeft.vue +6 -13
- package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +0 -22
- package/packages/components/proPageTable/oa_pro_footer.vue +2 -9
- package/packages/components/proPageTable/oa_pro_table.vue +0 -2
- package/packages/components/searchHeader/searchHeader.vue +12 -10
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<t-button
|
|
3
|
-
v-bind="$attrs"
|
|
4
3
|
:loading="loading"
|
|
5
4
|
:disabled="disabled"
|
|
6
5
|
:size="transomSize" :theme="transomTheme" @click="onHandleClick ">
|
|
@@ -37,16 +36,22 @@ export default {
|
|
|
37
36
|
},
|
|
38
37
|
computed: {
|
|
39
38
|
transomSize() {
|
|
39
|
+
let size = '';
|
|
40
40
|
switch (this.$props.size) {
|
|
41
41
|
case 'mini':
|
|
42
|
-
|
|
42
|
+
size = "small";
|
|
43
|
+
break;
|
|
43
44
|
case 'small':
|
|
44
|
-
|
|
45
|
+
size = 'medium'
|
|
46
|
+
break;
|
|
45
47
|
case 'medium':
|
|
46
|
-
|
|
48
|
+
size = 'large'
|
|
49
|
+
break;
|
|
47
50
|
default:
|
|
48
|
-
|
|
51
|
+
size = 'medium'
|
|
52
|
+
break;
|
|
49
53
|
}
|
|
54
|
+
return size;
|
|
50
55
|
},
|
|
51
56
|
transomTheme() {
|
|
52
57
|
switch (this.type) {
|
|
@@ -24,17 +24,18 @@
|
|
|
24
24
|
<span>{{ title }}</span>
|
|
25
25
|
<div class="title-handle-wrap">
|
|
26
26
|
|
|
27
|
-
<t-button shape="square" variant="outline" v-if="isCache" @click="handleCache"
|
|
27
|
+
<t-button shape="square" variant="outline" v-if="isCache" @click="handleCache"
|
|
28
|
+
style="margin-right: var(--margin-4)">
|
|
28
29
|
<template #icon>
|
|
29
30
|
<remove-icon
|
|
30
31
|
></remove-icon>
|
|
31
32
|
</template>
|
|
32
33
|
</t-button>
|
|
33
34
|
|
|
34
|
-
<drag-move-icon
|
|
35
|
-
v-if="onDrag"
|
|
36
|
-
ref="dragIcon"
|
|
37
|
-
></drag-move-icon
|
|
35
|
+
<!-- <drag-move-icon-->
|
|
36
|
+
<!-- v-if="onDrag"-->
|
|
37
|
+
<!-- ref="dragIcon"-->
|
|
38
|
+
<!-- ></drag-move-icon>-->
|
|
38
39
|
|
|
39
40
|
<t-button shape="square" variant="outline" v-if="hasCloseIcon" @click="onHandleClose">
|
|
40
41
|
<template #icon>
|
|
@@ -78,11 +79,11 @@
|
|
|
78
79
|
<script>
|
|
79
80
|
import DialogSkeleton from "./dialogSkeleton";
|
|
80
81
|
import UseDrag from "../../../config/use/useDrag";
|
|
81
|
-
import {CloseIcon,
|
|
82
|
+
import {CloseIcon, RemoveIcon} from "tdesign-icons-vue"
|
|
82
83
|
|
|
83
84
|
export default {
|
|
84
85
|
name: "baseDialog",
|
|
85
|
-
components: {DialogSkeleton, RemoveIcon, CloseIcon
|
|
86
|
+
components: {DialogSkeleton, RemoveIcon, CloseIcon},
|
|
86
87
|
data() {
|
|
87
88
|
return {
|
|
88
89
|
isShow: true,
|
|
@@ -225,15 +226,15 @@ export default {
|
|
|
225
226
|
// )}px;left:${left}px;margin:0px !important`;
|
|
226
227
|
//
|
|
227
228
|
this.$nextTick(() => {
|
|
228
|
-
if (this.$props.onDrag) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
229
|
+
// if (this.$props.onDrag) {
|
|
230
|
+
// let iconEl = this.$refs.dragIcon.$el;
|
|
231
|
+
// if (!this.isListen) {
|
|
232
|
+
// iconEl.addEventListener("mousedown", this.startDrag);
|
|
233
|
+
// } else {
|
|
234
|
+
// this.onUnListen();
|
|
235
|
+
// }
|
|
236
|
+
// iconEl.addEventListener("mousedown", this.startDrag);
|
|
237
|
+
// }
|
|
237
238
|
});
|
|
238
239
|
},
|
|
239
240
|
startDrag(e) {
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
<div :class="{ select: select, disabled: disabled }" class="pro-number-wrap">
|
|
3
3
|
<t-input-number v-if="!useString" v-model.number="module" :theme=" controls?'row':'normal' " :disabled="disabled"
|
|
4
4
|
:max="max" :min="min" :placeholder="placeholder" :decimal-places="precision" :size="size"
|
|
5
|
-
@change="onChange" style="width: 100%; height: 100%;"
|
|
5
|
+
@change="onChange" style="width: 100%; height: 100%;"
|
|
6
|
+
@blur="onBlue"
|
|
7
|
+
>
|
|
6
8
|
<template #suffix>
|
|
7
9
|
<div v-if="(unit || select) && !controls" class="number-unit">
|
|
8
10
|
<span v-if="!select">{{ unit }}</span>
|
|
9
11
|
<BaseStoreSelect
|
|
10
12
|
v-else
|
|
13
|
+
:size="size"
|
|
11
14
|
style="width: 100px"
|
|
12
15
|
v-model="_linkValue"
|
|
13
16
|
:disabled="disabled"
|
|
14
17
|
:placeholder="unitPlaceholder"
|
|
15
|
-
:size="size"
|
|
16
18
|
:useStore="selectStore"
|
|
17
19
|
></BaseStoreSelect>
|
|
18
20
|
</div>
|
|
@@ -20,28 +22,25 @@
|
|
|
20
22
|
|
|
21
23
|
</t-input-number>
|
|
22
24
|
|
|
23
|
-
|
|
24
25
|
<t-input-number v-else v-model="module" :theme=" controls?'row':'normal' " :disabled="disabled"
|
|
25
26
|
:max="max" :min="min" :placeholder="placeholder" :decimal-places="precision" :size="size"
|
|
27
|
+
@blur="onBlue"
|
|
26
28
|
@change="onChange" style="width: 100%; height: 100%;">
|
|
27
29
|
<template #suffix>
|
|
28
30
|
<div v-if="(unit || select) && !controls" class="number-unit">
|
|
29
31
|
<span v-if="!select">{{ unit }}</span>
|
|
30
32
|
<BaseStoreSelect
|
|
31
33
|
v-else
|
|
34
|
+
:size="size"
|
|
32
35
|
style="width: 100px"
|
|
33
36
|
v-model="_linkValue"
|
|
34
37
|
:disabled="disabled"
|
|
35
38
|
:placeholder="unitPlaceholder"
|
|
36
|
-
:size="size"
|
|
37
39
|
:useStore="selectStore"
|
|
38
40
|
></BaseStoreSelect>
|
|
39
41
|
</div>
|
|
40
42
|
</template>
|
|
41
|
-
|
|
42
43
|
</t-input-number>
|
|
43
|
-
|
|
44
|
-
|
|
45
44
|
</div>
|
|
46
45
|
</template>
|
|
47
46
|
|
|
@@ -127,6 +126,10 @@ export default {
|
|
|
127
126
|
})
|
|
128
127
|
|
|
129
128
|
},
|
|
129
|
+
|
|
130
|
+
onBlue() {
|
|
131
|
+
this.$emit('blur');
|
|
132
|
+
}
|
|
130
133
|
},
|
|
131
134
|
components: {BaseStoreSelect},
|
|
132
135
|
}
|
|
@@ -136,8 +139,9 @@ export default {
|
|
|
136
139
|
.pro-number-wrap {
|
|
137
140
|
width: 100%;
|
|
138
141
|
|
|
139
|
-
.number-unit{
|
|
140
|
-
width: fit-content;
|
|
142
|
+
.number-unit {
|
|
143
|
+
width: fit-content;
|
|
144
|
+
}
|
|
141
145
|
|
|
142
146
|
}
|
|
143
147
|
</style>
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
<div class="page-wrap">
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
<t-pagination v-if="!small"
|
|
5
|
+
<t-pagination v-if="!small"
|
|
6
|
+
:default-current="current"
|
|
7
|
+
:page-size="pageSize"
|
|
6
8
|
:total="pageProps[`${config.total}`]" :page-size-options="pageSizes"
|
|
7
|
-
@change="
|
|
8
|
-
@
|
|
9
|
+
@page-size-change="handleSizeChange"
|
|
10
|
+
@current-change="handleCurrentChange">
|
|
9
11
|
</t-pagination>
|
|
10
12
|
|
|
11
13
|
|
|
12
|
-
<t-pagination-mini v-else
|
|
14
|
+
<t-pagination-mini v-else :default-current="current" :page-size="pageSize"
|
|
13
15
|
:total="pageProps[`${config.total}`]" :page-size-options="pageSizes"
|
|
14
|
-
@change="
|
|
15
|
-
@
|
|
16
|
+
@page-size-change="handleSizeChange"
|
|
17
|
+
@current-change="handleCurrentChange"></t-pagination-mini>
|
|
16
18
|
|
|
17
19
|
</div>
|
|
18
20
|
</template>
|
|
@@ -43,6 +45,14 @@ export default {
|
|
|
43
45
|
},
|
|
44
46
|
},
|
|
45
47
|
computed: {
|
|
48
|
+
current: {
|
|
49
|
+
set(val) {
|
|
50
|
+
this.pageProps[`${this.config.page}`] = val;
|
|
51
|
+
},
|
|
52
|
+
get() {
|
|
53
|
+
return this.pageProps[`${this.config.page}`]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
46
56
|
pageSize: {
|
|
47
57
|
set(val) {
|
|
48
58
|
this.pageProps[`${this.config.size}`] = val
|
|
@@ -54,15 +64,11 @@ export default {
|
|
|
54
64
|
},
|
|
55
65
|
},
|
|
56
66
|
methods: {
|
|
57
|
-
onChange(e) {
|
|
58
|
-
const {pageSize} = e;
|
|
59
|
-
this.pageSize = pageSize;
|
|
60
|
-
},
|
|
61
67
|
handleSizeChange(e) {
|
|
62
|
-
this
|
|
68
|
+
this.pageSize = parseInt(e);
|
|
63
69
|
},
|
|
64
70
|
handleCurrentChange(e) {
|
|
65
|
-
this.$emit("currentChange");
|
|
71
|
+
this.$emit("currentChange", e);
|
|
66
72
|
},
|
|
67
73
|
},
|
|
68
74
|
watch: {}
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="[ 'base-text-wrap' ]" v-if="content"
|
|
2
|
+
<div :class="[ 'base-text-wrap' ]" v-if="content" :title="content" @click="onClick">
|
|
3
3
|
<div v-if="type==='phone'" :class="['content-wrap',type]">
|
|
4
|
-
|
|
5
|
-
{{content}}
|
|
4
|
+
<MobileIcon style="margin-right: var(--margin-2)"></MobileIcon>
|
|
5
|
+
{{ content }}
|
|
6
6
|
</div>
|
|
7
7
|
<div v-else-if="type==='time'" :class="['content-wrap', type]">
|
|
8
|
-
<TimeIcon></TimeIcon>
|
|
9
|
-
{{filterContent()}}
|
|
8
|
+
<TimeIcon style="margin-right: var(--margin-2)"></TimeIcon>
|
|
9
|
+
{{ filterContent() }}
|
|
10
10
|
</div>
|
|
11
11
|
<div v-else-if="type==='money'" :class="[type]">
|
|
12
|
-
<t-statistic
|
|
12
|
+
<t-statistic :value="content" prefix="¥" trend="increase"/>
|
|
13
13
|
</div>
|
|
14
14
|
<div v-else-if="type==='number'" :class="[type]">
|
|
15
|
-
{{filterContent()}}
|
|
15
|
+
{{ filterContent() }}
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div v-else class="default">
|
|
19
|
-
{{filterContent()}}
|
|
19
|
+
{{ filterContent() }}
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
<div v-else class="empty">暂无数据</div>
|
|
27
|
-
|
|
25
|
+
<div v-else class="empty">暂无数据</div>
|
|
28
26
|
|
|
29
27
|
|
|
30
28
|
</template>
|
|
@@ -32,7 +30,7 @@
|
|
|
32
30
|
|
|
33
31
|
<script>
|
|
34
32
|
import {FilterTime} from "../../../utils/utils";
|
|
35
|
-
import {MobileIcon,TimeIcon} from "tdesign-icons-vue"
|
|
33
|
+
import {MobileIcon, TimeIcon} from "tdesign-icons-vue"
|
|
36
34
|
|
|
37
35
|
export default {
|
|
38
36
|
name: "baseText",
|
|
@@ -42,7 +40,7 @@ export default {
|
|
|
42
40
|
}
|
|
43
41
|
},
|
|
44
42
|
|
|
45
|
-
components:{
|
|
43
|
+
components: {
|
|
46
44
|
MobileIcon,
|
|
47
45
|
TimeIcon
|
|
48
46
|
},
|
|
@@ -52,9 +50,7 @@ export default {
|
|
|
52
50
|
this.setToolTipFlag();
|
|
53
51
|
})
|
|
54
52
|
},
|
|
55
|
-
computed: {
|
|
56
|
-
|
|
57
|
-
},
|
|
53
|
+
computed: {},
|
|
58
54
|
props: {
|
|
59
55
|
type: {},
|
|
60
56
|
content: {},
|
|
@@ -136,33 +132,38 @@ export default {
|
|
|
136
132
|
|
|
137
133
|
<style lang="less" scoped>
|
|
138
134
|
|
|
139
|
-
.base-text-wrap{
|
|
135
|
+
.base-text-wrap {
|
|
140
136
|
width: fit-content;
|
|
141
137
|
font-size: var(--font-size-base);
|
|
142
|
-
|
|
138
|
+
|
|
139
|
+
.content-wrap {
|
|
143
140
|
display: flex;
|
|
144
141
|
align-items: center;
|
|
145
142
|
flex-flow: row nowrap;
|
|
146
143
|
justify-content: flex-start;
|
|
147
144
|
}
|
|
148
|
-
|
|
145
|
+
|
|
146
|
+
.time, .number, .money {
|
|
149
147
|
font-family: TCloudNumber !important;
|
|
150
148
|
}
|
|
151
|
-
|
|
149
|
+
|
|
150
|
+
.money {
|
|
152
151
|
font-weight: var(--font-weight-kg);
|
|
153
152
|
}
|
|
154
153
|
|
|
155
154
|
|
|
156
|
-
/deep/ .t-statistic-content-prefix{
|
|
155
|
+
/deep/ .t-statistic-content-prefix {
|
|
157
156
|
font-size: var(--font-size-s) !important;
|
|
158
157
|
}
|
|
159
|
-
|
|
158
|
+
|
|
159
|
+
/deep/ .t-statistic-content-value {
|
|
160
160
|
font-size: var(--font-size-base) !important;
|
|
161
161
|
font-family: TCloudNumber !important;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
|
|
166
|
+
.empty {
|
|
166
167
|
color: var(--font-color-ds);
|
|
167
168
|
font-size: var(--font-size-s);
|
|
168
169
|
}
|
|
@@ -13,15 +13,14 @@
|
|
|
13
13
|
class="base-time-line-point-wrap"
|
|
14
14
|
>
|
|
15
15
|
<div class="base-time-line-point">
|
|
16
|
-
|
|
16
|
+
<!--统一使用t-icon-->
|
|
17
|
+
|
|
18
|
+
<t-icon
|
|
17
19
|
v-if="timeLineItem.icon"
|
|
18
|
-
:event="false"
|
|
19
|
-
:iconClass="`element`"
|
|
20
20
|
:name="timeLineItem.icon"
|
|
21
|
-
:plain="true"
|
|
22
|
-
:size="`s`"
|
|
23
21
|
class="line-icon"
|
|
24
|
-
|
|
22
|
+
:style="`color:var(--text-white)`"
|
|
23
|
+
></t-icon>
|
|
25
24
|
</div>
|
|
26
25
|
<span class="point-line"></span>
|
|
27
26
|
</div>
|
|
@@ -135,18 +134,12 @@ export default {
|
|
|
135
134
|
.base-time-line-point {
|
|
136
135
|
width: 20px;
|
|
137
136
|
height: 20px;
|
|
138
|
-
border:
|
|
137
|
+
border: 0;
|
|
139
138
|
display: flex;
|
|
140
139
|
align-items: center;
|
|
141
140
|
flex-flow: row nowrap;
|
|
142
141
|
justify-content: center;
|
|
143
142
|
background: var(--color-primary);
|
|
144
|
-
|
|
145
|
-
.line-icon {
|
|
146
|
-
/deep/ i {
|
|
147
|
-
color: var(--text-white) !important;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
143
|
}
|
|
151
144
|
|
|
152
145
|
.point-line {
|
|
@@ -288,16 +288,6 @@ export default {
|
|
|
288
288
|
},
|
|
289
289
|
mounted() {
|
|
290
290
|
this.$nextTick(() => {
|
|
291
|
-
const {labelPosition, width} = this.$props
|
|
292
|
-
if (labelPosition !== 'top') {
|
|
293
|
-
try {
|
|
294
|
-
if (this.$refs.formItemRef.parentNode) {
|
|
295
|
-
this.$refs.formItemRef.parentNode.style.cssText += `width:${width}`
|
|
296
|
-
}
|
|
297
|
-
} catch (error) {
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
291
|
if (this.$props.disableWatcher) {
|
|
302
292
|
this.triggerDisable(this.$props.value)
|
|
303
293
|
}
|
|
@@ -763,9 +753,6 @@ export default {
|
|
|
763
753
|
font-size: var(--font-size-s) !important;
|
|
764
754
|
}
|
|
765
755
|
|
|
766
|
-
/deep/ .el-select--mini {
|
|
767
|
-
|
|
768
|
-
}
|
|
769
756
|
|
|
770
757
|
.item-content {
|
|
771
758
|
min-height: 28px;
|
|
@@ -782,15 +769,6 @@ export default {
|
|
|
782
769
|
}
|
|
783
770
|
}
|
|
784
771
|
|
|
785
|
-
/deep/ .el-textarea.is-disabled .el-textarea__inner {
|
|
786
|
-
background-color: var(--color-table-header) !important;
|
|
787
772
|
|
|
788
|
-
&:hover {
|
|
789
|
-
border-color: transparent !important;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
773
|
|
|
793
|
-
/deep/ .el-radio-button__orig-radio:disabled:checked + .el-radio-button__inner {
|
|
794
|
-
background-color: var(--color-table-header) !important;
|
|
795
|
-
}
|
|
796
774
|
</style>
|
|
@@ -59,20 +59,13 @@ export default {
|
|
|
59
59
|
sizeChange(e) {
|
|
60
60
|
this.$emit('pageSizeChange')
|
|
61
61
|
this.$parent.refreshData()
|
|
62
|
-
|
|
63
62
|
if (this.$parent._linkViewClassSubs.isLocalTablePagination) {
|
|
64
|
-
|
|
65
63
|
const obj = JSON.parse(window.localStorage.getItem('LocalTablePagination'));
|
|
66
|
-
|
|
67
64
|
this.$parent._linkViewClassSubs.setLocalPagination(obj);
|
|
68
|
-
|
|
69
|
-
|
|
70
65
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
66
|
},
|
|
74
|
-
currentChange() {
|
|
75
|
-
this.$
|
|
67
|
+
currentChange(e) {
|
|
68
|
+
this.$props.pageProps[`${this.$props.pageConfig.page}`]=e
|
|
76
69
|
this.$parent.refreshData(false)
|
|
77
70
|
},
|
|
78
71
|
},
|
|
@@ -913,7 +913,6 @@ export default {
|
|
|
913
913
|
}
|
|
914
914
|
result[`order`] = orderItem;
|
|
915
915
|
}
|
|
916
|
-
|
|
917
916
|
result = Object.assign(result, this.$props.pageProps);
|
|
918
917
|
return result;
|
|
919
918
|
},
|
|
@@ -1196,7 +1195,6 @@ background-color: var(--color-gray-s);
|
|
|
1196
1195
|
}
|
|
1197
1196
|
|
|
1198
1197
|
|
|
1199
|
-
|
|
1200
1198
|
.oa-pro-table-footer {
|
|
1201
1199
|
width: 100%;
|
|
1202
1200
|
background: inherit;
|
|
@@ -19,18 +19,20 @@
|
|
|
19
19
|
<div :style="{ paddingLeft: `${input? 'calc(var(--padding-5) * 2)':0 }`}" class="search-header-config-content">
|
|
20
20
|
<span class="view-text">筛选:</span>
|
|
21
21
|
<slot name="search-hearch-extend"></slot>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
<t-space :size="4">
|
|
23
|
+
<base-button
|
|
24
|
+
v-for="(item, index) in searchList.list"
|
|
25
|
+
:key="index"
|
|
26
|
+
:class="{
|
|
26
27
|
'is-plain': index != searchList.index,
|
|
27
28
|
}"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
size="mini"
|
|
30
|
+
:type="index == searchList.index ? 'primary' : 'info'"
|
|
31
|
+
@click="handleScreen(index)"
|
|
32
|
+
>
|
|
33
|
+
{{ item.label }}
|
|
34
|
+
</base-button>
|
|
35
|
+
</t-space>
|
|
34
36
|
</div>
|
|
35
37
|
</base-list>
|
|
36
38
|
</div>
|