first commit
This commit is contained in:
39
node_modules/vant/lib/loading/Loading.d.ts
generated
vendored
Normal file
39
node_modules/vant/lib/loading/Loading.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
export type LoadingType = 'circular' | 'spinner';
|
||||
export declare const loadingProps: {
|
||||
size: (NumberConstructor | StringConstructor)[];
|
||||
type: {
|
||||
type: import("vue").PropType<LoadingType>;
|
||||
default: LoadingType;
|
||||
};
|
||||
color: StringConstructor;
|
||||
vertical: BooleanConstructor;
|
||||
textSize: (NumberConstructor | StringConstructor)[];
|
||||
textColor: StringConstructor;
|
||||
};
|
||||
export type LoadingProps = ExtractPropTypes<typeof loadingProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
size: (NumberConstructor | StringConstructor)[];
|
||||
type: {
|
||||
type: import("vue").PropType<LoadingType>;
|
||||
default: LoadingType;
|
||||
};
|
||||
color: StringConstructor;
|
||||
vertical: BooleanConstructor;
|
||||
textSize: (NumberConstructor | StringConstructor)[];
|
||||
textColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
size: (NumberConstructor | StringConstructor)[];
|
||||
type: {
|
||||
type: import("vue").PropType<LoadingType>;
|
||||
default: LoadingType;
|
||||
};
|
||||
color: StringConstructor;
|
||||
vertical: BooleanConstructor;
|
||||
textSize: (NumberConstructor | StringConstructor)[];
|
||||
textColor: StringConstructor;
|
||||
}>> & Readonly<{}>, {
|
||||
type: LoadingType;
|
||||
vertical: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
89
node_modules/vant/lib/loading/Loading.js
generated
vendored
Normal file
89
node_modules/vant/lib/loading/Loading.js
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name2 in all)
|
||||
__defProp(target, name2, { get: all[name2], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
default: () => stdin_default,
|
||||
loadingProps: () => loadingProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
const [name, bem] = (0, import_utils.createNamespace)("loading");
|
||||
const SpinIcon = Array(12).fill(null).map((_, index) => (0, import_vue.createVNode)("i", {
|
||||
"class": bem("line", String(index + 1))
|
||||
}, null));
|
||||
const CircularIcon = (0, import_vue.createVNode)("svg", {
|
||||
"class": bem("circular"),
|
||||
"viewBox": "25 25 50 50"
|
||||
}, [(0, import_vue.createVNode)("circle", {
|
||||
"cx": "50",
|
||||
"cy": "50",
|
||||
"r": "20",
|
||||
"fill": "none"
|
||||
}, null)]);
|
||||
const loadingProps = {
|
||||
size: import_utils.numericProp,
|
||||
type: (0, import_utils.makeStringProp)("circular"),
|
||||
color: String,
|
||||
vertical: Boolean,
|
||||
textSize: import_utils.numericProp,
|
||||
textColor: String
|
||||
};
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: loadingProps,
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
const spinnerStyle = (0, import_vue.computed)(() => (0, import_utils.extend)({
|
||||
color: props.color
|
||||
}, (0, import_utils.getSizeStyle)(props.size)));
|
||||
const renderIcon = () => {
|
||||
const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
|
||||
return (0, import_vue.createVNode)("span", {
|
||||
"class": bem("spinner", props.type),
|
||||
"style": spinnerStyle.value
|
||||
}, [slots.icon ? slots.icon() : DefaultIcon]);
|
||||
};
|
||||
const renderText = () => {
|
||||
var _a;
|
||||
if (slots.default) {
|
||||
return (0, import_vue.createVNode)("span", {
|
||||
"class": bem("text"),
|
||||
"style": {
|
||||
fontSize: (0, import_utils.addUnit)(props.textSize),
|
||||
color: (_a = props.textColor) != null ? _a : props.color
|
||||
}
|
||||
}, [slots.default()]);
|
||||
}
|
||||
};
|
||||
return () => {
|
||||
const {
|
||||
type,
|
||||
vertical
|
||||
} = props;
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem([type, {
|
||||
vertical
|
||||
}]),
|
||||
"aria-live": "polite",
|
||||
"aria-busy": true
|
||||
}, [renderIcon(), renderText()]);
|
||||
};
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/loading/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/loading/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: 30px;--van-loading-spinner-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
|
||||
33
node_modules/vant/lib/loading/index.d.ts
generated
vendored
Normal file
33
node_modules/vant/lib/loading/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
export declare const Loading: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
size: (NumberConstructor | StringConstructor)[];
|
||||
type: {
|
||||
type: import("vue").PropType<import("./Loading").LoadingType>;
|
||||
default: import("./Loading").LoadingType;
|
||||
};
|
||||
color: StringConstructor;
|
||||
vertical: BooleanConstructor;
|
||||
textSize: (NumberConstructor | StringConstructor)[];
|
||||
textColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
size: (NumberConstructor | StringConstructor)[];
|
||||
type: {
|
||||
type: import("vue").PropType<import("./Loading").LoadingType>;
|
||||
default: import("./Loading").LoadingType;
|
||||
};
|
||||
color: StringConstructor;
|
||||
vertical: BooleanConstructor;
|
||||
textSize: (NumberConstructor | StringConstructor)[];
|
||||
textColor: StringConstructor;
|
||||
}>> & Readonly<{}>, {
|
||||
type: import("./Loading").LoadingType;
|
||||
vertical: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default Loading;
|
||||
export { loadingProps } from './Loading';
|
||||
export type { LoadingType, LoadingProps } from './Loading';
|
||||
export type { LoadingThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanLoading: typeof Loading;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/loading/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/loading/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
Loading: () => Loading,
|
||||
default: () => stdin_default,
|
||||
loadingProps: () => import_Loading2.loadingProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_Loading = __toESM(require("./Loading"));
|
||||
var import_Loading2 = require("./Loading");
|
||||
const Loading = (0, import_utils.withInstall)(import_Loading.default);
|
||||
var stdin_default = Loading;
|
||||
1
node_modules/vant/lib/loading/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/loading/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
2
node_modules/vant/lib/loading/style/index.js
generated
vendored
Normal file
2
node_modules/vant/lib/loading/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
require("../../style/base.css");
|
||||
require("../index.css");
|
||||
7
node_modules/vant/lib/loading/types.d.ts
generated
vendored
Normal file
7
node_modules/vant/lib/loading/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export type LoadingThemeVars = {
|
||||
loadingTextColor?: string;
|
||||
loadingTextFontSize?: string;
|
||||
loadingSpinnerColor?: string;
|
||||
loadingSpinnerSize?: string;
|
||||
loadingSpinnerDuration?: string;
|
||||
};
|
||||
15
node_modules/vant/lib/loading/types.js
generated
vendored
Normal file
15
node_modules/vant/lib/loading/types.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
Reference in New Issue
Block a user