@v-c/select 1.3.3 → 1.3.4

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.
@@ -10,7 +10,7 @@ import SelectInput from "../SelectInput/index.js";
10
10
  import SelectTrigger from "../SelectTrigger.js";
11
11
  import Polite from "./Polite.js";
12
12
  import { Fragment, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
13
- import { clsx, isNonNullable, isVueRenderable } from "@v-c/util";
13
+ import { clsx, isNonNullable, isVueRenderable, useScopeIdAttrs } from "@v-c/util";
14
14
  import { KeyCodeStr } from "@v-c/util/dist/KeyCode";
15
15
  import pickDefined from "@v-c/util/dist/pickDefined";
16
16
  import { getDOM } from "@v-c/util/dist/Dom/findDOMNode";
@@ -85,6 +85,7 @@ var omitKeys = [
85
85
  "components"
86
86
  ];
87
87
  var BaseSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
88
+ const scopeIdAttrs = useScopeIdAttrs();
88
89
  const mode = computed(() => props.mode);
89
90
  const getInputElement = computed(() => props.getInputElement);
90
91
  const getRawInputElement = computed(() => props.getRawInputElement);
@@ -325,7 +326,7 @@ var BaseSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
325
326
  [`${prefixCls}-customize-input`]: customizeInputElement,
326
327
  [`${prefixCls}-show-search`]: showSearch
327
328
  });
328
- let renderNode = createVNode(SelectInput, mergeProps(attrs, pickDefined(props, omitKeys), {
329
+ let renderNode = createVNode(SelectInput, mergeProps(scopeIdAttrs, attrs, pickDefined(props, omitKeys), {
329
330
  "ref": containerRef,
330
331
  "prefixCls": prefixCls,
331
332
  "className": mergedClassName,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/select",
3
3
  "type": "module",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  "vue": "^3.0.0"
35
35
  },
36
36
  "dependencies": {
37
+ "@v-c/util": "^1.4.3",
37
38
  "@v-c/trigger": "^1.1.7",
38
- "@v-c/util": "^1.4.2",
39
- "@v-c/virtual-list": "^1.1.8",
40
- "@v-c/overflow": "^1.1.3"
39
+ "@v-c/overflow": "^1.1.3",
40
+ "@v-c/virtual-list": "^1.1.8"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "vite build",