mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
parent
c32e55f9fb
commit
f88d46e231
@ -212,15 +212,17 @@ import { Edit, Share, Delete, Search, Loading } from '@element-plus/icons-vue'
|
||||
|
||||
<IconList />
|
||||
|
||||
## Icon Attributes
|
||||
## API
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ------- | -------------------------- | ------------------------------ | ---------------------- |
|
||||
| `color` | SVG tag's fill attribute | `Pick<CSSProperties, 'color'>` | inherit from color |
|
||||
| `size` | SVG icon size, size x size | `number \| string` | inherit from font size |
|
||||
### Attributes
|
||||
|
||||
## Icon Slots
|
||||
| Name | Description | Type | Default |
|
||||
| ----- | -------------------------- | --------------------- | ---------------------- |
|
||||
| color | SVG tag's fill attribute | ^[string] | inherit from color |
|
||||
| size | SVG icon size, size x size | ^[number] / ^[string] | inherit from font size |
|
||||
|
||||
| Name | Description |
|
||||
| --------- | ------------------------- |
|
||||
| `default` | customize default content |
|
||||
### Slots
|
||||
|
||||
| Name | Description |
|
||||
| ------- | ------------------------- |
|
||||
| default | customize default content |
|
||||
|
@ -3,9 +3,15 @@ import type { ExtractPropTypes } from 'vue'
|
||||
import type Icon from './icon.vue'
|
||||
|
||||
export const iconProps = buildProps({
|
||||
/**
|
||||
* @description SVG icon size, size x size
|
||||
*/
|
||||
size: {
|
||||
type: definePropType<number | string>([Number, String]),
|
||||
},
|
||||
/**
|
||||
* @description SVG tag's fill attribute
|
||||
*/
|
||||
color: {
|
||||
type: String,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user