You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/demo/custom-value-mapping.md
+15-13
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
title: 'Custom Option Label and Value properties'
2
+
title: 'Custom value mapping'
3
3
---
4
4
5
-
# Custom Option Label and Value properties
5
+
# Custom value mapping
6
6
7
7
::: warning
8
8
This isn't a common use-case. You should use the `label` and `value` properties of the option object when possible.
@@ -12,7 +12,7 @@ Read more about [`getOptionLabel` and `getOptionValue` props](../props.md).
12
12
13
13
In the rare case you need to use different properties for the `label` and `value` of an option, you can use the `getOptionLabel` and `getOptionValue` props.
14
14
15
-
If you're using TypeScript, be sure to read the [type-safety guide for these props](../typescript.md#using-custom-label-value-with-options) section.
15
+
If you're using TypeScript, be sure to read the [type-safety guide for these props](../typescript.md#custom-value-mapping) section.
16
16
17
17
<scriptsetup>
18
18
import { ref } from"vue";
@@ -22,16 +22,18 @@ import VueSelect from "../../src";
0 commit comments