From 888314338275fa44c220268cce9fbecb19fc13af Mon Sep 17 00:00:00 2001 From: xiongmao86 Date: Sat, 22 Apr 2023 10:40:09 +0800 Subject: [PATCH] Add description of value-by for button toggle. --- packages/docs/locales/en.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/docs/locales/en.json b/packages/docs/locales/en.json index c5d53c46757..3cd8f40d4de 100644 --- a/packages/docs/locales/en.json +++ b/packages/docs/locales/en.json @@ -1226,7 +1226,8 @@ "toggleColor": "Color of the toggle button", "activeButtonTextColor": "The color of the button text with the selected value", "textBy": "When `options` prop is an object, this key will be used as displayed text. Can be string (path to the key) or function of type: `(option) => option.text`", - "trackBy": "When `options` prop is an object, this key will be used to track selected `options`. Can be string (path to the key) or function of type: `(option) => option.track`" + "trackBy": "When `options` prop is an object, this key will be used to track selected `options`. Can be string (path to the key) or function of type: `(option) => option.track`", + "valueBy": "When `options` prop is an object, this key will be used as `modelValue`. Can be string (path to the key) or function of type: `(option) => option.value`" }, "events": { "input": "Emits when toggling to the different button"