潘志宝
2025-02-05 3e5f6c444a32a66a6111aacd3a4c5212c32bdf9e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
 
/** 用户卡片属性 */
export interface UserCardProperty {
  // 组件样式
  style: ComponentStyle
}
 
// 定义组件
export const component = {
  id: 'UserCard',
  name: '用户卡片',
  icon: 'mdi:user-card-details',
  property: {
    style: {
      bgType: 'color',
      bgColor: '',
      marginBottom: 8
    } as ComponentStyle
  }
} as DiyComponent<UserCardProperty>