This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

1
node_modules/vant/es/goods-action-icon/index.css generated vendored Normal file
View File

@ -0,0 +1 @@
.van-goods-action-icon{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;min-width:48px;height:100%;color:#646566;font-size:10px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.van-goods-action-icon:active{background-color:#f2f3f5}.van-goods-action-icon__icon{position:relative;width:1em;margin:0 auto 5px;color:#323233;font-size:18px}

76
node_modules/vant/es/goods-action-icon/index.js generated vendored Normal file
View File

@ -0,0 +1,76 @@
import _extends from "@babel/runtime/helpers/esm/extends";
import { createNamespace } from '../utils';
import { route, routeProps } from '../utils/router';
import { ChildrenMixin } from '../mixins/relation';
import Info from '../info';
import Icon from '../icon';
var _createNamespace = createNamespace('goods-action-icon'),
createComponent = _createNamespace[0],
bem = _createNamespace[1];
export default createComponent({
mixins: [ChildrenMixin('vanGoodsAction')],
props: _extends({}, routeProps, {
dot: Boolean,
text: String,
icon: String,
color: String,
// @deprecated
info: [Number, String],
badge: [Number, String],
iconClass: null
}),
methods: {
onClick: function onClick(event) {
this.$emit('click', event);
route(this.$router, this);
},
genIcon: function genIcon() {
var _this$badge;
var h = this.$createElement;
var slot = this.slots('icon');
var info = (_this$badge = this.badge) != null ? _this$badge : this.info;
if (process.env.NODE_ENV === 'development' && this.info) {
console.warn('[Vant] GoodsActionIcon: "info" prop is deprecated, use "badge" prop instead.');
}
if (slot) {
return h("div", {
"class": bem('icon')
}, [slot, h(Info, {
"attrs": {
"dot": this.dot,
"info": info
}
})]);
}
return h(Icon, {
"class": [bem('icon'), this.iconClass],
"attrs": {
"tag": "div",
"dot": this.dot,
"name": this.icon,
"badge": info,
"color": this.color
}
});
}
},
render: function render() {
var h = arguments[0];
return h("div", {
"attrs": {
"role": "button",
"tabindex": "0"
},
"class": bem(),
"on": {
"click": this.onClick
}
}, [this.genIcon(), this.slots() || this.text]);
}
});

27
node_modules/vant/es/goods-action-icon/index.less generated vendored Normal file
View File

@ -0,0 +1,27 @@
@import '../style/var';
.van-goods-action-icon {
display: flex;
flex-direction: column;
justify-content: center;
min-width: @goods-action-icon-width;
height: @goods-action-icon-height;
color: @goods-action-icon-text-color;
font-size: @goods-action-icon-font-size;
line-height: 1;
text-align: center;
background-color: @white;
cursor: pointer;
&:active {
background-color: @goods-action-icon-active-color;
}
&__icon {
position: relative;
width: 1em;
margin: 0 auto 5px;
color: @goods-action-icon-color;
font-size: @goods-action-icon-size;
}
}

View File

@ -0,0 +1,4 @@
import '../../style/base.css';
import '../../info/index.css';
import '../../icon/index.css';
import '../index.css';

4
node_modules/vant/es/goods-action-icon/style/less.js generated vendored Normal file
View File

@ -0,0 +1,4 @@
import '../../style/base.less';
import '../../info/index.less';
import '../../icon/index.less';
import '../index.less';