From 57be30cf6b469683eda31b8cf5eb789178fe5f5f Mon Sep 17 00:00:00 2001 From: linzisong Date: Wed, 24 Jul 2024 13:46:13 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20select=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E8=BF=9C=E7=A8=8B=E9=80=89=E9=A1=B9=E6=96=87=E6=A1=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/form-config/fields/select.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/form-config/fields/select.md b/docs/form-config/fields/select.md index 0cb8f9e0..fa15f6a5 100644 --- a/docs/form-config/fields/select.md +++ b/docs/form-config/fields/select.md @@ -162,6 +162,15 @@ +同时在 `src/main.ts` 中需要自定义实现请求 +```typescript +app.use(MagicForm, { + request: async (options: any) => { + // 自定义请求实现 + }, +}); +``` + :::tip 如果 Select 的绑定值为对象类型,请务必指定 valueKey 作为它的唯一性标识。 :::