first commit
This commit is contained in:
71
node_modules/vant/es/steps/Steps.d.ts
generated
vendored
Normal file
71
node_modules/vant/es/steps/Steps.d.ts
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
import { type ExtractPropTypes, type InjectionKey } from 'vue';
|
||||
export type StepsDirection = 'horizontal' | 'vertical';
|
||||
export declare const stepsProps: {
|
||||
active: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
direction: {
|
||||
type: import("vue").PropType<StepsDirection>;
|
||||
default: StepsDirection;
|
||||
};
|
||||
activeIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
iconPrefix: StringConstructor;
|
||||
finishIcon: StringConstructor;
|
||||
activeColor: StringConstructor;
|
||||
inactiveIcon: StringConstructor;
|
||||
inactiveColor: StringConstructor;
|
||||
};
|
||||
export type StepsProps = ExtractPropTypes<typeof stepsProps>;
|
||||
export type StepsProvide = {
|
||||
props: StepsProps;
|
||||
onClickStep: (index: number) => void;
|
||||
};
|
||||
export declare const STEPS_KEY: InjectionKey<StepsProvide>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
active: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
direction: {
|
||||
type: import("vue").PropType<StepsDirection>;
|
||||
default: StepsDirection;
|
||||
};
|
||||
activeIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
iconPrefix: StringConstructor;
|
||||
finishIcon: StringConstructor;
|
||||
activeColor: StringConstructor;
|
||||
inactiveIcon: StringConstructor;
|
||||
inactiveColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
active: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
direction: {
|
||||
type: import("vue").PropType<StepsDirection>;
|
||||
default: StepsDirection;
|
||||
};
|
||||
activeIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
iconPrefix: StringConstructor;
|
||||
finishIcon: StringConstructor;
|
||||
activeColor: StringConstructor;
|
||||
inactiveIcon: StringConstructor;
|
||||
inactiveColor: StringConstructor;
|
||||
}>> & Readonly<{
|
||||
onClickStep?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
active: string | number;
|
||||
direction: StepsDirection;
|
||||
activeIcon: string;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
46
node_modules/vant/es/steps/Steps.mjs
generated
vendored
Normal file
46
node_modules/vant/es/steps/Steps.mjs
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import { defineComponent, createVNode as _createVNode } from "vue";
|
||||
import { makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
||||
import { useChildren } from "@vant/use";
|
||||
const [name, bem] = createNamespace("steps");
|
||||
const stepsProps = {
|
||||
active: makeNumericProp(0),
|
||||
direction: makeStringProp("horizontal"),
|
||||
activeIcon: makeStringProp("checked"),
|
||||
iconPrefix: String,
|
||||
finishIcon: String,
|
||||
activeColor: String,
|
||||
inactiveIcon: String,
|
||||
inactiveColor: String
|
||||
};
|
||||
const STEPS_KEY = Symbol(name);
|
||||
var stdin_default = defineComponent({
|
||||
name,
|
||||
props: stepsProps,
|
||||
emits: ["clickStep"],
|
||||
setup(props, {
|
||||
emit,
|
||||
slots
|
||||
}) {
|
||||
const {
|
||||
linkChildren
|
||||
} = useChildren(STEPS_KEY);
|
||||
const onClickStep = (index) => emit("clickStep", index);
|
||||
linkChildren({
|
||||
props,
|
||||
onClickStep
|
||||
});
|
||||
return () => {
|
||||
var _a;
|
||||
return _createVNode("div", {
|
||||
"class": bem([props.direction])
|
||||
}, [_createVNode("div", {
|
||||
"class": bem("items")
|
||||
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
||||
};
|
||||
}
|
||||
});
|
||||
export {
|
||||
STEPS_KEY,
|
||||
stdin_default as default,
|
||||
stepsProps
|
||||
};
|
||||
1
node_modules/vant/es/steps/index.css
generated
vendored
Normal file
1
node_modules/vant/es/steps/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:10px 10px 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 10px;padding-bottom:22px}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}
|
||||
52
node_modules/vant/es/steps/index.d.ts
generated
vendored
Normal file
52
node_modules/vant/es/steps/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
export declare const Steps: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
active: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
direction: {
|
||||
type: import("vue").PropType<import("./Steps").StepsDirection>;
|
||||
default: import("./Steps").StepsDirection;
|
||||
};
|
||||
activeIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
iconPrefix: StringConstructor;
|
||||
finishIcon: StringConstructor;
|
||||
activeColor: StringConstructor;
|
||||
inactiveIcon: StringConstructor;
|
||||
inactiveColor: StringConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickStep"[], "clickStep", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
active: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
direction: {
|
||||
type: import("vue").PropType<import("./Steps").StepsDirection>;
|
||||
default: import("./Steps").StepsDirection;
|
||||
};
|
||||
activeIcon: {
|
||||
type: import("vue").PropType<string>;
|
||||
default: string;
|
||||
};
|
||||
iconPrefix: StringConstructor;
|
||||
finishIcon: StringConstructor;
|
||||
activeColor: StringConstructor;
|
||||
inactiveIcon: StringConstructor;
|
||||
inactiveColor: StringConstructor;
|
||||
}>> & Readonly<{
|
||||
onClickStep?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
active: string | number;
|
||||
direction: import("./Steps").StepsDirection;
|
||||
activeIcon: string;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default Steps;
|
||||
export { stepsProps } from './Steps';
|
||||
export type { StepsProps, StepsDirection } from './Steps';
|
||||
export type { StepsThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanSteps: typeof Steps;
|
||||
}
|
||||
}
|
||||
10
node_modules/vant/es/steps/index.mjs
generated
vendored
Normal file
10
node_modules/vant/es/steps/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { withInstall } from "../utils/index.mjs";
|
||||
import _Steps from "./Steps.mjs";
|
||||
const Steps = withInstall(_Steps);
|
||||
var stdin_default = Steps;
|
||||
import { stepsProps } from "./Steps.mjs";
|
||||
export {
|
||||
Steps,
|
||||
stdin_default as default,
|
||||
stepsProps
|
||||
};
|
||||
1
node_modules/vant/es/steps/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/es/steps/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
2
node_modules/vant/es/steps/style/index.mjs
generated
vendored
Normal file
2
node_modules/vant/es/steps/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "../../style/base.css";
|
||||
import "../index.css";
|
||||
3
node_modules/vant/es/steps/types.d.ts
generated
vendored
Normal file
3
node_modules/vant/es/steps/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export type StepsThemeVars = {
|
||||
stepsBackground?: string;
|
||||
};
|
||||
0
node_modules/vant/es/steps/types.mjs
generated
vendored
Normal file
0
node_modules/vant/es/steps/types.mjs
generated
vendored
Normal file
Reference in New Issue
Block a user