测试
This commit is contained in:
11
frontend/node_modules/element-plus/lib/components/steps/index.d.ts
generated
vendored
Normal file
11
frontend/node_modules/element-plus/lib/components/steps/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import Steps from './src/steps.vue';
|
||||
import Step from './src/item.vue';
|
||||
import type { SFCWithInstall } from 'element-plus/es/utils';
|
||||
export declare const ElSteps: SFCWithInstall<typeof Steps> & {
|
||||
Step: typeof Step;
|
||||
};
|
||||
export default ElSteps;
|
||||
export declare const ElStep: SFCWithInstall<typeof Step>;
|
||||
export * from './src/item';
|
||||
export * from './src/steps';
|
||||
export * from './src/tokens';
|
||||
24
frontend/node_modules/element-plus/lib/components/steps/index.js
generated
vendored
Normal file
24
frontend/node_modules/element-plus/lib/components/steps/index.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var steps$1 = require('./src/steps2.js');
|
||||
var item$1 = require('./src/item2.js');
|
||||
var item = require('./src/item.js');
|
||||
var steps = require('./src/steps.js');
|
||||
var tokens = require('./src/tokens.js');
|
||||
var install = require('../../utils/vue/install.js');
|
||||
|
||||
const ElSteps = install.withInstall(steps$1["default"], {
|
||||
Step: item$1["default"]
|
||||
});
|
||||
const ElStep = install.withNoopInstall(item$1["default"]);
|
||||
|
||||
exports.stepProps = item.stepProps;
|
||||
exports.stepsEmits = steps.stepsEmits;
|
||||
exports.stepsProps = steps.stepsProps;
|
||||
exports.STEPS_INJECTION_KEY = tokens.STEPS_INJECTION_KEY;
|
||||
exports.ElStep = ElStep;
|
||||
exports.ElSteps = ElSteps;
|
||||
exports["default"] = ElSteps;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../../../../../packages/components/steps/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Steps from './src/steps.vue'\nimport Step from './src/item.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElSteps: SFCWithInstall<typeof Steps> & {\n Step: typeof Step\n} = withInstall(Steps, {\n Step,\n})\nexport default ElSteps\nexport const ElStep: SFCWithInstall<typeof Step> = withNoopInstall(Step)\n\nexport * from './src/item'\nexport * from './src/steps'\nexport * from './src/tokens'\n"],"names":["withInstall","Steps","Step","withNoopInstall"],"mappings":";;;;;;;;;;;AAGY,MAAC,OAAO,GAAGA,mBAAW,CAACC,kBAAK,EAAE;AAC1C,QAAEC,iBAAI;AACN,CAAC,EAAE;AAES,MAAC,MAAM,GAAGC,uBAAe,CAACD,iBAAI;;;;;;;;;;"}
|
||||
16
frontend/node_modules/element-plus/lib/components/steps/src/item.d.ts
generated
vendored
Normal file
16
frontend/node_modules/element-plus/lib/components/steps/src/item.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type Step from './item.vue';
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
export declare const stepProps: {
|
||||
readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly icon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
|
||||
};
|
||||
export type StepProps = ExtractPropTypes<typeof stepProps>;
|
||||
export type StepPropsPublic = __ExtractPublicPropTypes<typeof stepProps>;
|
||||
export type StepInstance = InstanceType<typeof Step> & unknown;
|
||||
28
frontend/node_modules/element-plus/lib/components/steps/src/item.js
generated
vendored
Normal file
28
frontend/node_modules/element-plus/lib/components/steps/src/item.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var runtime = require('../../../utils/vue/props/runtime.js');
|
||||
var icon = require('../../../utils/vue/icon.js');
|
||||
|
||||
const stepProps = runtime.buildProps({
|
||||
title: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
icon: {
|
||||
type: icon.iconPropType
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
status: {
|
||||
type: String,
|
||||
values: ["", "wait", "process", "finish", "error", "success"],
|
||||
default: ""
|
||||
}
|
||||
});
|
||||
|
||||
exports.stepProps = stepProps;
|
||||
//# sourceMappingURL=item.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/item.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/item.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"item.js","sources":["../../../../../../packages/components/steps/src/item.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type Step from './item.vue'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const stepProps = buildProps({\n /**\n * @description step title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description step custom icon. Icons can be passed via named slot as well\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description step description\n */\n description: {\n type: String,\n default: '',\n },\n /**\n * @description current status. It will be automatically set by Steps if not configured.\n */\n status: {\n type: String,\n values: ['', 'wait', 'process', 'finish', 'error', 'success'],\n default: '',\n },\n} as const)\n\nexport type StepProps = ExtractPropTypes<typeof stepProps>\nexport type StepPropsPublic = __ExtractPublicPropTypes<typeof stepProps>\n\nexport type StepInstance = InstanceType<typeof Step> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AACjE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
||||
53
frontend/node_modules/element-plus/lib/components/steps/src/item.vue.d.ts
generated
vendored
Normal file
53
frontend/node_modules/element-plus/lib/components/steps/src/item.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import type { ComputedRef, Ref, VNode } from 'vue';
|
||||
import type { StepsProps } from './steps';
|
||||
export interface StepItemState {
|
||||
uid: number;
|
||||
getVnode: () => VNode;
|
||||
currentStatus: ComputedRef<string>;
|
||||
internalStatus: Ref<string>;
|
||||
setIndex: (val: number) => void;
|
||||
calcProgress: (status: string) => void;
|
||||
}
|
||||
export interface IStepsInject {
|
||||
props: StepsProps;
|
||||
steps: Ref<StepItemState[]>;
|
||||
addStep: (item: StepItemState) => void;
|
||||
removeStep: (item: StepItemState) => void;
|
||||
}
|
||||
declare function __VLS_template(): {
|
||||
icon?(_: {}): any;
|
||||
title?(_: {}): any;
|
||||
description?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly icon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly icon: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
|
||||
}>>, {
|
||||
readonly title: string;
|
||||
readonly description: string;
|
||||
readonly status: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown>;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
202
frontend/node_modules/element-plus/lib/components/steps/src/item2.js
generated
vendored
Normal file
202
frontend/node_modules/element-plus/lib/components/steps/src/item2.js
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var index$1 = require('../../icon/index.js');
|
||||
var iconsVue = require('@element-plus/icons-vue');
|
||||
var item = require('./item.js');
|
||||
var tokens = require('./tokens.js');
|
||||
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
||||
var index = require('../../../hooks/use-namespace/index.js');
|
||||
var types = require('../../../utils/types.js');
|
||||
|
||||
const __default__ = vue.defineComponent({
|
||||
name: "ElStep"
|
||||
});
|
||||
const _sfc_main = vue.defineComponent({
|
||||
...__default__,
|
||||
props: item.stepProps,
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const ns = index.useNamespace("step");
|
||||
const index$2 = vue.ref(-1);
|
||||
const lineStyle = vue.ref({});
|
||||
const internalStatus = vue.ref("");
|
||||
const parent = vue.inject(tokens.STEPS_INJECTION_KEY);
|
||||
const currentInstance = vue.getCurrentInstance();
|
||||
vue.onMounted(() => {
|
||||
vue.watch([
|
||||
() => parent.props.active,
|
||||
() => parent.props.processStatus,
|
||||
() => parent.props.finishStatus
|
||||
], ([active]) => {
|
||||
updateStatus(active);
|
||||
}, { immediate: true });
|
||||
});
|
||||
const currentStatus = vue.computed(() => {
|
||||
return props.status || internalStatus.value;
|
||||
});
|
||||
const prevInternalStatus = vue.computed(() => {
|
||||
const prevStep = parent.steps.value[index$2.value - 1];
|
||||
return prevStep ? prevStep.internalStatus.value : "wait";
|
||||
});
|
||||
const isCenter = vue.computed(() => {
|
||||
return parent.props.alignCenter;
|
||||
});
|
||||
const isVertical = vue.computed(() => {
|
||||
return parent.props.direction === "vertical";
|
||||
});
|
||||
const isSimple = vue.computed(() => {
|
||||
return parent.props.simple;
|
||||
});
|
||||
const stepsCount = vue.computed(() => {
|
||||
return parent.steps.value.length;
|
||||
});
|
||||
const isLast = vue.computed(() => {
|
||||
var _a;
|
||||
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
|
||||
});
|
||||
const space = vue.computed(() => {
|
||||
return isSimple.value ? "" : parent.props.space;
|
||||
});
|
||||
const containerKls = vue.computed(() => {
|
||||
return [
|
||||
ns.b(),
|
||||
ns.is(isSimple.value ? "simple" : parent.props.direction),
|
||||
ns.is("flex", isLast.value && !space.value && !isCenter.value),
|
||||
ns.is("center", isCenter.value && !isVertical.value && !isSimple.value)
|
||||
];
|
||||
});
|
||||
const style = vue.computed(() => {
|
||||
const style2 = {
|
||||
flexBasis: types.isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
||||
};
|
||||
if (isVertical.value)
|
||||
return style2;
|
||||
if (isLast.value) {
|
||||
style2.maxWidth = `${100 / stepsCount.value}%`;
|
||||
}
|
||||
return style2;
|
||||
});
|
||||
const setIndex = (val) => {
|
||||
index$2.value = val;
|
||||
};
|
||||
const calcProgress = (status) => {
|
||||
const isWait = status === "wait";
|
||||
const style2 = {
|
||||
transitionDelay: `${isWait ? "-" : ""}${150 * index$2.value}ms`
|
||||
};
|
||||
const step = status === parent.props.processStatus || isWait ? 0 : 100;
|
||||
style2.borderWidth = step && !isSimple.value ? "1px" : 0;
|
||||
style2[parent.props.direction === "vertical" ? "height" : "width"] = `${step}%`;
|
||||
lineStyle.value = style2;
|
||||
};
|
||||
const updateStatus = (activeIndex) => {
|
||||
if (activeIndex > index$2.value) {
|
||||
internalStatus.value = parent.props.finishStatus;
|
||||
} else if (activeIndex === index$2.value && prevInternalStatus.value !== "error") {
|
||||
internalStatus.value = parent.props.processStatus;
|
||||
} else {
|
||||
internalStatus.value = "wait";
|
||||
}
|
||||
const prevChild = parent.steps.value[index$2.value - 1];
|
||||
if (prevChild)
|
||||
prevChild.calcProgress(internalStatus.value);
|
||||
};
|
||||
const stepItemState = {
|
||||
uid: currentInstance.uid,
|
||||
getVnode: () => currentInstance.vnode,
|
||||
currentStatus,
|
||||
internalStatus,
|
||||
setIndex,
|
||||
calcProgress
|
||||
};
|
||||
parent.addStep(stepItemState);
|
||||
vue.onBeforeUnmount(() => {
|
||||
parent.removeStep(stepItemState);
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return vue.openBlock(), vue.createElementBlock("div", {
|
||||
style: vue.normalizeStyle(vue.unref(style)),
|
||||
class: vue.normalizeClass(vue.unref(containerKls))
|
||||
}, [
|
||||
vue.createCommentVNode(" icon & line "),
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass([vue.unref(ns).e("head"), vue.unref(ns).is(vue.unref(currentStatus))])
|
||||
}, [
|
||||
!vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).e("line"))
|
||||
}, [
|
||||
vue.createElementVNode("i", {
|
||||
class: vue.normalizeClass(vue.unref(ns).e("line-inner")),
|
||||
style: vue.normalizeStyle(lineStyle.value)
|
||||
}, null, 6)
|
||||
], 2)) : vue.createCommentVNode("v-if", true),
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
||||
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
|
||||
}, {
|
||||
default: vue.withCtx(() => [
|
||||
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : vue.unref(currentStatus) === "success" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
||||
key: 1,
|
||||
class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
|
||||
}, {
|
||||
default: vue.withCtx(() => [
|
||||
vue.createVNode(vue.unref(iconsVue.Check))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : vue.unref(currentStatus) === "error" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
||||
key: 2,
|
||||
class: vue.normalizeClass([vue.unref(ns).e("icon-inner"), vue.unref(ns).is("status")])
|
||||
}, {
|
||||
default: vue.withCtx(() => [
|
||||
vue.createVNode(vue.unref(iconsVue.Close))
|
||||
]),
|
||||
_: 1
|
||||
}, 8, ["class"])) : !vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 3,
|
||||
class: vue.normalizeClass(vue.unref(ns).e("icon-inner"))
|
||||
}, vue.toDisplayString(index$2.value + 1), 3)) : vue.createCommentVNode("v-if", true)
|
||||
])
|
||||
], 2)
|
||||
], 2),
|
||||
vue.createCommentVNode(" title & description "),
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
||||
}, [
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass([vue.unref(ns).e("title"), vue.unref(ns).is(vue.unref(currentStatus))])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
||||
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
||||
])
|
||||
], 2),
|
||||
vue.unref(isSimple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).e("arrow"))
|
||||
}, null, 2)) : (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 1,
|
||||
class: vue.normalizeClass([vue.unref(ns).e("description"), vue.unref(ns).is(vue.unref(currentStatus))])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
||||
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
||||
])
|
||||
], 2))
|
||||
], 2)
|
||||
], 6);
|
||||
};
|
||||
}
|
||||
});
|
||||
var Step = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "item.vue"]]);
|
||||
|
||||
exports["default"] = Step;
|
||||
//# sourceMappingURL=item2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/item2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/item2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
28
frontend/node_modules/element-plus/lib/components/steps/src/steps.d.ts
generated
vendored
Normal file
28
frontend/node_modules/element-plus/lib/components/steps/src/steps.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import type Steps from './steps.vue';
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
export declare const stepsProps: {
|
||||
readonly space: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
|
||||
readonly active: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly direction: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
||||
readonly alignCenter: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly simple: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly finishStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "finish", boolean>;
|
||||
readonly processStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "process", boolean>;
|
||||
};
|
||||
export type StepsProps = ExtractPropTypes<typeof stepsProps>;
|
||||
export type StepsPropsPublic = __ExtractPublicPropTypes<typeof stepsProps>;
|
||||
export declare const stepsEmits: {
|
||||
change: (newVal: number, oldVal: number) => boolean;
|
||||
};
|
||||
export type StepsEmits = typeof stepsEmits;
|
||||
export type StepsInstance = InstanceType<typeof Steps> & unknown;
|
||||
46
frontend/node_modules/element-plus/lib/components/steps/src/steps.js
generated
vendored
Normal file
46
frontend/node_modules/element-plus/lib/components/steps/src/steps.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var runtime = require('../../../utils/vue/props/runtime.js');
|
||||
var event = require('../../../constants/event.js');
|
||||
var types = require('../../../utils/types.js');
|
||||
|
||||
const stepsProps = runtime.buildProps({
|
||||
space: {
|
||||
type: [Number, String],
|
||||
default: ""
|
||||
},
|
||||
active: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
direction: {
|
||||
type: String,
|
||||
default: "horizontal",
|
||||
values: ["horizontal", "vertical"]
|
||||
},
|
||||
alignCenter: {
|
||||
type: Boolean
|
||||
},
|
||||
simple: {
|
||||
type: Boolean
|
||||
},
|
||||
finishStatus: {
|
||||
type: String,
|
||||
values: ["wait", "process", "finish", "error", "success"],
|
||||
default: "finish"
|
||||
},
|
||||
processStatus: {
|
||||
type: String,
|
||||
values: ["wait", "process", "finish", "error", "success"],
|
||||
default: "process"
|
||||
}
|
||||
});
|
||||
const stepsEmits = {
|
||||
[event.CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(types.isNumber)
|
||||
};
|
||||
|
||||
exports.stepsEmits = stepsEmits;
|
||||
exports.stepsProps = stepsProps;
|
||||
//# sourceMappingURL=steps.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/steps.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/steps.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"steps.js","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\n\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\nexport type StepsPropsPublic = __ExtractPublicPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps> & unknown\n"],"names":["buildProps","CHANGE_EVENT","isNumber"],"mappings":";;;;;;;;AAEY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAACC,kBAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AACtE;;;;;"}
|
||||
57
frontend/node_modules/element-plus/lib/components/steps/src/steps.vue.d.ts
generated
vendored
Normal file
57
frontend/node_modules/element-plus/lib/components/steps/src/steps.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
declare function __VLS_template(): {
|
||||
default?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly space: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
|
||||
readonly active: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly direction: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
||||
readonly alignCenter: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly simple: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly finishStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "finish", boolean>;
|
||||
readonly processStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "process", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
change: (newVal: number, oldVal: number) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly space: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], unknown, unknown, "", boolean>;
|
||||
readonly active: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly direction: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
||||
readonly alignCenter: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly simple: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly finishStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "finish", boolean>;
|
||||
readonly processStatus: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown, "process", boolean>;
|
||||
}>> & {
|
||||
onChange?: ((newVal: number, oldVal: number) => any) | undefined;
|
||||
}, {
|
||||
readonly space: import("element-plus/es/utils").EpPropMergeType<readonly [NumberConstructor, StringConstructor], unknown, unknown>;
|
||||
readonly direction: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
||||
readonly active: number;
|
||||
readonly finishStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown>;
|
||||
readonly processStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "wait" | "error" | "finish" | "success" | "process", unknown>;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
51
frontend/node_modules/element-plus/lib/components/steps/src/steps2.js
generated
vendored
Normal file
51
frontend/node_modules/element-plus/lib/components/steps/src/steps2.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var steps = require('./steps.js');
|
||||
var tokens = require('./tokens.js');
|
||||
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
||||
var index = require('../../../hooks/use-namespace/index.js');
|
||||
var index$1 = require('../../../hooks/use-ordered-children/index.js');
|
||||
var event = require('../../../constants/event.js');
|
||||
|
||||
const __default__ = vue.defineComponent({
|
||||
name: "ElSteps"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
||||
...__default__,
|
||||
props: steps.stepsProps,
|
||||
emits: steps.stepsEmits,
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const ns = index.useNamespace("steps");
|
||||
const {
|
||||
children: steps,
|
||||
addChild: addStep,
|
||||
removeChild: removeStep,
|
||||
ChildrenSorter: StepsSorter
|
||||
} = index$1.useOrderedChildren(vue.getCurrentInstance(), "ElStep");
|
||||
vue.watch(steps, () => {
|
||||
steps.value.forEach((instance, index) => {
|
||||
instance.setIndex(index);
|
||||
});
|
||||
});
|
||||
vue.provide(tokens.STEPS_INJECTION_KEY, { props, steps, addStep, removeStep });
|
||||
vue.watch(() => props.active, (newVal, oldVal) => {
|
||||
emit(event.CHANGE_EVENT, newVal, oldVal);
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return vue.openBlock(), vue.createElementBlock("div", {
|
||||
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "default"),
|
||||
vue.createVNode(vue.unref(StepsSorter))
|
||||
], 2);
|
||||
};
|
||||
}
|
||||
});
|
||||
var Steps = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "steps.vue"]]);
|
||||
|
||||
exports["default"] = Steps;
|
||||
//# sourceMappingURL=steps2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/steps2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/steps2.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"steps2.js","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n <steps-sorter />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\nimport { STEPS_INJECTION_KEY } from './tokens'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n ChildrenSorter: StepsSorter,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide(STEPS_INJECTION_KEY, { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":["useNamespace","useOrderedChildren","getCurrentInstance","watch","provide","STEPS_INJECTION_KEY","_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;;;uCAgBc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,MACb,cAAgB,EAAA,WAAA;AAAA,KACd,GAAAC,0BAAA,CAAkCC,sBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAAC,SAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAAC,WAAA,CAAQC,4BAAqB,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAElE,IAAAF,SAAA,CAAA,MAAA,KAAA,CAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,uBAAY,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAAA,KACZ,CAAA,CAAC;AACC,IAAK,OAAA,CAAA,IAAA,EAAA,MAAA;AAA4B,MACnC,OAAAG,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,QACF,KAAA,EAAAC,kBAAA,CAAA,CAAAC,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAAA,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,MAAA,GAAA,QAAA,GAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;"}
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/tokens.d.ts
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/tokens.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const STEPS_INJECTION_KEY = "ElSteps";
|
||||
8
frontend/node_modules/element-plus/lib/components/steps/src/tokens.js
generated
vendored
Normal file
8
frontend/node_modules/element-plus/lib/components/steps/src/tokens.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const STEPS_INJECTION_KEY = "ElSteps";
|
||||
|
||||
exports.STEPS_INJECTION_KEY = STEPS_INJECTION_KEY;
|
||||
//# sourceMappingURL=tokens.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/src/tokens.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/src/tokens.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tokens.js","sources":["../../../../../../packages/components/steps/src/tokens.ts"],"sourcesContent":["export const STEPS_INJECTION_KEY = 'ElSteps'\n"],"names":[],"mappings":";;;;AAAY,MAAC,mBAAmB,GAAG;;;;"}
|
||||
2
frontend/node_modules/element-plus/lib/components/steps/style/css.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/lib/components/steps/style/css.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import 'element-plus/es/components/base/style/css';
|
||||
import 'element-plus/theme-chalk/el-steps.css';
|
||||
6
frontend/node_modules/element-plus/lib/components/steps/style/css.js
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/components/steps/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/css.js');
|
||||
require('element-plus/theme-chalk/el-steps.css');
|
||||
|
||||
//# sourceMappingURL=css.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/style/css.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/style/css.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
||||
2
frontend/node_modules/element-plus/lib/components/steps/style/index.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/lib/components/steps/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import 'element-plus/es/components/base/style';
|
||||
import 'element-plus/theme-chalk/src/steps.scss';
|
||||
6
frontend/node_modules/element-plus/lib/components/steps/style/index.js
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/components/steps/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/index.js');
|
||||
require('element-plus/theme-chalk/src/steps.scss');
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/steps/style/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/steps/style/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
||||
Reference in New Issue
Block a user