From a2019ade7b884799e639150021c3cdeef27eea72 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 09 十一月 2024 11:40:52 +0800 Subject: [PATCH] 增加工号ui修改 --- components/z-data-list/z-data-list.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/components/z-data-list/z-data-list.vue b/components/z-data-list/z-data-list.vue index b07814f..b01db95 100644 --- a/components/z-data-list/z-data-list.vue +++ b/components/z-data-list/z-data-list.vue @@ -2,11 +2,11 @@ <view > <view class="main"> <view class="main-left" > - <view class="main-list" v-for="it in list" style="width: 100%;"> - <view class="left-key">{{it.key}}</view> - <view>:</view> + <view class="main-list" v-for="it in lable" style="width: 100%;"> + <view class="left-key">{{it.label}}</view> + <view>锛�</view> <view class="left-val"> - <text :class="it.valText">{{it.value}}</text> + <text :class="it.valText">{{fields[it.attribute]}}</text> </view> </view> </view> @@ -54,12 +54,18 @@ // this.dataList = this.list.detl }, props: { - list: { + lable: { type: Array, default() { return {} } }, + fields: { + type: Object, + default() { + return {} + } + }, keyName: { type: Object, default() { -- Gitblit v1.9.1