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

\n", + "link": "popeditor/auto-lookup", + "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": "auto-lookup" } ] diff --git a/examples/docs/resources/pc/demo-config/zh-CN/pop-editor.json b/examples/docs/resources/pc/demo-config/zh-CN/pop-editor.json index 9014623ab..840e0566a 100644 --- a/examples/docs/resources/pc/demo-config/zh-CN/pop-editor.json +++ b/examples/docs/resources/pc/demo-config/zh-CN/pop-editor.json @@ -254,5 +254,13 @@ "component": " PopEditor 弹出编辑", "findIntroStr": "该组件只能在弹出的面板中选择数据,不能手动输入数据;弹出面板中显示为 Tree 组件或者 Grid 组件。", "demoId": "show-history" + }, + { + "title": "远程数据请求", + "content": "

配置 auto-lookup 为false,设置初始化不请求数据,也可以调用 this.$refs.popeditor.handleSearch() 主动调用请求方法

\n", + "link": "popeditor/auto-lookup", + "component": " PopEditor 弹出编辑", + "findIntroStr": "该组件只能在弹出的面板中选择数据,不能手动输入数据;弹出面板中显示为 Tree 组件或者 Grid 组件。", + "demoId": "auto-lookup" } ] diff --git a/examples/docs/resources/pc/demo/popeditor/auto-lookup.vue b/examples/docs/resources/pc/demo/popeditor/auto-lookup.vue new file mode 100644 index 000000000..ae5156a2b --- /dev/null +++ b/examples/docs/resources/pc/demo/popeditor/auto-lookup.vue @@ -0,0 +1,89 @@ + + + \ No newline at end of file