@milaboratories/uikit 2.2.29 → 2.2.30
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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +135 -133
- package/dist/pl-uikit.umd.cjs +3 -3
- package/dist/src/components/PlDropdownLine/PlDropdownLine.vue.d.ts +2 -2
- package/dist/src/components/PlDropdownLine/ResizableInput.vue.d.ts +0 -3
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/PlDropdownLine/PlDropdownLine.vue +4 -2
- package/src/components/PlDropdownLine/ResizableInput.vue +3 -5
package/package.json
CHANGED
|
@@ -80,6 +80,10 @@ const modelText = computed<string>(() => {
|
|
|
80
80
|
|
|
81
81
|
const inputModel = ref(modelText.value);
|
|
82
82
|
|
|
83
|
+
watch(modelText, (v) => {
|
|
84
|
+
inputModel.value = v;
|
|
85
|
+
});
|
|
86
|
+
|
|
83
87
|
const placeholderVal = computed(() => {
|
|
84
88
|
if (data.isOpen) {
|
|
85
89
|
if (searchPhrase.value && searchPhrase.value.length >= modelText.value.length - 1) {
|
|
@@ -136,7 +140,6 @@ function updateSelected() {
|
|
|
136
140
|
}),
|
|
137
141
|
(v) => (v < 0 ? 0 : v),
|
|
138
142
|
);
|
|
139
|
-
inputModel.value = modelText.value;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
function resetSearchPhrase() {
|
|
@@ -256,7 +259,6 @@ useElementPosition(container, (pos) => {
|
|
|
256
259
|
</script>
|
|
257
260
|
|
|
258
261
|
<template>
|
|
259
|
-
<!-- {{ inputModel }} -->
|
|
260
262
|
<div
|
|
261
263
|
ref="container"
|
|
262
264
|
tabindex="0"
|
|
@@ -5,19 +5,18 @@ import { computed } from 'vue';
|
|
|
5
5
|
const props = defineProps<{
|
|
6
6
|
modelValue?: string;
|
|
7
7
|
placeholder?: string;
|
|
8
|
-
value?: string;
|
|
9
8
|
disabled?: boolean;
|
|
10
9
|
maxWidth?: string;
|
|
11
10
|
width?: string;
|
|
12
11
|
}>();
|
|
13
12
|
|
|
14
|
-
const emit = defineEmits(['
|
|
13
|
+
const emit = defineEmits(['update:modelValue']);
|
|
15
14
|
|
|
16
15
|
const text = computed(() => {
|
|
17
16
|
if (props.placeholder) {
|
|
18
17
|
return props.placeholder;
|
|
19
18
|
}
|
|
20
|
-
return (props.modelValue
|
|
19
|
+
return (props.modelValue)?.replace('"', '');
|
|
21
20
|
});
|
|
22
21
|
|
|
23
22
|
const styles = computed(() => {
|
|
@@ -32,8 +31,7 @@ const styles = computed(() => {
|
|
|
32
31
|
});
|
|
33
32
|
|
|
34
33
|
function handleInput(event: Event) {
|
|
35
|
-
|
|
36
|
-
emit('update:modelValue', value);
|
|
34
|
+
emit('update:modelValue', (event.target as HTMLInputElement).value);
|
|
37
35
|
}
|
|
38
36
|
</script>
|
|
39
37
|
|