first commit
This commit is contained in:
38
node_modules/vant/lib/col/Col.d.ts
generated
vendored
Normal file
38
node_modules/vant/lib/col/Col.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
export declare const colProps: {
|
||||
tag: {
|
||||
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
||||
default: keyof HTMLElementTagNameMap;
|
||||
};
|
||||
span: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
offset: (NumberConstructor | StringConstructor)[];
|
||||
};
|
||||
export type ColProps = ExtractPropTypes<typeof colProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
tag: {
|
||||
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
||||
default: keyof HTMLElementTagNameMap;
|
||||
};
|
||||
span: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
offset: (NumberConstructor | StringConstructor)[];
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
tag: {
|
||||
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
||||
default: keyof HTMLElementTagNameMap;
|
||||
};
|
||||
span: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
offset: (NumberConstructor | StringConstructor)[];
|
||||
}>> & Readonly<{}>, {
|
||||
span: string | number;
|
||||
tag: keyof HTMLElementTagNameMap;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
90
node_modules/vant/lib/col/Col.js
generated
vendored
Normal file
90
node_modules/vant/lib/col/Col.js
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
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, {
|
||||
colProps: () => colProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_use = require("@vant/use");
|
||||
var import_Row = require("../row/Row");
|
||||
const [name, bem] = (0, import_utils.createNamespace)("col");
|
||||
const colProps = {
|
||||
tag: (0, import_utils.makeStringProp)("div"),
|
||||
span: (0, import_utils.makeNumericProp)(0),
|
||||
offset: import_utils.numericProp
|
||||
};
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: colProps,
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
const {
|
||||
parent,
|
||||
index
|
||||
} = (0, import_use.useParent)(import_Row.ROW_KEY);
|
||||
const style = (0, import_vue.computed)(() => {
|
||||
if (!parent) {
|
||||
return;
|
||||
}
|
||||
const {
|
||||
spaces,
|
||||
verticalSpaces
|
||||
} = parent;
|
||||
let styles = {};
|
||||
if (spaces && spaces.value && spaces.value[index.value]) {
|
||||
const {
|
||||
left,
|
||||
right
|
||||
} = spaces.value[index.value];
|
||||
styles = {
|
||||
paddingLeft: left ? `${left}px` : null,
|
||||
paddingRight: right ? `${right}px` : null
|
||||
};
|
||||
}
|
||||
const {
|
||||
bottom
|
||||
} = verticalSpaces.value[index.value] || {};
|
||||
return (0, import_utils.extend)(styles, {
|
||||
marginBottom: bottom ? `${bottom}px` : null
|
||||
});
|
||||
});
|
||||
return () => {
|
||||
const {
|
||||
tag,
|
||||
span,
|
||||
offset
|
||||
} = props;
|
||||
return (0, import_vue.createVNode)(tag, {
|
||||
"style": style.value,
|
||||
"class": bem({
|
||||
[span]: span,
|
||||
[`offset-${offset}`]: offset
|
||||
})
|
||||
}, {
|
||||
default: () => {
|
||||
var _a;
|
||||
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/col/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/col/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.van-col{display:block;box-sizing:border-box;min-height:1px}.van-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{flex:0 0 12.5%;max-width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{flex:0 0 25%;max-width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{flex:0 0 37.5%;max-width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{flex:0 0 50%;max-width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{flex:0 0 62.5%;max-width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{flex:0 0 75%;max-width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{flex:0 0 87.5%;max-width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{flex:0 0 100%;max-width:100%}.van-col--offset-24{margin-left:100%}
|
||||
32
node_modules/vant/lib/col/index.d.ts
generated
vendored
Normal file
32
node_modules/vant/lib/col/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
export declare const Col: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
tag: {
|
||||
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
||||
default: keyof HTMLElementTagNameMap;
|
||||
};
|
||||
span: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
offset: (NumberConstructor | StringConstructor)[];
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
tag: {
|
||||
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
||||
default: keyof HTMLElementTagNameMap;
|
||||
};
|
||||
span: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
offset: (NumberConstructor | StringConstructor)[];
|
||||
}>> & Readonly<{}>, {
|
||||
span: string | number;
|
||||
tag: keyof HTMLElementTagNameMap;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default Col;
|
||||
export { colProps } from './Col';
|
||||
export type { ColProps } from './Col';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanCol: typeof Col;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/col/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/col/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, {
|
||||
Col: () => Col,
|
||||
colProps: () => import_Col2.colProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_Col = __toESM(require("./Col"));
|
||||
var import_Col2 = require("./Col");
|
||||
const Col = (0, import_utils.withInstall)(import_Col.default);
|
||||
var stdin_default = Col;
|
||||
1
node_modules/vant/lib/col/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/col/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
3
node_modules/vant/lib/col/style/index.js
generated
vendored
Normal file
3
node_modules/vant/lib/col/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
require("../../style/base.css");
|
||||
require("../../row/index.css");
|
||||
require("../index.css");
|
||||
Reference in New Issue
Block a user