Skip to content

IconElement-DEMO


IconElement-Positions


Left, Right

vue
<fv-IconElement :value="positionH"></fv-IconElement>

Top, Bottom

vue
<fv-IconElement :value="positionV"></fv-IconElement>

Top-left, Top-right, Bottom-left, Bottom-right

vue
<fv-IconElement :value="positionsFour"></fv-IconElement>
javascript
positionH: [
    {
        name: "Dial1",
        position: 'left'
    },
    {
        name: "Dial2",
        position: 'right'
    }
],
positionV: [
    {
        name: "Dial3",
        position: 'top'
    },
    {
        name: "Dial4",
        position: 'bottom'
    }
],
positionsFour: [
    {
        name: "Dial5",
        position: 'top-left'
    },
    {
        name: "Dial6",
        position: 'top-right'
    },
    {
        name: "Dial7",
        position: 'bottom-left'
    },
    {
        name: "Dial8",
        position: 'bottom-right'
    }
]

IconElement-Icon Button


vue
<fv-IconElement :value="heart" :iconButton="true" paddingWidth="3"></fv-IconElement>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
valueArrayStringAppIconDefault
fontSizeStringNo16pxIconElement字体大小
paddingWidthStringNo0pxIconElement内边距
iconButtonBooleanNofalse是否以图标按钮样式呈现
borderRadiusStringNo0px图标按钮圆角
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
clickeventButton onclick

MIT Licensed