eoss-mobiles 0.4.1 → 0.4.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.
Files changed (230) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/lib/button-group.js +2 -2
  3. package/lib/button.js +2 -2
  4. package/lib/calendar.js +2 -2
  5. package/lib/cell.js +2 -2
  6. package/lib/checkbox.js +2 -2
  7. package/lib/circle.js +2 -2
  8. package/lib/count-down.js +2 -2
  9. package/lib/empty.js +2 -2
  10. package/lib/eoss-mobile.common.js +1462 -930
  11. package/lib/field.js +2 -2
  12. package/lib/flow-btn.js +2 -2
  13. package/lib/form.js +1510 -978
  14. package/lib/grid-item.js +2 -2
  15. package/lib/grid.js +2 -2
  16. package/lib/index.js +1 -1
  17. package/lib/list.js +2 -2
  18. package/lib/loading.js +85 -85
  19. package/lib/nav-bar.js +2 -2
  20. package/lib/picker.js +12 -11
  21. package/lib/popover.js +2 -2
  22. package/lib/radio.js +8 -7
  23. package/lib/search.js +2 -2
  24. package/lib/selector.js +28 -28
  25. package/lib/switch.js +2 -2
  26. package/lib/tab.js +2 -2
  27. package/lib/table-column.js +3 -2
  28. package/lib/tabs.js +2 -2
  29. package/lib/tag.js +2 -2
  30. package/lib/theme-chalk/fonts/iconfont.scss +98 -98
  31. package/lib/theme-chalk/fonts/iconfont1.scss +90 -90
  32. package/lib/theme-chalk/form.css +1 -1
  33. package/lib/theme-chalk/index.css +1 -1
  34. package/lib/uploader.js +3 -2
  35. package/package.json +1 -1
  36. package/packages/action-sheet/index.js +5 -5
  37. package/packages/action-sheet/src/main.vue +32 -32
  38. package/packages/button/index.js +5 -5
  39. package/packages/button/src/main.vue +15 -15
  40. package/packages/button-group/index.js +5 -5
  41. package/packages/button-group/src/main.vue +80 -80
  42. package/packages/calendar/index.js +5 -5
  43. package/packages/calendar/src/main.vue +34 -34
  44. package/packages/cascader/index.js +5 -5
  45. package/packages/cascader/src/main.vue +39 -39
  46. package/packages/cell/index.js +5 -5
  47. package/packages/cell/src/main.vue +77 -77
  48. package/packages/checkbox/index.js +5 -5
  49. package/packages/checkbox/src/main.vue +232 -232
  50. package/packages/circle/index.js +5 -5
  51. package/packages/circle/src/main.vue +27 -27
  52. package/packages/count-down/index.js +5 -5
  53. package/packages/count-down/src/main.vue +27 -27
  54. package/packages/date/index.js +5 -5
  55. package/packages/date/src/date-time.vue +290 -290
  56. package/packages/date/src/main.vue +401 -401
  57. package/packages/empty/index.js +5 -5
  58. package/packages/empty/src/main.vue +16 -16
  59. package/packages/esign/index.js +5 -5
  60. package/packages/esign/src/main.vue +144 -144
  61. package/packages/field/index.js +5 -5
  62. package/packages/flow/index.js +5 -5
  63. package/packages/flow/src/components/Circulate.vue +595 -595
  64. package/packages/flow/src/components/Handle.vue +2404 -2404
  65. package/packages/flow/src/components/Message.vue +208 -208
  66. package/packages/flow/src/components/ProcessSettings.vue +342 -342
  67. package/packages/flow/src/components/supervise.vue +139 -139
  68. package/packages/flow/src/flowMix.js +288 -288
  69. package/packages/flow/src/main.vue +116 -116
  70. package/packages/flow-btn/index.js +5 -5
  71. package/packages/flow-btn/src/main.vue +494 -494
  72. package/packages/flow-list/index.js +5 -5
  73. package/packages/flow-list/src/main.vue +248 -248
  74. package/packages/form/index.js +5 -5
  75. package/packages/form/src/CustomCard.vue +201 -0
  76. package/packages/form/src/main.vue +372 -341
  77. package/packages/grid/index.js +5 -5
  78. package/packages/grid/src/main.vue +486 -486
  79. package/packages/grid-item/index.js +5 -5
  80. package/packages/grid-item/src/main.vue +16 -16
  81. package/packages/image/index.js +5 -5
  82. package/packages/image/src/main.vue +12 -12
  83. package/packages/image-preview/index.js +5 -5
  84. package/packages/list/index.js +5 -5
  85. package/packages/list/src/main.vue +32 -32
  86. package/packages/loading/index.js +5 -5
  87. package/packages/loading/src/main.vue +19 -19
  88. package/packages/nav-bar/index.js +5 -5
  89. package/packages/nav-bar/src/main.vue +24 -24
  90. package/packages/notice-bar/index.js +5 -5
  91. package/packages/notice-bar/src/main.vue +15 -15
  92. package/packages/pagination/index.js +5 -5
  93. package/packages/pagination/src/main.vue +73 -73
  94. package/packages/picker/index.js +5 -5
  95. package/packages/picker/src/main.vue +604 -604
  96. package/packages/popover/index.js +5 -5
  97. package/packages/popover/src/main.vue +32 -32
  98. package/packages/popup/index.js +5 -5
  99. package/packages/popup/src/main.vue +27 -27
  100. package/packages/pull-refresh/index.js +5 -5
  101. package/packages/pull-refresh/src/main.vue +31 -31
  102. package/packages/radio/index.js +5 -5
  103. package/packages/radio/src/main.vue +179 -179
  104. package/packages/rate/index.js +5 -5
  105. package/packages/rate/src/main.vue +26 -26
  106. package/packages/retrial-auth/index.js +5 -5
  107. package/packages/retrial-auth/src/main.vue +257 -257
  108. package/packages/search/index.js +5 -5
  109. package/packages/search/src/main.vue +39 -39
  110. package/packages/selector/index.js +5 -5
  111. package/packages/selector/src/main.vue +186 -186
  112. package/packages/selector/src/selector-tree.vue +1117 -1117
  113. package/packages/selector/src/tree.vue +405 -405
  114. package/packages/skeleton/index.js +5 -5
  115. package/packages/skeleton/src/main.vue +17 -17
  116. package/packages/stepper/index.js +5 -5
  117. package/packages/stepper/src/main.vue +25 -25
  118. package/packages/swipe/index.js +5 -5
  119. package/packages/swipe/src/main.vue +42 -42
  120. package/packages/switch/index.js +5 -5
  121. package/packages/switch/src/main.vue +38 -38
  122. package/packages/tab/index.js +5 -5
  123. package/packages/tab/src/main.vue +16 -16
  124. package/packages/table/index.js +5 -5
  125. package/packages/table/src/main.vue +1006 -1006
  126. package/packages/table-column/index.js +5 -5
  127. package/packages/table-column/src/main.vue +931 -931
  128. package/packages/table-column/src/mixins/table.js +12 -12
  129. package/packages/tabs/index.js +5 -5
  130. package/packages/tabs/src/main.vue +34 -34
  131. package/packages/tag/index.js +5 -5
  132. package/packages/tag/src/main.vue +16 -16
  133. package/packages/theme-chalk/lib/action-sheet.css +0 -0
  134. package/packages/theme-chalk/lib/base.css +1 -0
  135. package/packages/theme-chalk/lib/button-group.css +1 -0
  136. package/packages/theme-chalk/lib/button.css +1 -0
  137. package/packages/theme-chalk/lib/calendar.css +1 -0
  138. package/packages/theme-chalk/lib/cascader.css +1 -0
  139. package/packages/theme-chalk/lib/cell.css +1 -0
  140. package/packages/theme-chalk/lib/checkbox.css +1 -0
  141. package/packages/theme-chalk/lib/circle.css +1 -0
  142. package/packages/theme-chalk/lib/count-down.css +0 -0
  143. package/packages/theme-chalk/lib/date.css +0 -0
  144. package/packages/theme-chalk/lib/empty.css +0 -0
  145. package/packages/theme-chalk/lib/esign.css +1 -0
  146. package/packages/theme-chalk/lib/field.css +1 -0
  147. package/packages/theme-chalk/lib/flow-btn.css +1 -0
  148. package/packages/theme-chalk/lib/flow-list-task-read.css +1 -0
  149. package/packages/theme-chalk/lib/flow-list.css +1 -0
  150. package/packages/theme-chalk/lib/flow.css +1 -0
  151. package/packages/theme-chalk/lib/fonts/iconfont.scss +98 -0
  152. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  153. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  154. package/packages/theme-chalk/lib/fonts/iconfont1.scss +90 -0
  155. package/packages/theme-chalk/lib/form.css +1 -0
  156. package/packages/theme-chalk/lib/grid-item.css +1 -0
  157. package/packages/theme-chalk/lib/grid.css +1 -0
  158. package/packages/theme-chalk/lib/icon.css +1 -0
  159. package/packages/theme-chalk/lib/image-preview.css +0 -0
  160. package/packages/theme-chalk/lib/image.css +0 -0
  161. package/packages/theme-chalk/lib/index.css +1 -0
  162. package/packages/theme-chalk/lib/list.css +0 -0
  163. package/packages/theme-chalk/lib/loading.css +0 -0
  164. package/packages/theme-chalk/lib/nav-bar.css +0 -0
  165. package/packages/theme-chalk/lib/navbar.css +1 -0
  166. package/packages/theme-chalk/lib/notice-bar.css +0 -0
  167. package/packages/theme-chalk/lib/pagination.css +1 -0
  168. package/packages/theme-chalk/lib/picker.css +1 -0
  169. package/packages/theme-chalk/lib/popover.css +0 -0
  170. package/packages/theme-chalk/lib/popup.css +0 -0
  171. package/packages/theme-chalk/lib/pull-refresh.css +0 -0
  172. package/packages/theme-chalk/lib/radio.css +1 -0
  173. package/packages/theme-chalk/lib/rate.css +0 -0
  174. package/packages/theme-chalk/lib/retrial-auth.css +1 -0
  175. package/packages/theme-chalk/lib/search.css +0 -0
  176. package/packages/theme-chalk/lib/selector.css +1 -0
  177. package/packages/theme-chalk/lib/skeleton.css +0 -0
  178. package/packages/theme-chalk/lib/stepper.css +1 -0
  179. package/packages/theme-chalk/lib/swipe.css +0 -0
  180. package/packages/theme-chalk/lib/switch.css +1 -0
  181. package/packages/theme-chalk/lib/tab.css +0 -0
  182. package/packages/theme-chalk/lib/table-column.css +0 -0
  183. package/packages/theme-chalk/lib/table.css +1 -0
  184. package/packages/theme-chalk/lib/tabs.css +1 -0
  185. package/packages/theme-chalk/lib/tag.css +1 -0
  186. package/packages/theme-chalk/lib/theme.css +0 -0
  187. package/packages/theme-chalk/lib/tree.css +1 -0
  188. package/packages/theme-chalk/lib/uploader.css +0 -0
  189. package/packages/theme-chalk/src/base.scss +195 -195
  190. package/packages/theme-chalk/src/button-group.scss +25 -25
  191. package/packages/theme-chalk/src/button.scss +2 -2
  192. package/packages/theme-chalk/src/calendar.scss +11 -11
  193. package/packages/theme-chalk/src/cascader.scss +11 -11
  194. package/packages/theme-chalk/src/cell.scss +14 -14
  195. package/packages/theme-chalk/src/checkbox.scss +9 -9
  196. package/packages/theme-chalk/src/circle.scss +6 -6
  197. package/packages/theme-chalk/src/common/var.scss +1525 -1525
  198. package/packages/theme-chalk/src/esign.scss +51 -51
  199. package/packages/theme-chalk/src/field.scss +98 -98
  200. package/packages/theme-chalk/src/flow-btn.scss +99 -99
  201. package/packages/theme-chalk/src/flow-list.scss +122 -122
  202. package/packages/theme-chalk/src/fonts/iconfont.scss +98 -98
  203. package/packages/theme-chalk/src/fonts/iconfont1.scss +90 -90
  204. package/packages/theme-chalk/src/form.scss +107 -33
  205. package/packages/theme-chalk/src/grid-item.scss +16 -16
  206. package/packages/theme-chalk/src/grid.scss +46 -46
  207. package/packages/theme-chalk/src/icon.scss +1661 -1661
  208. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  209. package/packages/theme-chalk/src/navbar.scss +5 -5
  210. package/packages/theme-chalk/src/pagination.scss +12 -12
  211. package/packages/theme-chalk/src/picker.scss +31 -31
  212. package/packages/theme-chalk/src/radio.scss +6 -6
  213. package/packages/theme-chalk/src/retrial-auth.scss +28 -28
  214. package/packages/theme-chalk/src/selector.scss +247 -247
  215. package/packages/theme-chalk/src/stepper.scss +9 -9
  216. package/packages/theme-chalk/src/switch.scss +5 -5
  217. package/packages/theme-chalk/src/table.scss +86 -86
  218. package/packages/theme-chalk/src/tabs.scss +31 -31
  219. package/packages/theme-chalk/src/tag.scss +12 -12
  220. package/packages/theme-chalk/src/theme.scss +1 -1
  221. package/packages/theme-chalk/src/tree.scss +127 -127
  222. package/packages/uploader/index.js +5 -5
  223. package/src/config/api.js +190 -190
  224. package/src/index.js +1 -1
  225. package/src/utils/axios.js +217 -217
  226. package/src/utils/date-util.js +312 -312
  227. package/src/utils/http.js +106 -106
  228. package/src/utils/rules.js +18 -18
  229. package/src/utils/store.js +21 -21
  230. package/packages/theme-chalk/gulpfile.js +0 -25
