From eaad22d9dae9a952f0474ca0a01bfeef570a96a0 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 07 Apr 2023 11:45:44 +0800 Subject: [PATCH] 增加数组交换元素顺序方法 --- layout/description/CDescription.vue | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/layout/description/CDescription.vue b/layout/description/CDescription.vue index 55da391..9cc153e 100644 --- a/layout/description/CDescription.vue +++ b/layout/description/CDescription.vue @@ -6,7 +6,7 @@ <template> <view class="c-description" - :class="hasBorder?'c-description-bordered':''" + :class="[hasBorder?'c-description-bordered':'', enlarged?'c-description-enlarged':'']" > <view class="c-description-label" @@ -21,20 +21,28 @@ <script> import Taro from '@tarojs/taro'; import {} from 'taro-ui-vue'; -import './CDescription.scss'; +import './cDescription.scss'; export default { name: 'CDescription', components: {}, props: { + // 左边标题 label: String, + // 标题对齐方式:left(定宽左对齐)、right(定宽右对齐)、none(无宽度) labelAlign: { type: String, - default: 'left', // left、right + default: 'left', }, + // 加大显示区域 + enlarged: { + type: Boolean, + default: false, + }, + // 是否有底部边线 hasBorder: { type: Boolean, - default: true, + default: false, }, }, data() { -- Gitblit v1.9.1