From 432178df70dcd0bc26fcc25cf188064a1fed2ced Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Tue, 14 May 2024 19:23:23 +0800 Subject: [PATCH] 删除无用代码 --- layout/card/CCardTitle.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/layout/card/CCardTitle.vue b/layout/card/CCardTitle.vue index 2434682..7ef8b04 100644 --- a/layout/card/CCardTitle.vue +++ b/layout/card/CCardTitle.vue @@ -4,7 +4,11 @@ */ <template> - <view class="c-card-title"> + <view class="c-card-title m-border-strong-bottom"> + <view class="c-card-title-title">{{title}}</view> + <view class="c-card-title-extra"> + <slot /> + </view> </view> </template> @@ -15,7 +19,18 @@ export default { name: 'CCardTitle', components: {}, - props: {}, + props: { + // 标题 + title: { + type: String, + default: '列表卡片标题', + }, + // 标题点击 + onTitleClick: { + type: Function, + default: () => null, + }, + }, data() { return {}; }, -- Gitblit v1.9.1