plugin-ui-for-kzt 0.0.40 → 0.0.41
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/dist/components/BaseBadge/BaseBadge.vue.d.ts +1 -1
- package/dist/components/BaseCalendar/BaseCalendar.vue.d.ts +5 -5
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdown.vue.d.ts +1 -1
- package/dist/components/BaseInput/BaseInput.vue.d.ts +2 -2
- package/dist/components/BaseInputCalendar/BaseInputCalendar.vue.d.ts +5 -5
- package/dist/components/BaseInputCurrency/BaseInputCurrency.vue.d.ts +2 -2
- package/dist/components/BaseInputEmail/BaseInputEmail.vue.d.ts +2 -2
- package/dist/components/BaseInputPhone/BaseInputPhone.vue.d.ts +2 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +2 -2
- package/dist/components/BaseSegmentedButtons/BaseSegmentedButtons.vue.d.ts +1 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +2 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -2
- package/dist/components/BaseToggle/BaseToggle.vue.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/BaseField/BaseField.vue +0 -1
- package/src/components/BaseSelect/README.md +9 -0
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
@open="handleEmployeeOpen"
|
|
38
38
|
@clear="handleEmployeeClear"
|
|
39
39
|
@error="handleSearchError"
|
|
40
|
+
@getSearchApi="handleGetNewOptions"
|
|
40
41
|
/>
|
|
41
42
|
</template>
|
|
42
43
|
|
|
@@ -94,6 +95,11 @@ const handleEmployeeSearch = (query) => {
|
|
|
94
95
|
}, 700) // Дебаунс 700мс
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
// Логика для запроса
|
|
99
|
+
const handleGetNewOptions = (query) => {
|
|
100
|
+
fetchEmployees()
|
|
101
|
+
}
|
|
102
|
+
|
|
97
103
|
// Загрузка при открытии если данных нет
|
|
98
104
|
const handleEmployeeOpen = () => {
|
|
99
105
|
if (employeeOptions.value.length === 0) {
|
|
@@ -180,6 +186,9 @@ const handleSearchError = () => {
|
|
|
180
186
|
- `error`
|
|
181
187
|
Эмитится когда пользователь вводит текст, но не выбирает ни одну опцию из списка. Полезно для валидации поиска.
|
|
182
188
|
|
|
189
|
+
- `getSearchApi`
|
|
190
|
+
Эмитится когда ничего не найден в options, чтобы сделать запрос для новых options
|
|
191
|
+
|
|
183
192
|
---
|
|
184
193
|
|
|
185
194
|
### 🧩 Слоты
|