[improvement] Panel: add icon prop (#1942)

This commit is contained in:
neverland
2018-10-17 11:53:02 +08:00
committed by GitHub
parent 9c5fa8a9d4
commit fcd5a53cf7
3 changed files with 10 additions and 1 deletions

View File

@@ -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