@vue-ui-kit/ant 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,6 @@ import { ButtonProps } from 'ant-design-vue/lib/button';
|
|
|
3
3
|
import { ColProps } from 'ant-design-vue/lib/grid/Col';
|
|
4
4
|
import { FormProps } from 'ant-design-vue/lib/form/Form';
|
|
5
5
|
import { TableColumnType, TableProps, TooltipProps } from 'ant-design-vue';
|
|
6
|
-
import { ButtonType } from 'ant-design-vue/lib/button/buttonTypes';
|
|
7
6
|
import { ConfigType, Column as EVirtColumn, default as EVirtTable } from 'e-virt-table';
|
|
8
7
|
export interface CellFuncArg<D extends Recordable = Recordable> {
|
|
9
8
|
row: D;
|
|
@@ -132,23 +131,17 @@ export interface ColumnProps<D extends Recordable = Recordable> extends Omit<Tab
|
|
|
132
131
|
export interface PButtonProps extends ButtonProps {
|
|
133
132
|
content?: string;
|
|
134
133
|
icon?: string;
|
|
135
|
-
type?: ButtonType;
|
|
136
134
|
}
|
|
137
135
|
export interface ToolbarButtonProps extends PButtonProps {
|
|
138
136
|
code: string;
|
|
139
137
|
dropdowns?: ToolbarButtonProps[];
|
|
140
|
-
|
|
138
|
+
}
|
|
139
|
+
export interface ToolbarToolProps extends PButtonProps {
|
|
140
|
+
code: string;
|
|
141
141
|
}
|
|
142
142
|
export interface ToolbarConfig {
|
|
143
143
|
buttons?: Array<ToolbarButtonProps>;
|
|
144
|
-
tools?: Array<
|
|
145
|
-
code: string;
|
|
146
|
-
icon?: string;
|
|
147
|
-
type?: ButtonType;
|
|
148
|
-
content?: string;
|
|
149
|
-
disabled?: boolean;
|
|
150
|
-
size?: 'small' | 'large' | 'middle';
|
|
151
|
-
}>;
|
|
144
|
+
tools?: Array<ToolbarToolProps>;
|
|
152
145
|
disabled?: boolean;
|
|
153
146
|
}
|
|
154
147
|
export interface ResponsePathConfig<D extends Recordable = Recordable> {
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toValue as Gl, watch as Ze, defineComponent as de, createVNode as N, computed as z, resolveComponent as se, createElementBlock as U, openBlock as L, createElementVNode as he, mergeProps as V, unref as S, createSlots as Dt, withCtx as
|
|
1
|
+
import { toValue as Gl, watch as Ze, defineComponent as de, createVNode as N, computed as z, resolveComponent as se, createElementBlock as U, openBlock as L, createElementVNode as he, mergeProps as V, unref as S, createSlots as Dt, withCtx as K, createBlock as W, createCommentVNode as ie, createTextVNode as be, ref as Y, toRefs as At, resolveDynamicComponent as br, normalizeProps as as, Fragment as ae, renderList as ge, reactive as yt, useAttrs as Mr, onMounted as Xi, onBeforeUnmount as no, toDisplayString as De, normalizeClass as Ar, normalizeStyle as jt, renderSlot as mt, useSlots as Ul, mergeModels as ql, useModel as Zl, watchEffect as os, nextTick as ki } from "vue";
|
|
2
2
|
import { TreeSelect as _r, TimePicker as ns, Slider as Jl, Rate as Ql, Mentions as jl, Checkbox as ec, Cascader as ls, AutoComplete as lo, RangePicker as cs, DatePicker as hs, Select as ds, InputNumber as us, Textarea as fs, Input as gs, TypographyParagraph as tc, CheckboxGroup as vs, Switch as ic, RadioGroup as xs, Button as ue, Dropdown as co, Form as zi, Row as kr, message as lt, Modal as ho, Spin as uo, Table as rc, Pagination as sc, Tabs as ac, TabPane as oc, Menu as nc, MenuItem as lc } from "ant-design-vue";
|
|
3
3
|
import * as cc from "@ant-design/icons-vue";
|
|
4
4
|
import { InfoCircleOutlined as ps, DownOutlined as fo, MoreOutlined as hc } from "@ant-design/icons-vue";
|
|
@@ -2277,9 +2277,9 @@ const pt = "-", Ot = {
|
|
|
2277
2277
|
}), Dt({ _: 2 }, [
|
|
2278
2278
|
d.value.length > 0 ? {
|
|
2279
2279
|
name: "bodyCell",
|
|
2280
|
-
fn:
|
|
2280
|
+
fn: K(({ column: p, record: E, index: b }) => [
|
|
2281
2281
|
N(g, null, {
|
|
2282
|
-
default:
|
|
2282
|
+
default: K(() => [
|
|
2283
2283
|
d.value.some((w) => p.key && w.field === p.key) ? (L(), W(S(vl), {
|
|
2284
2284
|
key: b,
|
|
2285
2285
|
"row-index": b,
|
|
@@ -2300,7 +2300,7 @@ const pt = "-", Ot = {
|
|
|
2300
2300
|
type: "primary",
|
|
2301
2301
|
onClick: l
|
|
2302
2302
|
}, {
|
|
2303
|
-
default:
|
|
2303
|
+
default: K(() => f[0] || (f[0] = [
|
|
2304
2304
|
be("+添加", -1)
|
|
2305
2305
|
])),
|
|
2306
2306
|
_: 1,
|
|
@@ -3102,7 +3102,7 @@ const pt = "-", Ot = {
|
|
|
3102
3102
|
return L(), W(x, V({
|
|
3103
3103
|
key: `_col_${a.value}`
|
|
3104
3104
|
}, u.item.col ?? (u.item.span ? { span: u.item.span } : S(ul))), {
|
|
3105
|
-
default:
|
|
3105
|
+
default: K(() => {
|
|
3106
3106
|
var p;
|
|
3107
3107
|
return [
|
|
3108
3108
|
(L(), W(v, V(
|
|
@@ -3128,7 +3128,7 @@ const pt = "-", Ot = {
|
|
|
3128
3128
|
"tooltip"
|
|
3129
3129
|
])
|
|
3130
3130
|
), Dt({
|
|
3131
|
-
default:
|
|
3131
|
+
default: K(() => {
|
|
3132
3132
|
var E, b;
|
|
3133
3133
|
return [
|
|
3134
3134
|
(E = u.item.slots) != null && E.default ? (L(), W(S(rb), {
|
|
@@ -3151,26 +3151,26 @@ const pt = "-", Ot = {
|
|
|
3151
3151
|
}, [
|
|
3152
3152
|
(p = u.item.slots) != null && p.title ? {
|
|
3153
3153
|
name: "label",
|
|
3154
|
-
fn:
|
|
3154
|
+
fn: K(() => [
|
|
3155
3155
|
(L(), W(br(u.item.slots.title)))
|
|
3156
3156
|
]),
|
|
3157
3157
|
key: "0"
|
|
3158
3158
|
} : void 0,
|
|
3159
3159
|
u.item.tooltipConfig ? {
|
|
3160
3160
|
name: "tooltip",
|
|
3161
|
-
fn:
|
|
3161
|
+
fn: K(() => [
|
|
3162
3162
|
S(_.isFunction)(u.item.tooltipConfig.title) ? (L(), W(g, as(V({ key: 0 }, S(_.omit)(u.item.tooltipConfig, ["title"]))), {
|
|
3163
|
-
title:
|
|
3163
|
+
title: K(() => [
|
|
3164
3164
|
he("div", {
|
|
3165
3165
|
innerHTML: u.item.tooltipConfig.title()
|
|
3166
3166
|
}, null, 8, ab)
|
|
3167
3167
|
]),
|
|
3168
|
-
default:
|
|
3168
|
+
default: K(() => [
|
|
3169
3169
|
N(S(ps), { class: "cursor-pointer py-4 px-2" })
|
|
3170
3170
|
]),
|
|
3171
3171
|
_: 1
|
|
3172
3172
|
}, 16)) : (L(), W(g, as(V({ key: 1 }, u.item.tooltipConfig)), {
|
|
3173
|
-
default:
|
|
3173
|
+
default: K(() => [
|
|
3174
3174
|
N(S(ps), { class: "cursor-pointer py-4 px-2" })
|
|
3175
3175
|
]),
|
|
3176
3176
|
_: 1
|
|
@@ -3264,9 +3264,9 @@ const pt = "-", Ot = {
|
|
|
3264
3264
|
ref: d,
|
|
3265
3265
|
model: S(l)
|
|
3266
3266
|
}, v.value, { onSubmit: h }), {
|
|
3267
|
-
default:
|
|
3267
|
+
default: K(() => [
|
|
3268
3268
|
N(S(kr), { gutter: [6, 12] }, {
|
|
3269
|
-
default:
|
|
3269
|
+
default: K(() => [
|
|
3270
3270
|
(L(!0), U(ae, null, ge(S(n), (w, C) => (L(), W(Zr, {
|
|
3271
3271
|
key: `_col_${w.field || C}`,
|
|
3272
3272
|
"form-data": S(l),
|
|
@@ -3559,7 +3559,7 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3559
3559
|
class: "h-full p-wrapper flex flex-col gap-8px overflow-y-auto"
|
|
3560
3560
|
}, S(Te)), [
|
|
3561
3561
|
He.value === "bad" ? (L(), U("div", hb, "请检查配置")) : (L(), U(ae, { key: 1 }, [
|
|
3562
|
-
(Ke = (le = S(o)) == null ? void 0 : le.items) != null && Ke.some((
|
|
3562
|
+
(Ke = (le = S(o)) == null ? void 0 : le.items) != null && Ke.some((F) => F.field && F.itemRender) ? (L(), U("div", {
|
|
3563
3563
|
key: 0,
|
|
3564
3564
|
class: "p-pane p-form-wrapper",
|
|
3565
3565
|
ref_key: "pFormWrapper",
|
|
@@ -3568,20 +3568,20 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3568
3568
|
N(S(uo), {
|
|
3569
3569
|
spinning: v.form
|
|
3570
3570
|
}, {
|
|
3571
|
-
default:
|
|
3571
|
+
default: K(() => [
|
|
3572
3572
|
(L(), W(S(zi), V({
|
|
3573
3573
|
key: T.value,
|
|
3574
3574
|
ref_key: "formEl",
|
|
3575
3575
|
ref: $,
|
|
3576
3576
|
model: Ue.value
|
|
3577
3577
|
}, _i.value, { onSubmit: M }), {
|
|
3578
|
-
default:
|
|
3578
|
+
default: K(() => [
|
|
3579
3579
|
N(S(kr), { gutter: [6, 12] }, {
|
|
3580
|
-
default:
|
|
3581
|
-
(L(!0), U(ae, null, ge(S(o).items, (
|
|
3582
|
-
key: `_col_${
|
|
3580
|
+
default: K(() => [
|
|
3581
|
+
(L(!0), U(ae, null, ge(S(o).items, (F, Le) => (L(), W(Zr, {
|
|
3582
|
+
key: `_col_${F.field || Le}`,
|
|
3583
3583
|
"form-data": Ue.value,
|
|
3584
|
-
item:
|
|
3584
|
+
item: F,
|
|
3585
3585
|
onReset: A[0] || (A[0] = (xt) => rt(a.value.lazyReset))
|
|
3586
3586
|
}, null, 8, ["form-data", "item"]))), 128))
|
|
3587
3587
|
]),
|
|
@@ -3596,15 +3596,15 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3596
3596
|
], 512)) : ie("", !0),
|
|
3597
3597
|
S(h) ? (L(), U("div", db, [
|
|
3598
3598
|
he("div", ub, [
|
|
3599
|
-
S(h).buttons && S(h).buttons.length > 0 ? (L(!0), U(ae, { key: 0 }, ge(S(h).buttons, (
|
|
3600
|
-
|
|
3601
|
-
overlay:
|
|
3599
|
+
S(h).buttons && S(h).buttons.length > 0 ? (L(!0), U(ae, { key: 0 }, ge(S(h).buttons, (F, Le) => (L(), U(ae, { key: Le }, [
|
|
3600
|
+
F.dropdowns && F.dropdowns.length ? (L(), W(vt, { key: 0 }, {
|
|
3601
|
+
overlay: K(() => [
|
|
3602
3602
|
N($e, { onClick: sr }, {
|
|
3603
|
-
default:
|
|
3604
|
-
(L(!0), U(ae, null, ge(
|
|
3603
|
+
default: K(() => [
|
|
3604
|
+
(L(!0), U(ae, null, ge(F.dropdowns, (xt) => (L(), W(te, {
|
|
3605
3605
|
key: xt.code
|
|
3606
3606
|
}, {
|
|
3607
|
-
default:
|
|
3607
|
+
default: K(() => [
|
|
3608
3608
|
be(De(xt.content), 1)
|
|
3609
3609
|
]),
|
|
3610
3610
|
_: 2
|
|
@@ -3613,62 +3613,70 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3613
3613
|
_: 2
|
|
3614
3614
|
}, 1024)
|
|
3615
3615
|
]),
|
|
3616
|
-
default:
|
|
3616
|
+
default: K(() => [
|
|
3617
3617
|
N(S(ue), {
|
|
3618
|
-
type:
|
|
3619
|
-
size:
|
|
3620
|
-
disabled: S(h).disabled ||
|
|
3621
|
-
loading: v.toolbar || !!
|
|
3618
|
+
type: F.type,
|
|
3619
|
+
size: F.size ?? "middle",
|
|
3620
|
+
disabled: S(h).disabled || F.disabled,
|
|
3621
|
+
loading: v.toolbar || !!F.code && m[F.code],
|
|
3622
|
+
danger: F.danger,
|
|
3623
|
+
shape: F.shape,
|
|
3624
|
+
ghost: F.ghost,
|
|
3625
|
+
block: F.block
|
|
3622
3626
|
}, {
|
|
3623
|
-
default:
|
|
3624
|
-
|
|
3627
|
+
default: K(() => [
|
|
3628
|
+
F.icon ? (L(), W(S(we), {
|
|
3625
3629
|
key: 0,
|
|
3626
|
-
icon:
|
|
3630
|
+
icon: F.icon
|
|
3627
3631
|
}, null, 8, ["icon"])) : ie("", !0),
|
|
3628
|
-
be(" " + De(
|
|
3632
|
+
be(" " + De(F.content) + " ", 1),
|
|
3629
3633
|
N(S(fo))
|
|
3630
3634
|
]),
|
|
3631
3635
|
_: 2
|
|
3632
|
-
}, 1032, ["type", "size", "disabled", "loading"])
|
|
3636
|
+
}, 1032, ["type", "size", "disabled", "loading", "danger", "shape", "ghost", "block"])
|
|
3633
3637
|
]),
|
|
3634
3638
|
_: 2
|
|
3635
|
-
}, 1024)) :
|
|
3639
|
+
}, 1024)) : F.code ? (L(), W(S(ue), {
|
|
3636
3640
|
key: 1,
|
|
3637
|
-
type:
|
|
3638
|
-
size:
|
|
3639
|
-
disabled: S(h).disabled ||
|
|
3640
|
-
loading: v.toolbar || !!
|
|
3641
|
-
onClick: (xt) => S(pi)(
|
|
3641
|
+
type: F.type,
|
|
3642
|
+
size: F.size ?? "middle",
|
|
3643
|
+
disabled: S(h).disabled || F.disabled,
|
|
3644
|
+
loading: v.toolbar || !!F.code && m[F.code],
|
|
3645
|
+
onClick: (xt) => S(pi)(F.code)
|
|
3642
3646
|
}, {
|
|
3643
|
-
default:
|
|
3644
|
-
|
|
3647
|
+
default: K(() => [
|
|
3648
|
+
F.icon ? (L(), W(S(we), {
|
|
3645
3649
|
key: 0,
|
|
3646
|
-
icon:
|
|
3650
|
+
icon: F.icon
|
|
3647
3651
|
}, null, 8, ["icon"])) : ie("", !0),
|
|
3648
|
-
be(" " + De(
|
|
3652
|
+
be(" " + De(F.content), 1)
|
|
3649
3653
|
]),
|
|
3650
3654
|
_: 2
|
|
3651
3655
|
}, 1032, ["type", "size", "disabled", "loading", "onClick"])) : (L(), U("div", fb))
|
|
3652
3656
|
], 64))), 128)) : ie("", !0)
|
|
3653
3657
|
]),
|
|
3654
3658
|
he("span", gb, [
|
|
3655
|
-
S(h).tools && S(h).tools.length > 0 ? (L(!0), U(ae, { key: 0 }, ge(S(h).tools, (
|
|
3659
|
+
S(h).tools && S(h).tools.length > 0 ? (L(!0), U(ae, { key: 0 }, ge(S(h).tools, (F, Le) => (L(), W(S(ue), {
|
|
3656
3660
|
key: Le,
|
|
3657
|
-
type:
|
|
3658
|
-
size:
|
|
3659
|
-
disabled: S(h).disabled ||
|
|
3660
|
-
|
|
3661
|
-
|
|
3661
|
+
type: F.type,
|
|
3662
|
+
size: F.size ?? "middle",
|
|
3663
|
+
disabled: S(h).disabled || F.disabled,
|
|
3664
|
+
danger: F.danger,
|
|
3665
|
+
shape: F.shape,
|
|
3666
|
+
ghost: F.ghost,
|
|
3667
|
+
block: F.block,
|
|
3668
|
+
onClick: (xt) => S(Wt)(F.code),
|
|
3669
|
+
loading: v.toolbar || !!F.code && m[F.code]
|
|
3662
3670
|
}, {
|
|
3663
|
-
default:
|
|
3664
|
-
|
|
3671
|
+
default: K(() => [
|
|
3672
|
+
F.icon ? (L(), W(S(we), {
|
|
3665
3673
|
key: 0,
|
|
3666
|
-
icon:
|
|
3674
|
+
icon: F.icon
|
|
3667
3675
|
}, null, 8, ["icon"])) : ie("", !0),
|
|
3668
|
-
be(" " + De(
|
|
3676
|
+
be(" " + De(F.content), 1)
|
|
3669
3677
|
]),
|
|
3670
3678
|
_: 2
|
|
3671
|
-
}, 1032, ["type", "size", "disabled", "onClick", "loading"]))), 128)) : ie("", !0)
|
|
3679
|
+
}, 1032, ["type", "size", "disabled", "danger", "shape", "ghost", "block", "onClick", "loading"]))), 128)) : ie("", !0)
|
|
3672
3680
|
])
|
|
3673
3681
|
])) : ie("", !0),
|
|
3674
3682
|
he("div", {
|
|
@@ -3680,7 +3688,7 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3680
3688
|
"row-key": O.rowKey ?? "id",
|
|
3681
3689
|
ref_key: "tableEl",
|
|
3682
3690
|
ref: D,
|
|
3683
|
-
columns: gt(S(l) ?? []).map((
|
|
3691
|
+
columns: gt(S(l) ?? []).map((F) => S(qr)(F)),
|
|
3684
3692
|
"data-source": Z.value,
|
|
3685
3693
|
loading: v.table,
|
|
3686
3694
|
pagination: Ei.value
|
|
@@ -3693,20 +3701,20 @@ const Ki = lt.warning, hb = { key: 0 }, db = {
|
|
|
3693
3701
|
}), Dt({ _: 2 }, [
|
|
3694
3702
|
R.value.length > 0 ? {
|
|
3695
3703
|
name: "headerCell",
|
|
3696
|
-
fn:
|
|
3697
|
-
R.value.some((Le) =>
|
|
3698
|
-
key: I.value + "_title_" + q.value + "_slot_" +
|
|
3699
|
-
column: R.value.find((Le) =>
|
|
3704
|
+
fn: K(({ column: F }) => [
|
|
3705
|
+
R.value.some((Le) => F.key && Le.field === F.key) ? (L(), W(S(nb), {
|
|
3706
|
+
key: I.value + "_title_" + q.value + "_slot_" + F.key,
|
|
3707
|
+
column: R.value.find((Le) => F.key && Le.field === F.key)
|
|
3700
3708
|
}, null, 8, ["column"])) : ie("", !0)
|
|
3701
3709
|
]),
|
|
3702
3710
|
key: "0"
|
|
3703
3711
|
} : void 0,
|
|
3704
3712
|
J.value.length > 0 ? {
|
|
3705
3713
|
name: "bodyCell",
|
|
3706
|
-
fn:
|
|
3707
|
-
J.value.some((nr) =>
|
|
3708
|
-
key: I.value + "_cell_" + q.value + "_slot_" +
|
|
3709
|
-
column: J.value.find((nr) =>
|
|
3714
|
+
fn: K(({ column: F, record: Le, index: xt }) => [
|
|
3715
|
+
J.value.some((nr) => F.key && nr.field === F.key) ? (L(), W(S(vl), {
|
|
3716
|
+
key: I.value + "_cell_" + q.value + "_slot_" + F.key,
|
|
3717
|
+
column: J.value.find((nr) => F.key && nr.field === F.key),
|
|
3710
3718
|
"default-handler": { pick: Pt, setLoadings: x },
|
|
3711
3719
|
row: Le,
|
|
3712
3720
|
"row-index": xt,
|
|
@@ -10278,7 +10286,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10278
10286
|
}), (m, k) => {
|
|
10279
10287
|
const P = se("a-empty"), B = se("a-spin");
|
|
10280
10288
|
return L(), W(B, { spinning: m.loading }, {
|
|
10281
|
-
default:
|
|
10289
|
+
default: K(() => {
|
|
10282
10290
|
var J, G, q, Q, Z, He, Te;
|
|
10283
10291
|
return [
|
|
10284
10292
|
he("div", {
|
|
@@ -10590,16 +10598,16 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10590
10598
|
N(S(uo), {
|
|
10591
10599
|
spinning: C.form
|
|
10592
10600
|
}, {
|
|
10593
|
-
default:
|
|
10601
|
+
default: K(() => [
|
|
10594
10602
|
(L(), W(S(zi), V({
|
|
10595
10603
|
key: x.value,
|
|
10596
10604
|
ref_key: "formEl",
|
|
10597
10605
|
ref: T,
|
|
10598
10606
|
model: p.value
|
|
10599
10607
|
}, w.value, { onSubmit: He }), {
|
|
10600
|
-
default:
|
|
10608
|
+
default: K(() => [
|
|
10601
10609
|
N(S(kr), { gutter: [6, 12] }, {
|
|
10602
|
-
default:
|
|
10610
|
+
default: K(() => [
|
|
10603
10611
|
(L(!0), U(ae, null, ge(S(o).items, (X, st) => (L(), W(Zr, {
|
|
10604
10612
|
key: `_col_${X.field || st}`,
|
|
10605
10613
|
"form-data": p.value,
|
|
@@ -10620,13 +10628,13 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10620
10628
|
he("div", Y4, [
|
|
10621
10629
|
S(h).buttons && S(h).buttons.length > 0 ? (L(!0), U(ae, { key: 0 }, ge(S(h).buttons, (X, st) => (L(), U(ae, { key: st }, [
|
|
10622
10630
|
X.dropdowns && X.dropdowns.length ? (L(), W(gt, { key: 0 }, {
|
|
10623
|
-
overlay:
|
|
10631
|
+
overlay: K(() => [
|
|
10624
10632
|
N(qe, { onClick: pi }, {
|
|
10625
|
-
default:
|
|
10633
|
+
default: K(() => [
|
|
10626
10634
|
(L(!0), U(ae, null, ge(X.dropdowns, (O) => (L(), W(ee, {
|
|
10627
10635
|
key: O.code
|
|
10628
10636
|
}, {
|
|
10629
|
-
default:
|
|
10637
|
+
default: K(() => [
|
|
10630
10638
|
be(De(O.content), 1)
|
|
10631
10639
|
]),
|
|
10632
10640
|
_: 2
|
|
@@ -10635,14 +10643,14 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10635
10643
|
_: 2
|
|
10636
10644
|
}, 1024)
|
|
10637
10645
|
]),
|
|
10638
|
-
default:
|
|
10646
|
+
default: K(() => [
|
|
10639
10647
|
N(S(ue), {
|
|
10640
10648
|
type: X.type,
|
|
10641
10649
|
size: X.size ?? "middle",
|
|
10642
10650
|
disabled: S(h).disabled || X.disabled,
|
|
10643
10651
|
loading: C.toolbar || !!X.code && G[X.code]
|
|
10644
10652
|
}, {
|
|
10645
|
-
default:
|
|
10653
|
+
default: K(() => [
|
|
10646
10654
|
X.icon ? (L(), W(S(we), {
|
|
10647
10655
|
key: 0,
|
|
10648
10656
|
icon: X.icon
|
|
@@ -10662,7 +10670,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10662
10670
|
loading: C.toolbar || !!X.code && G[X.code],
|
|
10663
10671
|
onClick: (O) => S(ne)(X.code)
|
|
10664
10672
|
}, {
|
|
10665
|
-
default:
|
|
10673
|
+
default: K(() => [
|
|
10666
10674
|
X.icon ? (L(), W(S(we), {
|
|
10667
10675
|
key: 0,
|
|
10668
10676
|
icon: X.icon
|
|
@@ -10682,7 +10690,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10682
10690
|
onClick: (O) => S(ar)(X.code),
|
|
10683
10691
|
loading: C.toolbar || !!X.code && G[X.code]
|
|
10684
10692
|
}, {
|
|
10685
|
-
default:
|
|
10693
|
+
default: K(() => [
|
|
10686
10694
|
X.icon ? (L(), W(S(we), {
|
|
10687
10695
|
key: 0,
|
|
10688
10696
|
icon: X.icon
|
|
@@ -10765,20 +10773,20 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10765
10773
|
"onUpdate:activeKey": o[0] || (o[0] = (d) => s.value = d),
|
|
10766
10774
|
class: "collapsible-card"
|
|
10767
10775
|
}, {
|
|
10768
|
-
default:
|
|
10776
|
+
default: K(() => [
|
|
10769
10777
|
N(n, {
|
|
10770
10778
|
key: "content",
|
|
10771
10779
|
"force-render": "",
|
|
10772
10780
|
header: a.title
|
|
10773
10781
|
}, Dt({
|
|
10774
|
-
default:
|
|
10782
|
+
default: K(() => [
|
|
10775
10783
|
mt(a.$slots, "default")
|
|
10776
10784
|
]),
|
|
10777
10785
|
_: 2
|
|
10778
10786
|
}, [
|
|
10779
10787
|
r.title ? {
|
|
10780
10788
|
name: "header",
|
|
10781
|
-
fn:
|
|
10789
|
+
fn: K(() => [
|
|
10782
10790
|
mt(a.$slots, "title")
|
|
10783
10791
|
]),
|
|
10784
10792
|
key: "0"
|
|
@@ -10791,14 +10799,14 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10791
10799
|
size: "small",
|
|
10792
10800
|
title: a.title
|
|
10793
10801
|
}, Dt({
|
|
10794
|
-
default:
|
|
10802
|
+
default: K(() => [
|
|
10795
10803
|
mt(a.$slots, "default")
|
|
10796
10804
|
]),
|
|
10797
10805
|
_: 2
|
|
10798
10806
|
}, [
|
|
10799
10807
|
r.title ? {
|
|
10800
10808
|
name: "title",
|
|
10801
|
-
fn:
|
|
10809
|
+
fn: K(() => [
|
|
10802
10810
|
mt(a.$slots, "title")
|
|
10803
10811
|
]),
|
|
10804
10812
|
key: "0"
|
|
@@ -10986,7 +10994,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
10986
10994
|
collapsible: y.collapsible,
|
|
10987
10995
|
"default-collapsed": y.defaultCollapsed
|
|
10988
10996
|
}, {
|
|
10989
|
-
default:
|
|
10997
|
+
default: K(() => [
|
|
10990
10998
|
y.loading ? (L(), W($, {
|
|
10991
10999
|
key: 0,
|
|
10992
11000
|
class: "w-full"
|
|
@@ -11000,14 +11008,14 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11000
11008
|
"hide-add": "",
|
|
11001
11009
|
onChange: E
|
|
11002
11010
|
}, {
|
|
11003
|
-
rightExtra:
|
|
11011
|
+
rightExtra: K(() => [
|
|
11004
11012
|
mt(y.$slots, "rightExtra", {}, () => [
|
|
11005
11013
|
y.showAdd && o.value.length < u.value ? (L(), W(S(ue), {
|
|
11006
11014
|
key: 0,
|
|
11007
11015
|
type: "link",
|
|
11008
11016
|
onClick: R[0] || (R[0] = (D) => f(o.value.length))
|
|
11009
11017
|
}, {
|
|
11010
|
-
default:
|
|
11018
|
+
default: K(() => R[2] || (R[2] = [
|
|
11011
11019
|
be(" + 新增 ", -1)
|
|
11012
11020
|
])),
|
|
11013
11021
|
_: 1,
|
|
@@ -11015,24 +11023,24 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11015
11023
|
})) : ie("", !0)
|
|
11016
11024
|
])
|
|
11017
11025
|
]),
|
|
11018
|
-
default:
|
|
11026
|
+
default: K(() => [
|
|
11019
11027
|
(L(!0), U(ae, null, ge(o.value, (D, T) => (L(), W(S(oc), {
|
|
11020
11028
|
key: T,
|
|
11021
11029
|
tab: `${y.tabLabel} ${y.keepSerial ? T + 1 : (D.__index ?? 0) + 1}`,
|
|
11022
11030
|
"force-render": x.value
|
|
11023
11031
|
}, {
|
|
11024
|
-
closeIcon:
|
|
11032
|
+
closeIcon: K(() => {
|
|
11025
11033
|
var I;
|
|
11026
11034
|
return [
|
|
11027
11035
|
y.editAble && ((I = S(g)) != null && I.length) ? (L(), W(S(co), {
|
|
11028
11036
|
key: 0,
|
|
11029
11037
|
"get-popup-container": v
|
|
11030
11038
|
}, {
|
|
11031
|
-
overlay:
|
|
11039
|
+
overlay: K(() => [
|
|
11032
11040
|
N(S(nc), {
|
|
11033
11041
|
onClick: (m) => S(w)(m, D, T)
|
|
11034
11042
|
}, {
|
|
11035
|
-
default:
|
|
11043
|
+
default: K(() => [
|
|
11036
11044
|
(L(!0), U(ae, null, ge(S(g).filter(
|
|
11037
11045
|
(m) => {
|
|
11038
11046
|
var k;
|
|
@@ -11041,7 +11049,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11041
11049
|
), (m) => (L(), W(S(lc), {
|
|
11042
11050
|
key: m.code
|
|
11043
11051
|
}, {
|
|
11044
|
-
default:
|
|
11052
|
+
default: K(() => [
|
|
11045
11053
|
he("div", null, De(m.content), 1)
|
|
11046
11054
|
]),
|
|
11047
11055
|
_: 2
|
|
@@ -11050,14 +11058,14 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11050
11058
|
_: 2
|
|
11051
11059
|
}, 1032, ["onClick"])
|
|
11052
11060
|
]),
|
|
11053
|
-
default:
|
|
11061
|
+
default: K(() => [
|
|
11054
11062
|
N(S(hc))
|
|
11055
11063
|
]),
|
|
11056
11064
|
_: 2
|
|
11057
11065
|
}, 1024)) : ie("", !0)
|
|
11058
11066
|
];
|
|
11059
11067
|
}),
|
|
11060
|
-
default:
|
|
11068
|
+
default: K(() => [
|
|
11061
11069
|
(L(), W(Vl, {
|
|
11062
11070
|
ref_for: !0,
|
|
11063
11071
|
ref_key: "blockInstance",
|
|
@@ -11138,7 +11146,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11138
11146
|
onCancel: d,
|
|
11139
11147
|
"body-style": v.bodyStyle
|
|
11140
11148
|
}, Dt({
|
|
11141
|
-
default:
|
|
11149
|
+
default: K(() => [
|
|
11142
11150
|
he("div", {
|
|
11143
11151
|
style: jt({ minHeight: r.value ? "unset" : "642px" })
|
|
11144
11152
|
}, [
|
|
@@ -11153,14 +11161,14 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11153
11161
|
}, [
|
|
11154
11162
|
a.value ? {
|
|
11155
11163
|
name: "footer",
|
|
11156
|
-
fn:
|
|
11164
|
+
fn: K(() => [
|
|
11157
11165
|
he("div", q4, [
|
|
11158
11166
|
he("span", null, [
|
|
11159
11167
|
N(S(ue), {
|
|
11160
11168
|
class: "mr-4",
|
|
11161
11169
|
onClick: u
|
|
11162
11170
|
}, {
|
|
11163
|
-
default:
|
|
11171
|
+
default: K(() => x[1] || (x[1] = [
|
|
11164
11172
|
be(" 取消 ", -1)
|
|
11165
11173
|
])),
|
|
11166
11174
|
_: 1,
|
|
@@ -11170,7 +11178,7 @@ const F4 = /* @__PURE__ */ de((i, {
|
|
|
11170
11178
|
type: "primary",
|
|
11171
11179
|
onClick: g
|
|
11172
11180
|
}, {
|
|
11173
|
-
default:
|
|
11181
|
+
default: K(() => x[2] || (x[2] = [
|
|
11174
11182
|
be(" 确定 ", -1)
|
|
11175
11183
|
])),
|
|
11176
11184
|
_: 1,
|
package/package.json
CHANGED
|
@@ -153,25 +153,18 @@ export interface ColumnProps<D extends Recordable = Recordable>
|
|
|
153
153
|
export interface PButtonProps extends ButtonProps {
|
|
154
154
|
content?: string;
|
|
155
155
|
icon?: string;
|
|
156
|
-
type?: ButtonType;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
export interface ToolbarButtonProps extends PButtonProps {
|
|
160
159
|
code: string;
|
|
161
160
|
dropdowns?: ToolbarButtonProps[];
|
|
162
|
-
size?: 'small' | 'large' | 'middle';
|
|
163
161
|
}
|
|
164
|
-
|
|
162
|
+
export interface ToolbarToolProps extends PButtonProps {
|
|
163
|
+
code: string;
|
|
164
|
+
}
|
|
165
165
|
export interface ToolbarConfig {
|
|
166
166
|
buttons?: Array<ToolbarButtonProps>;
|
|
167
|
-
tools?: Array<
|
|
168
|
-
code: string;
|
|
169
|
-
icon?: string;
|
|
170
|
-
type?: ButtonType;
|
|
171
|
-
content?: string;
|
|
172
|
-
disabled?: boolean;
|
|
173
|
-
size?: 'small' | 'large' | 'middle';
|
|
174
|
-
}>;
|
|
167
|
+
tools?: Array<ToolbarToolProps>;
|
|
175
168
|
disabled?: boolean;
|
|
176
169
|
}
|
|
177
170
|
|
|
@@ -551,6 +551,10 @@
|
|
|
551
551
|
:size="btn.size ?? 'middle'"
|
|
552
552
|
:disabled="toolbarConfig.disabled || btn.disabled"
|
|
553
553
|
:loading="loading.toolbar || (!!btn.code && codeLoadings[btn.code])"
|
|
554
|
+
:danger="btn.danger"
|
|
555
|
+
:shape="btn.shape"
|
|
556
|
+
:ghost="btn.ghost"
|
|
557
|
+
:block="btn.block"
|
|
554
558
|
>
|
|
555
559
|
<Icon v-if="btn.icon" :icon="btn.icon" />
|
|
556
560
|
{{ btn.content }}
|
|
@@ -580,6 +584,10 @@
|
|
|
580
584
|
:type="tool.type"
|
|
581
585
|
:size="tool.size ?? 'middle'"
|
|
582
586
|
:disabled="toolbarConfig.disabled || tool.disabled"
|
|
587
|
+
:danger="tool.danger"
|
|
588
|
+
:shape="tool.shape"
|
|
589
|
+
:ghost="tool.ghost"
|
|
590
|
+
:block="tool.block"
|
|
583
591
|
@click="debounceToolToolClick(tool.code)"
|
|
584
592
|
:loading="loading.toolbar || (!!tool.code && codeLoadings[tool.code])"
|
|
585
593
|
>
|