first
This commit is contained in:
1
node_modules/vant/es/goods-action-button/index.css
generated
vendored
Normal file
1
node_modules/vant/es/goods-action-button/index.css
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
.van-goods-action-button{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:40px;font-weight:500;font-size:14px;border:none;border-radius:0}.van-goods-action-button--first{margin-left:5px;border-top-left-radius:999px;border-bottom-left-radius:999px}.van-goods-action-button--last{margin-right:5px;border-top-right-radius:999px;border-bottom-right-radius:999px}.van-goods-action-button--warning{background:-webkit-linear-gradient(left,#ffd01e,#ff8917);background:linear-gradient(to right,#ffd01e,#ff8917)}.van-goods-action-button--danger{background:-webkit-linear-gradient(left,#ff6034,#ee0a24);background:linear-gradient(to right,#ff6034,#ee0a24)}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
|
57
node_modules/vant/es/goods-action-button/index.js
generated
vendored
Normal file
57
node_modules/vant/es/goods-action-button/index.js
generated
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import { createNamespace } from '../utils';
|
||||
import { route, routeProps } from '../utils/router';
|
||||
import { ChildrenMixin } from '../mixins/relation';
|
||||
import Button from '../button';
|
||||
|
||||
var _createNamespace = createNamespace('goods-action-button'),
|
||||
createComponent = _createNamespace[0],
|
||||
bem = _createNamespace[1];
|
||||
|
||||
export default createComponent({
|
||||
mixins: [ChildrenMixin('vanGoodsAction')],
|
||||
props: _extends({}, routeProps, {
|
||||
type: String,
|
||||
text: String,
|
||||
icon: String,
|
||||
color: String,
|
||||
loading: Boolean,
|
||||
disabled: Boolean
|
||||
}),
|
||||
computed: {
|
||||
isFirst: function isFirst() {
|
||||
var prev = this.parent && this.parent.children[this.index - 1];
|
||||
return !prev || prev.$options.name !== this.$options.name;
|
||||
},
|
||||
isLast: function isLast() {
|
||||
var next = this.parent && this.parent.children[this.index + 1];
|
||||
return !next || next.$options.name !== this.$options.name;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onClick: function onClick(event) {
|
||||
this.$emit('click', event);
|
||||
route(this.$router, this);
|
||||
}
|
||||
},
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
return h(Button, {
|
||||
"class": bem([{
|
||||
first: this.isFirst,
|
||||
last: this.isLast
|
||||
}, this.type]),
|
||||
"attrs": {
|
||||
"size": "large",
|
||||
"type": this.type,
|
||||
"icon": this.icon,
|
||||
"color": this.color,
|
||||
"loading": this.loading,
|
||||
"disabled": this.disabled
|
||||
},
|
||||
"on": {
|
||||
"click": this.onClick
|
||||
}
|
||||
}, [this.slots() || this.text]);
|
||||
}
|
||||
});
|
34
node_modules/vant/es/goods-action-button/index.less
generated
vendored
Normal file
34
node_modules/vant/es/goods-action-button/index.less
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-goods-action-button {
|
||||
flex: 1;
|
||||
height: @goods-action-button-height;
|
||||
font-weight: @font-weight-bold;
|
||||
font-size: @font-size-md;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
|
||||
&--first {
|
||||
margin-left: 5px;
|
||||
border-top-left-radius: @border-radius-max;
|
||||
border-bottom-left-radius: @border-radius-max;
|
||||
}
|
||||
|
||||
&--last {
|
||||
margin-right: 5px;
|
||||
border-top-right-radius: @border-radius-max;
|
||||
border-bottom-right-radius: @border-radius-max;
|
||||
}
|
||||
|
||||
&--warning {
|
||||
background: @goods-action-button-warning-color;
|
||||
}
|
||||
|
||||
&--danger {
|
||||
background: @goods-action-button-danger-color;
|
||||
}
|
||||
|
||||
@media (max-width: 321px) {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
6
node_modules/vant/es/goods-action-button/style/index.js
generated
vendored
Normal file
6
node_modules/vant/es/goods-action-button/style/index.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import '../../style/base.css';
|
||||
import '../../info/index.css';
|
||||
import '../../icon/index.css';
|
||||
import '../../loading/index.css';
|
||||
import '../../button/index.css';
|
||||
import '../index.css';
|
6
node_modules/vant/es/goods-action-button/style/less.js
generated
vendored
Normal file
6
node_modules/vant/es/goods-action-button/style/less.js
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import '../../style/base.less';
|
||||
import '../../info/index.less';
|
||||
import '../../icon/index.less';
|
||||
import '../../loading/index.less';
|
||||
import '../../button/index.less';
|
||||
import '../index.less';
|
Reference in New Issue
Block a user