@afeefa/vue-app 0.0.216 → 0.0.218
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.218
|
package/package.json
CHANGED
package/src/components/AIcon.vue
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<v-icon
|
3
3
|
:class="{button}"
|
4
|
+
:color="icon && icon.color"
|
4
5
|
v-bind="$attrs"
|
5
6
|
v-on="$listeners"
|
6
7
|
>
|
7
|
-
<
|
8
|
+
<template v-if="icon">
|
9
|
+
{{ icon.icon }}
|
10
|
+
</template>
|
11
|
+
|
12
|
+
<slot v-else />
|
8
13
|
</v-icon>
|
9
14
|
</template>
|
10
15
|
|
@@ -13,7 +18,7 @@
|
|
13
18
|
import { Component, Vue } from '@a-vue'
|
14
19
|
|
15
20
|
@Component({
|
16
|
-
props: [{button: false}]
|
21
|
+
props: ['icon', {button: false}]
|
17
22
|
})
|
18
23
|
export default class AIcon extends Vue {
|
19
24
|
}
|
@@ -56,13 +56,15 @@ export default class ListFilterSelect extends Mixins(ListFilterMixin) {
|
|
56
56
|
itemTitle: (this.itemTitle && this.itemTitle(model)) || model.name || model.title,
|
57
57
|
itemValue
|
58
58
|
}
|
59
|
-
})
|
59
|
+
}),
|
60
|
+
...this.getOptions(true)
|
60
61
|
]
|
61
62
|
}
|
62
63
|
|
63
|
-
getOptions () {
|
64
|
+
getOptions (prepend = false) {
|
64
65
|
return [
|
65
66
|
...this.filter.options
|
67
|
+
.filter(o => !!o.prepend === prepend)
|
66
68
|
.map(o => {
|
67
69
|
return {
|
68
70
|
itemTitle: o.title,
|