feat:重构按钮和icon组件
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
"styleIsolation": "isolated",
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"toy-button": "/ui/button/button"
|
||||
"toy-button": "/toy/button-v2/button"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"styleIsolation": "isolated",
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"toy-button": "/ui/button/button"
|
||||
"toy-icon": "/toy/icon/icon",
|
||||
"toy-button": "/toy/button-v2/button"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</toy-button>
|
||||
</view>
|
||||
<view class="step-box {{currentStep}}-step {{platform}}">
|
||||
<van-icon
|
||||
<toy-icon
|
||||
class-prefix="toy-icon"
|
||||
name="guide"
|
||||
color="#FFEB3B"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toy-button": "../../ui/button/button"
|
||||
"toy-button": "../../toy/button-v2/button"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"toy-button": "../../ui/button/button",
|
||||
"toy-button": "../../toy/button-v2/button",
|
||||
"van-action-sheet": "../../miniprogram_npm/@vant/weapp/action-sheet/index"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
"toy-icon": "/toy/icon/icon"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
bind:tap="onShapeTap" />
|
||||
</view>
|
||||
<view class="delete-icon" bind:tap="onDelete">
|
||||
<van-icon
|
||||
<toy-icon
|
||||
class-prefix="toy-icon"
|
||||
name="dustbin-o"
|
||||
custom-class="delete-icon-inner"
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"styleIsolation": "isolated",
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"toy-button": "/ui/button/button"
|
||||
"toy-button": "/toy/button-v2/button"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
"toy-icon": "/toy/icon/icon"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<text class="word-content">{{word}}</text>
|
||||
</view>
|
||||
<view class="delete-icon" bindtap="onDelete">
|
||||
<van-icon
|
||||
<toy-icon
|
||||
class-prefix="toy-icon"
|
||||
name="dustbin-o"
|
||||
custom-class="delete-icon-inner"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"styleIsolation": "isolated",
|
||||
"usingComponents": {
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"toy-button": "/ui/button/button",
|
||||
"toy-button": "/toy/button-v2/button",
|
||||
"van-tab": "@vant/weapp/tab/index",
|
||||
"van-tabs": "@vant/weapp/tabs/index"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user