feat: 增加时间轴功能
This commit is contained in:
@@ -13,9 +13,17 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="p-3">
|
||||
<wd-search v-model="patchStore.patchSearch"
|
||||
:maxlength="20" :placeholder-left="true" :hide-cancel="true"
|
||||
placeholder="请输入菜地名称或者菜地地点"
|
||||
@change="patchStore.queryPatchList()"
|
||||
@clear="patchStore.queryPatchList()"/>
|
||||
</view>
|
||||
|
||||
<wd-card v-for="(item, index) in patchStore.patchList" :key="item.id">
|
||||
<template #title>
|
||||
<view class="wd-card__title-text flex items-center justify-between">
|
||||
<view class="wd-card__title-text flex items-center justify-between" @click="editPatchClick(item)">
|
||||
<text>{{ item.name }}</text>
|
||||
<text v-if="item.location" class="text-sm text-[#999]">{{ item.location }}</text>
|
||||
</view>
|
||||
@@ -44,7 +52,6 @@
|
||||
<wd-text v-else text="暂无作物 请先添加"/>
|
||||
|
||||
<view class="flex gap-1">
|
||||
<wd-button icon="edit" round @click="editPatchClick(item)"></wd-button>
|
||||
<wd-button icon="list" round @click="viewDetailClick(item)"></wd-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user