@v-c/mentions 1.2.1 → 1.2.3

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.
@@ -50,10 +50,11 @@ var KeywordTrigger = /* @__PURE__ */ defineComponent((props, { slots }) => {
50
50
  "options": options,
51
51
  "opened": opened.value
52
52
  }, null);
53
+ const dropdownPopup = popupRender ? popupRender(dropdownElement) : dropdownElement;
53
54
  return createVNode(Trigger, {
54
55
  "prefixCls": dropdownPrefix,
55
56
  "popupVisible": visible,
56
- "popup": popupRender ? popupRender(dropdownElement) : dropdownElement,
57
+ "popup": dropdownPopup,
57
58
  "popupPlacement": dropdownPlacement.value,
58
59
  "popupMotion": { name: transitionName },
59
60
  "builtinPlacements": BUILT_IN_PLACEMENTS,
package/dist/Mentions.js CHANGED
@@ -123,7 +123,6 @@ var InternalMentions = /* @__PURE__ */ defineComponent((props, { slots, expose,
123
123
  return list.filter((option) => {
124
124
  /** Return all result if `filterOption` is false. */
125
125
  if (filterOption$1 === false) return true;
126
- if (typeof filterOption$1 !== "function") return true;
127
126
  return filterOption$1(targetMeasureText, option);
128
127
  });
129
128
  };
@@ -521,10 +520,20 @@ var InternalMentions = /* @__PURE__ */ defineComponent((props, { slots, expose,
521
520
  default: void 0
522
521
  },
523
522
  suffix: {
523
+ type: [
524
+ Object,
525
+ Function,
526
+ String,
527
+ Number,
528
+ null,
529
+ Boolean,
530
+ Array
531
+ ],
524
532
  required: false,
525
533
  default: void 0
526
534
  },
527
535
  count: {
536
+ type: Object,
528
537
  required: false,
529
538
  default: void 0
530
539
  },
@@ -574,7 +583,6 @@ var InternalMentions = /* @__PURE__ */ defineComponent((props, { slots, expose,
574
583
  split: " ",
575
584
  notFoundContent: "Not Found",
576
585
  validateSearch,
577
- filterOption,
578
586
  rows: 1
579
587
  }),
580
588
  name: "VMentions",
@@ -811,10 +819,20 @@ var Mentions = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
811
819
  default: void 0
812
820
  },
813
821
  suffix: {
822
+ type: [
823
+ Object,
824
+ Function,
825
+ String,
826
+ Number,
827
+ null,
828
+ Boolean,
829
+ Array
830
+ ],
814
831
  required: false,
815
832
  default: void 0
816
833
  },
817
834
  count: {
835
+ type: Object,
818
836
  required: false,
819
837
  default: void 0
820
838
  },
@@ -5,7 +5,8 @@ function useMentionsContext() {
5
5
  return inject(MentionsContextKey, ref());
6
6
  }
7
7
  var MentionsProvider = defineComponent((props, { slots }) => {
8
- provide(MentionsContextKey, computed(() => props.value));
8
+ const value = computed(() => props.value);
9
+ provide(MentionsContextKey, value);
9
10
  return () => {
10
11
  return slots?.default?.();
11
12
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/mentions",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.3",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/mentions",
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@v-c/input": "^1.1.2",
34
34
  "@v-c/menu": "^1.4.0",
35
- "@v-c/util": "^1.2.0",
36
- "@v-c/textarea": "^1.1.0",
37
- "@v-c/trigger": "^1.1.1"
35
+ "@v-c/trigger": "^1.1.4",
36
+ "@v-c/textarea": "^1.1.1",
37
+ "@v-c/util": "^1.3.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "vite build",