feat: 添加自定义iconfont
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
Component({
|
||||
options: {
|
||||
//@ts-ignore
|
||||
styleIsolation: 'apply-shared',
|
||||
},
|
||||
properties: {
|
||||
// icon name
|
||||
name: {
|
||||
type: String,
|
||||
value: '',
|
||||
optionalTypes: [String],
|
||||
},
|
||||
// icon color
|
||||
color: {
|
||||
type: String,
|
||||
value: '',
|
||||
optionalTypes: [String],
|
||||
},
|
||||
// icon size
|
||||
size: {
|
||||
type: String,
|
||||
value: '',
|
||||
optionalTypes: [String],
|
||||
},
|
||||
// icon classPrefix
|
||||
classPrefix: {
|
||||
type: String,
|
||||
value: 'icon',
|
||||
optionalTypes: [String],
|
||||
},
|
||||
},
|
||||
externalClasses: ['ext-class'],
|
||||
data: {},
|
||||
methods: {},
|
||||
});
|
||||
Reference in New Issue
Block a user