@aplus-frontend/ui 7.13.6 → 7.13.8
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 +1 -1
- package/es/src/ap-field/select/index.vue.mjs +246 -206
- 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 +17 -4
- 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/select/index.vue.d.ts +4 -4
- 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 +42 -42
- 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.vue2.mjs +22 -22
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
- package/es/src/ap-table/constants.d.ts +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-export-group/ApExportGroup.vue2.mjs +168 -157
- 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/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 +1 -1
- 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/select/index.vue.d.ts +4 -4
- 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.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/constants.d.ts +2 -2
- 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-export-group/ApExportGroup.vue2.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/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 x, createBlock as g, openBlock as _, normalizeProps as r, guardReactiveProps as s, unref as o, createSlots as p, withCtx as n, createVNode as k, mergeProps as F, renderList as u, renderSlot as f } from "vue";
|
|
2
|
+
import { omit as m, pick as N } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as c } 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(l, { expose: b }) {
|
|
58
|
+
const h = l, d = B(), a = x();
|
|
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
|
+
}), (i, $) => (_(), g(S, r(s(o(m)(h, ["field", "placeholder"]))), p({
|
|
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: l.placeholder,
|
|
72
|
+
disabled: l.disabled
|
|
73
|
+
}, l.field), p({ _: 2 }, [
|
|
74
|
+
u(o(m)(d, o(c)), (v, e) => ({
|
|
75
|
+
name: e,
|
|
76
|
+
fn: n((t) => [
|
|
77
|
+
f(i.$slots, e, r(s(t || {})))
|
|
78
78
|
])
|
|
79
79
|
}))
|
|
80
80
|
]), 1040, ["placeholder", "disabled"])
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
name:
|
|
86
|
-
fn: n((
|
|
87
|
-
|
|
84
|
+
u(o(N)(d, o(c)), (v, e) => ({
|
|
85
|
+
name: e,
|
|
86
|
+
fn: n((t) => [
|
|
87
|
+
f(i.$slots, e, r(s(t || {})))
|
|
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 x, withCtx as s, createVNode as y, mergeProps as B, renderList as _, 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(e, { expose: i }) {
|
|
55
|
+
const n = e, d = m(), o = c();
|
|
56
|
+
return i({
|
|
57
57
|
focus: () => {
|
|
58
|
-
|
|
58
|
+
o.value?.focus();
|
|
59
59
|
},
|
|
60
60
|
blur: () => {
|
|
61
|
-
|
|
61
|
+
o.value?.blur();
|
|
62
62
|
}
|
|
63
|
-
}), (
|
|
63
|
+
}), (f, S) => (v(), b(k, a(t(r(h)(n, ["field"]))), x({
|
|
64
64
|
default: s(() => [
|
|
65
65
|
y(r(C), B({
|
|
66
66
|
ref_key: "radioRef",
|
|
67
|
-
ref:
|
|
68
|
-
disabled:
|
|
69
|
-
},
|
|
67
|
+
ref: o,
|
|
68
|
+
disabled: e.disabled
|
|
69
|
+
}, e.field), null, 16, ["disabled"])
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
_(d, (P, l) => ({
|
|
74
74
|
name: l,
|
|
75
|
-
fn: s((
|
|
76
|
-
g(
|
|
75
|
+
fn: s((p) => [
|
|
76
|
+
g(f.$slots, l, a(t(p || {})))
|
|
77
77
|
])
|
|
78
78
|
}))
|
|
79
79
|
]), 1040));
|
|
@@ -671,7 +671,7 @@ declare function __VLS_template(): {
|
|
|
671
671
|
maxTagPlaceholder: any;
|
|
672
672
|
optionLabel: any;
|
|
673
673
|
default: any;
|
|
674
|
-
|
|
674
|
+
option: any;
|
|
675
675
|
}> & {
|
|
676
676
|
notFoundContent: any;
|
|
677
677
|
suffixIcon: any;
|
|
@@ -683,7 +683,7 @@ declare function __VLS_template(): {
|
|
|
683
683
|
maxTagPlaceholder: any;
|
|
684
684
|
optionLabel: any;
|
|
685
685
|
default: any;
|
|
686
|
-
|
|
686
|
+
option: any;
|
|
687
687
|
};
|
|
688
688
|
}) | null;
|
|
689
689
|
};
|
|
@@ -1332,7 +1332,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1332
1332
|
maxTagPlaceholder: any;
|
|
1333
1333
|
optionLabel: any;
|
|
1334
1334
|
default: any;
|
|
1335
|
-
|
|
1335
|
+
option: any;
|
|
1336
1336
|
}> & {
|
|
1337
1337
|
notFoundContent: any;
|
|
1338
1338
|
suffixIcon: any;
|
|
@@ -1344,7 +1344,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1344
1344
|
maxTagPlaceholder: any;
|
|
1345
1345
|
optionLabel: any;
|
|
1346
1346
|
default: any;
|
|
1347
|
-
|
|
1347
|
+
option: any;
|
|
1348
1348
|
};
|
|
1349
1349
|
}) | null;
|
|
1350
1350
|
}, any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as B, useSlots as h, createBlock as v, openBlock as x, normalizeProps as a, guardReactiveProps as r, unref as o, createSlots as n, withCtx as i, createVNode as y, mergeProps as _, renderList as p, renderSlot as m } from "vue";
|
|
2
|
+
import { omit as f, pick as g } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
|
-
import { apFormItemSlotNames as
|
|
4
|
+
import { apFormItemSlotNames as u } 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(l) {
|
|
56
|
+
const c = l, d = h();
|
|
57
|
+
return (s, F) => (x(), v(S, a(r(o(f)(c, ["field", "disabled"]))), n({
|
|
58
58
|
default: i(() => [
|
|
59
|
-
y(k,
|
|
60
|
-
|
|
59
|
+
y(k, _({ disabled: l.disabled }, l.field), n({ _: 2 }, [
|
|
60
|
+
p(o(f)(d, o(u)), (b, e) => ({
|
|
61
61
|
name: e,
|
|
62
|
-
fn: i((
|
|
63
|
-
|
|
62
|
+
fn: i((t) => [
|
|
63
|
+
m(s.$slots, e, a(r(t || {})))
|
|
64
64
|
])
|
|
65
65
|
}))
|
|
66
66
|
]), 1040, ["disabled"])
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, [
|
|
70
|
-
|
|
70
|
+
p(o(g)(d, o(u)), (b, e) => ({
|
|
71
71
|
name: e,
|
|
72
|
-
fn: i((
|
|
73
|
-
|
|
72
|
+
fn: i((t) => [
|
|
73
|
+
m(s.$slots, e, a(r(t || {})))
|
|
74
74
|
])
|
|
75
75
|
}))
|
|
76
76
|
]), 1040));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as y, useSlots as B, shallowRef as S, computed as F, createBlock as R, openBlock as k, normalizeProps as s, guardReactiveProps as i, unref as o, createSlots as c, withCtx as d, createVNode as _, mergeProps as C, renderList as f, renderSlot as m } from "vue";
|
|
2
|
+
import { omit as v, 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 b } 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__ */ y({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -53,44 +53,44 @@ const E = /* @__PURE__ */ B({
|
|
|
53
53
|
field: { default: () => ({}) },
|
|
54
54
|
placeholder: {}
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const { Text:
|
|
56
|
+
setup(a, { expose: h }) {
|
|
57
|
+
const { Text: x } = w, p = B(), g = a, e = S();
|
|
58
58
|
return h({
|
|
59
|
-
focus: (
|
|
60
|
-
|
|
59
|
+
focus: (l) => {
|
|
60
|
+
e.value?.focus(l);
|
|
61
61
|
},
|
|
62
62
|
blur: () => {
|
|
63
|
-
|
|
63
|
+
e.value?.blur();
|
|
64
64
|
},
|
|
65
|
-
setSelectionRange: (
|
|
66
|
-
|
|
65
|
+
setSelectionRange: (l, u, r) => {
|
|
66
|
+
e.value?.setSelectionRange(l, u, r);
|
|
67
67
|
},
|
|
68
68
|
select: () => {
|
|
69
|
-
|
|
69
|
+
e.value?.select();
|
|
70
70
|
},
|
|
71
|
-
input:
|
|
72
|
-
}), (
|
|
73
|
-
default:
|
|
74
|
-
|
|
71
|
+
input: F(() => e.value?.input)
|
|
72
|
+
}), (l, u) => (k(), R(A, s(i(o(v)(g, ["field", "placeholder"]))), c({
|
|
73
|
+
default: d(() => [
|
|
74
|
+
_(o(x), C({
|
|
75
75
|
ref_key: "inputRef",
|
|
76
|
-
ref:
|
|
77
|
-
disabled:
|
|
78
|
-
placeholder:
|
|
79
|
-
},
|
|
80
|
-
f(
|
|
76
|
+
ref: e,
|
|
77
|
+
disabled: a.disabled,
|
|
78
|
+
placeholder: a.placeholder
|
|
79
|
+
}, a.field), c({ _: 2 }, [
|
|
80
|
+
f(o(v)(p, o(b)), (r, t) => ({
|
|
81
81
|
name: t,
|
|
82
|
-
fn:
|
|
83
|
-
|
|
82
|
+
fn: d((n) => [
|
|
83
|
+
m(l.$slots, t, s(i(n || {})))
|
|
84
84
|
])
|
|
85
85
|
}))
|
|
86
86
|
]), 1040, ["disabled", "placeholder"])
|
|
87
87
|
]),
|
|
88
88
|
_: 2
|
|
89
89
|
}, [
|
|
90
|
-
f(
|
|
90
|
+
f(o(P)(p, o(b)), (r, t) => ({
|
|
91
91
|
name: t,
|
|
92
|
-
fn:
|
|
93
|
-
|
|
92
|
+
fn: d((n) => [
|
|
93
|
+
m(l.$slots, t, s(i(n || {})))
|
|
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 x, shallowRef as g, createBlock as F, openBlock as k, normalizeProps as r, guardReactiveProps as s, unref as e, createSlots as p, withCtx as d, createVNode as w, mergeProps as P, renderList as f, renderSlot as u } from "vue";
|
|
2
|
+
import { omit as m, pick as S } from "lodash-unified";
|
|
3
|
+
import { ApField as _ } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { apFormItemSlotNames as c } 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(l, { expose: b }) {
|
|
57
|
+
const { Text: h } = _, n = x(), v = l, 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
|
+
}), (i, N) => (k(), F(C, r(s(e(m)(v, ["field", "disabled", "placeholder"]))), p({
|
|
66
66
|
default: d(() => [
|
|
67
|
-
|
|
67
|
+
w(e(h).Password, P({
|
|
68
68
|
ref_key: "inputRef",
|
|
69
69
|
ref: a,
|
|
70
|
-
disabled:
|
|
71
|
-
placeholder:
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
name:
|
|
75
|
-
fn: d((
|
|
76
|
-
|
|
70
|
+
disabled: l.disabled,
|
|
71
|
+
placeholder: l.placeholder
|
|
72
|
+
}, l.field), p({ _: 2 }, [
|
|
73
|
+
f(e(m)(n, e(c)), (y, o) => ({
|
|
74
|
+
name: o,
|
|
75
|
+
fn: d((t) => [
|
|
76
|
+
u(i.$slots, o, r(s(t || {})))
|
|
77
77
|
])
|
|
78
78
|
}))
|
|
79
79
|
]), 1040, ["disabled", "placeholder"])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
82
82
|
}, [
|
|
83
|
-
|
|
84
|
-
name:
|
|
85
|
-
fn: d((
|
|
86
|
-
|
|
83
|
+
f(e(S)(n, e(c)), (y, o) => ({
|
|
84
|
+
name: o,
|
|
85
|
+
fn: d((t) => [
|
|
86
|
+
u(i.$slots, o, r(s(t || {})))
|
|
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 c, useSlots as m, shallowRef as x, computed as b, createBlock as h, openBlock as v, normalizeProps as t, guardReactiveProps as r, unref as s, createSlots as y, withCtx as d, createVNode as B, mergeProps as A, renderList as g, renderSlot as F } from "vue";
|
|
2
|
+
import { omit as k } from "lodash-unified";
|
|
3
|
+
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../item/index.vue2.mjs";
|
|
5
|
-
import
|
|
6
|
-
const $ = /* @__PURE__ */
|
|
5
|
+
import S from "../../item/index.vue.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ c({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -51,19 +51,19 @@ const $ = /* @__PURE__ */ m({
|
|
|
51
51
|
field: { default: () => ({}) },
|
|
52
52
|
placeholder: {}
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const { TextArea: n } =
|
|
54
|
+
setup(e, { expose: i }) {
|
|
55
|
+
const { TextArea: n } = C, p = m(), u = e, l = x();
|
|
56
56
|
return i({
|
|
57
|
-
focus: (
|
|
58
|
-
l.value?.focus(
|
|
57
|
+
focus: (o) => {
|
|
58
|
+
l.value?.focus(o);
|
|
59
59
|
},
|
|
60
60
|
blur: () => {
|
|
61
61
|
l.value?.blur();
|
|
62
62
|
},
|
|
63
|
-
resizableTextArea:
|
|
64
|
-
}), (
|
|
65
|
-
default:
|
|
66
|
-
B(
|
|
63
|
+
resizableTextArea: b(() => l.value?.resizableTextArea)
|
|
64
|
+
}), (o, P) => (v(), h(S, t(r(s(k)(u, ["field", "placeholder"]))), y({
|
|
65
|
+
default: d(() => [
|
|
66
|
+
B(s(n), A({
|
|
67
67
|
ref_key: "textAreaRef",
|
|
68
68
|
ref: l,
|
|
69
69
|
disabled: e.disabled,
|
|
@@ -72,10 +72,10 @@ const $ = /* @__PURE__ */ m({
|
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, [
|
|
75
|
-
g(p, (R,
|
|
76
|
-
name:
|
|
77
|
-
fn:
|
|
78
|
-
|
|
75
|
+
g(p, (R, a) => ({
|
|
76
|
+
name: a,
|
|
77
|
+
fn: d((f) => [
|
|
78
|
+
F(o.$slots, a, t(r(f || {})))
|
|
79
79
|
])
|
|
80
80
|
}))
|
|
81
81
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as
|
|
1
|
+
import { isVNode as _, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as r, 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(n) {
|
|
14
|
+
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !_(n);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const we = /* @__PURE__ */ z({
|
|
17
17
|
name: "ApFormModalForm",
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -92,14 +92,14 @@ const Ne = /* @__PURE__ */ z({
|
|
|
92
92
|
submitTimeout: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:open"],
|
|
95
|
-
setup(
|
|
96
|
-
expose:
|
|
97
|
-
emit:
|
|
95
|
+
setup(n, {
|
|
96
|
+
expose: x,
|
|
97
|
+
emit: P
|
|
98
98
|
}) {
|
|
99
|
-
const t =
|
|
100
|
-
value:
|
|
99
|
+
const t = n, c = E(), S = P, a = d(), y = d(0), i = d(), s = d(!1), {
|
|
100
|
+
value: w,
|
|
101
101
|
updateValue: u
|
|
102
|
-
} = ae(t,
|
|
102
|
+
} = ae(t, S, {
|
|
103
103
|
valuePropName: "open",
|
|
104
104
|
defaultValue: !1,
|
|
105
105
|
beforeUpdateValue(e) {
|
|
@@ -107,7 +107,7 @@ const Ne = /* @__PURE__ */ z({
|
|
|
107
107
|
}
|
|
108
108
|
}), {
|
|
109
109
|
t: f
|
|
110
|
-
} = oe(),
|
|
110
|
+
} = oe(), N = 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 Ne = /* @__PURE__ */ z({
|
|
|
118
118
|
onClick: () => {
|
|
119
119
|
u(!0);
|
|
120
120
|
}
|
|
121
|
-
}) : null,
|
|
121
|
+
}) : null, I = 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(r(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(r(v, m(t.submitter?.resetButtonProps || {}, {
|
|
135
135
|
key: "reset",
|
|
136
136
|
disabled: s.value,
|
|
137
|
-
onClick:
|
|
137
|
+
onClick: M,
|
|
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(r(v, m({
|
|
142
142
|
type: "primary",
|
|
143
143
|
key: "submit",
|
|
144
144
|
htmlType: "submit"
|
|
@@ -146,28 +146,28 @@ const Ne = /* @__PURE__ */ z({
|
|
|
146
146
|
loading: s.value
|
|
147
147
|
}), {
|
|
148
148
|
default: () => [t.submitter?.submitText || f("ap.common.okText")]
|
|
149
|
-
})),
|
|
149
|
+
})), r(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) : r(Y, null, k(e) ? e : {
|
|
155
155
|
default: () => [e]
|
|
156
156
|
})]
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
|
-
function
|
|
159
|
+
function M() {
|
|
160
160
|
t.submitter !== !1 && (a.value?.resetFields(), t.submitter?.onReset?.());
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
162
|
+
async function U(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 O = setTimeout(() => s.value = !1, t.submitTimeout);
|
|
169
169
|
l.finally(() => {
|
|
170
|
-
clearTimeout(
|
|
170
|
+
clearTimeout(O), s.value = !1;
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
await l && u(!1);
|
|
@@ -178,10 +178,10 @@ const Ne = /* @__PURE__ */ z({
|
|
|
178
178
|
function V() {
|
|
179
179
|
o(s) || u(!1);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function j(e) {
|
|
182
182
|
!e && o(s) || u(e);
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return x({
|
|
185
185
|
resetFields: async () => {
|
|
186
186
|
a.value?.resetFields();
|
|
187
187
|
},
|
|
@@ -211,28 +211,28 @@ const Ne = /* @__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, [r(o(Z), m(n.modalProps, {
|
|
215
|
+
open: o(w),
|
|
216
216
|
footer: null,
|
|
217
|
-
width:
|
|
218
|
-
class: [o(R)(), o(
|
|
217
|
+
width: n.width,
|
|
218
|
+
class: [o(R)(), o(N)],
|
|
219
219
|
"body-style": {
|
|
220
220
|
padding: "0px !important"
|
|
221
221
|
},
|
|
222
|
-
"onUpdate:open":
|
|
222
|
+
"onUpdate:open": j,
|
|
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(() => [r(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: U
|
|
231
231
|
}), {
|
|
232
232
|
default: b(() => [W("div", {
|
|
233
|
-
style: H(
|
|
233
|
+
style: H(n.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(I.value)))]),
|
|
236
236
|
_: 3
|
|
237
237
|
}, 16)]),
|
|
238
238
|
_: 3
|
|
@@ -242,5 +242,5 @@ const Ne = /* @__PURE__ */ z({
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
we as default
|
|
246
246
|
};
|