Card 卡片
简要描述
Card
primary
Card
success
Card
warning
Card
danger
Card
info
Card
Code 代码
<template>
<agm-card v-for="(type, i) in types" :key="i" :type="type">
<template #header>
{{ type }}
</template>
Card
</agm-card>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { AgmTypeMap } from '@augma/shared'
import AgmCard from './src/index.vue'
const types = ref(AgmTypeMap)
</script>
API
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
type | 类型 | string | - | - |