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

174
node_modules/vant/es/empty/Network.js generated vendored Normal file
View File

@ -0,0 +1,174 @@
var prefix = 'van-empty-network-';
export default {
render: function render() {
var h = arguments[0];
var genStop = function genStop(color, offset, opacity) {
return h("stop", {
"attrs": {
"stop-color": color,
"offset": offset + "%",
"stop-opacity": opacity
}
});
};
return h("svg", {
"attrs": {
"viewBox": "0 0 160 160",
"xmlns": "http://www.w3.org/2000/svg"
}
}, [h("defs", [h("linearGradient", {
"attrs": {
"id": prefix + "1",
"x1": "64.022%",
"y1": "100%",
"x2": "64.022%",
"y2": "0%"
}
}, [genStop('#FFF', 0, 0.5), genStop('#F2F3F5', 100)]), h("linearGradient", {
"attrs": {
"id": prefix + "2",
"x1": "50%",
"y1": "0%",
"x2": "50%",
"y2": "84.459%"
}
}, [genStop('#EBEDF0', 0), genStop('#DCDEE0', 100, 0)]), h("linearGradient", {
"attrs": {
"id": prefix + "3",
"x1": "100%",
"y1": "0%",
"x2": "100%",
"y2": "100%"
}
}, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
"attrs": {
"id": prefix + "4",
"x1": "100%",
"y1": "100%",
"x2": "100%",
"y2": "0%"
}
}, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
"attrs": {
"id": prefix + "5",
"x1": "0%",
"y1": "43.982%",
"x2": "100%",
"y2": "54.703%"
}
}, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
"attrs": {
"id": prefix + "6",
"x1": "94.535%",
"y1": "43.837%",
"x2": "5.465%",
"y2": "54.948%"
}
}, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("radialGradient", {
"attrs": {
"id": prefix + "7",
"cx": "50%",
"cy": "0%",
"fx": "50%",
"fy": "0%",
"r": "100%",
"gradientTransform": "matrix(0 1 -.54835 0 .5 -.5)"
}
}, [genStop('#EBEDF0', 0), genStop('#FFF', 100, 0)])]), h("g", {
"attrs": {
"fill": "none",
"fill-rule": "evenodd"
}
}, [h("g", {
"attrs": {
"opacity": ".8"
}
}, [h("path", {
"attrs": {
"d": "M0 124V46h20v20h14v58H0z",
"fill": "url(#" + prefix + "1)",
"transform": "matrix(-1 0 0 1 36 7)"
}
}), h("path", {
"attrs": {
"d": "M121 8h22.231v14H152v77.37h-31V8z",
"fill": "url(#" + prefix + "1)",
"transform": "translate(2 7)"
}
})]), h("path", {
"attrs": {
"fill": "url(#" + prefix + "7)",
"d": "M0 139h160v21H0z"
}
}), h("path", {
"attrs": {
"d": "M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",
"fill": "url(#" + prefix + "2)",
"fill-rule": "nonzero",
"transform": "translate(43 36)"
}
}), h("g", {
"attrs": {
"opacity": ".6",
"stroke-linecap": "round",
"stroke-width": "7"
}
}, [h("path", {
"attrs": {
"d": "M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
"stroke": "url(#" + prefix + "3)",
"transform": "translate(43 36)"
}
}), h("path", {
"attrs": {
"d": "M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",
"stroke": "url(#" + prefix + "3)",
"transform": "translate(43 36)"
}
}), h("path", {
"attrs": {
"d": "M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
"stroke": "url(#" + prefix + "4)",
"transform": "rotate(-180 76.483 42.257)"
}
}), h("path", {
"attrs": {
"d": "M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",
"stroke": "url(#" + prefix + "4)",
"transform": "rotate(-180 89.791 42.146)"
}
})]), h("g", {
"attrs": {
"transform": "translate(31 105)",
"fill-rule": "nonzero"
}
}, [h("rect", {
"attrs": {
"fill": "url(#" + prefix + "5)",
"width": "98",
"height": "34",
"rx": "2"
}
}), h("rect", {
"attrs": {
"fill": "#FFF",
"x": "9",
"y": "8",
"width": "80",
"height": "18",
"rx": "1.114"
}
}), h("rect", {
"attrs": {
"fill": "url(#" + prefix + "6)",
"x": "15",
"y": "12",
"width": "18",
"height": "6",
"rx": "1.114"
}
})])])]);
}
};

1
node_modules/vant/es/empty/index.css generated vendored Normal file
View File

@ -0,0 +1 @@
.van-empty{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-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__bottom{margin-top:24px}

81
node_modules/vant/es/empty/index.js generated vendored Normal file
View File

@ -0,0 +1,81 @@
import { addUnit, createNamespace } from '../utils';
import Network from './Network';
var _createNamespace = createNamespace('empty'),
createComponent = _createNamespace[0],
bem = _createNamespace[1];
var PRESETS = ['error', 'search', 'default'];
export default createComponent({
props: {
imageSize: [Number, String],
description: String,
image: {
type: String,
default: 'default'
}
},
methods: {
genImageContent: function genImageContent() {
var h = this.$createElement;
var slots = this.slots('image');
if (slots) {
return slots;
}
if (this.image === 'network') {
return h(Network);
}
var image = this.image;
if (PRESETS.indexOf(image) !== -1) {
image = "https://img01.yzcdn.cn/vant/empty-image-" + image + ".png";
}
return h("img", {
"attrs": {
"src": image
}
});
},
genImage: function genImage() {
var h = this.$createElement;
var imageStyle = {
width: addUnit(this.imageSize),
height: addUnit(this.imageSize)
};
return h("div", {
"class": bem('image'),
"style": imageStyle
}, [this.genImageContent()]);
},
genDescription: function genDescription() {
var h = this.$createElement;
var description = this.slots('description') || this.description;
if (description) {
return h("p", {
"class": bem('description')
}, [description]);
}
},
genBottom: function genBottom() {
var h = this.$createElement;
var slot = this.slots();
if (slot) {
return h("div", {
"class": bem('bottom')
}, [slot]);
}
}
},
render: function render() {
var h = arguments[0];
return h("div", {
"class": bem()
}, [this.genImage(), this.genDescription(), this.genBottom()]);
}
});

32
node_modules/vant/es/empty/index.less generated vendored Normal file
View File

@ -0,0 +1,32 @@
@import '../style/var';
.van-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: @empty-padding;
&__image {
width: @empty-image-size;
height: @empty-image-size;
img {
width: 100%;
height: 100%;
}
}
&__description {
margin-top: @empty-description-margin-top;
padding: @empty-description-padding;
color: @empty-description-color;
font-size: @empty-description-font-size;
line-height: @empty-description-line-height;
}
&__bottom {
margin-top: @empty-bottom-margin-top;
}
}

2
node_modules/vant/es/empty/style/index.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
import '../../style/base.css';
import '../index.css';

2
node_modules/vant/es/empty/style/less.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
import '../../style/base.less';
import '../index.less';