From 4ccef9dc20ecdb022963a31d108d5c9b86ff70bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Mon, 25 Dec 2023 19:03:23 +0800 Subject: [PATCH] no message --- src/components/xTableSelect/index.vue | 460 ++++++++++++++------------ src/config/tableSelect.js | 10 +- 2 files changed, 252 insertions(+), 218 deletions(-) diff --git a/src/components/xTableSelect/index.vue b/src/components/xTableSelect/index.vue index 62be763..aadf69f 100644 --- a/src/components/xTableSelect/index.vue +++ b/src/components/xTableSelect/index.vue @@ -10,9 +10,6 @@ - - -
@@ -24,226 +21,259 @@ diff --git a/src/config/tableSelect.js b/src/config/tableSelect.js index 6a0de9a..01a1c77 100644 --- a/src/config/tableSelect.js +++ b/src/config/tableSelect.js @@ -1,7 +1,7 @@ //表格选择器配置 export default { limit: 20, //表格每一页条数 - parseData: function(res) { + parseData: function (res) { return { data: res.data, rows: res.data.data, //分析行数据字段结构 @@ -16,7 +16,11 @@ export default { keyword: 'keyword' //规定搜索字段 }, props: { - label: 'label', // 映射label显示字段 - value: 'value', // 映射value值字段 + key: null, + label: 'id', // 映射label显示字段 + value: 'name', // 映射value值字段 + field: { + + } } } \ No newline at end of file