@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,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as
|
|
1
|
+
import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as O, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
|
|
2
2
|
import { SwapRightOutlined as re } from "@ant-design/icons-vue";
|
|
3
3
|
import { InputGroup as le, Select as ue, SelectOption as de, DatePicker as ie } from "@aplus-frontend/antdv";
|
|
4
|
-
import { getTimeFormatToZone as
|
|
4
|
+
import { getTimeFormatToZone as T } from "@aplus-frontend/utils";
|
|
5
5
|
import d from "dayjs";
|
|
6
|
-
import { isNil as
|
|
6
|
+
import { isNil as M, omit as b, isString as c, isFunction as se } from "lodash-unified";
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
8
|
import { omitUndefined as pe } from "../../utils/index.mjs";
|
|
9
|
-
import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as
|
|
9
|
+
import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as A, PRESET_FORMAT_PICK_MAP as me, PRESET_FORMAT_TIME_MAP as ce } from "../date/constant.mjs";
|
|
10
10
|
import { formatDayWithTimezone as ye } from "../date/helper.mjs";
|
|
11
11
|
import { useDateTimezone as ve } from "../hooks/use-date-timezone.mjs";
|
|
12
12
|
import { useDefaultPlaceholder as he } from "../hooks/use-default-placeholder.mjs";
|
|
13
13
|
import { useDefaultPresets as ge } from "../hooks/use-default-presets.mjs";
|
|
14
14
|
import { useControllableValue as ke } from "../../hooks/useControllableValue.mjs";
|
|
15
|
-
const
|
|
15
|
+
const ze = /* @__PURE__ */ L({
|
|
16
16
|
name: "ApFieldDateRange",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -161,13 +161,13 @@ const xe = /* @__PURE__ */ L({
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
emits: ["update:value"],
|
|
164
|
-
setup(
|
|
164
|
+
setup(R, {
|
|
165
165
|
emit: F
|
|
166
166
|
}) {
|
|
167
|
-
const o =
|
|
167
|
+
const o = R, _ = F, z = Y(), i = s(() => fe.indexOf(o.format) > -1), y = s(() => i.value ? A[o.format] : o.format), {
|
|
168
168
|
value: v,
|
|
169
|
-
updateValue:
|
|
170
|
-
} = ke(o, _),
|
|
169
|
+
updateValue: P
|
|
170
|
+
} = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? A[o.format] : o.format), x = he("DateRange", o), {
|
|
171
171
|
currentTimezone: l
|
|
172
172
|
} = ve(o), {
|
|
173
173
|
presets: E,
|
|
@@ -177,57 +177,57 @@ const xe = /* @__PURE__ */ L({
|
|
|
177
177
|
timezone: l
|
|
178
178
|
}), p = (e, a, n = !0) => ye(l.value)(e, a, n), h = s(() => {
|
|
179
179
|
const e = t(v);
|
|
180
|
-
if (
|
|
180
|
+
if (M(e) || !e?.length)
|
|
181
181
|
return e;
|
|
182
|
-
const a = l.value ?
|
|
182
|
+
const a = l.value ? T(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? T(t(v)[1], l.value) : t(v)?.[1];
|
|
183
183
|
return [d(a), d(n)];
|
|
184
184
|
}), I = s(() => t(i) ? o.picker ?? me[o.format] : o.picker), U = s(() => {
|
|
185
185
|
const e = t(i) ? ce[o.format] : {};
|
|
186
186
|
return {
|
|
187
|
-
...pe(
|
|
188
|
-
placeholder: t(
|
|
187
|
+
...pe(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
|
|
188
|
+
placeholder: t(x),
|
|
189
189
|
presets: t(E),
|
|
190
190
|
...e
|
|
191
191
|
};
|
|
192
192
|
});
|
|
193
193
|
function j(e) {
|
|
194
194
|
if (!e) {
|
|
195
|
-
|
|
195
|
+
P(e);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
|
|
199
199
|
const r = t(i) ? t(y) : void 0;
|
|
200
|
-
|
|
200
|
+
P([p(a, r), p(n, r, !1)]);
|
|
201
201
|
}
|
|
202
202
|
function H(e) {
|
|
203
|
-
const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null,
|
|
204
|
-
o.onOk?.([f,
|
|
203
|
+
const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
|
|
204
|
+
o.onOk?.([f, D]);
|
|
205
205
|
}
|
|
206
206
|
function K(e) {
|
|
207
207
|
e && V(), o.onOpenChange?.(e);
|
|
208
208
|
}
|
|
209
209
|
function W(e, a) {
|
|
210
|
-
if (
|
|
210
|
+
if (M(e)) {
|
|
211
211
|
o.onChange?.(e, a);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0,
|
|
215
|
-
o.onChange?.([
|
|
214
|
+
const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, G = e[1] ? p(r, f, !1) : null;
|
|
215
|
+
o.onChange?.([D, G], a);
|
|
216
216
|
}
|
|
217
217
|
const $ = s(() => {
|
|
218
218
|
const e = o.readModeSeparator;
|
|
219
219
|
if (e)
|
|
220
|
-
return Z(e) || se(e) ? o.readModeSeparator :
|
|
221
|
-
const a =
|
|
222
|
-
return a ?
|
|
220
|
+
return Z(e) || se(e) ? o.readModeSeparator : O(m, null, [o.readModeSeparator]);
|
|
221
|
+
const a = z.readModeSeparator?.();
|
|
222
|
+
return a ? O(m, null, [a]) : re;
|
|
223
223
|
});
|
|
224
|
-
return (e, a) =>
|
|
224
|
+
return (e, a) => e.mode === "read" ? (u(), g(m, {
|
|
225
225
|
key: 0
|
|
226
226
|
}, [h.value ? (u(), g(m, {
|
|
227
227
|
key: 0
|
|
228
228
|
}, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(q($.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
|
|
229
229
|
key: 1
|
|
230
|
-
}, [S(C(
|
|
230
|
+
}, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(le), {
|
|
231
231
|
key: 1,
|
|
232
232
|
compact: "",
|
|
233
233
|
style: J({
|
|
@@ -241,7 +241,7 @@ const xe = /* @__PURE__ */ L({
|
|
|
241
241
|
"default-active-first-option": "",
|
|
242
242
|
"dropdown-match-select-width": !1
|
|
243
243
|
}, {
|
|
244
|
-
default: B(() => [(u(!0), g(m, null,
|
|
244
|
+
default: B(() => [(u(!0), g(m, null, w(o.timezone, (n) => (u(), k(t(de), {
|
|
245
245
|
key: n?.value,
|
|
246
246
|
value: n?.value
|
|
247
247
|
}, {
|
|
@@ -249,17 +249,17 @@ const xe = /* @__PURE__ */ L({
|
|
|
249
249
|
_: 2
|
|
250
250
|
}, 1032, ["value"]))), 128))]),
|
|
251
251
|
_: 1
|
|
252
|
-
}, 8, ["value"])) : Q("", !0),
|
|
252
|
+
}, 8, ["value"])) : Q("", !0), O(t(ie).RangePicker, ee(U.value, {
|
|
253
253
|
value: h.value,
|
|
254
254
|
picker: I.value,
|
|
255
|
-
format:
|
|
255
|
+
format: N.value,
|
|
256
256
|
"onUpdate:value": j,
|
|
257
257
|
onChange: W,
|
|
258
258
|
onOk: H,
|
|
259
259
|
onOpenChange: K
|
|
260
260
|
}), oe({
|
|
261
261
|
_: 2
|
|
262
|
-
}, [
|
|
262
|
+
}, [w(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
|
|
263
263
|
name: r,
|
|
264
264
|
fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
|
|
265
265
|
}))]), 1040, ["value", "picker", "format"])]),
|
|
@@ -268,5 +268,5 @@ const xe = /* @__PURE__ */ L({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
ze as default
|
|
272
272
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as v, computed as
|
|
2
|
-
import { getTimeFormatToZone as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
|
|
2
|
+
import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
|
|
3
|
+
import c from "dayjs";
|
|
4
4
|
import { isNil as g } from "lodash-unified";
|
|
5
5
|
import { ApFieldDatePresetFormats as w, PRESET_FORMAT_MAP as C } from "../date/constant.mjs";
|
|
6
6
|
import { useDateTimezone as S } from "../hooks/use-date-timezone.mjs";
|
|
7
|
-
const
|
|
7
|
+
const M = /* @__PURE__ */ v({
|
|
8
8
|
name: "ApFieldDateRangeRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -88,33 +88,33 @@ const F = /* @__PURE__ */ v({
|
|
|
88
88
|
readModeSeparator: {},
|
|
89
89
|
presets: { type: [Array, Boolean] }
|
|
90
90
|
},
|
|
91
|
-
setup(
|
|
92
|
-
const e =
|
|
91
|
+
setup(y) {
|
|
92
|
+
const e = y, { currentTimezone: a } = S(e), t = n(() => {
|
|
93
93
|
const o = e.value;
|
|
94
94
|
if (g(o) || !o?.length)
|
|
95
95
|
return o;
|
|
96
|
-
const
|
|
96
|
+
const s = a.value ? m(
|
|
97
97
|
e.value[0],
|
|
98
|
-
|
|
99
|
-
) : e.value?.[0], B = e.timezone ?
|
|
98
|
+
a.value
|
|
99
|
+
) : e.value?.[0], B = e.timezone ? m(
|
|
100
100
|
e.value[1],
|
|
101
|
-
|
|
101
|
+
a.value
|
|
102
102
|
) : e.value?.[1];
|
|
103
|
-
return [
|
|
104
|
-
}), f =
|
|
103
|
+
return [c(s), c(B)];
|
|
104
|
+
}), f = n(
|
|
105
105
|
() => w.indexOf(e.format) > -1
|
|
106
|
-
),
|
|
106
|
+
), u = n(
|
|
107
107
|
() => f.value ? C[e.format] : e.format
|
|
108
108
|
);
|
|
109
|
-
return (o,
|
|
110
|
-
p(
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
], 64)) : (
|
|
114
|
-
p(
|
|
109
|
+
return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
|
|
110
|
+
l(p(t.value[0]?.format(u.value)) + " ", 1),
|
|
111
|
+
(r(), b(h(o.readModeSeparator))),
|
|
112
|
+
l(" " + p(t.value[1]?.format(u.value)), 1)
|
|
113
|
+
], 64)) : (r(), d(i, { key: 1 }, [
|
|
114
|
+
l(p(o.emptyText), 1)
|
|
115
115
|
], 64));
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
M as default
|
|
120
120
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, shallowRef as x, computed as D, unref as t, createElementBlock as s, createBlock as P, openBlock as l, normalizeClass as i, createCommentVNode as m, createElementVNode as R, renderSlot as u, toDisplayString as V, mergeProps as $, createSlots as I, renderList as M, withCtx as A, normalizeProps as U, guardReactiveProps as z } from "vue";
|
|
2
2
|
import { InputNumber as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import { isNil as T, omit as w } from "lodash-unified";
|
|
4
4
|
import { roundWith as F, toDecimalMark as O } from "../../utils/format.mjs";
|
|
@@ -7,9 +7,9 @@ import "../../hooks/index.mjs";
|
|
|
7
7
|
import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
|
|
8
8
|
import L from "../style/index.mjs";
|
|
9
9
|
import { addZeroToDecimalPlaces as Z } from "./helper.mjs";
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useControllableValue as
|
|
12
|
-
const le = /* @__PURE__ */
|
|
10
|
+
import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
const le = /* @__PURE__ */ N({
|
|
13
13
|
name: "ApFieldNumber",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -61,8 +61,8 @@ const le = /* @__PURE__ */ C({
|
|
|
61
61
|
limitDecimalsRetain: { type: Boolean }
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:value"],
|
|
64
|
-
setup(
|
|
65
|
-
const v = y, { b:
|
|
64
|
+
setup(f, { expose: c, emit: y }) {
|
|
65
|
+
const v = y, { b: r } = _("field-number"), h = L("field"), o = f, n = x(), { value: p, updateValue: B } = j(
|
|
66
66
|
o,
|
|
67
67
|
v
|
|
68
68
|
), b = W("Number", o), g = D(() => {
|
|
@@ -74,40 +74,40 @@ const le = /* @__PURE__ */ C({
|
|
|
74
74
|
return o.precision && o.limitDecimalsRetain && (a = Z(a, o.precision)), a;
|
|
75
75
|
});
|
|
76
76
|
function k() {
|
|
77
|
-
|
|
77
|
+
n.value?.focus();
|
|
78
78
|
}
|
|
79
79
|
function S() {
|
|
80
|
-
|
|
80
|
+
n.value?.blur();
|
|
81
81
|
}
|
|
82
|
-
return c({ focus: k, blur: S }), (e, a) =>
|
|
82
|
+
return c({ focus: k, blur: S }), (e, a) => e.mode === "read" ? (l(), s("span", {
|
|
83
83
|
key: 0,
|
|
84
|
-
class:
|
|
84
|
+
class: i([t(r)(), t(h)])
|
|
85
85
|
}, [
|
|
86
|
-
e.$slots.prefix ? (l(),
|
|
86
|
+
e.$slots.prefix ? (l(), s("span", {
|
|
87
87
|
key: 0,
|
|
88
|
-
class:
|
|
88
|
+
class: i(t(r)("label-left"))
|
|
89
89
|
}, [
|
|
90
|
-
|
|
91
|
-
], 2)) :
|
|
90
|
+
u(e.$slots, "prefix")
|
|
91
|
+
], 2)) : m("", !0),
|
|
92
92
|
R("span", null, V(g.value), 1),
|
|
93
|
-
e.$slots.addonAfter ? (l(),
|
|
93
|
+
e.$slots.addonAfter ? (l(), s("span", {
|
|
94
94
|
key: 1,
|
|
95
|
-
class:
|
|
95
|
+
class: i(t(r)("label-right"))
|
|
96
96
|
}, [
|
|
97
|
-
|
|
98
|
-
], 2)) :
|
|
97
|
+
u(e.$slots, "addonAfter")
|
|
98
|
+
], 2)) : m("", !0)
|
|
99
99
|
], 2)) : (l(), P(t(E), $({ key: 1 }, t(w)(o, ["value", "onUpdate:value", "mode"]), {
|
|
100
100
|
ref_key: "inputRef",
|
|
101
|
-
ref:
|
|
101
|
+
ref: n,
|
|
102
102
|
placeholder: t(b),
|
|
103
103
|
value: t(p),
|
|
104
|
-
mode:
|
|
104
|
+
mode: e.inputMode,
|
|
105
105
|
"onUpdate:value": t(B)
|
|
106
106
|
}), I({ _: 2 }, [
|
|
107
|
-
M(e.$slots, (
|
|
108
|
-
name:
|
|
109
|
-
fn: A((
|
|
110
|
-
|
|
107
|
+
M(e.$slots, (q, d) => ({
|
|
108
|
+
name: d,
|
|
109
|
+
fn: A((C) => [
|
|
110
|
+
u(e.$slots, d, U(z(C || {})))
|
|
111
111
|
])
|
|
112
112
|
}))
|
|
113
113
|
]), 1040, ["placeholder", "value", "mode", "onUpdate:value"]));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, shallowRef as
|
|
2
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as V, shallowRef as _, ref as q, onMounted as C, computed as O, unref as e, createElementBlock as s, openBlock as a, Fragment as p, createTextVNode as S, toDisplayString as U, createBlock as m, mergeProps as G } from "vue";
|
|
2
|
+
import { Spin as N, RadioGroup as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import { isNil as F, omit as w } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
@@ -32,38 +32,38 @@ const $ = /* @__PURE__ */ V({
|
|
|
32
32
|
request: {}
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:value"],
|
|
35
|
-
setup(
|
|
36
|
-
const t =
|
|
37
|
-
|
|
38
|
-
t.request && (
|
|
39
|
-
|
|
35
|
+
setup(d, { expose: f, emit: c }) {
|
|
36
|
+
const t = d, v = c, l = _(), { options: r, updateOptions: y } = A(t), { value: u, updateValue: g } = L(t, v), { b: k, m: b } = M("field-radio"), x = D("field"), n = q(!1);
|
|
37
|
+
C(() => {
|
|
38
|
+
t.request && (n.value = !0, t.request?.().then((o) => y(o)).finally(() => {
|
|
39
|
+
n.value = !1;
|
|
40
40
|
}));
|
|
41
41
|
});
|
|
42
|
-
const h =
|
|
43
|
-
const o = e(
|
|
42
|
+
const h = O(() => {
|
|
43
|
+
const o = e(u);
|
|
44
44
|
if (F(o))
|
|
45
45
|
return t.emptyText;
|
|
46
|
-
const
|
|
46
|
+
const i = r.value?.find(
|
|
47
47
|
(R) => o === E(R)
|
|
48
48
|
);
|
|
49
|
-
return I(
|
|
49
|
+
return I(i) || t.emptyText;
|
|
50
50
|
});
|
|
51
51
|
function B() {
|
|
52
|
-
|
|
52
|
+
l.value?.focus();
|
|
53
53
|
}
|
|
54
54
|
function T() {
|
|
55
|
-
|
|
55
|
+
l.value?.blur();
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return f({
|
|
58
58
|
focus: B,
|
|
59
59
|
blur: T
|
|
60
|
-
}), (o,
|
|
61
|
-
U(
|
|
62
|
-
], 64)) : (a(), p
|
|
63
|
-
|
|
60
|
+
}), (o, i) => o.mode === "read" ? (a(), s(p, { key: 0 }, [
|
|
61
|
+
S(U(h.value), 1)
|
|
62
|
+
], 64)) : (a(), s(p, { key: 1 }, [
|
|
63
|
+
n.value ? (a(), m(e(N), {
|
|
64
64
|
key: 0,
|
|
65
65
|
size: "small"
|
|
66
|
-
})) : (a(),
|
|
66
|
+
})) : (a(), m(e(z), G(
|
|
67
67
|
{ key: 1 },
|
|
68
68
|
e(w)(t, [
|
|
69
69
|
"value",
|
|
@@ -74,11 +74,11 @@ const $ = /* @__PURE__ */ V({
|
|
|
74
74
|
]),
|
|
75
75
|
{
|
|
76
76
|
ref_key: "radioGroupRef",
|
|
77
|
-
ref:
|
|
78
|
-
value: e(
|
|
79
|
-
options: e(
|
|
80
|
-
class: [e(
|
|
81
|
-
"onUpdate:value": e(
|
|
77
|
+
ref: l,
|
|
78
|
+
value: e(u),
|
|
79
|
+
options: e(r),
|
|
80
|
+
class: [e(k)(), o.vertical ? e(b)("vertical") : null, e(x)],
|
|
81
|
+
"onUpdate:value": e(g)
|
|
82
82
|
}
|
|
83
83
|
), null, 16, ["value", "options", "class", "onUpdate:value"]))
|
|
84
84
|
], 64));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, shallowRef as B, useSlots as
|
|
1
|
+
import { defineComponent as h, shallowRef as B, useSlots as b, createElementBlock as x, createBlock as S, openBlock as r, toDisplayString as _, unref as e, mergeProps as g, createSlots as k, renderList as C, withCtx as P, renderSlot as I, normalizeProps as U, guardReactiveProps as w } from "vue";
|
|
2
2
|
import { InputNumber as R } from "@aplus-frontend/antdv";
|
|
3
3
|
import { omit as V } from "lodash-unified";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
@@ -54,32 +54,32 @@ const E = { key: 0 }, q = /* @__PURE__ */ h({
|
|
|
54
54
|
emptyText: { default: "--" }
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:value"],
|
|
57
|
-
setup(
|
|
58
|
-
const o =
|
|
57
|
+
setup(u, { expose: d, emit: s }) {
|
|
58
|
+
const o = u, p = s, t = B(), { value: a, updateValue: i } = D(
|
|
59
59
|
o,
|
|
60
|
-
|
|
61
|
-
),
|
|
62
|
-
function c() {
|
|
63
|
-
a.value?.focus();
|
|
64
|
-
}
|
|
60
|
+
p
|
|
61
|
+
), f = b(), c = z("Second", o);
|
|
65
62
|
function m() {
|
|
66
|
-
|
|
63
|
+
t.value?.focus();
|
|
64
|
+
}
|
|
65
|
+
function y() {
|
|
66
|
+
t.value?.blur();
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return d({ focus: m, blur: y }), (l, F) => l.mode === "read" ? (r(), x("span", E, _(e(A)(Number(e(a)))), 1)) : (r(), S(e(R), g(
|
|
69
69
|
{
|
|
70
70
|
key: 1,
|
|
71
71
|
min: 0,
|
|
72
72
|
style: { width: "100%" },
|
|
73
|
-
placeholder: e(
|
|
74
|
-
value: e(
|
|
73
|
+
placeholder: e(c),
|
|
74
|
+
value: e(a)
|
|
75
75
|
},
|
|
76
76
|
e(V)(o, ["value", "onUpdate:value", "min", "placeholder", "mode"]),
|
|
77
|
-
{ "onUpdate:value": e(
|
|
77
|
+
{ "onUpdate:value": e(i) }
|
|
78
78
|
), k({ _: 2 }, [
|
|
79
|
-
C(
|
|
79
|
+
C(f, (M, n) => ({
|
|
80
80
|
name: n,
|
|
81
81
|
fn: P((v) => [
|
|
82
|
-
I(
|
|
82
|
+
I(l.$slots, n, U(w(v || {})))
|
|
83
83
|
])
|
|
84
84
|
}))
|
|
85
85
|
]), 1040, ["placeholder", "value", "onUpdate:value"]));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { formatSecond as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as n, createElementBlock as t, openBlock as r, toDisplayString as l, unref as p } from "vue";
|
|
2
|
+
import { formatSecond as s } from "./helper.mjs";
|
|
3
|
+
const m = /* @__PURE__ */ n({
|
|
4
4
|
name: "ApFieldSecond",
|
|
5
5
|
__name: "read",
|
|
6
6
|
props: {
|
|
@@ -48,11 +48,11 @@ const c = /* @__PURE__ */ a({
|
|
|
48
48
|
onFocus: {},
|
|
49
49
|
emptyText: { default: "--" }
|
|
50
50
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const
|
|
53
|
-
return (
|
|
51
|
+
setup(o) {
|
|
52
|
+
const a = o;
|
|
53
|
+
return (e, d) => (r(), t("span", null, l(e.value ? p(s)(Number(a.value)) : e.emptyText), 1));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
m as default
|
|
58
58
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, ref as C, useSlots as S, onMounted as h, computed as U, unref as
|
|
1
|
+
import { defineComponent as B, ref as C, useSlots as S, onMounted as h, computed as U, unref as t, createVNode as s, Fragment as a, createBlock as i, createElementBlock as V, openBlock as u, resolveDynamicComponent as _, mergeProps as N, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
|
|
2
2
|
import { Spin as T, Segmented as O } from "@aplus-frontend/antdv";
|
|
3
|
-
import { isFunction as
|
|
3
|
+
import { isFunction as f, isUndefined as R, isString as w, isNumber as A, omit as D } from "lodash-unified";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import E from "../hooks/use-options.mjs";
|
|
6
6
|
import { useControllableValue as M } from "../../hooks/useControllableValue.mjs";
|
|
@@ -40,48 +40,48 @@ const K = /* @__PURE__ */ B({
|
|
|
40
40
|
request: {}
|
|
41
41
|
},
|
|
42
42
|
emits: ["update:value"],
|
|
43
|
-
setup(
|
|
43
|
+
setup(c, {
|
|
44
44
|
emit: v
|
|
45
45
|
}) {
|
|
46
|
-
const
|
|
46
|
+
const o = c, {
|
|
47
47
|
options: p,
|
|
48
48
|
updateOptions: y
|
|
49
|
-
} = E(
|
|
50
|
-
value:
|
|
49
|
+
} = E(o), g = v, {
|
|
50
|
+
value: d,
|
|
51
51
|
updateValue: b
|
|
52
|
-
} = M(
|
|
52
|
+
} = M(o, g), r = C(!1), k = S();
|
|
53
53
|
h(() => {
|
|
54
|
-
|
|
54
|
+
f(o.request) && (r.value = !0, o.request().then((e) => y(e)).finally(() => {
|
|
55
55
|
r.value = !1;
|
|
56
56
|
}));
|
|
57
57
|
});
|
|
58
58
|
const x = U(() => {
|
|
59
|
-
const
|
|
60
|
-
if (R(
|
|
61
|
-
return
|
|
62
|
-
const l =
|
|
59
|
+
const e = t(d);
|
|
60
|
+
if (R(e))
|
|
61
|
+
return s(a, null, [o.emptyText]);
|
|
62
|
+
const l = t(p)?.find((m) => m === e || m?.value === e);
|
|
63
63
|
if (w(l) || A(l))
|
|
64
|
-
return
|
|
64
|
+
return s(a, null, [l]);
|
|
65
65
|
const n = l?.label || k.label;
|
|
66
|
-
return
|
|
66
|
+
return f(n) ? s(a, null, [n?.({
|
|
67
67
|
...l
|
|
68
|
-
})]) :
|
|
68
|
+
})]) : s(a, null, [n || o.emptyText]);
|
|
69
69
|
});
|
|
70
|
-
return (
|
|
70
|
+
return (e, l) => r.value ? (u(), i(t(T), {
|
|
71
71
|
key: 0,
|
|
72
72
|
size: "small"
|
|
73
|
-
})) : (
|
|
73
|
+
})) : (u(), V(a, {
|
|
74
74
|
key: 1
|
|
75
|
-
}, [
|
|
75
|
+
}, [e.mode === "read" ? (u(), i(_(x.value), {
|
|
76
76
|
key: 0
|
|
77
|
-
})) : (
|
|
77
|
+
})) : (u(), i(t(O), N({
|
|
78
78
|
key: 1
|
|
79
|
-
},
|
|
80
|
-
value:
|
|
81
|
-
options:
|
|
82
|
-
"onUpdate:value":
|
|
79
|
+
}, t(D)(o, ["onUpdate:value", "value", "defaultValue", "options"]), {
|
|
80
|
+
value: t(d),
|
|
81
|
+
options: t(p),
|
|
82
|
+
"onUpdate:value": t(b)
|
|
83
83
|
}), {
|
|
84
|
-
label: q((n) => [z(
|
|
84
|
+
label: q((n) => [z(e.$slots, "label", F(P(n)))]),
|
|
85
85
|
_: 3
|
|
86
86
|
}, 16, ["value", "options", "onUpdate:value"]))], 64));
|
|
87
87
|
}
|
|
@@ -170,7 +170,12 @@ declare function __VLS_template(): {
|
|
|
170
170
|
type: PropType<(props: CustomTagProps) => any>;
|
|
171
171
|
};
|
|
172
172
|
optionLabelRender: {
|
|
173
|
-
type:
|
|
173
|
+
type: **
|
|
174
|
+
* 在聚焦时再次发起网络请求的前提:
|
|
175
|
+
* 1. 设置了`refetchOnFocus=true`
|
|
176
|
+
* 2. `fetchId > 0`表示已经发起过一次网络请求
|
|
177
|
+
* 3. 当前并不处于loading状态
|
|
178
|
+
*/).PropType<(option: Record<string, any>) => any>;
|
|
174
179
|
};
|
|
175
180
|
onClear: PropType<() => void>;
|
|
176
181
|
defaultOpen: {
|
|
@@ -630,7 +635,12 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
630
635
|
type: PropType<(props: CustomTagProps) => any>;
|
|
631
636
|
};
|
|
632
637
|
optionLabelRender: {
|
|
633
|
-
type:
|
|
638
|
+
type: **
|
|
639
|
+
* 在聚焦时再次发起网络请求的前提:
|
|
640
|
+
* 1. 设置了`refetchOnFocus=true`
|
|
641
|
+
* 2. `fetchId > 0`表示已经发起过一次网络请求
|
|
642
|
+
* 3. 当前并不处于loading状态
|
|
643
|
+
*/).PropType<(option: Record<string, any>) => any>;
|
|
634
644
|
};
|
|
635
645
|
onClear: PropType<() => void>;
|
|
636
646
|
defaultOpen: {
|