first commit
This commit is contained in:
38
node_modules/vant/es/col/Col.d.ts
generated
vendored
Normal file
38
node_modules/vant/es/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;
|
||||
71
node_modules/vant/es/col/Col.mjs
generated
vendored
Normal file
71
node_modules/vant/es/col/Col.mjs
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
import { computed, defineComponent, createVNode as _createVNode } from "vue";
|
||||
import { numericProp, createNamespace, makeNumericProp, makeStringProp, extend } from "../utils/index.mjs";
|
||||
import { useParent } from "@vant/use";
|
||||
import { ROW_KEY } from "../row/Row.mjs";
|
||||
const [name, bem] = createNamespace("col");
|
||||
const colProps = {
|
||||
tag: makeStringProp("div"),
|
||||
span: makeNumericProp(0),
|
||||
offset: numericProp
|
||||
};
|
||||
var stdin_default = defineComponent({
|
||||
name,
|
||||
props: colProps,
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
const {
|
||||
parent,
|
||||
index
|
||||
} = useParent(ROW_KEY);
|
||||
const style = 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 extend(styles, {
|
||||
marginBottom: bottom ? `${bottom}px` : null
|
||||
});
|
||||
});
|
||||
return () => {
|
||||
const {
|
||||
tag,
|
||||
span,
|
||||
offset
|
||||
} = props;
|
||||
return _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)];
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
export {
|
||||
colProps,
|
||||
stdin_default as default
|
||||
};
|
||||
1
node_modules/vant/es/col/index.css
generated
vendored
Normal file
1
node_modules/vant/es/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/es/col/index.d.ts
generated
vendored
Normal file
32
node_modules/vant/es/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;
|
||||
}
|
||||
}
|
||||
10
node_modules/vant/es/col/index.mjs
generated
vendored
Normal file
10
node_modules/vant/es/col/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { withInstall } from "../utils/index.mjs";
|
||||
import _Col from "./Col.mjs";
|
||||
const Col = withInstall(_Col);
|
||||
var stdin_default = Col;
|
||||
import { colProps } from "./Col.mjs";
|
||||
export {
|
||||
Col,
|
||||
colProps,
|
||||
stdin_default as default
|
||||
};
|
||||
1
node_modules/vant/es/col/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/es/col/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
3
node_modules/vant/es/col/style/index.mjs
generated
vendored
Normal file
3
node_modules/vant/es/col/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import "../../style/base.css";
|
||||
import "../../row/index.css";
|
||||
import "../index.css";
|
||||
Reference in New Issue
Block a user