From 2fa9bc6228ed01f6739c6ac1f29e40a1f05a386e Mon Sep 17 00:00:00 2001 From: dongwug Date: Mon, 17 Oct 2022 18:50:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:addonline(=E6=9C=AA=E5=AE=8C=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddOnline.vue | 33 +++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/components/drawers/AddOnline.vue b/src/components/drawers/AddOnline.vue index 772b81cf..9bf68249 100644 --- a/src/components/drawers/AddOnline.vue +++ b/src/components/drawers/AddOnline.vue @@ -64,6 +64,9 @@ 清空 +
+ +
@@ -75,7 +78,24 @@ import { reactive, toRefs, ref } from "vue"; value: "value1", label: "请选择状态", }, - ]); + ]); + const columns1 = [ + { + title: "课程编号", + width: 100, + dataIndex: "num", + key: "num", + align: "center", + }, + { + title: "名称", + width: 200, + dataIndex: "name", + key: "name", + ellipsis: true, + align: "center", + }, + ] export default { name: "AddOnline", props: { @@ -85,7 +105,14 @@ import { reactive, toRefs, ref } from "vue"; }, }, setup(props, ctx) { - const state = reactive({}); + const state = reactive({ + tableData1: [ + { + key: "1", + num: 1, + }, + ] + }); const closeDrawer = () => { ctx.emit("update:addonlineVisible", false); }; @@ -95,13 +122,13 @@ import { reactive, toRefs, ref } from "vue"; const showDrawerOnline = () => { state.visible = true; }; - return { ...toRefs(state), afterVisibleChange, showDrawerOnline, closeDrawer, options1, + columns1, // change, }; },