@v-c/select 1.0.4 → 1.0.6

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.
@@ -114,7 +114,7 @@ const BaseSelect = /* @__PURE__ */ (0, vue.defineComponent)((props, { expose, at
114
114
  const mergedNotFoundContent = (0, vue.computed)(() => {
115
115
  return props.notFoundContent ?? "Not Found";
116
116
  });
117
- const emptyListContent = (0, vue.computed)(() => !mergedNotFoundContent.value && props.emptyOptions);
117
+ const emptyListContent = (0, vue.computed)(() => !props?.notFoundContent && props.emptyOptions);
118
118
  const [mergedOpen, triggerOpen] = require_useOpen.default(open, (openVal) => {
119
119
  props.onPopupVisibleChange?.(openVal);
120
120
  }, (nextOpen) => {
@@ -106,7 +106,7 @@ const BaseSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs }) =>
106
106
  const mergedNotFoundContent = computed(() => {
107
107
  return props.notFoundContent ?? "Not Found";
108
108
  });
109
- const emptyListContent = computed(() => !mergedNotFoundContent.value && props.emptyOptions);
109
+ const emptyListContent = computed(() => !props?.notFoundContent && props.emptyOptions);
110
110
  const [mergedOpen, triggerOpen] = useOpen(open, (openVal) => {
111
111
  props.onPopupVisibleChange?.(openVal);
112
112
  }, (nextOpen) => {
package/dist/Select.cjs CHANGED
@@ -621,7 +621,7 @@ var Select = /* @__PURE__ */ (0, vue.defineComponent)({
621
621
  if (val !== internalValue.value) internalValue.value = val;
622
622
  });
623
623
  const setInternalValue = (val) => {
624
- if (props.value === void 0) internalValue.value = val;
624
+ internalValue.value = val;
625
625
  };
626
626
  const [mergedValues, getMixedOption] = require_useCache.default((0, vue.computed)(() => {
627
627
  const values = convert2LabelValues(multiple.value && internalValue.value === null ? [] : internalValue.value);
package/dist/Select.js CHANGED
@@ -614,7 +614,7 @@ var Select_default = /* @__PURE__ */ defineComponent({
614
614
  if (val !== internalValue.value) internalValue.value = val;
615
615
  });
616
616
  const setInternalValue = (val) => {
617
- if (props.value === void 0) internalValue.value = val;
617
+ internalValue.value = val;
618
618
  };
619
619
  const [mergedValues, getMixedOption] = useCache(computed(() => {
620
620
  const values = convert2LabelValues(multiple.value && internalValue.value === null ? [] : internalValue.value);
@@ -33,6 +33,7 @@ function useOpen(propOpen, onOpen, postOpen) {
33
33
  const taskLockRef = (0, vue.shallowRef)(false);
34
34
  const triggerEvent = (nextOpen) => {
35
35
  if (onOpen && mergedOpen.value !== nextOpen) onOpen(nextOpen);
36
+ if (propOpen.value !== void 0) return;
36
37
  stateOpen.value = nextOpen;
37
38
  };
38
39
  const toggleOpen = (nextOpen, config = {}) => {
@@ -28,6 +28,7 @@ function useOpen(propOpen, onOpen, postOpen) {
28
28
  const taskLockRef = shallowRef(false);
29
29
  const triggerEvent = (nextOpen) => {
30
30
  if (onOpen && mergedOpen.value !== nextOpen) onOpen(nextOpen);
31
+ if (propOpen.value !== void 0) return;
31
32
  stateOpen.value = nextOpen;
32
33
  };
33
34
  const toggleOpen = (nextOpen, config = {}) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/select",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "MIT",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@v-c/overflow": "^1.0.1",
33
- "@v-c/trigger": "^1.0.2",
34
- "@v-c/util": "^1.0.5",
35
- "@v-c/virtual-list": "^1.0.5"
33
+ "@v-c/trigger": "^1.0.5",
34
+ "@v-c/util": "^1.0.8",
35
+ "@v-c/virtual-list": "^1.0.4"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "vite build",