fix: 移动端列表页删除按钮改为编辑按钮
卡片底部按钮从 🗑 删除改为 ✏️ 编辑,编辑表单内保留删除功能 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ async function handleDelete(id: string) {
|
||||
<div class="card-content">{{ item.description }}</div>
|
||||
<div class="card-footer">
|
||||
<span class="card-customer">{{ item.customer_name }}</span>
|
||||
<button class="card-delete" @click.stop="handleDelete(item.id)">🗑</button>
|
||||
<button class="card-action" @click.stop="router.push(`/m/key-visit/${item.id}/edit`)">✏️</button>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -86,8 +86,8 @@ async function handleDelete(id: string) {
|
||||
.card-content { font-family: var(--font-body); font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
|
||||
.card-footer { display: flex; align-items: center; justify-content: space-between; }
|
||||
.card-customer { font-size: 12px; color: var(--warm-gray); }
|
||||
.card-delete { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-delete:hover { opacity: 1; }
|
||||
.card-action { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-action:hover { opacity: 1; }
|
||||
.empty-state { text-align: center; padding: 48px 0; }
|
||||
.empty-glyph { font-family: var(--font-heading); font-size: 40px; color: var(--gold); opacity: 0.4; margin-bottom: 8px; }
|
||||
.empty-text { font-family: var(--font-body); font-size: 15px; color: var(--warm-gray); margin: 0; }
|
||||
|
||||
@@ -53,7 +53,7 @@ async function handleDelete(id: string) {
|
||||
<div class="card-content">{{ item.product_type }}</div>
|
||||
<div class="card-footer">
|
||||
<span class="card-customer">{{ item.customer_name }}</span>
|
||||
<button class="card-delete" @click.stop="handleDelete(item.id)">🗑</button>
|
||||
<button class="card-action" @click.stop="router.push(`/m/mini-biz/${item.id}/edit`)">✏️</button>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -86,8 +86,8 @@ async function handleDelete(id: string) {
|
||||
.card-content { font-family: var(--font-body); font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
|
||||
.card-footer { display: flex; align-items: center; justify-content: space-between; }
|
||||
.card-customer { font-size: 12px; color: var(--warm-gray); }
|
||||
.card-delete { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-delete:hover { opacity: 1; }
|
||||
.card-action { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-action:hover { opacity: 1; }
|
||||
.empty-state { text-align: center; padding: 48px 0; }
|
||||
.empty-glyph { font-family: var(--font-heading); font-size: 40px; color: var(--gold); opacity: 0.4; margin-bottom: 8px; }
|
||||
.empty-text { font-family: var(--font-body); font-size: 15px; color: var(--warm-gray); margin: 0; }
|
||||
|
||||
@@ -51,7 +51,7 @@ async function handleDelete(id: string) {
|
||||
<div class="card-content">{{ item.plan_content }}</div>
|
||||
<div class="card-footer">
|
||||
<span class="card-customer">{{ item.customer_name }}</span>
|
||||
<button class="card-delete" @click.stop="handleDelete(item.id)">🗑</button>
|
||||
<button class="card-action" @click.stop="router.push(`/m/work-plan/${item.id}/edit`)">✏️</button>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -84,8 +84,8 @@ async function handleDelete(id: string) {
|
||||
.card-content { font-family: var(--font-body); font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
|
||||
.card-footer { display: flex; align-items: center; justify-content: space-between; }
|
||||
.card-customer { font-size: 12px; color: var(--warm-gray); }
|
||||
.card-delete { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-delete:hover { opacity: 1; }
|
||||
.card-action { background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; }
|
||||
.card-action:hover { opacity: 1; }
|
||||
.empty-state { text-align: center; padding: 48px 0; }
|
||||
.empty-glyph { font-family: var(--font-heading); font-size: 40px; color: var(--gold); opacity: 0.4; margin-bottom: 8px; }
|
||||
.empty-text { font-family: var(--font-body); font-size: 15px; color: var(--warm-gray); margin: 0; }
|
||||
|
||||
Reference in New Issue
Block a user