@aplus-frontend/ui 7.13.8 → 7.13.10
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/hooks/use-columns.d.ts +2 -0
- package/es/src/ag-grid/hooks/use-columns.mjs +35 -17
- package/es/src/ag-grid/index.vue.mjs +349 -318
- 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 +29 -29
- package/es/src/ap-field/date-range/read.vue2.mjs +22 -22
- package/es/src/ap-field/hooks/use-default-presets.mjs +59 -16
- package/es/src/ap-field/interface.d.ts +46 -1
- 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/hooks/use-sorted-filtered.d.ts +18 -2
- package/es/src/ap-table/hooks/use-sorted-filtered.mjs +13 -11
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +17 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +148 -142
- 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-export-group/ApExportGroup.vue2.mjs +119 -112
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -1
- package/es/src/business/ap-export-group/handleExportDownload.mjs +2 -2
- package/es/src/business/ap-export-group/interface.d.ts +9 -0
- 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/config-provider/config-provider-props.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -0
- package/es/src/config-provider/index.d.ts +6 -0
- 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/hooks/use-columns.d.ts +2 -0
- package/lib/src/ag-grid/hooks/use-columns.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/hooks/use-default-presets.js +1 -1
- package/lib/src/ap-field/interface.d.ts +46 -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/hooks/use-sorted-filtered.d.ts +18 -2
- package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +17 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.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-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +9 -0
- 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/config-provider/config-provider-props.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -0
- package/lib/src/config-provider/index.d.ts +6 -0
- 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 +3 -3
|
@@ -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 D, 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 b, omit as
|
|
6
|
+
import { isNil as b, omit as M, 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: {
|
|
@@ -157,17 +157,17 @@ const xe = /* @__PURE__ */ L({
|
|
|
157
157
|
timezone: {},
|
|
158
158
|
readModeSeparator: {},
|
|
159
159
|
presets: {
|
|
160
|
-
type: [Array, Boolean]
|
|
160
|
+
type: [Array, Boolean, Object]
|
|
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,
|
|
@@ -179,25 +179,25 @@ const xe = /* @__PURE__ */ L({
|
|
|
179
179
|
const e = t(v);
|
|
180
180
|
if (b(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
|
+
}), j = s(() => t(i) ? o.picker ?? me[o.format] : o.picker), I = s(() => {
|
|
185
185
|
const e = t(i) ? ce[o.format] : {};
|
|
186
186
|
return {
|
|
187
|
-
...pe(
|
|
188
|
-
placeholder: t(
|
|
187
|
+
...pe(M(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
|
-
function
|
|
193
|
+
function U(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
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, O = e[1] ? p(n, r, !1) : null;
|
|
@@ -217,17 +217,17 @@ const xe = /* @__PURE__ */ L({
|
|
|
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 : D(m, null, [o.readModeSeparator]);
|
|
221
|
+
const a = z.readModeSeparator?.();
|
|
222
|
+
return a ? D(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), D(t(ie).RangePicker, ee(I.value, {
|
|
253
253
|
value: h.value,
|
|
254
|
-
picker:
|
|
255
|
-
format:
|
|
256
|
-
"onUpdate:value":
|
|
254
|
+
picker: j.value,
|
|
255
|
+
format: N.value,
|
|
256
|
+
"onUpdate:value": U,
|
|
257
257
|
onChange: W,
|
|
258
258
|
onOk: H,
|
|
259
259
|
onOpenChange: K
|
|
260
260
|
}), oe({
|
|
261
261
|
_: 2
|
|
262
|
-
}, [
|
|
262
|
+
}, [w(t(M)(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
|
-
import { useDateTimezone as
|
|
7
|
-
const
|
|
6
|
+
import { useDateTimezone as O } from "../hooks/use-date-timezone.mjs";
|
|
7
|
+
const M = /* @__PURE__ */ v({
|
|
8
8
|
name: "ApFieldDateRangeRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -86,35 +86,35 @@ const F = /* @__PURE__ */ v({
|
|
|
86
86
|
shownFormat: {},
|
|
87
87
|
timezone: {},
|
|
88
88
|
readModeSeparator: {},
|
|
89
|
-
presets: { type: [Array, Boolean] }
|
|
89
|
+
presets: { type: [Array, Boolean, Object] }
|
|
90
90
|
},
|
|
91
|
-
setup(
|
|
92
|
-
const e =
|
|
91
|
+
setup(y) {
|
|
92
|
+
const e = y, { currentTimezone: a } = O(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,26 +1,69 @@
|
|
|
1
1
|
import u from "dayjs";
|
|
2
|
-
import {
|
|
2
|
+
import { merge as f } from "lodash-unified";
|
|
3
|
+
import { ref as m, computed as D } from "vue";
|
|
3
4
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { presetsDefault as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
const
|
|
7
|
-
const a =
|
|
5
|
+
import { presetsDefault as l } from "../../utils/data-range-persets.mjs";
|
|
6
|
+
import { useLocale as h } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const W = (t) => {
|
|
8
|
+
const a = m(u().valueOf()), { t: s } = h();
|
|
8
9
|
return {
|
|
9
|
-
presets:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
presets: D(() => {
|
|
11
|
+
if (t.presets === !0)
|
|
12
|
+
return l(
|
|
13
|
+
t?.timezone?.value,
|
|
14
|
+
a.value,
|
|
15
|
+
s
|
|
16
|
+
)?.filter(({ value: e }) => e.every(
|
|
17
|
+
(r) => t.disabledDate ? !t.disabledDate(r) : !0
|
|
18
|
+
));
|
|
19
|
+
if (typeof t.presets == "object" && !Array.isArray(t.presets)) {
|
|
20
|
+
const e = f(
|
|
21
|
+
{},
|
|
22
|
+
{
|
|
23
|
+
thisWeek: !0,
|
|
24
|
+
lastWeek: !0,
|
|
25
|
+
last7Days: !0,
|
|
26
|
+
last30Days: !0,
|
|
27
|
+
last90Days: !0,
|
|
28
|
+
thisMonth: !0,
|
|
29
|
+
lastMonth: !0,
|
|
30
|
+
thisQuarter: !0,
|
|
31
|
+
lastQuarter: !0,
|
|
32
|
+
thisYear: !0,
|
|
33
|
+
lastYear: !0
|
|
34
|
+
},
|
|
35
|
+
t.presets
|
|
36
|
+
), r = [
|
|
37
|
+
e.thisWeek,
|
|
38
|
+
e.lastWeek,
|
|
39
|
+
e.last7Days,
|
|
40
|
+
e.last30Days,
|
|
41
|
+
e.last90Days,
|
|
42
|
+
e.thisMonth,
|
|
43
|
+
e.lastMonth,
|
|
44
|
+
e.thisQuarter,
|
|
45
|
+
e.lastQuarter,
|
|
46
|
+
e.thisYear,
|
|
47
|
+
e.lastYear
|
|
48
|
+
];
|
|
49
|
+
return l(
|
|
50
|
+
t?.timezone?.value,
|
|
51
|
+
a.value,
|
|
52
|
+
s
|
|
53
|
+
)?.filter(({ value: i }, n) => i.every(
|
|
54
|
+
(o) => t.disabledDate ? !t.disabledDate(o) : !0
|
|
55
|
+
) && r[n]);
|
|
56
|
+
} else
|
|
57
|
+
return t?.presets?.map?.((e) => ({
|
|
58
|
+
label: e.label,
|
|
59
|
+
value: e?.value?.filter((r) => r !== null)
|
|
60
|
+
}));
|
|
61
|
+
}),
|
|
19
62
|
changeCurrentDate: () => {
|
|
20
63
|
a.value = u().valueOf();
|
|
21
64
|
}
|
|
22
65
|
};
|
|
23
66
|
};
|
|
24
67
|
export {
|
|
25
|
-
|
|
68
|
+
W as useDefaultPresets
|
|
26
69
|
};
|
|
@@ -146,7 +146,52 @@ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'va
|
|
|
146
146
|
* 只读模式下的分隔符(比插槽优先级更高)
|
|
147
147
|
*/
|
|
148
148
|
readModeSeparator?: any;
|
|
149
|
-
presets?: RangePickerProps['presets'] | true
|
|
149
|
+
presets?: RangePickerProps['presets'] | true | {
|
|
150
|
+
/**
|
|
151
|
+
* 是否显示本周
|
|
152
|
+
*/
|
|
153
|
+
thisWeek?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* 是否显示上周
|
|
156
|
+
*/
|
|
157
|
+
lastWeek?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* 是否显示近7天
|
|
160
|
+
*/
|
|
161
|
+
last7Days?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* 是否显示近30天
|
|
164
|
+
*/
|
|
165
|
+
last30Days?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* 是否显示近90天
|
|
168
|
+
*/
|
|
169
|
+
last90Days?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* 是否显示本月
|
|
172
|
+
*/
|
|
173
|
+
thisMonth?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* 是否显示上月
|
|
176
|
+
*/
|
|
177
|
+
lastMonth?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* 是否显示本季度
|
|
180
|
+
*/
|
|
181
|
+
thisQuarter?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* 是否显示上季度
|
|
184
|
+
*/
|
|
185
|
+
lastQuarter?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* 是否显示今年
|
|
188
|
+
*/
|
|
189
|
+
thisYear?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* 是否显示去年
|
|
192
|
+
*/
|
|
193
|
+
lastYear?: boolean;
|
|
194
|
+
};
|
|
150
195
|
};
|
|
151
196
|
export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
|
|
152
197
|
emptyText?: string;
|
|
@@ -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
|
};
|