meixioacomponent 0.3.61 → 0.3.64
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 +234 -221
- package/lib/meixioacomponent.umd.js +234 -221
- package/lib/meixioacomponent.umd.min.js +14 -14
- package/package.json +1 -1
- package/packages/components/base/baseToggle/toggle.vue +16 -15
- package/packages/components/proPageTable/oa_pro-table-search.vue +45 -39
- package/packages/components/proPageTable/oa_pro_table.vue +5 -1
- package/packages/components/searchHeader/searchHeader.vue +14 -11
package/package.json
CHANGED
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
:name="item.icon"
|
|
18
18
|
@iconClick="handletoggle(item)"
|
|
19
19
|
></base-icon>
|
|
20
|
-
<span v-else>
|
|
20
|
+
<span v-else>{{ item.label }}</span>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
26
|
export default {
|
|
27
|
-
name:
|
|
27
|
+
name: 'baseToggle',
|
|
28
28
|
data() {
|
|
29
|
-
return {}
|
|
29
|
+
return {}
|
|
30
30
|
},
|
|
31
31
|
props: {
|
|
32
32
|
value: {
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
size: {
|
|
40
40
|
type: String,
|
|
41
|
-
default:
|
|
41
|
+
default: 'min',
|
|
42
42
|
},
|
|
43
43
|
beforeHandle: {
|
|
44
44
|
type: Function,
|
|
@@ -47,31 +47,31 @@ export default {
|
|
|
47
47
|
computed: {
|
|
48
48
|
module: {
|
|
49
49
|
set(val) {
|
|
50
|
-
this.$emit(
|
|
50
|
+
this.$emit('input', val)
|
|
51
51
|
},
|
|
52
52
|
get() {
|
|
53
|
-
return this.$props.value
|
|
53
|
+
return this.$props.value
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
methods: {
|
|
58
58
|
handletoggle(item) {
|
|
59
|
-
const { beforeHandle } = this.$props
|
|
59
|
+
const { beforeHandle } = this.$props
|
|
60
60
|
if (beforeHandle) {
|
|
61
61
|
beforeHandle(() => {
|
|
62
|
-
this.setModule(item)
|
|
63
|
-
}, item)
|
|
62
|
+
this.setModule(item)
|
|
63
|
+
}, item)
|
|
64
64
|
} else {
|
|
65
|
-
this.setModule(item)
|
|
65
|
+
this.setModule(item)
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
|
|
69
69
|
setModule(item) {
|
|
70
|
-
this.module = item.value
|
|
71
|
-
this.$emit(
|
|
70
|
+
this.module = item.value
|
|
71
|
+
this.$emit('handletoggle', item)
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
|
-
}
|
|
74
|
+
}
|
|
75
75
|
</script>
|
|
76
76
|
|
|
77
77
|
<style lang="less" scoped>
|
|
@@ -108,9 +108,10 @@ export default {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
.min {
|
|
111
|
+
padding: var(--padding-1) !important;
|
|
111
112
|
.toggle-item-wrap {
|
|
112
|
-
line-height:
|
|
113
|
-
padding: 0px var(--padding-
|
|
113
|
+
line-height: 22px;
|
|
114
|
+
padding: 0px var(--padding-2);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
@handleSearch="handleSearch"
|
|
8
8
|
@handleScreen="handleScreen"
|
|
9
9
|
>
|
|
10
|
+
<template slot="search-hearch-extend">
|
|
11
|
+
<slot slot="table-search-extend"></slot>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
10
14
|
<el-button
|
|
11
15
|
size="small"
|
|
12
16
|
:class="{
|
|
@@ -15,11 +19,13 @@
|
|
|
15
19
|
:disabled="_proScreenList.length <= 0 && !proScreenCardShow"
|
|
16
20
|
@click="handleProScreenList(false)"
|
|
17
21
|
:type="proScreenCardShow ? 'selected' : 'info'"
|
|
18
|
-
|
|
22
|
+
>
|
|
23
|
+
{{ handleScreenText }}
|
|
24
|
+
<i :class="handleScreenIcon"></i>
|
|
19
25
|
</el-button>
|
|
20
26
|
<el-button size="small" @click="handleOpenProScreen">
|
|
21
|
-
<i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
|
|
22
|
-
|
|
27
|
+
<i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i>
|
|
28
|
+
高级筛选
|
|
23
29
|
</el-button>
|
|
24
30
|
</searchHeaderVue>
|
|
25
31
|
|
|
@@ -32,7 +38,7 @@
|
|
|
32
38
|
:event="false"
|
|
33
39
|
:icon="false"
|
|
34
40
|
:useSlot="true"
|
|
35
|
-
style="width: auto"
|
|
41
|
+
style="width: auto;"
|
|
36
42
|
:valueAlign="`left`"
|
|
37
43
|
:label="`排列方式:`"
|
|
38
44
|
>
|
|
@@ -65,9 +71,9 @@
|
|
|
65
71
|
</template>
|
|
66
72
|
|
|
67
73
|
<script>
|
|
68
|
-
import oa_pro_screen_itemVue from
|
|
69
|
-
import searchHeaderVue from
|
|
70
|
-
import baseButtonHandle from
|
|
74
|
+
import oa_pro_screen_itemVue from './oa_pro_screen_item.vue'
|
|
75
|
+
import searchHeaderVue from '../searchHeader/searchHeader.vue'
|
|
76
|
+
import baseButtonHandle from '../base/baseButtonHandle/baseButtonHandle.vue'
|
|
71
77
|
export default {
|
|
72
78
|
data() {
|
|
73
79
|
return {
|
|
@@ -78,14 +84,14 @@ export default {
|
|
|
78
84
|
toggle: {
|
|
79
85
|
index: 1,
|
|
80
86
|
list: [
|
|
81
|
-
{ label:
|
|
82
|
-
{ label:
|
|
87
|
+
{ label: '三列', value: 1 },
|
|
88
|
+
{ label: '四列', value: 2 },
|
|
83
89
|
],
|
|
84
90
|
},
|
|
85
|
-
}
|
|
91
|
+
}
|
|
86
92
|
},
|
|
87
93
|
created() {
|
|
88
|
-
this.initFooterHandleList()
|
|
94
|
+
this.initFooterHandleList()
|
|
89
95
|
},
|
|
90
96
|
props: {
|
|
91
97
|
value: {},
|
|
@@ -107,97 +113,97 @@ export default {
|
|
|
107
113
|
},
|
|
108
114
|
computed: {
|
|
109
115
|
proScreenCardShow() {
|
|
110
|
-
return this._proScreenList.length > 0 && this.showProScreenList
|
|
116
|
+
return this._proScreenList.length > 0 && this.showProScreenList
|
|
111
117
|
},
|
|
112
118
|
handleScreenIcon() {
|
|
113
|
-
return this.proScreenCardShow ?
|
|
119
|
+
return this.proScreenCardShow ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
|
|
114
120
|
},
|
|
115
121
|
handleScreenText() {
|
|
116
|
-
return this.proScreenCardShow ?
|
|
122
|
+
return this.proScreenCardShow ? '收起筛选' : '展开筛选'
|
|
117
123
|
},
|
|
118
124
|
|
|
119
125
|
_proScreenList() {
|
|
120
126
|
return this.$props.proScreenList.filter((item) => {
|
|
121
|
-
return item.exposed
|
|
122
|
-
})
|
|
127
|
+
return item.exposed
|
|
128
|
+
})
|
|
123
129
|
},
|
|
124
130
|
rowWidth() {
|
|
125
|
-
return this.toggle.index == 1 ? 33 : 25
|
|
131
|
+
return this.toggle.index == 1 ? 33 : 25
|
|
126
132
|
},
|
|
127
133
|
|
|
128
134
|
screenStyle() {
|
|
129
135
|
return {
|
|
130
136
|
width: `${this.rowWidth}%`,
|
|
131
|
-
}
|
|
137
|
+
}
|
|
132
138
|
},
|
|
133
139
|
|
|
134
140
|
module: {
|
|
135
141
|
get() {
|
|
136
|
-
return this.$props.value
|
|
142
|
+
return this.$props.value
|
|
137
143
|
},
|
|
138
144
|
set(val) {
|
|
139
|
-
this.$emit(
|
|
145
|
+
this.$emit('input', val)
|
|
140
146
|
},
|
|
141
147
|
},
|
|
142
148
|
},
|
|
143
149
|
methods: {
|
|
144
150
|
handleSearch() {
|
|
145
|
-
this.$parent.refreshData()
|
|
151
|
+
this.$parent.refreshData()
|
|
146
152
|
},
|
|
147
153
|
handleProScreenList(flag = false) {
|
|
148
154
|
if (!flag) {
|
|
149
|
-
this.showProScreenList = !this.showProScreenList
|
|
155
|
+
this.showProScreenList = !this.showProScreenList
|
|
150
156
|
} else {
|
|
151
|
-
this.showProScreenList = true
|
|
157
|
+
this.showProScreenList = true
|
|
152
158
|
}
|
|
153
159
|
|
|
154
|
-
this.computedHeight()
|
|
160
|
+
this.computedHeight()
|
|
155
161
|
},
|
|
156
162
|
handleScreen(index) {
|
|
157
|
-
this.$parent.handleScreen(index)
|
|
163
|
+
this.$parent.handleScreen(index)
|
|
158
164
|
},
|
|
159
165
|
computedHeight() {
|
|
160
166
|
this.$nextTick(() => {
|
|
161
167
|
this.$emit(
|
|
162
|
-
|
|
163
|
-
this.$refs.oaProTableSearchContent.clientHeight
|
|
164
|
-
)
|
|
165
|
-
})
|
|
168
|
+
'searchContentHeightChange',
|
|
169
|
+
this.$refs.oaProTableSearchContent.clientHeight,
|
|
170
|
+
)
|
|
171
|
+
})
|
|
166
172
|
},
|
|
167
173
|
handleOpenProScreen() {
|
|
168
|
-
this.$parent.handleOpenProScreen()
|
|
174
|
+
this.$parent.handleOpenProScreen()
|
|
169
175
|
},
|
|
170
176
|
|
|
171
177
|
// 尾部按钮
|
|
172
178
|
initFooterHandleList() {
|
|
173
179
|
this.footerHandleConfig = [
|
|
174
180
|
{
|
|
175
|
-
text:
|
|
176
|
-
type:
|
|
181
|
+
text: '确定',
|
|
182
|
+
type: 'primary',
|
|
177
183
|
plain: false,
|
|
178
184
|
click: () => {
|
|
179
|
-
this.$parent.refreshData()
|
|
185
|
+
this.$parent.refreshData()
|
|
180
186
|
},
|
|
181
187
|
},
|
|
182
188
|
{
|
|
183
|
-
text:
|
|
184
|
-
type:
|
|
189
|
+
text: '清空条件',
|
|
190
|
+
type: 'info',
|
|
185
191
|
plain: true,
|
|
186
192
|
click: () => {
|
|
187
|
-
this.$parent.cleanProscreenCondition(true)
|
|
193
|
+
this.$parent.cleanProscreenCondition(true)
|
|
188
194
|
},
|
|
189
195
|
},
|
|
190
|
-
]
|
|
196
|
+
]
|
|
191
197
|
},
|
|
192
198
|
},
|
|
193
199
|
watch: {
|
|
194
200
|
proScreenCardShow(newVal, oldVal) {
|
|
195
201
|
if (!newVal) {
|
|
196
|
-
this.showProScreenList = false
|
|
202
|
+
this.showProScreenList = false
|
|
197
203
|
}
|
|
198
204
|
},
|
|
199
205
|
},
|
|
200
|
-
}
|
|
206
|
+
}
|
|
201
207
|
</script>
|
|
202
208
|
|
|
203
209
|
<style lang="less" scoped>
|
|
@@ -29,7 +29,11 @@
|
|
|
29
29
|
:proScreenList="proScreenList"
|
|
30
30
|
:proScreenConfig="_proScreenConfig"
|
|
31
31
|
@searchContentHeightChange="searchContentHeightChange"
|
|
32
|
-
|
|
32
|
+
>
|
|
33
|
+
<template slot="table-search-extend">
|
|
34
|
+
<slot slot="search-extend"></slot>
|
|
35
|
+
</template>
|
|
36
|
+
</oa_pro_table_searchVue>
|
|
33
37
|
</div>
|
|
34
38
|
|
|
35
39
|
<!-- 表格内容 -->
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
v-if="input"
|
|
6
6
|
size="small"
|
|
7
7
|
v-model="module"
|
|
8
|
-
style="width: 220px"
|
|
8
|
+
style="width: 220px;"
|
|
9
9
|
:placeholder="placeholder"
|
|
10
10
|
suffix-icon="el-icon-search"
|
|
11
11
|
@keyup.enter.native="handleSearch"
|
|
12
|
-
>
|
|
13
|
-
</el-input>
|
|
12
|
+
></el-input>
|
|
14
13
|
|
|
15
14
|
<div class="header-config-wrap" v-if="searchList">
|
|
16
15
|
<span class="view-text">显示:</span>
|
|
16
|
+
|
|
17
17
|
<el-button
|
|
18
18
|
:key="index"
|
|
19
19
|
:size="size"
|
|
@@ -23,8 +23,11 @@
|
|
|
23
23
|
@click="handleScreen(index)"
|
|
24
24
|
v-for="(item, index) in searchList.list"
|
|
25
25
|
:type="index == searchList.index ? 'selected' : 'info'"
|
|
26
|
-
>{{ item.label }}</el-button
|
|
27
26
|
>
|
|
27
|
+
{{ item.label }}
|
|
28
|
+
</el-button>
|
|
29
|
+
|
|
30
|
+
<slot name="search-hearch-extend"></slot>
|
|
28
31
|
</div>
|
|
29
32
|
</div>
|
|
30
33
|
<div class="search-header-wrap-right">
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
<script>
|
|
37
40
|
export default {
|
|
38
41
|
data() {
|
|
39
|
-
return {}
|
|
42
|
+
return {}
|
|
40
43
|
},
|
|
41
44
|
props: {
|
|
42
45
|
value: {},
|
|
@@ -49,29 +52,29 @@ export default {
|
|
|
49
52
|
},
|
|
50
53
|
size: {
|
|
51
54
|
type: String,
|
|
52
|
-
default:
|
|
55
|
+
default: 'small',
|
|
53
56
|
},
|
|
54
57
|
placeholder: { type: String },
|
|
55
58
|
},
|
|
56
59
|
computed: {
|
|
57
60
|
module: {
|
|
58
61
|
get() {
|
|
59
|
-
return this.$props.value
|
|
62
|
+
return this.$props.value
|
|
60
63
|
},
|
|
61
64
|
set(val) {
|
|
62
|
-
this.$emit(
|
|
65
|
+
this.$emit('input', val)
|
|
63
66
|
},
|
|
64
67
|
},
|
|
65
68
|
},
|
|
66
69
|
methods: {
|
|
67
70
|
handleSearch() {
|
|
68
|
-
this.$emit(
|
|
71
|
+
this.$emit('handleSearch')
|
|
69
72
|
},
|
|
70
73
|
handleScreen(index) {
|
|
71
|
-
this.$emit(
|
|
74
|
+
this.$emit('handleScreen', index)
|
|
72
75
|
},
|
|
73
76
|
},
|
|
74
|
-
}
|
|
77
|
+
}
|
|
75
78
|
</script>
|
|
76
79
|
|
|
77
80
|
<style lang="less" scoped>
|