n20-common-lib 2.8.17 → 2.8.18
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/package.json +1 -1
- package/src/assets/css/button.scss +12 -0
- package/src/components/Filters/index.vue +21 -3
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -240,4 +240,16 @@ $--button-margin-left: 6px;
|
|
|
240
240
|
|
|
241
241
|
.el-button-dropdown-item {
|
|
242
242
|
margin-left: 27px !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.el-button--default.is-active {
|
|
246
|
+
color: $--color-primary;
|
|
247
|
+
background: $--color-white;
|
|
248
|
+
border-color: $--color-primary;
|
|
249
|
+
|
|
250
|
+
&:focus {
|
|
251
|
+
color: $--color-primary;
|
|
252
|
+
background: $--color-white;
|
|
253
|
+
border-color: $--color-primary;
|
|
254
|
+
}
|
|
243
255
|
}
|
|
@@ -10,7 +10,14 @@
|
|
|
10
10
|
@show="show"
|
|
11
11
|
>
|
|
12
12
|
<template slot="reference">
|
|
13
|
-
<el-button
|
|
13
|
+
<el-button
|
|
14
|
+
icon="n20-icon-iconfontshaixuan"
|
|
15
|
+
:class="isValueCpt ? 'is-active' : ''"
|
|
16
|
+
plain
|
|
17
|
+
onlyicon
|
|
18
|
+
size="mini"
|
|
19
|
+
@click="clickBtn"
|
|
20
|
+
/>
|
|
14
21
|
</template>
|
|
15
22
|
<el-form
|
|
16
23
|
v-show="showPopC"
|
|
@@ -81,10 +88,10 @@
|
|
|
81
88
|
</template>
|
|
82
89
|
|
|
83
90
|
<script>
|
|
84
|
-
import
|
|
91
|
+
import getWidth from '../../utils/asciiWidth'
|
|
85
92
|
import footerBox from '../FooterBox/index.vue'
|
|
86
93
|
import showColumn, { getColumns } from '../ShowColumn/index.vue'
|
|
87
|
-
import
|
|
94
|
+
import formItemInput from './form-item-input.vue'
|
|
88
95
|
|
|
89
96
|
export default {
|
|
90
97
|
name: 'Filters',
|
|
@@ -190,6 +197,17 @@ export default {
|
|
|
190
197
|
if (this.width !== undefined) return this.width
|
|
191
198
|
|
|
192
199
|
return this.labelWidthAs + 240
|
|
200
|
+
},
|
|
201
|
+
isValueCpt() {
|
|
202
|
+
let values = Object.values(this.form).some((value) => {
|
|
203
|
+
if (Array.isArray(value)) {
|
|
204
|
+
return value.length > 0
|
|
205
|
+
} else {
|
|
206
|
+
return value !== '' && value !== null && value !== undefined
|
|
207
|
+
}
|
|
208
|
+
})
|
|
209
|
+
|
|
210
|
+
return values
|
|
193
211
|
}
|
|
194
212
|
},
|
|
195
213
|
methods: {
|