From 8f9f3868b73cca750bd583948afe377a15adc479 Mon Sep 17 00:00:00 2001 From: ing <104059491+yuanningning@users.noreply.github.com> Date: Sun, 4 Jun 2023 20:13:57 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0auto-lookup=E5=B1=9E?= =?UTF-8?q?=E6=80=A7demo=E5=8F=8Aapi=E6=96=87=E6=A1=A3=20(#269)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/pc/api/en-US/popeditor.json | 7 ++ .../resources/pc/api/zh-CN/popeditor.json | 7 ++ .../pc/demo-config/en-US/pop-editor.json | 8 ++ .../pc/demo-config/zh-CN/pop-editor.json | 8 ++ .../pc/demo/popeditor/auto-lookup.vue | 89 +++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 examples/docs/resources/pc/demo/popeditor/auto-lookup.vue diff --git a/examples/docs/resources/pc/api/en-US/popeditor.json b/examples/docs/resources/pc/api/en-US/popeditor.json index 61bb1f103..e2e0415d9 100644 --- a/examples/docs/resources/pc/api/en-US/popeditor.json +++ b/examples/docs/resources/pc/api/en-US/popeditor.json @@ -195,6 +195,13 @@ "type": "String", "desc": "Customized configuration pop-up window class name", "defaultValue": "" + }, + { + "name": "auto-lookup", + "sample": "auto-lookup", + "type": "Boolean", + "desc": "Set initialization not to request data", + "defaultValue": "true" } ], "slots": [ diff --git a/examples/docs/resources/pc/api/zh-CN/popeditor.json b/examples/docs/resources/pc/api/zh-CN/popeditor.json index 236b07345..08f3975a1 100644 --- a/examples/docs/resources/pc/api/zh-CN/popeditor.json +++ b/examples/docs/resources/pc/api/zh-CN/popeditor.json @@ -195,6 +195,13 @@ "type": "String", "desc": "自定义配置弹窗类名", "defaultValue": "" + }, + { + "name": "auto-lookup", + "sample": "auto-lookup", + "type": "Boolean", + "desc": "设置初始化不请求数据", + "defaultValue": "true" } ], "slots": [ diff --git a/examples/docs/resources/pc/demo-config/en-US/pop-editor.json b/examples/docs/resources/pc/demo-config/en-US/pop-editor.json index 3a56c3dc5..5267bf325 100644 --- a/examples/docs/resources/pc/demo-config/en-US/pop-editor.json +++ b/examples/docs/resources/pc/demo-config/en-US/pop-editor.json @@ -254,5 +254,13 @@ "component": "PopEditor pop-up editing", "findIntroStr": "This component can only select data in the pop-up panel. Data cannot be manually entered. The tree or grid component is displayed in the pop-up panel.", "demoId": "show-history" + }, + { + "title": "Remote Data Request", + "content": "
Configure the auto-lookup
to false, set initialization to not request data, or call this $ref.popuptor.handleSearch() Proactively calls the request method
配置 auto-lookup
为false,设置初始化不请求数据,也可以调用 this.$refs.popeditor.handleSearch() 主动调用请求方法