@aplus-frontend/ui 7.13.8 → 7.13.9
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.
- package/es/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
- package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
- package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
- package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
- package/es/src/ag-grid/editable/index.vue.mjs +27 -27
- package/es/src/ag-grid/index.vue.mjs +249 -249
- package/es/src/ap-action/group/index.vue.mjs +15 -15
- package/es/src/ap-action/item/index.vue2.mjs +28 -28
- package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
- package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
- package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +50 -50
- package/es/src/ap-field/date/read.vue2.mjs +7 -7
- package/es/src/ap-field/date-range/index.vue.mjs +30 -30
- package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
- package/es/src/ap-field/number/index.vue.mjs +24 -24
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/second/index.vue.mjs +15 -15
- package/es/src/ap-field/second/read.vue2.mjs +7 -7
- package/es/src/ap-field/segmented/index.vue.mjs +24 -24
- package/es/src/ap-field/select/index.vue.d.ts +12 -2
- package/es/src/ap-field/select/index.vue.mjs +127 -124
- package/es/src/ap-field/select/read.vue2.mjs +6 -6
- package/es/src/ap-field/slider/index.vue.mjs +11 -11
- package/es/src/ap-field/style/select.mjs +53 -36
- package/es/src/ap-field/switch/index.vue.mjs +45 -45
- package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
- package/es/src/ap-field/text/read.vue2.mjs +3 -3
- package/es/src/ap-field/text-area/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
- package/es/src/ap-form/ap-form.vue2.mjs +46 -46
- package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
- package/es/src/ap-form/item/index.vue.mjs +75 -75
- package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.mjs +17 -17
- package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
- package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
- package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
- package/es/src/ap-form/items/text/password.vue.mjs +19 -19
- package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
- package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
- package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
- package/es/src/ap-grid/editable/index.vue.mjs +19 -19
- package/es/src/ap-grid/index.vue.mjs +212 -212
- package/es/src/ap-list/index.vue.mjs +116 -116
- package/es/src/ap-table/ap-table.vue2.mjs +217 -217
- package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +52 -51
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +31 -30
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +41 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -14
- package/es/src/ap-table/style/setting.mjs +2 -2
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
- package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
- package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
- package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
- package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
- package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
- package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
- package/es/src/business/batch-input-group/index.vue.mjs +60 -60
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
- package/es/src/editable-table/form-item.vue.mjs +35 -35
- package/es/src/editable-table/index.vue.mjs +19 -19
- package/es/src/full-screen/index.vue.mjs +46 -46
- package/es/src/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- package/es/src/mask/index.vue.mjs +48 -48
- package/es/src/portal/index.vue.mjs +5 -5
- package/es/src/scroll-bar/internal.vue.mjs +62 -62
- package/es/src/scroll-view/index.vue.mjs +66 -66
- package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
- package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
- package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
- package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
- package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
- package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
- package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
- package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
- package/es/src/skeleton/descriptions.vue2.mjs +15 -15
- package/es/src/skeleton/list-page.vue2.mjs +12 -12
- package/es/src/splitter/Panel.vue2.mjs +11 -11
- package/es/src/splitter/SplitBar.vue2.mjs +79 -79
- package/es/src/splitter/Splitter.vue2.mjs +50 -50
- package/es/src/text/group.vue.mjs +8 -8
- package/es/src/text/index.vue.mjs +48 -48
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/portal/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
- package/lib/src/skeleton/components/list/index.vue2.js +1 -1
- package/lib/src/skeleton/components/list/item.vue2.js +1 -1
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/item.vue2.js +1 -1
- package/lib/src/skeleton/descriptions.vue2.js +1 -1
- package/lib/src/skeleton/list-page.vue2.js +1 -1
- package/lib/src/splitter/Panel.vue2.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B, shallowRef as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as y, useSlots as B, shallowRef as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
|
|
2
|
+
import { omit as f, pick as N } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import S from "../../item/index.vue.mjs";
|
|
7
7
|
import C from "../../../ap-field/number/index.vue.mjs";
|
|
@@ -54,8 +54,8 @@ const T = /* @__PURE__ */ y({
|
|
|
54
54
|
field: { default: () => ({}) },
|
|
55
55
|
placeholder: {}
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const h =
|
|
57
|
+
setup(c, { expose: b }) {
|
|
58
|
+
const h = c, p = B(), a = _();
|
|
59
59
|
return b({
|
|
60
60
|
focus: () => {
|
|
61
61
|
a.value?.focus();
|
|
@@ -63,28 +63,28 @@ const T = /* @__PURE__ */ y({
|
|
|
63
63
|
blur: () => {
|
|
64
64
|
a.value?.blur();
|
|
65
65
|
}
|
|
66
|
-
}), (
|
|
66
|
+
}), (e, $) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder"]))), d({
|
|
67
67
|
default: n(() => [
|
|
68
68
|
k(C, F({
|
|
69
69
|
ref_key: "inputNumberRef",
|
|
70
70
|
ref: a,
|
|
71
|
-
placeholder:
|
|
72
|
-
disabled:
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
name:
|
|
76
|
-
fn: n((
|
|
77
|
-
|
|
71
|
+
placeholder: e.placeholder,
|
|
72
|
+
disabled: e.disabled
|
|
73
|
+
}, e.field), d({ _: 2 }, [
|
|
74
|
+
i(l(f)(p, l(m)), (v, o) => ({
|
|
75
|
+
name: o,
|
|
76
|
+
fn: n((r) => [
|
|
77
|
+
u(e.$slots, o, t(s(r || {})))
|
|
78
78
|
])
|
|
79
79
|
}))
|
|
80
80
|
]), 1040, ["placeholder", "disabled"])
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
name:
|
|
86
|
-
fn: n((
|
|
87
|
-
|
|
84
|
+
i(l(N)(p, l(m)), (v, o) => ({
|
|
85
|
+
name: o,
|
|
86
|
+
fn: n((r) => [
|
|
87
|
+
u(e.$slots, o, t(s(r || {})))
|
|
88
88
|
])
|
|
89
89
|
}))
|
|
90
90
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as
|
|
1
|
+
import { defineComponent as u, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
|
|
2
2
|
import { omit as h } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../item/index.vue2.mjs";
|
|
@@ -51,29 +51,29 @@ const q = /* @__PURE__ */ u({
|
|
|
51
51
|
disabled: { type: Boolean, default: void 0 },
|
|
52
52
|
field: { default: () => ({}) }
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
56
|
-
return
|
|
54
|
+
setup(i, { expose: n }) {
|
|
55
|
+
const d = i, p = m(), e = c();
|
|
56
|
+
return n({
|
|
57
57
|
focus: () => {
|
|
58
|
-
|
|
58
|
+
e.value?.focus();
|
|
59
59
|
},
|
|
60
60
|
blur: () => {
|
|
61
|
-
|
|
61
|
+
e.value?.blur();
|
|
62
62
|
}
|
|
63
|
-
}), (
|
|
63
|
+
}), (o, S) => (v(), b(k, a(t(r(h)(d, ["field"]))), _({
|
|
64
64
|
default: s(() => [
|
|
65
65
|
y(r(C), B({
|
|
66
66
|
ref_key: "radioRef",
|
|
67
|
-
ref:
|
|
68
|
-
disabled:
|
|
69
|
-
},
|
|
67
|
+
ref: e,
|
|
68
|
+
disabled: o.disabled
|
|
69
|
+
}, o.field), null, 16, ["disabled"])
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
x(p, (P, l) => ({
|
|
74
74
|
name: l,
|
|
75
|
-
fn: s((
|
|
76
|
-
g(
|
|
75
|
+
fn: s((f) => [
|
|
76
|
+
g(o.$slots, l, a(t(f || {})))
|
|
77
77
|
])
|
|
78
78
|
}))
|
|
79
79
|
]), 1040));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as b, useSlots as B, createBlock as h, openBlock as v, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as y, mergeProps as g, renderList as n, renderSlot as p } from "vue";
|
|
2
|
+
import { omit as m, pick as x } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as f } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import S from "../../item/index.vue.mjs";
|
|
7
7
|
import k from "../../../ap-field/switch/index.vue.mjs";
|
|
8
|
-
const I = /* @__PURE__ */
|
|
8
|
+
const I = /* @__PURE__ */ b({
|
|
9
9
|
name: "ApFormItemSwitch",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -52,25 +52,25 @@ const I = /* @__PURE__ */ B({
|
|
|
52
52
|
disabled: { type: Boolean, default: void 0 },
|
|
53
53
|
field: { default: () => ({}) }
|
|
54
54
|
},
|
|
55
|
-
setup(
|
|
56
|
-
const c =
|
|
57
|
-
return (
|
|
55
|
+
setup(u) {
|
|
56
|
+
const c = u, s = B();
|
|
57
|
+
return (l, F) => (v(), h(S, t(r(o(m)(c, ["field", "disabled"]))), d({
|
|
58
58
|
default: i(() => [
|
|
59
|
-
y(k,
|
|
60
|
-
|
|
59
|
+
y(k, g({ disabled: l.disabled }, l.field), d({ _: 2 }, [
|
|
60
|
+
n(o(m)(s, o(f)), (_, e) => ({
|
|
61
61
|
name: e,
|
|
62
|
-
fn: i((
|
|
63
|
-
|
|
62
|
+
fn: i((a) => [
|
|
63
|
+
p(l.$slots, e, t(r(a || {})))
|
|
64
64
|
])
|
|
65
65
|
}))
|
|
66
66
|
]), 1040, ["disabled"])
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, [
|
|
70
|
-
|
|
70
|
+
n(o(x)(s, o(f)), (_, e) => ({
|
|
71
71
|
name: e,
|
|
72
|
-
fn: i((
|
|
73
|
-
|
|
72
|
+
fn: i((a) => [
|
|
73
|
+
p(l.$slots, e, t(r(a || {})))
|
|
74
74
|
])
|
|
75
75
|
}))
|
|
76
76
|
]), 1040));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as B, useSlots as x, shallowRef as S, computed as _, createBlock as F, openBlock as R, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as p, createVNode as k, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
|
+
import { omit as m, pick as P } from "lodash-unified";
|
|
3
3
|
import { ApField as w } from "../../../ap-field/index.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as v } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import A from "../../item/index.vue.mjs";
|
|
7
|
-
const E = /* @__PURE__ */
|
|
7
|
+
const E = /* @__PURE__ */ B({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -53,44 +53,44 @@ const E = /* @__PURE__ */ y({
|
|
|
53
53
|
field: { default: () => ({}) },
|
|
54
54
|
placeholder: {}
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const { Text:
|
|
56
|
+
setup(b, { expose: h }) {
|
|
57
|
+
const { Text: g } = w, i = x(), y = b, o = S();
|
|
58
58
|
return h({
|
|
59
|
-
focus: (
|
|
60
|
-
|
|
59
|
+
focus: (e) => {
|
|
60
|
+
o.value?.focus(e);
|
|
61
61
|
},
|
|
62
62
|
blur: () => {
|
|
63
|
-
|
|
63
|
+
o.value?.blur();
|
|
64
64
|
},
|
|
65
|
-
setSelectionRange: (
|
|
66
|
-
|
|
65
|
+
setSelectionRange: (e, d, a) => {
|
|
66
|
+
o.value?.setSelectionRange(e, d, a);
|
|
67
67
|
},
|
|
68
68
|
select: () => {
|
|
69
|
-
|
|
69
|
+
o.value?.select();
|
|
70
70
|
},
|
|
71
|
-
input:
|
|
72
|
-
}), (
|
|
73
|
-
default:
|
|
74
|
-
|
|
71
|
+
input: _(() => o.value?.input)
|
|
72
|
+
}), (e, d) => (R(), F(A, s(n(l(m)(y, ["field", "placeholder"]))), u({
|
|
73
|
+
default: p(() => [
|
|
74
|
+
k(l(g), C({
|
|
75
75
|
ref_key: "inputRef",
|
|
76
|
-
ref:
|
|
77
|
-
disabled:
|
|
78
|
-
placeholder:
|
|
79
|
-
},
|
|
80
|
-
f(
|
|
76
|
+
ref: o,
|
|
77
|
+
disabled: e.disabled,
|
|
78
|
+
placeholder: e.placeholder
|
|
79
|
+
}, e.field), u({ _: 2 }, [
|
|
80
|
+
f(l(m)(i, l(v)), (a, t) => ({
|
|
81
81
|
name: t,
|
|
82
|
-
fn:
|
|
83
|
-
|
|
82
|
+
fn: p((r) => [
|
|
83
|
+
c(e.$slots, t, s(n(r || {})))
|
|
84
84
|
])
|
|
85
85
|
}))
|
|
86
86
|
]), 1040, ["disabled", "placeholder"])
|
|
87
87
|
]),
|
|
88
88
|
_: 2
|
|
89
89
|
}, [
|
|
90
|
-
f(
|
|
90
|
+
f(l(P)(i, l(v)), (a, t) => ({
|
|
91
91
|
name: t,
|
|
92
|
-
fn:
|
|
93
|
-
|
|
92
|
+
fn: p((r) => [
|
|
93
|
+
c(e.$slots, t, s(n(r || {})))
|
|
94
94
|
])
|
|
95
95
|
}))
|
|
96
96
|
]), 1040));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as
|
|
2
|
-
import { omit as
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { apFormItemSlotNames as
|
|
1
|
+
import { defineComponent as B, useSlots as _, shallowRef as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as w, renderList as i, renderSlot as f } from "vue";
|
|
2
|
+
import { omit as u, pick as P } from "lodash-unified";
|
|
3
|
+
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import C from "../../item/index.vue.mjs";
|
|
7
7
|
const z = /* @__PURE__ */ B({
|
|
@@ -53,8 +53,8 @@ const z = /* @__PURE__ */ B({
|
|
|
53
53
|
field: { default: () => ({}) },
|
|
54
54
|
placeholder: {}
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const { Text: h } =
|
|
56
|
+
setup(c, { expose: b }) {
|
|
57
|
+
const { Text: h } = S, p = _(), v = c, a = g();
|
|
58
58
|
return b({
|
|
59
59
|
focus: () => {
|
|
60
60
|
a.value?.focus();
|
|
@@ -62,28 +62,28 @@ const z = /* @__PURE__ */ B({
|
|
|
62
62
|
blur: () => {
|
|
63
63
|
a.value?.blur();
|
|
64
64
|
}
|
|
65
|
-
}), (
|
|
65
|
+
}), (o, N) => (F(), x(C, t(s(e(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
66
66
|
default: d(() => [
|
|
67
|
-
|
|
67
|
+
k(e(h).Password, w({
|
|
68
68
|
ref_key: "inputRef",
|
|
69
69
|
ref: a,
|
|
70
|
-
disabled:
|
|
71
|
-
placeholder:
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
name:
|
|
75
|
-
fn: d((
|
|
76
|
-
|
|
70
|
+
disabled: o.disabled,
|
|
71
|
+
placeholder: o.placeholder
|
|
72
|
+
}, o.field), n({ _: 2 }, [
|
|
73
|
+
i(e(u)(p, e(m)), (y, l) => ({
|
|
74
|
+
name: l,
|
|
75
|
+
fn: d((r) => [
|
|
76
|
+
f(o.$slots, l, t(s(r || {})))
|
|
77
77
|
])
|
|
78
78
|
}))
|
|
79
79
|
]), 1040, ["disabled", "placeholder"])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
82
82
|
}, [
|
|
83
|
-
|
|
84
|
-
name:
|
|
85
|
-
fn: d((
|
|
86
|
-
|
|
83
|
+
i(e(P)(p, e(m)), (y, l) => ({
|
|
84
|
+
name: l,
|
|
85
|
+
fn: d((r) => [
|
|
86
|
+
f(o.$slots, l, t(s(r || {})))
|
|
87
87
|
])
|
|
88
88
|
}))
|
|
89
89
|
]), 1040));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
3
|
-
import { ApField as
|
|
1
|
+
import { defineComponent as m, useSlots as c, shallowRef as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
|
|
2
|
+
import { omit as F } from "lodash-unified";
|
|
3
|
+
import { ApField as k } from "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../item/index.vue2.mjs";
|
|
5
|
-
import
|
|
6
|
-
const $ = /* @__PURE__ */
|
|
5
|
+
import C from "../../item/index.vue.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ m({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -51,19 +51,19 @@ const $ = /* @__PURE__ */ c({
|
|
|
51
51
|
field: { default: () => ({}) },
|
|
52
52
|
placeholder: {}
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const { TextArea: n } =
|
|
54
|
+
setup(d, { expose: i }) {
|
|
55
|
+
const { TextArea: n } = k, p = c(), u = d, l = b();
|
|
56
56
|
return i({
|
|
57
|
-
focus: (
|
|
58
|
-
l.value?.focus(
|
|
57
|
+
focus: (e) => {
|
|
58
|
+
l.value?.focus(e);
|
|
59
59
|
},
|
|
60
60
|
blur: () => {
|
|
61
61
|
l.value?.blur();
|
|
62
62
|
},
|
|
63
|
-
resizableTextArea:
|
|
64
|
-
}), (
|
|
65
|
-
default:
|
|
66
|
-
B(
|
|
63
|
+
resizableTextArea: x(() => l.value?.resizableTextArea)
|
|
64
|
+
}), (e, P) => (v(), h(C, a(t(r(F)(u, ["field", "placeholder"]))), y({
|
|
65
|
+
default: s(() => [
|
|
66
|
+
B(r(n), A({
|
|
67
67
|
ref_key: "textAreaRef",
|
|
68
68
|
ref: l,
|
|
69
69
|
disabled: e.disabled,
|
|
@@ -72,10 +72,10 @@ const $ = /* @__PURE__ */ c({
|
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, [
|
|
75
|
-
g(p, (R,
|
|
76
|
-
name:
|
|
77
|
-
fn:
|
|
78
|
-
|
|
75
|
+
g(p, (R, o) => ({
|
|
76
|
+
name: o,
|
|
77
|
+
fn: s((f) => [
|
|
78
|
+
_(e.$slots, o, a(t(f || {})))
|
|
79
79
|
])
|
|
80
80
|
}))
|
|
81
81
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as
|
|
1
|
+
import { isVNode as O, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as n, mergeProps as m, unref as o, createElementBlock as D, openBlock as p, Fragment as L, createBlock as T, createCommentVNode as K, withCtx as b, createElementVNode as W, normalizeClass as G, normalizeStyle as H, renderSlot as C, resolveDynamicComponent as B, createTextVNode as J, toDisplayString as Q } from "vue";
|
|
2
2
|
import { Button as v, Flex as X, Space as Y, Modal as Z } from "@aplus-frontend/antdv";
|
|
3
3
|
import { omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -10,10 +10,10 @@ import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs
|
|
|
10
10
|
import { useLocale as oe } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
11
|
import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
import ne from "../ap-form.vue2.mjs";
|
|
13
|
-
function k(
|
|
14
|
-
return typeof
|
|
13
|
+
function k(r) {
|
|
14
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !O(r);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Ne = /* @__PURE__ */ z({
|
|
17
17
|
name: "ApFormModalForm",
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -92,14 +92,14 @@ const we = /* @__PURE__ */ z({
|
|
|
92
92
|
submitTimeout: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:open"],
|
|
95
|
-
setup(
|
|
96
|
-
expose:
|
|
97
|
-
emit:
|
|
95
|
+
setup(r, {
|
|
96
|
+
expose: P,
|
|
97
|
+
emit: S
|
|
98
98
|
}) {
|
|
99
|
-
const t =
|
|
100
|
-
value:
|
|
99
|
+
const t = r, c = E(), w = S, a = d(), y = d(0), i = d(), s = d(!1), {
|
|
100
|
+
value: N,
|
|
101
101
|
updateValue: u
|
|
102
|
-
} = ae(t,
|
|
102
|
+
} = ae(t, w, {
|
|
103
103
|
valuePropName: "open",
|
|
104
104
|
defaultValue: !1,
|
|
105
105
|
beforeUpdateValue(e) {
|
|
@@ -107,7 +107,7 @@ const we = /* @__PURE__ */ z({
|
|
|
107
107
|
}
|
|
108
108
|
}), {
|
|
109
109
|
t: f
|
|
110
|
-
} = oe(),
|
|
110
|
+
} = oe(), x = le("ap-form-modal-form"), {
|
|
111
111
|
b: R,
|
|
112
112
|
e: F
|
|
113
113
|
} = se("ap-form-modal-form");
|
|
@@ -118,27 +118,27 @@ const we = /* @__PURE__ */ z({
|
|
|
118
118
|
onClick: () => {
|
|
119
119
|
u(!0);
|
|
120
120
|
}
|
|
121
|
-
}) : null,
|
|
121
|
+
}) : null, _ = A(() => {
|
|
122
122
|
const e = [];
|
|
123
123
|
if (t.submitter === !1)
|
|
124
124
|
return null;
|
|
125
125
|
if (t.showCancel) {
|
|
126
126
|
let l;
|
|
127
|
-
e.push(
|
|
127
|
+
e.push(n(v, {
|
|
128
128
|
onClick: V,
|
|
129
129
|
disabled: s.value
|
|
130
130
|
}, k(l = f("ap.common.cancelText")) ? l : {
|
|
131
131
|
default: () => [l]
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
|
-
return t.submitter?.resetButtonProps !== !1 && e.push(
|
|
134
|
+
return t.submitter?.resetButtonProps !== !1 && e.push(n(v, m(t.submitter?.resetButtonProps || {}, {
|
|
135
135
|
key: "reset",
|
|
136
136
|
disabled: s.value,
|
|
137
|
-
onClick:
|
|
137
|
+
onClick: I,
|
|
138
138
|
htmlType: "reset"
|
|
139
139
|
}), {
|
|
140
140
|
default: () => [t.submitter?.resetText || f("ap.common.resetText")]
|
|
141
|
-
})), t.submitter?.submitButtonProps !== !1 && e.push(
|
|
141
|
+
})), t.submitter?.submitButtonProps !== !1 && e.push(n(v, m({
|
|
142
142
|
type: "primary",
|
|
143
143
|
key: "submit",
|
|
144
144
|
htmlType: "submit"
|
|
@@ -146,28 +146,28 @@ const we = /* @__PURE__ */ z({
|
|
|
146
146
|
loading: s.value
|
|
147
147
|
}), {
|
|
148
148
|
default: () => [t.submitter?.submitText || f("ap.common.okText")]
|
|
149
|
-
})),
|
|
149
|
+
})), n(X, {
|
|
150
150
|
justify: "flex-end",
|
|
151
151
|
key: o(y),
|
|
152
152
|
class: [F("footer")]
|
|
153
153
|
}, {
|
|
154
|
-
default: () => [c.submitter ? c.submitter(e) :
|
|
154
|
+
default: () => [c.submitter ? c.submitter(e) : n(Y, null, k(e) ? e : {
|
|
155
155
|
default: () => [e]
|
|
156
156
|
})]
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
|
-
function
|
|
159
|
+
function I() {
|
|
160
160
|
t.submitter !== !1 && (a.value?.resetFields(), t.submitter?.onReset?.());
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
162
|
+
async function M(e) {
|
|
163
163
|
if (t.submitter !== !1)
|
|
164
164
|
try {
|
|
165
165
|
t.submitter?.onSubmit?.(), s.value = !0;
|
|
166
166
|
const l = t.onFinish?.(e);
|
|
167
167
|
if (t.submitTimeout && l instanceof Promise) {
|
|
168
|
-
const
|
|
168
|
+
const j = setTimeout(() => s.value = !1, t.submitTimeout);
|
|
169
169
|
l.finally(() => {
|
|
170
|
-
clearTimeout(
|
|
170
|
+
clearTimeout(j), s.value = !1;
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
await l && u(!1);
|
|
@@ -178,10 +178,10 @@ const we = /* @__PURE__ */ z({
|
|
|
178
178
|
function V() {
|
|
179
179
|
o(s) || u(!1);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function U(e) {
|
|
182
182
|
!e && o(s) || u(e);
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return P({
|
|
185
185
|
resetFields: async () => {
|
|
186
186
|
a.value?.resetFields();
|
|
187
187
|
},
|
|
@@ -211,28 +211,28 @@ const we = /* @__PURE__ */ z({
|
|
|
211
211
|
validateFieldsReturnTransformed(e, l) {
|
|
212
212
|
return a.value?.validateFieldsReturnTransformed(e, l);
|
|
213
213
|
}
|
|
214
|
-
}), (e, l) => (p(), D(L, null, [
|
|
215
|
-
open: o(
|
|
214
|
+
}), (e, l) => (p(), D(L, null, [n(o(Z), m(e.modalProps, {
|
|
215
|
+
open: o(N),
|
|
216
216
|
footer: null,
|
|
217
|
-
width:
|
|
218
|
-
class: [o(R)(), o(
|
|
217
|
+
width: e.width,
|
|
218
|
+
class: [o(R)(), o(x)],
|
|
219
219
|
"body-style": {
|
|
220
220
|
padding: "0px !important"
|
|
221
221
|
},
|
|
222
|
-
"onUpdate:open":
|
|
222
|
+
"onUpdate:open": U,
|
|
223
223
|
onCancel: V
|
|
224
224
|
}), {
|
|
225
225
|
title: b(() => [C(e.$slots, "title", {}, () => [J(Q(t.title), 1)])]),
|
|
226
|
-
default: b(() => [
|
|
226
|
+
default: b(() => [n(ne, m({
|
|
227
227
|
ref_key: "formRef",
|
|
228
228
|
ref: a
|
|
229
229
|
}, o(ee)(t, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
|
|
230
|
-
onFinish:
|
|
230
|
+
onFinish: M
|
|
231
231
|
}), {
|
|
232
232
|
default: b(() => [W("div", {
|
|
233
|
-
style: H(
|
|
233
|
+
style: H(e.modalProps?.bodyStyle),
|
|
234
234
|
class: G(o(F)("content"))
|
|
235
|
-
}, [C(e.$slots, "default")], 6), (p(), T(B(
|
|
235
|
+
}, [C(e.$slots, "default")], 6), (p(), T(B(_.value)))]),
|
|
236
236
|
_: 3
|
|
237
237
|
}, 16)]),
|
|
238
238
|
_: 3
|
|
@@ -242,5 +242,5 @@ const we = /* @__PURE__ */ z({
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
Ne as default
|
|
246
246
|
};
|