@v-c/mentions 1.2.0 → 1.2.1
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/Mentions.js +2 -2
- package/package.json +5 -5
package/dist/Mentions.js
CHANGED
|
@@ -6,7 +6,7 @@ import { filterOption, getBeforeSelectionText, getLastMeasureIndex, replaceWithM
|
|
|
6
6
|
import { Fragment, computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
7
7
|
import { BaseInput } from "@v-c/input";
|
|
8
8
|
import TextArea from "@v-c/textarea";
|
|
9
|
-
import { KeyCode, clsx, omit, useId } from "@v-c/util";
|
|
9
|
+
import { KeyCode, clsx, isVueRenderable, omit, useId } from "@v-c/util";
|
|
10
10
|
import { toArray } from "@v-c/util/dist/Children/toArray";
|
|
11
11
|
import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
12
12
|
//#region src/Mentions.tsx
|
|
@@ -581,7 +581,7 @@ var InternalMentions = /* @__PURE__ */ defineComponent((props, { slots, expose,
|
|
|
581
581
|
inheritAttrs: false
|
|
582
582
|
});
|
|
583
583
|
var Mentions = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
584
|
-
const hasSuffix = computed(() =>
|
|
584
|
+
const hasSuffix = computed(() => isVueRenderable(props.suffix) || Boolean(props.allowClear));
|
|
585
585
|
const holderRef = shallowRef();
|
|
586
586
|
const mentionRef = shallowRef();
|
|
587
587
|
const mergedValue = shallowRef(props?.value ?? props?.defaultValue ?? "");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/mentions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/mentions",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"vue": "^3.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@v-c/input": "^1.1.
|
|
34
|
-
"@v-c/menu": "^1.
|
|
33
|
+
"@v-c/input": "^1.1.2",
|
|
34
|
+
"@v-c/menu": "^1.4.0",
|
|
35
|
+
"@v-c/util": "^1.2.0",
|
|
35
36
|
"@v-c/textarea": "^1.1.0",
|
|
36
|
-
"@v-c/trigger": "^1.1.
|
|
37
|
-
"@v-c/util": "^1.1.0"
|
|
37
|
+
"@v-c/trigger": "^1.1.1"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "vite build",
|