@afeefa/vue-app 0.0.340 → 0.0.341
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.341
|
package/package.json
CHANGED
package/src/components/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import FormFieldRadioGroup from './form/fields/FormFieldRadioGroup'
|
|
|
10
10
|
import FormFieldRichTextArea from './form/fields/FormFieldRichTextArea'
|
|
11
11
|
import FormFieldSearchSelect from './form/fields/FormFieldSearchSelect'
|
|
12
12
|
import FormFieldSelect from './form/fields/FormFieldSelect'
|
|
13
|
-
import FormFieldAutoComplete from './form/fields/FormFieldAutoComplete'
|
|
14
13
|
import FormFieldText from './form/fields/FormFieldText'
|
|
15
14
|
import FormFieldTextArea from './form/fields/FormFieldTextArea'
|
|
16
15
|
import FormFieldTime from './form/fields/FormFieldTime'
|
|
@@ -37,7 +36,6 @@ Vue.component('FormFieldDate', FormFieldDate)
|
|
|
37
36
|
Vue.component('FormFieldTime', FormFieldTime)
|
|
38
37
|
Vue.component('FormFieldSearchSelect', FormFieldSearchSelect)
|
|
39
38
|
Vue.component('FormFieldSelect', FormFieldSelect)
|
|
40
|
-
Vue.component('FormFieldAutoComplete', FormFieldAutoComplete)
|
|
41
39
|
Vue.component('ListFilterPage', ListFilterPage)
|
|
42
40
|
Vue.component('ListFilterSearch', ListFilterSearch)
|
|
43
41
|
Vue.component('ListFilterSearch2', ListFilterSearch2)
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-autocomplete
|
|
3
|
-
v-model="model[name]"
|
|
4
|
-
:label="label || name"
|
|
5
|
-
:style="cwm_widthStyle"
|
|
6
|
-
|
|
7
|
-
:items="items"
|
|
8
|
-
item-text="itemText"
|
|
9
|
-
item-value="itemValue"
|
|
10
|
-
|
|
11
|
-
:validator="validator"
|
|
12
|
-
v-bind="$attrs"
|
|
13
|
-
/>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import { Component, Mixins } from '@a-vue'
|
|
18
|
-
import { FormFieldMixin } from '../FormFieldMixin'
|
|
19
|
-
import { ComponentWidthMixin } from '../../mixins/ComponentWidthMixin'
|
|
20
|
-
|
|
21
|
-
@Component
|
|
22
|
-
export default class FormFieldAutoComplete extends Mixins(FormFieldMixin, ComponentWidthMixin) {
|
|
23
|
-
asyncItems = null
|
|
24
|
-
|
|
25
|
-
created () {
|
|
26
|
-
if (this.fieldHasOptionsRequest()) {
|
|
27
|
-
this.asyncItems = q => this.getSelectOptions({ q })
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
get items () {
|
|
32
|
-
return this.$attrs.items || this.asyncItems
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
</script>
|