vant
This commit is contained in:
1
utils/dist/goods-action-icon/index.d.ts
vendored
Normal file
1
utils/dist/goods-action-icon/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
22
utils/dist/goods-action-icon/index.js
vendored
Normal file
22
utils/dist/goods-action-icon/index.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
import { link } from '../mixins/link';
|
||||
import { button } from '../mixins/button';
|
||||
import { openType } from '../mixins/open-type';
|
||||
VantComponent({
|
||||
classes: ['icon-class', 'text-class'],
|
||||
mixins: [link, button, openType],
|
||||
props: {
|
||||
text: String,
|
||||
dot: Boolean,
|
||||
info: String,
|
||||
icon: String,
|
||||
disabled: Boolean,
|
||||
loading: Boolean
|
||||
},
|
||||
methods: {
|
||||
onClick(event) {
|
||||
this.$emit('click', event.detail);
|
||||
this.jumpLink();
|
||||
}
|
||||
}
|
||||
});
|
||||
7
utils/dist/goods-action-icon/index.json
vendored
Normal file
7
utils/dist/goods-action-icon/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-icon": "../icon/index",
|
||||
"van-button": "../button/index"
|
||||
}
|
||||
}
|
||||
38
utils/dist/goods-action-icon/index.wxml
vendored
Normal file
38
utils/dist/goods-action-icon/index.wxml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<van-button
|
||||
square
|
||||
id="{{ id }}"
|
||||
size="large"
|
||||
lang="{{ lang }}"
|
||||
loading="{{ loading }}"
|
||||
disabled="{{ disabled }}"
|
||||
open-type="{{ openType }}"
|
||||
business-id="{{ businessId }}"
|
||||
custom-class="van-goods-action-icon"
|
||||
session-from="{{ sessionFrom }}"
|
||||
app-parameter="{{ appParameter }}"
|
||||
send-message-img="{{ sendMessageImg }}"
|
||||
send-message-path="{{ sendMessagePath }}"
|
||||
show-message-card="{{ showMessageCard }}"
|
||||
send-message-title="{{ sendMessageTitle }}"
|
||||
bind:click="onClick"
|
||||
binderror="bindError"
|
||||
bindcontact="bindContact"
|
||||
bindopensetting="bindOpenSetting"
|
||||
bindgetuserinfo="bindGetUserInfo"
|
||||
bindgetphonenumber="bindGetPhoneNumber"
|
||||
bindlaunchapp="bindLaunchApp"
|
||||
>
|
||||
<view class="van-goods-action-icon__content">
|
||||
<van-icon
|
||||
wx:if="{{ icon }}"
|
||||
size="20px"
|
||||
name="{{ icon }}"
|
||||
dot="{{ dot }}"
|
||||
info="{{ info }}"
|
||||
class="van-goods-action-icon__icon"
|
||||
custom-class="icon-class"
|
||||
/>
|
||||
<slot name="icon" />
|
||||
<text class="text-class">{{ text }}</text>
|
||||
</view>
|
||||
</van-button>
|
||||
1
utils/dist/goods-action-icon/index.wxss
vendored
Normal file
1
utils/dist/goods-action-icon/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import '../common/index.wxss';.van-goods-action-icon{border:none!important;width:50px!important;width:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center;height:100%;line-height:1;font-size:10px;font-size:var(--goods-action-icon-font-size,10px);color:#646566;color:var(--goods-action-icon-text-color,#646566)}.van-goods-action-icon__icon{margin-bottom:4px}
|
||||
Reference in New Issue
Block a user