xrk-components 2.0.0-beta.83 → 2.0.0-beta.84
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/lib/index.esm.js +4 -0
- package/lib/index.umd.js +4 -0
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -73296,6 +73296,10 @@ var script$o = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$m
|
|
|
73296
73296
|
var searchValue = ref('');
|
|
73297
73297
|
// 父组件值发生改变时,同步selectValue
|
|
73298
73298
|
watch(function () { return props.modelValue; }, function (newV) {
|
|
73299
|
+
// 防止执行setOptionsData后,remoteSelected和model才有数据的异步情况
|
|
73300
|
+
if (newV && !selectValue.value) {
|
|
73301
|
+
setRemoteSelected(_options.value);
|
|
73302
|
+
}
|
|
73299
73303
|
selectValue.value = newV;
|
|
73300
73304
|
});
|
|
73301
73305
|
var getSelectOptions = function (options, selectValue) {
|
package/lib/index.umd.js
CHANGED
|
@@ -73299,6 +73299,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73299
73299
|
var searchValue = vue.ref('');
|
|
73300
73300
|
// 父组件值发生改变时,同步selectValue
|
|
73301
73301
|
vue.watch(function () { return props.modelValue; }, function (newV) {
|
|
73302
|
+
// 防止执行setOptionsData后,remoteSelected和model才有数据的异步情况
|
|
73303
|
+
if (newV && !selectValue.value) {
|
|
73304
|
+
setRemoteSelected(_options.value);
|
|
73305
|
+
}
|
|
73302
73306
|
selectValue.value = newV;
|
|
73303
73307
|
});
|
|
73304
73308
|
var getSelectOptions = function (options, selectValue) {
|