sprintify-ui 0.0.59 → 0.0.60
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/sprintify-ui.es.js
CHANGED
|
@@ -9955,9 +9955,13 @@ const om = /* @__PURE__ */ Ne(Zf, [["render", rm], ["__scopeId", "data-v-e5ae83e
|
|
|
9955
9955
|
return y === void 0 || y === o;
|
|
9956
9956
|
}
|
|
9957
9957
|
const I = E(() => g(r.modelValue) || !S() ? l : r.modelValue);
|
|
9958
|
-
Vt(
|
|
9959
|
-
|
|
9960
|
-
|
|
9958
|
+
Vt(
|
|
9959
|
+
a,
|
|
9960
|
+
() => {
|
|
9961
|
+
b.value = A();
|
|
9962
|
+
},
|
|
9963
|
+
{ attributes: !1, childList: !0 }
|
|
9964
|
+
), ge(() => {
|
|
9961
9965
|
b.value = A();
|
|
9962
9966
|
});
|
|
9963
9967
|
function A() {
|
package/package.json
CHANGED
|
@@ -33,7 +33,14 @@ const Template = (args) => ({
|
|
|
33
33
|
// For optional, make sure the default option is selected
|
|
34
34
|
// For required, try to submit, it should be prevented
|
|
35
35
|
const value = ref('test');
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
// Test if dynamically added options are available & selected
|
|
38
|
+
const showTest = ref(false);
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
showTest.value = true;
|
|
41
|
+
}, 3000);
|
|
42
|
+
|
|
43
|
+
return { args, value, showTest, onSubmit };
|
|
37
44
|
},
|
|
38
45
|
template: `
|
|
39
46
|
<form @submit.prevent="onSubmit" class="border-none">
|
|
@@ -42,6 +49,7 @@ const Template = (args) => ({
|
|
|
42
49
|
<option value="javascript">JavaScript</option>
|
|
43
50
|
<option value="typescript">Typescript</option>
|
|
44
51
|
<option value="golang">Golang</option>
|
|
52
|
+
<option v-if="showTest" value="test">Test</option>
|
|
45
53
|
</BaseSelect>
|
|
46
54
|
<button type="submit" class="btn btn-primary mt-5">Submit</button>
|
|
47
55
|
</form>
|
|
@@ -113,9 +113,13 @@ const modelValueInternal = computed(() => {
|
|
|
113
113
|
/**
|
|
114
114
|
* Checks if the current modelValue is valid
|
|
115
115
|
*/
|
|
116
|
-
useMutationObserver(
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
useMutationObserver(
|
|
117
|
+
select,
|
|
118
|
+
() => {
|
|
119
|
+
options.value = getOptions();
|
|
120
|
+
},
|
|
121
|
+
{ attributes: false, childList: true }
|
|
122
|
+
);
|
|
119
123
|
|
|
120
124
|
onMounted(() => {
|
|
121
125
|
options.value = getOptions();
|