| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562 |
- import { defineComponent as Y, createVNode as p, computed as O, resolveComponent as j, openBlock as x, createElementBlock as H, withCtx as P, createElementVNode as B, toDisplayString as Z, renderSlot as R, createCommentVNode as T, Fragment as tt, renderList as et, createBlock as L, normalizeClass as at, normalizeStyle as G, createTextVNode as K } from "vue";
- import { c as U, _ as z, o as nt, a2 as X, P as g, ap as ct, a4 as D, a3 as ot, ac as dt, d as c, q as pt, t as mt, g as gt, m as ht, r as ut, i as ft, u as $t, aq as St, ar as bt, as as yt, at as vt, j as Ct, a1 as It, a9 as xt, l as wt, au as _t, av as Tt, U as zt, aw as Ht } from "./index2.js";
- import { P as Bt } from "./index18.js";
- function it(t) {
- return typeof t == "string";
- }
- function Dt() {
- }
- const rt = () => ({
- prefixCls: String,
- itemWidth: String,
- active: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- status: X(),
- iconPrefix: String,
- icon: g.any,
- adjustMarginRight: String,
- stepNumber: Number,
- stepIndex: Number,
- description: g.any,
- title: g.any,
- subTitle: g.any,
- progressDot: ct(g.oneOfType([g.looseBool, g.func])),
- tailContent: g.any,
- icons: g.shape({
- finish: g.any,
- error: g.any
- }).loose,
- onClick: D(),
- onStepClick: D(),
- stepIcon: D(),
- itemRender: D(),
- __legacy: ot()
- }), st = Y({
- compatConfig: {
- MODE: 3
- },
- name: "Step",
- inheritAttrs: !1,
- props: rt(),
- setup(t, e) {
- let {
- slots: i,
- emit: n,
- attrs: o
- } = e;
- const r = (d) => {
- n("click", d), n("stepClick", t.stepIndex);
- }, u = (d) => {
- let {
- icon: s,
- title: a,
- description: f
- } = d;
- const {
- prefixCls: l,
- stepNumber: I,
- status: h,
- iconPrefix: y,
- icons: m,
- progressDot: $ = i.progressDot,
- stepIcon: _ = i.stepIcon
- } = t;
- let S;
- const v = U(`${l}-icon`, `${y}icon`, {
- [`${y}icon-${s}`]: s && it(s),
- [`${y}icon-check`]: !s && h === "finish" && (m && !m.finish || !m),
- [`${y}icon-cross`]: !s && h === "error" && (m && !m.error || !m)
- }), b = p("span", {
- class: `${l}-icon-dot`
- }, null);
- return $ ? typeof $ == "function" ? S = p("span", {
- class: `${l}-icon`
- }, [$({
- iconDot: b,
- index: I - 1,
- status: h,
- title: a,
- description: f,
- prefixCls: l
- })]) : S = p("span", {
- class: `${l}-icon`
- }, [b]) : s && !it(s) ? S = p("span", {
- class: `${l}-icon`
- }, [s]) : m && m.finish && h === "finish" ? S = p("span", {
- class: `${l}-icon`
- }, [m.finish]) : m && m.error && h === "error" ? S = p("span", {
- class: `${l}-icon`
- }, [m.error]) : s || h === "finish" || h === "error" ? S = p("span", {
- class: v
- }, null) : S = p("span", {
- class: `${l}-icon`
- }, [I]), _ && (S = _({
- index: I - 1,
- status: h,
- title: a,
- description: f,
- node: S
- })), S;
- };
- return () => {
- var d, s, a, f;
- const {
- prefixCls: l,
- itemWidth: I,
- active: h,
- status: y = "wait",
- tailContent: m,
- adjustMarginRight: $,
- disabled: _,
- title: S = (d = i.title) === null || d === void 0 ? void 0 : d.call(i),
- description: v = (s = i.description) === null || s === void 0 ? void 0 : s.call(i),
- subTitle: b = (a = i.subTitle) === null || a === void 0 ? void 0 : a.call(i),
- icon: C = (f = i.icon) === null || f === void 0 ? void 0 : f.call(i),
- onClick: w,
- onStepClick: W
- } = t, A = y || "wait", Q = U(`${l}-item`, `${l}-item-${A}`, {
- [`${l}-item-custom`]: C,
- [`${l}-item-active`]: h,
- [`${l}-item-disabled`]: _ === !0
- }), N = {};
- I && (N.width = I), $ && (N.marginRight = $);
- const M = {
- onClick: w || Dt
- };
- W && !_ && (M.role = "button", M.tabindex = 0, M.onClick = r);
- const F = p("div", z(z({}, nt(o, ["__legacy"])), {}, {
- class: [Q, o.class],
- style: [o.style, N]
- }), [p("div", z(z({}, M), {}, {
- class: `${l}-item-container`
- }), [p("div", {
- class: `${l}-item-tail`
- }, [m]), p("div", {
- class: `${l}-item-icon`
- }, [u({
- icon: C,
- title: S,
- description: v
- })]), p("div", {
- class: `${l}-item-content`
- }, [p("div", {
- class: `${l}-item-title`
- }, [S, b && p("div", {
- title: typeof b == "string" ? b : void 0,
- class: `${l}-item-subtitle`
- }, [b])]), v && p("div", {
- class: `${l}-item-description`
- }, [v])])])]);
- return t.itemRender ? t.itemRender(F) : F;
- };
- }
- });
- var Wt = function(t, e) {
- var i = {};
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
- if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
- e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (i[n[o]] = t[n[o]]);
- return i;
- };
- const Pt = Y({
- compatConfig: {
- MODE: 3
- },
- name: "Steps",
- props: {
- type: g.string.def("default"),
- prefixCls: g.string.def("vc-steps"),
- iconPrefix: g.string.def("vc"),
- direction: g.string.def("horizontal"),
- labelPlacement: g.string.def("horizontal"),
- status: X("process"),
- size: g.string.def(""),
- progressDot: g.oneOfType([g.looseBool, g.func]).def(void 0),
- initial: g.number.def(0),
- current: g.number.def(0),
- items: g.array.def(() => []),
- icons: g.shape({
- finish: g.any,
- error: g.any
- }).loose,
- stepIcon: D(),
- isInline: g.looseBool,
- itemRender: D()
- },
- emits: ["change"],
- setup(t, e) {
- let {
- slots: i,
- emit: n
- } = e;
- const o = (d) => {
- const {
- current: s
- } = t;
- s !== d && n("change", d);
- }, r = (d, s, a) => {
- const {
- prefixCls: f,
- iconPrefix: l,
- status: I,
- current: h,
- initial: y,
- icons: m,
- stepIcon: $ = i.stepIcon,
- isInline: _,
- itemRender: S,
- progressDot: v = i.progressDot
- } = t, b = _ || v, C = c(c({}, d), {
- class: ""
- }), w = y + s, W = {
- active: w === h,
- stepNumber: w + 1,
- stepIndex: w,
- key: w,
- prefixCls: f,
- iconPrefix: l,
- progressDot: b,
- stepIcon: $,
- icons: m,
- onStepClick: o
- };
- return I === "error" && s === h - 1 && (C.class = `${f}-next-error`), C.status || (w === h ? C.status = I : w < h ? C.status = "finish" : C.status = "wait"), _ && (C.icon = void 0, C.subTitle = void 0), a ? a(c(c({}, C), W)) : (S && (C.itemRender = (A) => S(C, A)), p(st, z(z(z({}, C), W), {}, {
- __legacy: !1
- }), null));
- }, u = (d, s) => r(c({}, d.props), s, (a) => pt(d, a));
- return () => {
- var d;
- const {
- prefixCls: s,
- direction: a,
- type: f,
- labelPlacement: l,
- iconPrefix: I,
- status: h,
- size: y,
- current: m,
- progressDot: $ = i.progressDot,
- initial: _,
- icons: S,
- items: v,
- isInline: b,
- itemRender: C
- } = t, w = Wt(t, ["prefixCls", "direction", "type", "labelPlacement", "iconPrefix", "status", "size", "current", "progressDot", "initial", "icons", "items", "isInline", "itemRender"]), W = f === "navigation", A = b || $, Q = b ? "horizontal" : a, N = b ? void 0 : y, M = A ? "vertical" : l, F = U(s, `${s}-${a}`, {
- [`${s}-${N}`]: N,
- [`${s}-label-${M}`]: Q === "horizontal",
- [`${s}-dot`]: !!A,
- [`${s}-navigation`]: W,
- [`${s}-inline`]: b
- });
- return p("div", z({
- class: F
- }, w), [v.filter((J) => J).map((J, lt) => r(J, lt)), dt((d = i.default) === null || d === void 0 ? void 0 : d.call(i)).map(u)]);
- };
- }
- }), Xt = (t) => {
- const {
- componentCls: e,
- stepsIconCustomTop: i,
- stepsIconCustomSize: n,
- stepsIconCustomFontSize: o
- } = t;
- return {
- [`${e}-item-custom`]: {
- [`> ${e}-item-container > ${e}-item-icon`]: {
- height: "auto",
- background: "none",
- border: 0,
- [`> ${e}-icon`]: {
- top: i,
- width: n,
- height: n,
- fontSize: o,
- lineHeight: `${n}px`
- }
- }
- },
- // Only adjust horizontal customize icon width
- [`&:not(${e}-vertical)`]: {
- [`${e}-item-custom`]: {
- [`${e}-item-icon`]: {
- width: "auto",
- background: "none"
- }
- }
- }
- };
- }, At = (t) => {
- const {
- componentCls: e,
- stepsIconSize: i,
- lineHeight: n,
- stepsSmallIconSize: o
- } = t;
- return {
- [`&${e}-label-vertical`]: {
- [`${e}-item`]: {
- overflow: "visible",
- "&-tail": {
- marginInlineStart: i / 2 + t.controlHeightLG,
- padding: `${t.paddingXXS}px ${t.paddingLG}px`
- },
- "&-content": {
- display: "block",
- width: (i / 2 + t.controlHeightLG) * 2,
- marginTop: t.marginSM,
- textAlign: "center"
- },
- "&-icon": {
- display: "inline-block",
- marginInlineStart: t.controlHeightLG
- },
- "&-title": {
- paddingInlineEnd: 0,
- paddingInlineStart: 0,
- "&::after": {
- display: "none"
- }
- },
- "&-subtitle": {
- display: "block",
- marginBottom: t.marginXXS,
- marginInlineStart: 0,
- lineHeight: n
- }
- },
- [`&${e}-small:not(${e}-dot)`]: {
- [`${e}-item`]: {
- "&-icon": {
- marginInlineStart: t.controlHeightLG + (i - o) / 2
- }
- }
- }
- }
- };
- }, Nt = (t) => {
- const {
- componentCls: e,
- stepsNavContentMaxWidth: i,
- stepsNavArrowColor: n,
- stepsNavActiveColor: o,
- motionDurationSlow: r
- } = t;
- return {
- [`&${e}-navigation`]: {
- paddingTop: t.paddingSM,
- [`&${e}-small`]: {
- [`${e}-item`]: {
- "&-container": {
- marginInlineStart: -t.marginSM
- }
- }
- },
- [`${e}-item`]: {
- overflow: "visible",
- textAlign: "center",
- "&-container": {
- display: "inline-block",
- height: "100%",
- marginInlineStart: -t.margin,
- paddingBottom: t.paddingSM,
- textAlign: "start",
- transition: `opacity ${r}`,
- [`${e}-item-content`]: {
- maxWidth: i
- },
- [`${e}-item-title`]: c(c({
- maxWidth: "100%",
- paddingInlineEnd: 0
- }, mt), {
- "&::after": {
- display: "none"
- }
- })
- },
- [`&:not(${e}-item-active)`]: {
- [`${e}-item-container[role='button']`]: {
- cursor: "pointer",
- "&:hover": {
- opacity: 0.85
- }
- }
- },
- "&:last-child": {
- flex: 1,
- "&::after": {
- display: "none"
- }
- },
- "&::after": {
- position: "absolute",
- top: `calc(50% - ${t.paddingSM / 2}px)`,
- insetInlineStart: "100%",
- display: "inline-block",
- width: t.fontSizeIcon,
- height: t.fontSizeIcon,
- borderTop: `${t.lineWidth}px ${t.lineType} ${n}`,
- borderBottom: "none",
- borderInlineStart: "none",
- borderInlineEnd: `${t.lineWidth}px ${t.lineType} ${n}`,
- transform: "translateY(-50%) translateX(-50%) rotate(45deg)",
- content: '""'
- },
- "&::before": {
- position: "absolute",
- bottom: 0,
- insetInlineStart: "50%",
- display: "inline-block",
- width: 0,
- height: t.lineWidthBold,
- backgroundColor: o,
- transition: `width ${r}, inset-inline-start ${r}`,
- transitionTimingFunction: "ease-out",
- content: '""'
- }
- },
- [`${e}-item${e}-item-active::before`]: {
- insetInlineStart: 0,
- width: "100%"
- }
- },
- [`&${e}-navigation${e}-vertical`]: {
- [`> ${e}-item`]: {
- marginInlineEnd: 0,
- "&::before": {
- display: "none"
- },
- [`&${e}-item-active::before`]: {
- top: 0,
- insetInlineEnd: 0,
- insetInlineStart: "unset",
- display: "block",
- width: t.lineWidth * 3,
- height: `calc(100% - ${t.marginLG}px)`
- },
- "&::after": {
- position: "relative",
- insetInlineStart: "50%",
- display: "block",
- width: t.controlHeight * 0.25,
- height: t.controlHeight * 0.25,
- marginBottom: t.marginXS,
- textAlign: "center",
- transform: "translateY(-50%) translateX(-50%) rotate(135deg)"
- },
- [`> ${e}-item-container > ${e}-item-tail`]: {
- visibility: "hidden"
- }
- }
- },
- [`&${e}-navigation${e}-horizontal`]: {
- [`> ${e}-item > ${e}-item-container > ${e}-item-tail`]: {
- visibility: "hidden"
- }
- }
- };
- }, Mt = (t) => {
- const {
- antCls: e,
- componentCls: i
- } = t;
- return {
- [`&${i}-with-progress`]: {
- [`${i}-item`]: {
- paddingTop: t.paddingXXS,
- [`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]: {
- color: t.processIconColor
- }
- },
- [`&${i}-vertical > ${i}-item `]: {
- paddingInlineStart: t.paddingXXS,
- [`> ${i}-item-container > ${i}-item-tail`]: {
- top: t.marginXXS,
- insetInlineStart: t.stepsIconSize / 2 - t.lineWidth + t.paddingXXS
- }
- },
- [`&, &${i}-small`]: {
- [`&${i}-horizontal ${i}-item:first-child`]: {
- paddingBottom: t.paddingXXS,
- paddingInlineStart: t.paddingXXS
- }
- },
- [`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]: {
- insetInlineStart: t.stepsSmallIconSize / 2 - t.lineWidth + t.paddingXXS
- },
- [`&${i}-label-vertical`]: {
- [`${i}-item ${i}-item-tail`]: {
- top: t.margin - 2 * t.lineWidth
- }
- },
- [`${i}-item-icon`]: {
- position: "relative",
- [`${e}-progress`]: {
- position: "absolute",
- insetBlockStart: (t.stepsIconSize - t.stepsProgressSize - t.lineWidth * 2) / 2,
- insetInlineStart: (t.stepsIconSize - t.stepsProgressSize - t.lineWidth * 2) / 2
- }
- }
- }
- };
- }, Rt = (t) => {
- const {
- componentCls: e,
- descriptionWidth: i,
- lineHeight: n,
- stepsCurrentDotSize: o,
- stepsDotSize: r,
- motionDurationSlow: u
- } = t;
- return {
- [`&${e}-dot, &${e}-dot${e}-small`]: {
- [`${e}-item`]: {
- "&-title": {
- lineHeight: n
- },
- "&-tail": {
- top: Math.floor((t.stepsDotSize - t.lineWidth * 3) / 2),
- width: "100%",
- marginTop: 0,
- marginBottom: 0,
- marginInline: `${i / 2}px 0`,
- padding: 0,
- "&::after": {
- width: `calc(100% - ${t.marginSM * 2}px)`,
- height: t.lineWidth * 3,
- marginInlineStart: t.marginSM
- }
- },
- "&-icon": {
- width: r,
- height: r,
- marginInlineStart: (t.descriptionWidth - r) / 2,
- paddingInlineEnd: 0,
- lineHeight: `${r}px`,
- background: "transparent",
- border: 0,
- [`${e}-icon-dot`]: {
- position: "relative",
- float: "left",
- width: "100%",
- height: "100%",
- borderRadius: 100,
- transition: `all ${u}`,
- /* expand hover area */
- "&::after": {
- position: "absolute",
- top: -t.marginSM,
- insetInlineStart: (r - t.controlHeightLG * 1.5) / 2,
- width: t.controlHeightLG * 1.5,
- height: t.controlHeight,
- background: "transparent",
- content: '""'
- }
- }
- },
- "&-content": {
- width: i
- },
- [`&-process ${e}-item-icon`]: {
- position: "relative",
- top: (r - o) / 2,
- width: o,
- height: o,
- lineHeight: `${o}px`,
- background: "none",
- marginInlineStart: (t.descriptionWidth - o) / 2
- },
- [`&-process ${e}-icon`]: {
- [`&:first-child ${e}-icon-dot`]: {
- insetInlineStart: 0
- }
- }
- }
- },
- [`&${e}-vertical${e}-dot`]: {
- [`${e}-item-icon`]: {
- marginTop: (t.controlHeight - r) / 2,
- marginInlineStart: 0,
- background: "none"
- },
- [`${e}-item-process ${e}-item-icon`]: {
- marginTop: (t.controlHeight - o) / 2,
- top: 0,
- insetInlineStart: (r - o) / 2,
- marginInlineStart: 0
- },
- // https://github.com/ant-design/ant-design/issues/18354
- [`${e}-item > ${e}-item-container > ${e}-item-tail`]: {
- top: (t.controlHeight - r) / 2,
- insetInlineStart: 0,
- margin: 0,
- padding: `${r + t.paddingXS}px 0 ${t.paddingXS}px`,
- "&::after": {
- marginInlineStart: (r - t.lineWidth) / 2
- }
- },
- [`&${e}-small`]: {
- [`${e}-item-icon`]: {
- marginTop: (t.controlHeightSM - r) / 2
- },
- [`${e}-item-process ${e}-item-icon`]: {
- marginTop: (t.controlHeightSM - o) / 2
- },
- [`${e}-item > ${e}-item-container > ${e}-item-tail`]: {
- top: (t.controlHeightSM - r) / 2
- }
- },
- [`${e}-item:first-child ${e}-icon-dot`]: {
- insetInlineStart: 0
- },
- [`${e}-item-content`]: {
- width: "inherit"
- }
- }
- };
- }, Lt = (t) => {
- const {
- componentCls: e
- } = t;
- return {
- [`&${e}-rtl`]: {
- direction: "rtl",
- [`${e}-item`]: {
- "&-subtitle": {
- float: "left"
- }
- },
- // nav
- [`&${e}-navigation`]: {
- [`${e}-item::after`]: {
- transform: "rotate(-45deg)"
- }
- },
- // vertical
- [`&${e}-vertical`]: {
- [`> ${e}-item`]: {
- "&::after": {
- transform: "rotate(225deg)"
- },
- [`${e}-item-icon`]: {
- float: "right"
- }
- }
- },
- // progress-dot
- [`&${e}-dot`]: {
- [`${e}-item-icon ${e}-icon-dot, &${e}-small ${e}-item-icon ${e}-icon-dot`]: {
- float: "right"
- }
- }
- }
- };
- }, Et = (t) => {
- const {
- componentCls: e,
- stepsSmallIconSize: i,
- // stepsSmallIconMargin,
- fontSizeSM: n,
- fontSize: o,
- colorTextDescription: r
- } = t;
- return {
- [`&${e}-small`]: {
- [`&${e}-horizontal:not(${e}-label-vertical) ${e}-item`]: {
- paddingInlineStart: t.paddingSM,
- "&:first-child": {
- paddingInlineStart: 0
- }
- },
- [`${e}-item-icon`]: {
- width: i,
- height: i,
- // margin: stepsSmallIconMargin,
- marginTop: 0,
- marginBottom: 0,
- marginInline: `0 ${t.marginXS}px`,
- fontSize: n,
- lineHeight: `${i}px`,
- textAlign: "center",
- borderRadius: i
- },
- [`${e}-item-title`]: {
- paddingInlineEnd: t.paddingSM,
- fontSize: o,
- lineHeight: `${i}px`,
- "&::after": {
- top: i / 2
- }
- },
- [`${e}-item-description`]: {
- color: r,
- fontSize: o
- },
- [`${e}-item-tail`]: {
- top: i / 2 - t.paddingXXS
- },
- [`${e}-item-custom ${e}-item-icon`]: {
- width: "inherit",
- height: "inherit",
- lineHeight: "inherit",
- background: "none",
- border: 0,
- borderRadius: 0,
- [`> ${e}-icon`]: {
- fontSize: i,
- lineHeight: `${i}px`,
- transform: "none"
- }
- }
- }
- };
- }, Ot = (t) => {
- const {
- componentCls: e,
- stepsSmallIconSize: i,
- stepsIconSize: n
- } = t;
- return {
- [`&${e}-vertical`]: {
- display: "flex",
- flexDirection: "column",
- [`> ${e}-item`]: {
- display: "block",
- flex: "1 0 auto",
- paddingInlineStart: 0,
- overflow: "visible",
- [`${e}-item-icon`]: {
- float: "left",
- marginInlineEnd: t.margin
- },
- [`${e}-item-content`]: {
- display: "block",
- minHeight: t.controlHeight * 1.5,
- overflow: "hidden"
- },
- [`${e}-item-title`]: {
- lineHeight: `${n}px`
- },
- [`${e}-item-description`]: {
- paddingBottom: t.paddingSM
- }
- },
- [`> ${e}-item > ${e}-item-container > ${e}-item-tail`]: {
- position: "absolute",
- top: 0,
- insetInlineStart: t.stepsIconSize / 2 - t.lineWidth,
- width: t.lineWidth,
- height: "100%",
- padding: `${n + t.marginXXS * 1.5}px 0 ${t.marginXXS * 1.5}px`,
- "&::after": {
- width: t.lineWidth,
- height: "100%"
- }
- },
- [`> ${e}-item:not(:last-child) > ${e}-item-container > ${e}-item-tail`]: {
- display: "block"
- },
- [` > ${e}-item > ${e}-item-container > ${e}-item-content > ${e}-item-title`]: {
- "&::after": {
- display: "none"
- }
- },
- [`&${e}-small ${e}-item-container`]: {
- [`${e}-item-tail`]: {
- position: "absolute",
- top: 0,
- insetInlineStart: t.stepsSmallIconSize / 2 - t.lineWidth,
- padding: `${i + t.marginXXS * 1.5}px 0 ${t.marginXXS * 1.5}px`
- },
- [`${e}-item-title`]: {
- lineHeight: `${i}px`
- }
- }
- }
- };
- }, Ft = (t) => {
- const {
- componentCls: e,
- inlineDotSize: i,
- inlineTitleColor: n,
- inlineTailColor: o
- } = t, r = t.paddingXS + t.lineWidth, u = {
- [`${e}-item-container ${e}-item-content ${e}-item-title`]: {
- color: n
- }
- };
- return {
- [`&${e}-inline`]: {
- width: "auto",
- display: "inline-flex",
- [`${e}-item`]: {
- flex: "none",
- "&-container": {
- padding: `${r}px ${t.paddingXXS}px 0`,
- margin: `0 ${t.marginXXS / 2}px`,
- borderRadius: t.borderRadiusSM,
- cursor: "pointer",
- transition: `background-color ${t.motionDurationMid}`,
- "&:hover": {
- background: t.controlItemBgHover
- },
- "&[role='button']:hover": {
- opacity: 1
- }
- },
- "&-icon": {
- width: i,
- height: i,
- marginInlineStart: `calc(50% - ${i / 2}px)`,
- [`> ${e}-icon`]: {
- top: 0
- },
- [`${e}-icon-dot`]: {
- borderRadius: t.fontSizeSM / 4
- }
- },
- "&-content": {
- width: "auto",
- marginTop: t.marginXS - t.lineWidth
- },
- "&-title": {
- color: n,
- fontSize: t.fontSizeSM,
- lineHeight: t.lineHeightSM,
- fontWeight: "normal",
- marginBottom: t.marginXXS / 2
- },
- "&-description": {
- display: "none"
- },
- "&-tail": {
- marginInlineStart: 0,
- top: r + i / 2,
- transform: "translateY(-50%)",
- "&:after": {
- width: "100%",
- height: t.lineWidth,
- borderRadius: 0,
- marginInlineStart: 0,
- background: o
- }
- },
- [`&:first-child ${e}-item-tail`]: {
- width: "50%",
- marginInlineStart: "50%"
- },
- [`&:last-child ${e}-item-tail`]: {
- display: "block",
- width: "50%"
- },
- "&-wait": c({
- [`${e}-item-icon ${e}-icon ${e}-icon-dot`]: {
- backgroundColor: t.colorBorderBg,
- border: `${t.lineWidth}px ${t.lineType} ${o}`
- }
- }, u),
- "&-finish": c({
- [`${e}-item-tail::after`]: {
- backgroundColor: o
- },
- [`${e}-item-icon ${e}-icon ${e}-icon-dot`]: {
- backgroundColor: o,
- border: `${t.lineWidth}px ${t.lineType} ${o}`
- }
- }, u),
- "&-error": u,
- "&-active, &-process": c({
- [`${e}-item-icon`]: {
- width: i,
- height: i,
- marginInlineStart: `calc(50% - ${i / 2}px)`,
- top: 0
- }
- }, u),
- [`&:not(${e}-item-active) > ${e}-item-container[role='button']:hover`]: {
- [`${e}-item-title`]: {
- color: n
- }
- }
- }
- }
- };
- };
- var E;
- (function(t) {
- t.wait = "wait", t.process = "process", t.finish = "finish", t.error = "error";
- })(E || (E = {}));
- const V = (t, e) => {
- const i = `${e.componentCls}-item`, n = `${t}IconColor`, o = `${t}TitleColor`, r = `${t}DescriptionColor`, u = `${t}TailColor`, d = `${t}IconBgColor`, s = `${t}IconBorderColor`, a = `${t}DotColor`;
- return {
- [`${i}-${t} ${i}-icon`]: {
- backgroundColor: e[d],
- borderColor: e[s],
- [`> ${e.componentCls}-icon`]: {
- color: e[n],
- [`${e.componentCls}-icon-dot`]: {
- background: e[a]
- }
- }
- },
- [`${i}-${t}${i}-custom ${i}-icon`]: {
- [`> ${e.componentCls}-icon`]: {
- color: e[a]
- }
- },
- [`${i}-${t} > ${i}-container > ${i}-content > ${i}-title`]: {
- color: e[o],
- "&::after": {
- backgroundColor: e[u]
- }
- },
- [`${i}-${t} > ${i}-container > ${i}-content > ${i}-description`]: {
- color: e[r]
- },
- [`${i}-${t} > ${i}-container > ${i}-tail::after`]: {
- backgroundColor: e[u]
- }
- };
- }, jt = (t) => {
- const {
- componentCls: e,
- motionDurationSlow: i
- } = t, n = `${e}-item`;
- return c(c(c(c(c(c({
- [n]: {
- position: "relative",
- display: "inline-block",
- flex: 1,
- overflow: "hidden",
- verticalAlign: "top",
- "&:last-child": {
- flex: "none",
- [`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]: {
- display: "none"
- }
- }
- },
- [`${n}-container`]: {
- outline: "none"
- },
- [`${n}-icon, ${n}-content`]: {
- display: "inline-block",
- verticalAlign: "top"
- },
- [`${n}-icon`]: {
- width: t.stepsIconSize,
- height: t.stepsIconSize,
- marginTop: 0,
- marginBottom: 0,
- marginInlineStart: 0,
- marginInlineEnd: t.marginXS,
- fontSize: t.stepsIconFontSize,
- fontFamily: t.fontFamily,
- lineHeight: `${t.stepsIconSize}px`,
- textAlign: "center",
- borderRadius: t.stepsIconSize,
- border: `${t.lineWidth}px ${t.lineType} transparent`,
- transition: `background-color ${i}, border-color ${i}`,
- [`${e}-icon`]: {
- position: "relative",
- top: t.stepsIconTop,
- color: t.colorPrimary,
- lineHeight: 1
- }
- },
- [`${n}-tail`]: {
- position: "absolute",
- top: t.stepsIconSize / 2 - t.paddingXXS,
- insetInlineStart: 0,
- width: "100%",
- "&::after": {
- display: "inline-block",
- width: "100%",
- height: t.lineWidth,
- background: t.colorSplit,
- borderRadius: t.lineWidth,
- transition: `background ${i}`,
- content: '""'
- }
- },
- [`${n}-title`]: {
- position: "relative",
- display: "inline-block",
- paddingInlineEnd: t.padding,
- color: t.colorText,
- fontSize: t.fontSizeLG,
- lineHeight: `${t.stepsTitleLineHeight}px`,
- "&::after": {
- position: "absolute",
- top: t.stepsTitleLineHeight / 2,
- insetInlineStart: "100%",
- display: "block",
- width: 9999,
- height: t.lineWidth,
- background: t.processTailColor,
- content: '""'
- }
- },
- [`${n}-subtitle`]: {
- display: "inline",
- marginInlineStart: t.marginXS,
- color: t.colorTextDescription,
- fontWeight: "normal",
- fontSize: t.fontSize
- },
- [`${n}-description`]: {
- color: t.colorTextDescription,
- fontSize: t.fontSize
- }
- }, V(E.wait, t)), V(E.process, t)), {
- [`${n}-process > ${n}-container > ${n}-title`]: {
- fontWeight: t.fontWeightStrong
- }
- }), V(E.finish, t)), V(E.error, t)), {
- [`${n}${e}-next-error > ${e}-item-title::after`]: {
- background: t.colorError
- },
- [`${n}-disabled`]: {
- cursor: "not-allowed"
- }
- });
- }, Gt = (t) => {
- const {
- componentCls: e,
- motionDurationSlow: i
- } = t;
- return {
- [`& ${e}-item`]: {
- [`&:not(${e}-item-active)`]: {
- [`& > ${e}-item-container[role='button']`]: {
- cursor: "pointer",
- [`${e}-item`]: {
- [`&-title, &-subtitle, &-description, &-icon ${e}-icon`]: {
- transition: `color ${i}`
- }
- },
- "&:hover": {
- [`${e}-item`]: {
- "&-title, &-subtitle, &-description": {
- color: t.colorPrimary
- }
- }
- }
- },
- [`&:not(${e}-item-process)`]: {
- [`& > ${e}-item-container[role='button']:hover`]: {
- [`${e}-item`]: {
- "&-icon": {
- borderColor: t.colorPrimary,
- [`${e}-icon`]: {
- color: t.colorPrimary
- }
- }
- }
- }
- }
- }
- },
- [`&${e}-horizontal:not(${e}-label-vertical)`]: {
- [`${e}-item`]: {
- paddingInlineStart: t.padding,
- whiteSpace: "nowrap",
- "&:first-child": {
- paddingInlineStart: 0
- },
- [`&:last-child ${e}-item-title`]: {
- paddingInlineEnd: 0
- },
- "&-tail": {
- display: "none"
- },
- "&-description": {
- maxWidth: t.descriptionWidth,
- whiteSpace: "normal"
- }
- }
- }
- };
- }, Kt = (t) => {
- const {
- componentCls: e
- } = t;
- return {
- [e]: c(c(c(c(c(c(c(c(c(c(c(c(c({}, ut(t)), {
- display: "flex",
- width: "100%",
- fontSize: 0,
- textAlign: "initial"
- }), jt(t)), Gt(t)), Xt(t)), Et(t)), Ot(t)), At(t)), Rt(t)), Nt(t)), Lt(t)), Mt(t)), Ft(t))
- };
- }, Vt = gt("Steps", (t) => {
- const {
- wireframe: e,
- colorTextDisabled: i,
- fontSizeHeading3: n,
- fontSize: o,
- controlHeight: r,
- controlHeightLG: u,
- colorTextLightSolid: d,
- colorText: s,
- colorPrimary: a,
- colorTextLabel: f,
- colorTextDescription: l,
- colorTextQuaternary: I,
- colorFillContent: h,
- controlItemBgActive: y,
- colorError: m,
- colorBgContainer: $,
- colorBorderSecondary: _
- } = t, S = t.controlHeight, v = t.colorSplit, b = ht(t, {
- // Steps variable default.less
- processTailColor: v,
- stepsNavArrowColor: i,
- stepsIconSize: S,
- stepsIconCustomSize: S,
- stepsIconCustomTop: 0,
- stepsIconCustomFontSize: u / 2,
- stepsIconTop: -0.5,
- stepsIconFontSize: o,
- stepsTitleLineHeight: r,
- stepsSmallIconSize: n,
- stepsDotSize: r / 4,
- stepsCurrentDotSize: u / 4,
- stepsNavContentMaxWidth: "auto",
- // Steps component less variable
- processIconColor: d,
- processTitleColor: s,
- processDescriptionColor: s,
- processIconBgColor: a,
- processIconBorderColor: a,
- processDotColor: a,
- waitIconColor: e ? i : f,
- waitTitleColor: l,
- waitDescriptionColor: l,
- waitTailColor: v,
- waitIconBgColor: e ? $ : h,
- waitIconBorderColor: e ? i : "transparent",
- waitDotColor: i,
- finishIconColor: a,
- finishTitleColor: s,
- finishDescriptionColor: l,
- finishTailColor: a,
- finishIconBgColor: e ? $ : y,
- finishIconBorderColor: e ? a : y,
- finishDotColor: a,
- errorIconColor: d,
- errorTitleColor: m,
- errorDescriptionColor: m,
- errorTailColor: v,
- errorIconBgColor: m,
- errorIconBorderColor: m,
- errorDotColor: m,
- stepsNavActiveColor: a,
- stepsProgressSize: u,
- // Steps inline variable
- inlineDotSize: 6,
- inlineTitleColor: I,
- inlineTailColor: _
- });
- return [Kt(b)];
- }, {
- descriptionWidth: 140
- }), qt = () => ({
- prefixCls: String,
- iconPrefix: String,
- current: Number,
- initial: Number,
- percent: Number,
- responsive: ot(),
- items: Ct(),
- labelPlacement: X(),
- status: X(),
- size: X(),
- direction: X(),
- progressDot: It([Boolean, Function]),
- type: X(),
- onChange: D(),
- "onUpdate:current": D()
- }), k = Y({
- compatConfig: {
- MODE: 3
- },
- name: "ASteps",
- inheritAttrs: !1,
- props: ft(qt(), {
- current: 0,
- responsive: !0,
- labelPlacement: "horizontal"
- }),
- slots: Object,
- // emits: ['update:current', 'change'],
- setup(t, e) {
- let {
- attrs: i,
- slots: n,
- emit: o
- } = e;
- const {
- prefixCls: r,
- direction: u,
- configProvider: d
- } = $t("steps", t), [s, a] = Vt(r), [, f] = St(), l = bt(), I = O(() => t.responsive && l.value.xs ? "vertical" : t.direction), h = O(() => d.getPrefixCls("", t.iconPrefix)), y = (v) => {
- o("update:current", v), o("change", v);
- }, m = O(() => t.type === "inline"), $ = O(() => m.value ? void 0 : t.percent), _ = (v) => {
- let {
- node: b,
- status: C
- } = v;
- if (C === "process" && t.percent !== void 0) {
- const w = t.size === "small" ? f.value.controlHeight : f.value.controlHeightLG;
- return p("div", {
- class: `${r.value}-progress-icon`
- }, [p(Bt, {
- type: "circle",
- percent: $.value,
- size: w,
- strokeWidth: 4,
- format: () => null
- }, null), b]);
- }
- return b;
- }, S = O(() => ({
- finish: p(yt, {
- class: `${r.value}-finish-icon`
- }, null),
- error: p(vt, {
- class: `${r.value}-error-icon`
- }, null)
- }));
- return () => {
- const v = U({
- [`${r.value}-rtl`]: u.value === "rtl",
- [`${r.value}-with-progress`]: $.value !== void 0
- }, i.class, a.value), b = (C, w) => C.description ? p(xt, {
- title: C.description
- }, {
- default: () => [w]
- }) : w;
- return s(p(Pt, z(z(z({
- icons: S.value
- }, i), nt(t, ["percent", "responsive"])), {}, {
- items: t.items,
- direction: I.value,
- prefixCls: r.value,
- iconPrefix: h.value,
- class: v,
- onChange: y,
- isInline: m.value,
- itemRender: m.value ? b : void 0
- }), c({
- stepIcon: _
- }, n)));
- };
- }
- }), q = Y(c(c({
- compatConfig: {
- MODE: 3
- }
- }, st), {
- name: "AStep",
- props: rt()
- })), Ut = c(k, {
- Step: q,
- install: (t) => (t.component(k.name, k), t.component(q.name, q), t)
- }), Yt = {
- name: "SFormLayout",
- components: {},
- data() {
- return {
- layoutHeight: 0,
- footerWitdh: 0,
- form: {},
- stepActive: 0,
- tabsActive: ""
- };
- },
- props: {
- showAnchor: {
- type: Boolean,
- default: !1
- },
- loading: {
- type: Boolean,
- default: !1
- },
- // 页面标题
- title: {
- type: String,
- required: !0
- },
- subTitle: {
- type: String,
- default: ""
- },
- showBtnIcon: {
- type: Boolean,
- default: !0
- },
- steps: {
- type: Array,
- default() {
- return [];
- }
- },
- stepDefaultActive: {
- type: Number,
- default: 0
- },
- stepValid: {
- type: Function,
- default: void 0
- },
- tabs: {
- type: Array,
- default() {
- return [];
- }
- },
- tabKey: {
- type: Object,
- default() {
- return {
- label: "label",
- value: "value"
- };
- }
- },
- formStyle: {
- type: Object,
- default() {
- return {};
- }
- },
- goBack: {
- type: Boolean,
- default: !0
- },
- isShowSave: {
- type: Boolean,
- default: !0
- },
- saveBtnText: {
- type: String,
- default: "保存"
- }
- },
- methods: {
- initStyle() {
- this.$nextTick(() => {
- var r, u, d, s, a, f, l, I, h, y;
- const t = ((u = (r = this.$refs) == null ? void 0 : r.step) == null ? void 0 : u.offsetHeight) || 0, e = ((s = (d = this.$refs) == null ? void 0 : d.tabs) == null ? void 0 : s.offsetHeight) || 0, i = ((f = (a = this.$refs) == null ? void 0 : a.footer) == null ? void 0 : f.offsetHeight) || 0, n = ((I = (l = this.$refs) == null ? void 0 : l.tools) == null ? void 0 : I.offsetHeight) || 0;
- this.layoutHeight = ((h = this.$refs.layout) == null ? void 0 : h.offsetHeight) - i - (t > 0 ? t + 16 : 0) - e - n + "px";
- const o = !this.$slots.collapses || this.$slots.collapses && !this.showAnchor ? 0 : 220;
- this.footerWitdh = ((y = this.$refs.formMain) == null ? void 0 : y.offsetWidth) - o + "px";
- });
- },
- isFunction(t) {
- return this[t] && typeof this[t] == "function" ? !0 : (this.$notification.error({
- key: "only-you",
- message: "未绑定接口Api方法, 无法操作"
- }), !1);
- },
- rollback() {
- this.$emit("footer-callback", "cancel");
- },
- handPrev() {
- this.stepActive--, this.$emit("footer-callback", "prev", this.stepActive);
- },
- handNext() {
- if (!this.$utils.isFunction(this.stepValid)) {
- this.stepActive++, this.$emit("footer-callback", "next", this.stepActive);
- return;
- }
- this.stepValid(this.stepActive).then((t) => {
- t && (this.stepActive++, this.$emit("footer-callback", "next", this.stepActive));
- });
- },
- save() {
- this.$emit("footer-callback", "save");
- },
- handTabChange(t) {
- const e = this.tabs.find((i) => i[this.tabKey.value] === t);
- this.$emit("tabsChange", e);
- }
- },
- created() {
- },
- mounted() {
- this.initStyle(), this.stepActive = this.stepDefaultActive;
- }
- }, Qt = {
- class: "form-layout",
- ref: "layout"
- }, Jt = {
- key: 0,
- class: "tools",
- ref: "tools"
- }, Zt = { class: "row" }, kt = { class: "title" }, te = { class: "btns" }, ee = {
- key: 0,
- class: "row sub-title-wrap",
- ref: "subTitle"
- }, ie = { class: "sub-title" }, ne = {
- key: 1,
- class: "step-wrap",
- ref: "step"
- }, oe = {
- key: 2,
- class: "tabs-wrap",
- ref: "tabs"
- }, re = {
- key: 1,
- class: "collapses-content-wrap"
- }, se = {
- key: 0,
- class: "collapses-nav"
- }, le = { class: "modal" };
- function ae(t, e, i, n, o, r) {
- const u = q, d = Ut, s = _t, a = Tt, f = j("close-outlined"), l = zt, I = j("arrow-left-outlined"), h = j("arrow-right-outlined"), y = j("save-outlined"), m = Ht;
- return x(), H("div", Qt, [
- p(m, { spinning: i.loading }, {
- default: P(() => [
- i.title || i.subTitle || t.$slots.otherBtns ? (x(), H("div", Jt, [
- B("div", Zt, [
- B("div", kt, [
- B("span", null, Z(i.title), 1)
- ]),
- B("div", te, [
- R(t.$slots, "otherBtns", {}, void 0, !0)
- ])
- ]),
- i.subTitle ? (x(), H("div", ee, [
- B("div", ie, Z(i.subTitle), 1)
- ], 512)) : T("", !0)
- ], 512)) : T("", !0),
- i.steps && i.steps.length ? (x(), H("div", ne, [
- p(d, {
- current: o.stepActive,
- type: "navigation",
- size: "small"
- }, {
- default: P(() => [
- (x(!0), H(tt, null, et(i.steps, ($) => (x(), L(u, {
- title: $,
- key: $,
- disabled: ""
- }, null, 8, ["title"]))), 128))
- ]),
- _: 1
- }, 8, ["current"])
- ], 512)) : T("", !0),
- i.tabs && i.tabs.length ? (x(), H("div", oe, [
- p(a, {
- "default-active-key": "1",
- onChange: r.handTabChange
- }, {
- default: P(() => [
- (x(!0), H(tt, null, et(i.tabs, ($) => (x(), L(s, {
- tab: $[i.tabKey.label],
- key: $[i.tabKey.value]
- }, null, 8, ["tab"]))), 128))
- ]),
- _: 1
- }, 8, ["onChange"])
- ], 512)) : T("", !0),
- B("div", {
- class: at(["form-layout-main", { whiteBg: !!t.$slots.form }]),
- id: "form-container",
- ref: "formMain",
- style: G({ height: o.layoutHeight })
- }, [
- t.$slots.form ? (x(), H("div", {
- key: 0,
- class: "form-container-wrap",
- style: G(i.formStyle)
- }, [
- R(t.$slots, "form", {}, void 0, !0)
- ], 4)) : T("", !0),
- t.$slots.collapses ? (x(), H("div", re, [
- B("div", {
- class: "collapese-container",
- style: G({ width: i.showAnchor ? "calc(100% - 220px)" : "100%" })
- }, [
- R(t.$slots, "collapses", {}, void 0, !0)
- ], 4),
- i.showAnchor && t.$slots.anchor ? (x(), H("div", se, [
- R(t.$slots, "anchor", {}, void 0, !0)
- ])) : T("", !0)
- ])) : T("", !0)
- ], 6),
- B("div", le, [
- R(t.$slots, "other", {}, void 0, !0)
- ]),
- B("div", {
- class: "form-fixed-footer",
- ref: "footer",
- style: G({ width: o.footerWitdh })
- }, [
- i.goBack ? (x(), L(l, {
- key: 0,
- onClick: r.rollback,
- class: "btn"
- }, {
- default: P(() => [
- p(f),
- e[0] || (e[0] = K("取消 "))
- ]),
- _: 1
- }, 8, ["onClick"])) : T("", !0),
- i.steps.length ? (x(), L(l, {
- key: 1,
- class: "btn",
- disabled: o.stepActive === this.stepDefaultActive,
- onClick: r.handPrev
- }, {
- default: P(() => [
- p(I),
- e[1] || (e[1] = K("上一步 "))
- ]),
- _: 1
- }, 8, ["disabled", "onClick"])) : T("", !0),
- i.steps.length ? (x(), L(l, {
- key: 2,
- class: "btn",
- type: "primary",
- disabled: o.stepActive === this.steps.length - 1,
- onClick: r.handNext
- }, {
- default: P(() => [
- p(h),
- e[2] || (e[2] = K("下一步 "))
- ]),
- _: 1
- }, 8, ["disabled", "onClick"])) : T("", !0),
- i.isShowSave ? (x(), L(l, {
- key: 3,
- style: { "margin-right": "8px" },
- type: "primary",
- onClick: r.save
- }, {
- default: P(() => [
- p(y),
- K(" " + Z(i.saveBtnText), 1)
- ]),
- _: 1
- }, 8, ["onClick"])) : T("", !0),
- R(t.$slots, "footer", {}, void 0, !0)
- ], 4)
- ]),
- _: 3
- }, 8, ["spinning"])
- ], 512);
- }
- const me = /* @__PURE__ */ wt(Yt, [["render", ae], ["__scopeId", "data-v-a58915bf"]]);
- export {
- me as default
- };
|