mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
智慧宿舍系统小程序
This commit is contained in:
39
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.js
generated
vendored
Normal file
39
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
var component_1 = require('../common/component');
|
||||
var relation_1 = require('../common/relation');
|
||||
var button_1 = require('../mixins/button');
|
||||
var link_1 = require('../mixins/link');
|
||||
component_1.VantComponent({
|
||||
mixins: [link_1.link, button_1.button],
|
||||
relation: relation_1.useParent('goods-action'),
|
||||
props: {
|
||||
text: String,
|
||||
color: String,
|
||||
loading: Boolean,
|
||||
disabled: Boolean,
|
||||
plain: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
value: 'danger',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onClick: function (event) {
|
||||
this.$emit('click', event.detail);
|
||||
this.jumpLink();
|
||||
},
|
||||
updateStyle: function () {
|
||||
if (this.parent == null) {
|
||||
return;
|
||||
}
|
||||
var index = this.index;
|
||||
var _a = this.parent.children,
|
||||
children = _a === void 0 ? [] : _a;
|
||||
this.setData({
|
||||
isFirst: index === 0,
|
||||
isLast: index === children.length - 1,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
6
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.json
generated
vendored
Normal file
6
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"van-button": "../button/index"
|
||||
}
|
||||
}
|
||||
30
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.wxml
generated
vendored
Normal file
30
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.wxml
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
<van-button
|
||||
id="{{ id }}"
|
||||
lang="{{ lang }}"
|
||||
type="{{ type }}"
|
||||
color="{{ color }}"
|
||||
plain="{{ plain }}"
|
||||
loading="{{ loading }}"
|
||||
disabled="{{ disabled }}"
|
||||
open-type="{{ openType }}"
|
||||
class="{{ utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])}}"
|
||||
custom-class="van-goods-action-button__inner"
|
||||
business-id="{{ businessId }}"
|
||||
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="onError"
|
||||
bindcontact="onContact"
|
||||
bindopensetting="onOpenSetting"
|
||||
bindgetuserinfo="onGetUserInfo"
|
||||
bindgetphonenumber="onGetPhoneNumber"
|
||||
bindlaunchapp="onLaunchApp"
|
||||
>
|
||||
{{ text }}
|
||||
<slot></slot>
|
||||
</van-button>
|
||||
1
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.wxss
generated
vendored
Normal file
1
wechat/miniprogram/node_modules/@vant/weapp/lib/goods-action-button/index.wxss
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
|
||||
Reference in New Issue
Block a user