sprintify-ui 0.0.54 → 0.0.56
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/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<BaseIcon :icon="breadcrumb.icon" />
|
|
35
35
|
</span>
|
|
36
36
|
<span v-else>
|
|
37
|
-
{{ breadcrumb.label }}
|
|
37
|
+
{{ truncate(breadcrumb.label) }}
|
|
38
38
|
</span>
|
|
39
39
|
</a>
|
|
40
40
|
</RouterLink>
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
<script lang="ts" setup>
|
|
62
62
|
import { PropType } from 'vue';
|
|
63
63
|
import { Breadcrumb } from '@/types';
|
|
64
|
+
import { truncate } from 'lodash';
|
|
64
65
|
|
|
65
66
|
const props = defineProps({
|
|
66
67
|
breadcrumbs: {
|
|
@@ -127,7 +127,14 @@ function validModelValue(): boolean {
|
|
|
127
127
|
*/
|
|
128
128
|
watch(
|
|
129
129
|
() => props.modelValue,
|
|
130
|
-
() =>
|
|
130
|
+
() => {
|
|
131
|
+
// Let the select re-render before validating
|
|
132
|
+
// The validation depends on the select options,
|
|
133
|
+
// which needs to be rendered first
|
|
134
|
+
nextTick(() => {
|
|
135
|
+
validateAndFixModelVale();
|
|
136
|
+
});
|
|
137
|
+
}
|
|
131
138
|
);
|
|
132
139
|
|
|
133
140
|
/**
|