feat:重构按钮和icon组件
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"toy-button": "/ui/button/button"
|
||||
"toy-icon": "/toy/icon/icon",
|
||||
"toy-button": "/toy/button-v2/button"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view
|
||||
class="word-input-container"
|
||||
style="{{width ? 'width:' + width + ';' : ''}}">
|
||||
<van-icon
|
||||
<toy-icon
|
||||
class-prefix="toy-icon"
|
||||
name="translate"
|
||||
custom-class="word-input-icon"
|
||||
|
||||
Reference in New Issue
Block a user