mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
Address PR comments
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<el-card class="box-card">
|
||||
<template #header class="clearfix">
|
||||
<span>卡片名称</span>
|
||||
<el-button style="float: right; padding: 3px 0" type="text" @click="alert">点我</el-button>
|
||||
<span>Card name</span>
|
||||
<el-button style="float: right; padding: 3px 0" type="text" @click="alert">Click Me</el-button>
|
||||
</template>
|
||||
<div v-for="o in 4" :key="o" class="text item">{{ '列表内容 ' + o }}</div>
|
||||
<div v-for="o in 4" :key="o" class="text item">{{ 'List Content ' + o }}</div>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
export default {
|
||||
methods: {
|
||||
alert(): void {
|
||||
alert('点我干嘛')
|
||||
alert('Why do you click me?')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,5 +3,5 @@ export default {
|
||||
}
|
||||
|
||||
export const BasicCard = () :string => '<el-card header="I am the header">basic card</el-card>'
|
||||
export const MinimalCard = (): string => '<el-card>minimal card with no header</el-card>'
|
||||
export const MinimalCard = (): string => '<el-card>Minimal card with no header</el-card>'
|
||||
export { default as ComplexCard } from './complex.vue'
|
||||
|
||||
@@ -6,7 +6,7 @@ import ElTag from '@element-plus/tag'
|
||||
import ElDivider from '@element-plus/divider'
|
||||
|
||||
export {
|
||||
ElButton, ElBadge, ElTag, ElDivider,
|
||||
ElButton, ElBadge, ElCard, ElDivider, ElTag,
|
||||
}
|
||||
|
||||
export default function install(app: App): void {
|
||||
|
||||
Reference in New Issue
Block a user