mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[improvement] Panel: add icon prop (#1942)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
<template>
|
||||
<cell-group :class="b()">
|
||||
<slot name="header">
|
||||
<cell :class="b('header')" :title="title" :label="desc" :value="status" />
|
||||
<cell
|
||||
:class="b('header')"
|
||||
:icon="icon"
|
||||
:label="desc"
|
||||
:title="title"
|
||||
:value="status"
|
||||
/>
|
||||
</slot>
|
||||
<div :class="b('content')">
|
||||
<slot />
|
||||
@@ -18,6 +24,7 @@ import create from '../utils/create';
|
||||
export default create({
|
||||
name: 'panel',
|
||||
props: {
|
||||
icon: String,
|
||||
desc: String,
|
||||
title: String,
|
||||
status: String
|
||||
|
Reference in New Issue
Block a user