测试
This commit is contained in:
5
frontend/node_modules/element-plus/lib/components/progress/index.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/lib/components/progress/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import Progress from './src/progress.vue';
|
||||
import type { SFCWithInstall } from 'element-plus/es/utils';
|
||||
export declare const ElProgress: SFCWithInstall<typeof Progress>;
|
||||
export default ElProgress;
|
||||
export * from './src/progress';
|
||||
14
frontend/node_modules/element-plus/lib/components/progress/index.js
generated
vendored
Normal file
14
frontend/node_modules/element-plus/lib/components/progress/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var progress$1 = require('./src/progress.js');
|
||||
var progress = require('./src/progress2.js');
|
||||
var install = require('../../utils/vue/install.js');
|
||||
|
||||
const ElProgress = install.withInstall(progress$1["default"]);
|
||||
|
||||
exports.progressProps = progress.progressProps;
|
||||
exports.ElProgress = ElProgress;
|
||||
exports["default"] = ElProgress;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/progress/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/progress/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../../../../../packages/components/progress/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport Progress from './src/progress.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElProgress: SFCWithInstall<typeof Progress> = withInstall(Progress)\nexport default ElProgress\n\nexport * from './src/progress'\n"],"names":["withInstall","Progress"],"mappings":";;;;;;;;AAEY,MAAC,UAAU,GAAGA,mBAAW,CAACC,qBAAQ;;;;;;"}
|
||||
34
frontend/node_modules/element-plus/lib/components/progress/src/progress.d.ts
generated
vendored
Normal file
34
frontend/node_modules/element-plus/lib/components/progress/src/progress.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type Progress from './progress.vue';
|
||||
export type ProgressColor = {
|
||||
color: string;
|
||||
percentage: number;
|
||||
};
|
||||
export type ProgressFn = (percentage: number) => string;
|
||||
export declare const progressProps: {
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
|
||||
readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
|
||||
readonly indeterminate: BooleanConstructor;
|
||||
readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
||||
readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
||||
readonly strokeLinecap: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>) | ((new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>))[], unknown, unknown, "round", boolean>;
|
||||
readonly textInside: BooleanConstructor;
|
||||
readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
|
||||
readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | ProgressFn | ProgressColor[]) | (() => string | ProgressFn | ProgressColor[]) | ((new (...args: any[]) => string | ProgressFn | ProgressColor[]) | (() => string | ProgressFn | ProgressColor[]))[], unknown, unknown, "", boolean>;
|
||||
readonly striped: BooleanConstructor;
|
||||
readonly stripedFlow: BooleanConstructor;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
|
||||
(): ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
} | ((new (...args: any[]) => ProgressFn) | (() => ProgressFn) | {
|
||||
(): ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
})[], unknown, unknown, (percentage: number) => string, boolean>;
|
||||
};
|
||||
export type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
||||
export type ProgressPropsPublic = __ExtractPublicPropTypes<typeof progressProps>;
|
||||
export type ProgressInstance = InstanceType<typeof Progress> & unknown;
|
||||
216
frontend/node_modules/element-plus/lib/components/progress/src/progress.js
generated
vendored
Normal file
216
frontend/node_modules/element-plus/lib/components/progress/src/progress.js
generated
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
'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 progress = require('./progress2.js');
|
||||
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
||||
var index = require('../../../hooks/use-namespace/index.js');
|
||||
var shared = require('@vue/shared');
|
||||
|
||||
const __default__ = vue.defineComponent({
|
||||
name: "ElProgress"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
||||
...__default__,
|
||||
props: progress.progressProps,
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const STATUS_COLOR_MAP = {
|
||||
success: "#13ce66",
|
||||
exception: "#ff4949",
|
||||
warning: "#e6a23c",
|
||||
default: "#20a0ff"
|
||||
};
|
||||
const ns = index.useNamespace("progress");
|
||||
const barStyle = vue.computed(() => {
|
||||
const barStyle2 = {
|
||||
width: `${props.percentage}%`,
|
||||
animationDuration: `${props.duration}s`
|
||||
};
|
||||
const color = getCurrentColor(props.percentage);
|
||||
if (color.includes("gradient")) {
|
||||
barStyle2.background = color;
|
||||
} else {
|
||||
barStyle2.backgroundColor = color;
|
||||
}
|
||||
return barStyle2;
|
||||
});
|
||||
const relativeStrokeWidth = vue.computed(() => (props.strokeWidth / props.width * 100).toFixed(1));
|
||||
const radius = vue.computed(() => {
|
||||
if (["circle", "dashboard"].includes(props.type)) {
|
||||
return Number.parseInt(`${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`, 10);
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
const trackPath = vue.computed(() => {
|
||||
const r = radius.value;
|
||||
const isDashboard = props.type === "dashboard";
|
||||
return `
|
||||
M 50 50
|
||||
m 0 ${isDashboard ? "" : "-"}${r}
|
||||
a ${r} ${r} 0 1 1 0 ${isDashboard ? "-" : ""}${r * 2}
|
||||
a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
|
||||
`;
|
||||
});
|
||||
const perimeter = vue.computed(() => 2 * Math.PI * radius.value);
|
||||
const rate = vue.computed(() => props.type === "dashboard" ? 0.75 : 1);
|
||||
const strokeDashoffset = vue.computed(() => {
|
||||
const offset = -1 * perimeter.value * (1 - rate.value) / 2;
|
||||
return `${offset}px`;
|
||||
});
|
||||
const trailPathStyle = vue.computed(() => ({
|
||||
strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
|
||||
strokeDashoffset: strokeDashoffset.value
|
||||
}));
|
||||
const circlePathStyle = vue.computed(() => ({
|
||||
strokeDasharray: `${perimeter.value * rate.value * (props.percentage / 100)}px, ${perimeter.value}px`,
|
||||
strokeDashoffset: strokeDashoffset.value,
|
||||
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
||||
}));
|
||||
const stroke = vue.computed(() => {
|
||||
let ret;
|
||||
if (props.color) {
|
||||
ret = getCurrentColor(props.percentage);
|
||||
} else {
|
||||
ret = STATUS_COLOR_MAP[props.status] || STATUS_COLOR_MAP.default;
|
||||
}
|
||||
return ret;
|
||||
});
|
||||
const statusIcon = vue.computed(() => {
|
||||
if (props.status === "warning") {
|
||||
return iconsVue.WarningFilled;
|
||||
}
|
||||
if (props.type === "line") {
|
||||
return props.status === "success" ? iconsVue.CircleCheck : iconsVue.CircleClose;
|
||||
} else {
|
||||
return props.status === "success" ? iconsVue.Check : iconsVue.Close;
|
||||
}
|
||||
});
|
||||
const progressTextSize = vue.computed(() => {
|
||||
return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
|
||||
});
|
||||
const content = vue.computed(() => props.format(props.percentage));
|
||||
function getColors(color) {
|
||||
const span = 100 / color.length;
|
||||
const seriesColors = color.map((seriesColor, index) => {
|
||||
if (shared.isString(seriesColor)) {
|
||||
return {
|
||||
color: seriesColor,
|
||||
percentage: (index + 1) * span
|
||||
};
|
||||
}
|
||||
return seriesColor;
|
||||
});
|
||||
return seriesColors.sort((a, b) => a.percentage - b.percentage);
|
||||
}
|
||||
const getCurrentColor = (percentage) => {
|
||||
var _a;
|
||||
const { color } = props;
|
||||
if (shared.isFunction(color)) {
|
||||
return color(percentage);
|
||||
} else if (shared.isString(color)) {
|
||||
return color;
|
||||
} else {
|
||||
const colors = getColors(color);
|
||||
for (const color2 of colors) {
|
||||
if (color2.percentage > percentage)
|
||||
return color2.color;
|
||||
}
|
||||
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
||||
}
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return vue.openBlock(), vue.createElementBlock("div", {
|
||||
class: vue.normalizeClass([
|
||||
vue.unref(ns).b(),
|
||||
vue.unref(ns).m(_ctx.type),
|
||||
vue.unref(ns).is(_ctx.status),
|
||||
{
|
||||
[vue.unref(ns).m("without-text")]: !_ctx.showText,
|
||||
[vue.unref(ns).m("text-inside")]: _ctx.textInside
|
||||
}
|
||||
]),
|
||||
role: "progressbar",
|
||||
"aria-valuenow": _ctx.percentage,
|
||||
"aria-valuemin": "0",
|
||||
"aria-valuemax": "100"
|
||||
}, [
|
||||
_ctx.type === "line" ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).b("bar"))
|
||||
}, [
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass(vue.unref(ns).be("bar", "outer")),
|
||||
style: vue.normalizeStyle({ height: `${_ctx.strokeWidth}px` })
|
||||
}, [
|
||||
vue.createElementVNode("div", {
|
||||
class: vue.normalizeClass([
|
||||
vue.unref(ns).be("bar", "inner"),
|
||||
{ [vue.unref(ns).bem("bar", "inner", "indeterminate")]: _ctx.indeterminate },
|
||||
{ [vue.unref(ns).bem("bar", "inner", "striped")]: _ctx.striped },
|
||||
{ [vue.unref(ns).bem("bar", "inner", "striped-flow")]: _ctx.stripedFlow }
|
||||
]),
|
||||
style: vue.normalizeStyle(vue.unref(barStyle))
|
||||
}, [
|
||||
(_ctx.showText || _ctx.$slots.default) && _ctx.textInside ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 0,
|
||||
class: vue.normalizeClass(vue.unref(ns).be("bar", "innerText"))
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
|
||||
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(content)), 1)
|
||||
])
|
||||
], 2)) : vue.createCommentVNode("v-if", true)
|
||||
], 6)
|
||||
], 6)
|
||||
], 2)) : (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 1,
|
||||
class: vue.normalizeClass(vue.unref(ns).b("circle")),
|
||||
style: vue.normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
|
||||
}, [
|
||||
(vue.openBlock(), vue.createElementBlock("svg", { viewBox: "0 0 100 100" }, [
|
||||
vue.createElementVNode("path", {
|
||||
class: vue.normalizeClass(vue.unref(ns).be("circle", "track")),
|
||||
d: vue.unref(trackPath),
|
||||
stroke: `var(${vue.unref(ns).cssVarName("fill-color-light")}, #e5e9f2)`,
|
||||
"stroke-linecap": _ctx.strokeLinecap,
|
||||
"stroke-width": vue.unref(relativeStrokeWidth),
|
||||
fill: "none",
|
||||
style: vue.normalizeStyle(vue.unref(trailPathStyle))
|
||||
}, null, 14, ["d", "stroke", "stroke-linecap", "stroke-width"]),
|
||||
vue.createElementVNode("path", {
|
||||
class: vue.normalizeClass(vue.unref(ns).be("circle", "path")),
|
||||
d: vue.unref(trackPath),
|
||||
stroke: vue.unref(stroke),
|
||||
fill: "none",
|
||||
opacity: _ctx.percentage ? 1 : 0,
|
||||
"stroke-linecap": _ctx.strokeLinecap,
|
||||
"stroke-width": vue.unref(relativeStrokeWidth),
|
||||
style: vue.normalizeStyle(vue.unref(circlePathStyle))
|
||||
}, null, 14, ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"])
|
||||
]))
|
||||
], 6)),
|
||||
(_ctx.showText || _ctx.$slots.default) && !_ctx.textInside ? (vue.openBlock(), vue.createElementBlock("div", {
|
||||
key: 2,
|
||||
class: vue.normalizeClass(vue.unref(ns).e("text")),
|
||||
style: vue.normalizeStyle({ fontSize: `${vue.unref(progressTextSize)}px` })
|
||||
}, [
|
||||
vue.renderSlot(_ctx.$slots, "default", { percentage: _ctx.percentage }, () => [
|
||||
!_ctx.status ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(vue.unref(content)), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
||||
default: vue.withCtx(() => [
|
||||
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(statusIcon))))
|
||||
]),
|
||||
_: 1
|
||||
}))
|
||||
])
|
||||
], 6)) : vue.createCommentVNode("v-if", true)
|
||||
], 10, ["aria-valuenow"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var Progress = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress.vue"]]);
|
||||
|
||||
exports["default"] = Progress;
|
||||
//# sourceMappingURL=progress.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/progress/src/progress.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/progress/src/progress.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
78
frontend/node_modules/element-plus/lib/components/progress/src/progress.vue.d.ts
generated
vendored
Normal file
78
frontend/node_modules/element-plus/lib/components/progress/src/progress.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
import type { ProgressColor } from './progress';
|
||||
declare function __VLS_template(): {
|
||||
default?(_: {
|
||||
percentage: number;
|
||||
}): any;
|
||||
default?(_: {
|
||||
percentage: number;
|
||||
}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
|
||||
readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
|
||||
readonly indeterminate: BooleanConstructor;
|
||||
readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
||||
readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
||||
readonly strokeLinecap: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>) | ((new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>))[], unknown, unknown, "round", boolean>;
|
||||
readonly textInside: BooleanConstructor;
|
||||
readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
|
||||
readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]) | ((new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]))[], unknown, unknown, "", boolean>;
|
||||
readonly striped: BooleanConstructor;
|
||||
readonly stripedFlow: BooleanConstructor;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./progress").ProgressFn) | (() => import("./progress").ProgressFn) | {
|
||||
(): import("./progress").ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
} | ((new (...args: any[]) => import("./progress").ProgressFn) | (() => import("./progress").ProgressFn) | {
|
||||
(): import("./progress").ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
})[], unknown, unknown, (percentage: number) => string, 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 type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "line" | "dashboard", unknown, "line", boolean>;
|
||||
readonly percentage: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
||||
readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "exception", unknown, "", boolean>;
|
||||
readonly indeterminate: BooleanConstructor;
|
||||
readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
||||
readonly strokeWidth: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
||||
readonly strokeLinecap: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>) | ((new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>))[], unknown, unknown, "round", boolean>;
|
||||
readonly textInside: BooleanConstructor;
|
||||
readonly width: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 126, boolean>;
|
||||
readonly showText: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly color: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]) | ((new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]))[], unknown, unknown, "", boolean>;
|
||||
readonly striped: BooleanConstructor;
|
||||
readonly stripedFlow: BooleanConstructor;
|
||||
readonly format: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./progress").ProgressFn) | (() => import("./progress").ProgressFn) | {
|
||||
(): import("./progress").ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
} | ((new (...args: any[]) => import("./progress").ProgressFn) | (() => import("./progress").ProgressFn) | {
|
||||
(): import("./progress").ProgressFn;
|
||||
new (): any;
|
||||
readonly prototype: any;
|
||||
})[], unknown, unknown, (percentage: number) => string, boolean>;
|
||||
}>>, {
|
||||
readonly width: number;
|
||||
readonly color: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]) | ((new (...args: any[]) => string | import("./progress").ProgressFn | ProgressColor[]) | (() => string | import("./progress").ProgressFn | ProgressColor[]))[], unknown, unknown>;
|
||||
readonly strokeLinecap: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>) | ((new (...args: any[]) => "inherit" | "round" | "butt" | "square") | (() => NonNullable<"inherit" | "round" | "butt" | "square" | undefined>))[], unknown, unknown>;
|
||||
readonly strokeWidth: number;
|
||||
readonly type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "circle" | "line" | "dashboard", unknown>;
|
||||
readonly format: import("./progress").ProgressFn;
|
||||
readonly duration: number;
|
||||
readonly indeterminate: boolean;
|
||||
readonly percentage: number;
|
||||
readonly status: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "exception", unknown>;
|
||||
readonly showText: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly textInside: boolean;
|
||||
readonly striped: boolean;
|
||||
readonly stripedFlow: boolean;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
62
frontend/node_modules/element-plus/lib/components/progress/src/progress2.js
generated
vendored
Normal file
62
frontend/node_modules/element-plus/lib/components/progress/src/progress2.js
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var runtime = require('../../../utils/vue/props/runtime.js');
|
||||
|
||||
const progressProps = runtime.buildProps({
|
||||
type: {
|
||||
type: String,
|
||||
default: "line",
|
||||
values: ["line", "circle", "dashboard"]
|
||||
},
|
||||
percentage: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
validator: (val) => val >= 0 && val <= 100
|
||||
},
|
||||
status: {
|
||||
type: String,
|
||||
default: "",
|
||||
values: ["", "success", "exception", "warning"]
|
||||
},
|
||||
indeterminate: Boolean,
|
||||
duration: {
|
||||
type: Number,
|
||||
default: 3
|
||||
},
|
||||
strokeWidth: {
|
||||
type: Number,
|
||||
default: 6
|
||||
},
|
||||
strokeLinecap: {
|
||||
type: runtime.definePropType(String),
|
||||
default: "round"
|
||||
},
|
||||
textInside: Boolean,
|
||||
width: {
|
||||
type: Number,
|
||||
default: 126
|
||||
},
|
||||
showText: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
color: {
|
||||
type: runtime.definePropType([
|
||||
String,
|
||||
Array,
|
||||
Function
|
||||
]),
|
||||
default: ""
|
||||
},
|
||||
striped: Boolean,
|
||||
stripedFlow: Boolean,
|
||||
format: {
|
||||
type: runtime.definePropType(Function),
|
||||
default: (percentage) => `${percentage}%`
|
||||
}
|
||||
});
|
||||
|
||||
exports.progressProps = progressProps;
|
||||
//# sourceMappingURL=progress2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/progress/src/progress2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/progress/src/progress2.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"progress2.js","sources":["../../../../../../packages/components/progress/src/progress.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {\n ExtractPropTypes,\n SVGAttributes,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type Progress from './progress.vue'\n\nexport type ProgressColor = { color: string; percentage: number }\nexport type ProgressFn = (percentage: number) => string\n\nexport const progressProps = buildProps({\n /**\n * @description type of progress bar\n */\n type: {\n type: String,\n default: 'line',\n values: ['line', 'circle', 'dashboard'],\n },\n /**\n * @description percentage, required\n */\n percentage: {\n type: Number,\n default: 0,\n validator: (val: number): boolean => val >= 0 && val <= 100,\n },\n /**\n * @description the current status of progress bar\n */\n status: {\n type: String,\n default: '',\n values: ['', 'success', 'exception', 'warning'],\n },\n /**\n * @description set indeterminate progress\n */\n indeterminate: Boolean,\n /**\n * @description control the animation duration of indeterminate progress or striped flow progress\n */\n duration: {\n type: Number,\n default: 3,\n },\n /**\n * @description the width of progress bar\n */\n strokeWidth: {\n type: Number,\n default: 6,\n },\n /**\n * @description butt/circle/dashboard type shape at the end path\n */\n strokeLinecap: {\n type: definePropType<NonNullable<SVGAttributes['stroke-linecap']>>(String),\n default: 'round',\n },\n /**\n * @description whether to place the percentage inside progress bar, only works when `type` is 'line'\n */\n textInside: Boolean,\n /**\n * @description the canvas width of circle progress bar\n */\n width: {\n type: Number,\n default: 126,\n },\n /**\n * @description whether to show percentage\n */\n showText: {\n type: Boolean,\n default: true,\n },\n /**\n * @description background color of progress bar. Overrides `status` prop\n */\n color: {\n type: definePropType<string | ProgressColor[] | ProgressFn>([\n String,\n Array,\n Function,\n ]),\n default: '',\n },\n /**\n * @description stripe over the progress bar's color\n */\n striped: Boolean,\n /**\n * @description get the stripes to flow\n */\n stripedFlow: Boolean,\n /**\n * @description custom text format\n */\n format: {\n type: definePropType<ProgressFn>(Function),\n default: (percentage: number): string => `${percentage}%`,\n },\n} as const)\n\nexport type ProgressProps = ExtractPropTypes<typeof progressProps>\nexport type ProgressPropsPublic = __ExtractPublicPropTypes<typeof progressProps>\nexport type ProgressInstance = InstanceType<typeof Progress> & unknown\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC;AAC3C,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG;AAC9C,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC;AACnD,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,KAAK;AACX,MAAM,QAAQ;AACd,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,CAAC,UAAU,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AAC7C,GAAG;AACH,CAAC;;;;"}
|
||||
2
frontend/node_modules/element-plus/lib/components/progress/style/css.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/lib/components/progress/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-progress.css';
|
||||
6
frontend/node_modules/element-plus/lib/components/progress/style/css.js
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/components/progress/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/css.js');
|
||||
require('element-plus/theme-chalk/el-progress.css');
|
||||
|
||||
//# sourceMappingURL=css.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/progress/style/css.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/progress/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/progress/style/index.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/lib/components/progress/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/progress.scss';
|
||||
6
frontend/node_modules/element-plus/lib/components/progress/style/index.js
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/components/progress/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require('../../base/style/index.js');
|
||||
require('element-plus/theme-chalk/src/progress.scss');
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/progress/style/index.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/progress/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