From de96b8937aeb96fcf0572053ed0ea2cb5167ec44 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Thu, 1 Sep 2022 22:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EDropdownTable=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Dropdown/DropdownTable.vue | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue index f3a0e282..df0de6a2 100644 --- a/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue +++ b/neutrino-proxy-admin/src/components/Dropdown/DropdownTable.vue @@ -1,6 +1,6 @@ @@ -22,6 +22,10 @@ type: String, default: '' }, + width: { + type: Number, + default: 700 + }, placeholder: { type: String, default: '请选择' @@ -36,11 +40,6 @@ }, data() { return { - pagination: { - TotalCount: 0, - PageIndex: 1, - PageSize: 10 - }, countryColumns: [ { prop: 'NameCn', @@ -64,35 +63,15 @@ } ], popVisible: false, - selected: [], timer: null } }, - created() {}, - computed: { - keyWords: { - get() { - return this.name - }, - set(val) { - this.$emit('update:name', val) - } - } - }, methods: { handleRowClick(val) { this.$emit('selectedData', val) this.timer = setTimeout(() => { this.popVisible = false }, 200) - }, - handleSizeChange(val) { - this.pagination.PageSize = val - this.getList() - }, - handleCurrentChange(val) { - this.pagination.PageIndex = val - this.getList() } }, destroyed() {