@@ -1,186 +1,186 @@
1
- <template>
2
- <div class="em-selector" @click="handleClick">
3
- <selector-field
4
- v-if="!this.$scopedSlots.input && !this.$slots.input && !showTree"
5
- v-bind="$attrs"
6
- :input-value="inputValue"
7
- :data="selectList"
8
- @change="handleChangeSel"
9
- @click="handleSelector"
10
- />
11
- <slot v-else name="input" :click="handleSelector" />
12
- <em-selector-tree
13
- v-if="(showSelectorTree || showTree) && typeof value !== 'string'"
14
- v-bind="$attrs"
15
- v-on="$listeners"
16
- :showTree="showTree"
17
- :showMore="$listeners['left-icon'] == undefined"
18
- :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
19
- :selectList="selectList"
20
- @dispose="handleDispose"
21
- @close="handleDispose()"
22
- >
23
- <template
24
- v-if="$scopedSlots['tree-icon']"
25
- slot="tree-icon"
26
- slot-scope="{ value }"
27
- >
28
- <slot
29
- v-if="$scopedSlots['tree-icon']"
30
- name="tree-icon"
31
- :value="value"
32
- ></slot>
33
- </template>
34
- </em-selector-tree>
35
- <div v-if="typeof value === 'string'">
36
- <em-selector-tree
37
- v-show="showSelectorTree || showTree"
38
- v-bind="$attrs"
39
- v-on="$listeners"
40
- :showTree="showTree"
41
- :showMore="$listeners['left-icon'] == undefined"
42
- :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
43
- :selectList.sync="selectList"
44
- @dispose="handleDispose"
45
- @close="handleDispose()"
46
- >
47
- <template
48
- v-if="$scopedSlots['tree-icon']"
49
- slot="tree-icon"
50
- slot-scope="{ value }"
51
- >
52
- <slot
53
- v-if="$scopedSlots['tree-icon']"
54
- name="tree-icon"
55
- :value="value"
56
- ></slot>
57
- </template>
58
- </em-selector-tree>
59
- </div>
60
- </div>
61
- </template>
62
-
63
- <script>
64
- import EmSelectorTree from './selector-tree.vue';
65
- import selectorField from './selector-field.vue';
66
- export default {
67
- components: { EmSelectorTree, selectorField },
68
- name: 'EmSelector',
69
- inheritAttrs: false,
70
- props: {
71
- value: { type: [Array, String], default: () => [] },
72
- showTree: {
73
- type: Boolean,
74
- default: false
75
- },
76
- isClosePopup: {
77
- type: Boolean,
78
- default: false
79
- }
80
- },
81
- data() {
82
- return {
83
- showSelectorTree: false,
84
- inputValue: ''
85
- // newSelectList:[]
86
- };
87
- },
88
- watch: {
89
- isClosePopup: {
90
- handler(val) {
91
- if (this.showSelectorTree) {
92
- this.showSelectorTree = false;
93
- this.$emit('selector-click', this.showSelectorTree);
94
- }
95
- },
96
- deep: true,
97
- immediate: true
98
- },
99
- value: {
100
- handler(val) {
101
- this.selectList = val;
102
- if (this.selectList.length > 0) {
103
- this.inputValue =
104
- this.selectList[0][
105
- this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
106
- ];
107
- } else {
108
- this.inputValue = '';
109
- }
110
- },
111
- deep: true,
112
- immediate: true
113
- }
114
- },
115
- computed: {
116
- selectList: {
117
- get() {
118
- return this.value;
119
- },
120
- set(val) {
121
- this.$emit('input', val);
122
- }
123
- }
124
- },
125
- mounted() {
126
- // this.selectList = this.value
127
- // console.log(this)
128
- },
129
- methods: {
130
- handleClick() {
131
- this.$emit('click');
132
- },
133
- handleSelector() {
134
- if (this.$attrs.disabled || this.$attrs.readonly) return;
135
- this.showSelectorTree = !this.showSelectorTree;
136
- this.$emit('selector-click', this.showSelectorTree);
137
- },
138
- /**
139
- * handleDispose
140
- * @desc:确认选人
141
- * @date 2023年3月6日
142
- * @author liufan
143
- * @param {Object} val 选中的人员/单位
144
- */
145
- handleDispose(val) {
146
- this.inputValue = '';
147
- if (val) {
148
- const { list } = val;
149
- this.selectList = list;
150
- if (val.list.length > 0) {
151
- this.inputValue =
152
- list[0][
153
- this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
154
- ];
155
- } else {
156
- this.inputValue = '';
157
- }
158
- }
159
- this.showSelectorTree = false;
160
- this.$emit('selector-click', this.showSelectorTree);
161
- },
162
- /**
163
- * handleChangeSel
164
- * @desc:输入框数据发生变化时
165
- * @date 2023年3月6日
166
- * @author liufan
167
- * @param {Array} val 变化后的选中数据
168
- */
169
- handleChangeSel(val) {
170
- if (val) {
171
- const { list } = val;
172
- this.selectList = list;
173
- if (val.list.length > 0) {
174
- this.inputValue =
175
- list[0][
176
- this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
177
- ];
178
- } else {
179
- this.inputValue = '';
180
- }
181
- }
182
- this.$emit('input', val.list);
183
- }
184
- }
185
- };
186
- </script>
1
+ <template>
2
+ <div class="em-selector" @click="handleClick">
3
+ <selector-field
4
+ v-if="!this.$scopedSlots.input && !this.$slots.input && !showTree"
5
+ v-bind="$attrs"
6
+ :input-value="inputValue"
7
+ :data="selectList"
8
+ @change="handleChangeSel"
9
+ @click="handleSelector"
10
+ />
11
+ <slot v-else name="input" :click="handleSelector" />
12
+ <em-selector-tree
13
+ v-if="(showSelectorTree || showTree) && typeof value !== 'string'"
14
+ v-bind="$attrs"
15
+ v-on="$listeners"
16
+ :showTree="showTree"
17
+ :showMore="$listeners['left-icon'] == undefined"
18
+ :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
19
+ :selectList="selectList"
20
+ @dispose="handleDispose"
21
+ @close="handleDispose()"
22
+ >
23
+ <template
24
+ v-if="$scopedSlots['tree-icon']"
25
+ slot="tree-icon"
26
+ slot-scope="{ value }"
27
+ >
28
+ <slot
29
+ v-if="$scopedSlots['tree-icon']"
30
+ name="tree-icon"
31
+ :value="value"
32
+ ></slot>
33
+ </template>
34
+ </em-selector-tree>
35
+ <div v-if="typeof value === 'string'">
36
+ <em-selector-tree
37
+ v-show="showSelectorTree || showTree"
38
+ v-bind="$attrs"
39
+ v-on="$listeners"
40
+ :showTree="showTree"
41
+ :showMore="$listeners['left-icon'] == undefined"
42
+ :isTreeIcon="$scopedSlots['tree-icon'] != undefined"
43
+ :selectList.sync="selectList"
44
+ @dispose="handleDispose"
45
+ @close="handleDispose()"
46
+ >
47
+ <template
48
+ v-if="$scopedSlots['tree-icon']"
49
+ slot="tree-icon"
50
+ slot-scope="{ value }"
51
+ >
52
+ <slot
53
+ v-if="$scopedSlots['tree-icon']"
54
+ name="tree-icon"
55
+ :value="value"
56
+ ></slot>
57
+ </template>
58
+ </em-selector-tree>
59
+ </div>
60
+ </div>
61
+ </template>
62
+
63
+ <script>
64
+ import EmSelectorTree from './selector-tree.vue';
65
+ import selectorField from './selector-field.vue';
66
+ export default {
67
+ components: { EmSelectorTree, selectorField },
68
+ name: 'EmSelector',
69
+ inheritAttrs: false,
70
+ props: {
71
+ value: { type: [Array, String], default: () => [] },
72
+ showTree: {
73
+ type: Boolean,
74
+ default: false
75
+ },
76
+ isClosePopup: {
77
+ type: Boolean,
78
+ default: false
79
+ }
80
+ },
81
+ data() {
82
+ return {
83
+ showSelectorTree: false,
84
+ inputValue: ''
85
+ // newSelectList:[]
86
+ };
87
+ },
88
+ watch: {
89
+ isClosePopup: {
90
+ handler(val) {
91
+ if (this.showSelectorTree) {
92
+ this.showSelectorTree = false;
93
+ this.$emit('selector-click', this.showSelectorTree);
94
+ }
95
+ },
96
+ deep: true,
97
+ immediate: true
98
+ },
99
+ value: {
100
+ handler(val) {
101
+ this.selectList = val;
102
+ if (this.selectList.length > 0) {
103
+ this.inputValue =
104
+ this.selectList[0][
105
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
106
+ ];
107
+ } else {
108
+ this.inputValue = '';
109
+ }
110
+ },
111
+ deep: true,
112
+ immediate: true
113
+ }
114
+ },
115
+ computed: {
116
+ selectList: {
117
+ get() {
118
+ return this.value;
119
+ },
120
+ set(val) {
121
+ this.$emit('input', val);
122
+ }
123
+ }
124
+ },
125
+ mounted() {
126
+ // this.selectList = this.value
127
+ // console.log(this)
128
+ },
129
+ methods: {
130
+ handleClick() {
131
+ this.$emit('click');
132
+ },
133
+ handleSelector() {
134
+ if (this.$attrs.disabled || this.$attrs.readonly) return;
135
+ this.showSelectorTree = !this.showSelectorTree;
136
+ this.$emit('selector-click', this.showSelectorTree);
137
+ },
138
+ /**
139
+ * handleDispose
140
+ * @desc:确认选人
141
+ * @date 2023年3月6日
142
+ * @author liufan
143
+ * @param {Object} val 选中的人员/单位
144
+ */
145
+ handleDispose(val) {
146
+ this.inputValue = '';
147
+ if (val) {
148
+ const { list } = val;
149
+ this.selectList = list;
150
+ if (val.list.length > 0) {
151
+ this.inputValue =
152
+ list[0][
153
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
154
+ ];
155
+ } else {
156
+ this.inputValue = '';
157
+ }
158
+ }
159
+ this.showSelectorTree = false;
160
+ this.$emit('selector-click', this.showSelectorTree);
161
+ },
162
+ /**
163
+ * handleChangeSel
164
+ * @desc:输入框数据发生变化时
165
+ * @date 2023年3月6日
166
+ * @author liufan
167
+ * @param {Array} val 变化后的选中数据
168
+ */
169
+ handleChangeSel(val) {
170
+ if (val) {
171
+ const { list } = val;
172
+ this.selectList = list;
173
+ if (val.list.length > 0) {
174
+ this.inputValue =
175
+ list[0][
176
+ this.$attrs.labelKey || this.$attrs['label-key'] || 'showname'
177
+ ];
178
+ } else {
179
+ this.inputValue = '';
180
+ }
181
+ }
182
+ this.$emit('input', val.list);
183
+ }
184
+ }
185
+ };
186
+ </script>