@opentiny/vue-renderless 3.11.7 → 3.11.8

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.
@@ -117,7 +117,7 @@ var vue_popper_default = (options) => {
117
117
  return;
118
118
  }
119
119
  if (val) {
120
- updatePopper();
120
+ nextTick(updatePopper);
121
121
  }
122
122
  props.trigger === "manual" && emit("update:modelValue", val);
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-renderless",
3
- "version": "3.11.7",
3
+ "version": "3.11.8",
4
4
  "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
5
5
  "homepage": "https://opentiny.design/tiny-vue",
6
6
  "keywords": [
package/select/index.js CHANGED
@@ -885,10 +885,12 @@ const toVisible = ({ constants, state, props, vm, api, nextTick }) => () => {
885
885
  });
886
886
  postOperOfToVisible({ props, state, constants });
887
887
  };
888
- const toHide = ({ constants, state, props, vm, api }) => () => {
888
+ const toHide = ({ constants, state, props, vm, api, nextTick }) => () => {
889
889
  var _a, _b;
890
890
  state.selectEmitter.emit(constants.COMPONENT_NAME.SelectDropdown);
891
- state.selectEmitter.emit(constants.EVENT_NAME.updatePopper);
891
+ nextTick(() => {
892
+ state.selectEmitter.emit(constants.EVENT_NAME.updatePopper);
893
+ });
892
894
  if (state.filterOrSearch) {
893
895
  state.query = props.remote || props.shape ? "" : props.renderType !== constants.TYPE.Tree ? state.selectedLabel : "";
894
896
  state.previousQuery !== state.query && api.handleQueryChange(state.query);
package/select/vue.js CHANGED
@@ -257,7 +257,7 @@ const addApi = ({ api: api2, props, state, emit, constants, parent, nextTick, di
257
257
  handleFocus: handleFocus({ api: api2, emit, props, state }),
258
258
  deleteTag: deleteTag({ api: api2, constants, emit, props, vm, nextTick, state }),
259
259
  watchValue: watchValue({ api: api2, constants, dispatch, props, vm, state }),
260
- toHide: toHide({ constants, state, props, vm, api: api2 }),
260
+ toHide: toHide({ constants, state, props, vm, api: api2, nextTick }),
261
261
  toVisible: toVisible({ constants, state, props, vm, api: api2, nextTick }),
262
262
  setSelected: setSelected({ api: api2, constants, nextTick, props, vm, state }),
263
263
  selectOption: selectOption({ api: api2, state, props }),