@aplus-frontend/ui 7.12.5 → 7.13.0
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/loading/index.vue.d.ts +3 -0
- package/es/src/ag-grid/components/loading/index.vue.mjs +4 -0
- package/es/src/ag-grid/components/loading/index.vue2.mjs +18 -0
- package/es/src/ag-grid/context.mjs +1 -1
- package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +30 -27
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +10 -8
- package/es/src/ag-grid/editable/interface.d.ts +2 -1
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.mjs +209 -202
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/style/index.mjs +8 -5
- package/es/src/ap-drawer/interface.d.ts +13 -2
- package/es/src/ap-drawer/utils/createDrawer.mjs +37 -32
- package/es/src/ap-field/select/index.vue.d.ts +1 -2
- package/es/src/ap-field/select/index.vue.mjs +126 -88
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/style/index.mjs +8 -6
- package/es/src/ap-field/style/select.d.ts +2 -0
- package/es/src/ap-field/style/select.mjs +43 -0
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/item-group/helper.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +4 -5
- package/es/src/ap-form/items/select/index.vue.d.ts +12 -16
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/provider/context.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +15 -16
- package/es/src/ap-table/components/setting/context.d.ts +17 -0
- package/es/src/ap-table/components/setting/context.mjs +18 -0
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +217 -88
- package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +49 -51
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +844 -0
- package/es/src/ap-table/components/setting/template/edit-form.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +74 -0
- package/es/src/ap-table/components/setting/template/index.vue.d.ts +11 -0
- package/es/src/ap-table/components/setting/template/index.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +51 -0
- package/es/src/ap-table/components/setting/template/item.vue.d.ts +13 -0
- package/es/src/ap-table/components/setting/template/item.vue.mjs +4 -0
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +77 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +26 -29
- package/es/src/ap-table/components/setting/utils.d.ts +1 -0
- package/es/src/ap-table/components/setting/utils.mjs +22 -15
- package/es/src/ap-table/constants.d.ts +13 -15
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -23
- package/es/src/ap-table/hooks/use-table-column-state.mjs +32 -120
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +49 -0
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +150 -0
- package/es/src/ap-table/interface.d.ts +26 -3
- package/es/src/ap-table/style/index.d.ts +1 -0
- package/es/src/ap-table/style/index.mjs +2 -1
- package/es/src/ap-table/style/setting.d.ts +2 -0
- package/es/src/ap-table/style/setting.mjs +114 -19
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
- package/es/src/business/ag-grid-modal/style/index.mjs +7 -7
- package/es/src/business/ap-attachment/ApAttachment.mjs +96 -89
- package/es/src/business/ap-attachment/style/index.mjs +33 -16
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +24 -22
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +1 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +35 -31
- package/es/src/business/ap-batch-action-group/index.d.ts +6 -6
- package/es/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/es/src/business/ap-download/hooks/index.mjs +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-keep-alive/hook.mjs +1 -1
- package/es/src/business/ap-keep-alive/utils.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +19 -19
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +34 -34
- package/es/src/business/ap-upload/style/single-file.mjs +2 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +2 -2
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-value-select-card/style/index.mjs +3 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +21 -21
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/style/index.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/check-card/context.mjs +1 -1
- package/es/src/config-provider/constants.mjs +1 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
- package/es/src/config-provider/hooks/use-token.mjs +1 -1
- package/es/src/design-token/index.mjs +5 -5
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/locale/lang/en.mjs +15 -4
- package/es/src/locale/lang/zh-cn.mjs +18 -7
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/context.mjs +1 -1
- package/es/src/time-ago/useTimeAgo.mjs +26 -27
- package/es/src/utils/data-range-persets.d.ts +13 -1
- package/es/src/utils/data-range-persets.mjs +80 -60
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +56 -48
- package/es/src/utils/retry.d.ts +12 -0
- package/es/src/utils/retry.mjs +27 -0
- package/es/src/utils/slot.mjs +1 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/loading/index.vue.d.ts +3 -0
- package/lib/src/ag-grid/components/loading/index.vue.js +1 -0
- package/lib/src/ag-grid/components/loading/index.vue2.js +1 -0
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +2 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +13 -2
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/style/index.js +1 -1
- package/lib/src/ap-field/style/select.d.ts +2 -0
- package/lib/src/ap-field/style/select.js +1 -0
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/items/number/index.vue.d.ts +4 -5
- package/lib/src/ap-form/items/select/index.vue.d.ts +12 -16
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/context.d.ts +17 -0
- package/lib/src/ap-table/components/setting/context.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +844 -0
- package/lib/src/ap-table/components/setting/template/edit-form.vue.js +1 -0
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/template/index.vue.d.ts +11 -0
- package/lib/src/ap-table/components/setting/template/index.vue.js +1 -0
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/template/item.vue.d.ts +13 -0
- package/lib/src/ap-table/components/setting/template/item.vue.js +1 -0
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -0
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -0
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +13 -15
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -23
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +49 -0
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -0
- package/lib/src/ap-table/interface.d.ts +26 -3
- package/lib/src/ap-table/style/index.d.ts +1 -0
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.d.ts +2 -0
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/business/ag-grid-modal/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +6 -6
- package/lib/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -4
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/time-ago/useTimeAgo.js +1 -1
- package/lib/src/utils/data-range-persets.d.ts +13 -1
- package/lib/src/utils/data-range-persets.js +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/retry.d.ts +12 -0
- package/lib/src/utils/retry.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ViewListModel } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath,
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
@@ -111,7 +110,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
111
110
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
112
111
|
readonly initialValues?: Recordable | undefined;
|
|
113
112
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
114
|
-
readonly syncToUrl?:
|
|
113
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
115
114
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
116
115
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
117
116
|
$attrs: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as T, ref as y, watch as $, createElementBlock as
|
|
2
|
-
import { Space as C, Popconfirm as
|
|
3
|
-
import { ApField as
|
|
1
|
+
import { defineComponent as T, ref as y, watch as $, createElementBlock as c, openBlock as m, normalizeClass as V, unref as e, createElementVNode as o, createCommentVNode as f, toDisplayString as r, createVNode as i, withModifiers as L, withCtx as v } from "vue";
|
|
2
|
+
import { Space as C, Popconfirm as b } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApField as B } from "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../../ap-form/ap-form.vue.mjs";
|
|
5
5
|
import "../../../config-provider/index.mjs";
|
|
6
|
-
import { useToken as
|
|
6
|
+
import { useToken as F } from "../../../config-provider/hooks/use-token.mjs";
|
|
7
7
|
import "../../ap-tag/index.mjs";
|
|
8
8
|
import { useViewInject as M } from "../hooks/use-view-provide.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Y from "../icons/line-delete.vue.mjs";
|
|
10
|
+
import j from "../style/index.mjs";
|
|
11
11
|
import { SYSTEM_VIEW_KEY as h } from "../utils/enum.mjs";
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
import { useLocale as
|
|
14
|
-
import
|
|
12
|
+
import { useNamespace as A } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import { useLocale as O } from "../../../config-provider/hooks/use-locale.mjs";
|
|
14
|
+
import P from "../../ap-tag/ap-tag.vue.mjs";
|
|
15
15
|
import x from "../../../ap-form/ap-form.vue2.mjs";
|
|
16
16
|
const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
17
17
|
key: 0,
|
|
@@ -22,7 +22,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
22
22
|
view: {}
|
|
23
23
|
},
|
|
24
24
|
setup(N) {
|
|
25
|
-
const { b: s } =
|
|
25
|
+
const { b: s } = A("ap-view"), d = j("ap-view"), { token: K } = F(), { t: n } = O(), t = N, {
|
|
26
26
|
currentViewKey: D,
|
|
27
27
|
changeCurrentViewKey: S,
|
|
28
28
|
viewListCRUD: p,
|
|
@@ -54,7 +54,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
54
54
|
(u) => {
|
|
55
55
|
u && (l.value = !1);
|
|
56
56
|
}
|
|
57
|
-
), (u, a) => l.value === !1 ? (
|
|
57
|
+
), (u, a) => l.value === !1 ? (m(), c("div", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: V({
|
|
60
60
|
[e(s)()]: !0,
|
|
@@ -69,17 +69,17 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
69
69
|
title: t.view?.viewName
|
|
70
70
|
}, r(t.view?.viewName), 9, W)
|
|
71
71
|
]),
|
|
72
|
-
t.view?.viewKey !== e(h) && t.view?.isDefault ? (
|
|
73
|
-
i(e(
|
|
72
|
+
t.view?.viewKey !== e(h) && t.view?.isDefault ? (m(), c("div", q, [
|
|
73
|
+
i(e(P), {
|
|
74
74
|
text: e(n)("ap.apView.default"),
|
|
75
75
|
size: "small",
|
|
76
|
-
color: e(K).
|
|
76
|
+
color: e(K).colorLink
|
|
77
77
|
}, null, 8, ["text", "color"])
|
|
78
78
|
])) : f("", !0),
|
|
79
|
-
t.view?.viewKey !== e(h) ? (
|
|
79
|
+
t.view?.viewKey !== e(h) ? (m(), c("div", {
|
|
80
80
|
key: 1,
|
|
81
81
|
class: "menu-list-content-action",
|
|
82
|
-
onClick: a[1] || (a[1] =
|
|
82
|
+
onClick: a[1] || (a[1] = L(() => {
|
|
83
83
|
}, ["stop"]))
|
|
84
84
|
}, [
|
|
85
85
|
i(e(C), { size: 8 }, {
|
|
@@ -88,19 +88,19 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
88
88
|
class: "menu-list-content-action-text",
|
|
89
89
|
onClick: a[0] || (a[0] = (R) => l.value = !0)
|
|
90
90
|
}, r(e(n)("ap.apView.rename")), 1),
|
|
91
|
-
t.view?.isDefault ? f("", !0) : (
|
|
91
|
+
t.view?.isDefault ? f("", !0) : (m(), c("div", {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "menu-list-content-action-text",
|
|
94
94
|
onClick: E
|
|
95
95
|
}, r(e(n)("ap.apView.setDefault")), 1)),
|
|
96
96
|
o("div", G, [
|
|
97
|
-
i(e(
|
|
97
|
+
i(e(b), {
|
|
98
98
|
title: e(n)("ap.apView.deleteTip"),
|
|
99
99
|
"ok-text": e(n)("ap.apView.ok"),
|
|
100
100
|
onConfirm: z
|
|
101
101
|
}, {
|
|
102
102
|
default: v(() => [
|
|
103
|
-
i(
|
|
103
|
+
i(Y)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["title", "ok-text"])
|
|
@@ -109,7 +109,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
109
109
|
_: 1
|
|
110
110
|
})
|
|
111
111
|
])) : f("", !0)
|
|
112
|
-
], 2)) : (
|
|
112
|
+
], 2)) : (m(), c("div", {
|
|
113
113
|
key: 1,
|
|
114
114
|
class: V([e(s)("menu-list-content"), e(s)("menu-list-content-edit"), e(d)])
|
|
115
115
|
}, [
|
|
@@ -126,7 +126,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
126
126
|
default: v(() => [
|
|
127
127
|
i(x.FormItem, { name: "viewName" }, {
|
|
128
128
|
default: v(() => [
|
|
129
|
-
i(e(
|
|
129
|
+
i(e(B).Text, { maxlength: 20 })
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}),
|
|
@@ -93,7 +93,7 @@ const i = (e) => {
|
|
|
93
93
|
fontSize: e.fontSize,
|
|
94
94
|
display: "flex",
|
|
95
95
|
alignItems: "center",
|
|
96
|
-
color: e.
|
|
96
|
+
color: e.colorLink
|
|
97
97
|
},
|
|
98
98
|
"&-delete": {
|
|
99
99
|
cursor: "pointer",
|
|
@@ -131,7 +131,7 @@ const i = (e) => {
|
|
|
131
131
|
},
|
|
132
132
|
[`${t}-menu-list-content-active`]: {
|
|
133
133
|
".menu-list-content-name": {
|
|
134
|
-
color: e.
|
|
134
|
+
color: e.colorLink
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -46,10 +46,10 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
46
46
|
readonly value?: string | number | undefined;
|
|
47
47
|
readonly disabled?: boolean | undefined;
|
|
48
48
|
readonly placeholder?: string | number | undefined;
|
|
49
|
+
readonly id?: string | undefined;
|
|
49
50
|
readonly prefixCls?: string | undefined;
|
|
50
51
|
readonly name?: string | undefined;
|
|
51
52
|
readonly focused?: boolean | undefined;
|
|
52
|
-
readonly id?: string | undefined;
|
|
53
53
|
readonly readonly?: boolean | undefined;
|
|
54
54
|
readonly autofocus?: boolean | undefined;
|
|
55
55
|
readonly autocomplete?: string | undefined;
|
|
@@ -12,7 +12,7 @@ const u = (t) => (e, o) => f(e, o, r(t)), f = (t, e, o) => l(o, t, t).replace(
|
|
|
12
12
|
locale: o,
|
|
13
13
|
t: u(t)
|
|
14
14
|
};
|
|
15
|
-
}, x = Symbol("localeContextKey"), K = (t) => {
|
|
15
|
+
}, x = /* @__PURE__ */ Symbol("localeContextKey"), K = (t) => {
|
|
16
16
|
const e = t || m(x, s());
|
|
17
17
|
return p(c(() => e?.value || i));
|
|
18
18
|
};
|
|
@@ -2,7 +2,11 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
|
2
2
|
export declare const defaultNamespace = "aplus";
|
|
3
3
|
export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
|
|
4
4
|
export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
|
|
5
|
-
export declare const useNamespace: (
|
|
5
|
+
export declare const useNamespace: (
|
|
6
|
+
/**
|
|
7
|
+
* 块 一般是指组件名
|
|
8
|
+
*/
|
|
9
|
+
block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
6
10
|
namespace: ComputedRef<string>;
|
|
7
11
|
b: (blockSuffix?: string) => string;
|
|
8
12
|
e: (element?: string) => string;
|
|
@@ -2,7 +2,7 @@ import { getCurrentInstance as N, inject as V, ref as v, computed as y, unref as
|
|
|
2
2
|
const p = "aplus", B = "is-", c = (a, r, t, $, o) => {
|
|
3
3
|
let u = `${a}-${r}`;
|
|
4
4
|
return t && (u += `-${t}`), $ && (u += `__${$}`), o && (u += `--${o}`), u;
|
|
5
|
-
}, C = Symbol("namespaceContextKey"), _ = (a) => {
|
|
5
|
+
}, C = /* @__PURE__ */ Symbol("namespaceContextKey"), _ = (a) => {
|
|
6
6
|
const r = a || (N() ? V(C, v(p)) : v(p));
|
|
7
7
|
return y(() => l(r) || p);
|
|
8
8
|
}, w = (a, r) => {
|
|
@@ -6,7 +6,9 @@ const o = {
|
|
|
6
6
|
lineHeight: 1.5,
|
|
7
7
|
lineHeightSM: 1.6,
|
|
8
8
|
wireframe: !1,
|
|
9
|
-
sizeUnit: 3
|
|
9
|
+
sizeUnit: 3,
|
|
10
|
+
controlHeight: 30,
|
|
11
|
+
controlInteractiveSize: 16
|
|
10
12
|
}, e = {
|
|
11
13
|
...o,
|
|
12
14
|
// 主色
|
|
@@ -39,8 +41,7 @@ const o = {
|
|
|
39
41
|
colorBgSpotlight: "#000000cc",
|
|
40
42
|
controlItemBgActive: "#F5F9FF",
|
|
41
43
|
controlItemBgActiveHover: "#EAF2FF",
|
|
42
|
-
colorBorderSecondary: "#E9EDF3"
|
|
43
|
-
controlHeight: 30
|
|
44
|
+
colorBorderSecondary: "#E9EDF3"
|
|
44
45
|
}, c = {
|
|
45
46
|
...o,
|
|
46
47
|
// 主色
|
|
@@ -74,8 +75,7 @@ const o = {
|
|
|
74
75
|
colorBgSpotlight: "#000000cc",
|
|
75
76
|
controlItemBgActive: "#f3fbf7",
|
|
76
77
|
controlItemBgActiveHover: "#e6f6ef",
|
|
77
|
-
colorBorderSecondary: "#E9E9E9"
|
|
78
|
-
controlHeight: 30
|
|
78
|
+
colorBorderSecondary: "#E9E9E9"
|
|
79
79
|
};
|
|
80
80
|
export {
|
|
81
81
|
c as adminToken,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
5
5
|
expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
|
|
@@ -36,9 +36,7 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
36
36
|
}) => void;
|
|
37
37
|
};
|
|
38
38
|
emit: {};
|
|
39
|
-
}>) => VNode
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}> & {
|
|
39
|
+
}>) => VNode & {
|
|
42
40
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
41
|
};
|
|
44
42
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -39,9 +39,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
39
39
|
}) => void;
|
|
40
40
|
};
|
|
41
41
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
42
|
-
}>) => VNode
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}> & {
|
|
42
|
+
}>) => VNode & {
|
|
45
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
44
|
};
|
|
47
45
|
export default _default;
|
|
@@ -83,7 +83,7 @@ function re(e, t, r, i, f) {
|
|
|
83
83
|
const n = i?.({
|
|
84
84
|
title: e.title,
|
|
85
85
|
column: e
|
|
86
|
-
}), s = n?.filter((T) => T.type !== Symbol.for("v-cmt")) || [];
|
|
86
|
+
}), s = n?.filter((T) => T.type !== /* @__PURE__ */ Symbol.for("v-cmt")) || [];
|
|
87
87
|
if (n && s.length > 0)
|
|
88
88
|
return n;
|
|
89
89
|
const d = k(e), m = w(e.title) ? {
|
|
@@ -14,7 +14,8 @@ const a = {
|
|
|
14
14
|
redo: "Refresh",
|
|
15
15
|
back: "Back",
|
|
16
16
|
more: "More",
|
|
17
|
-
all: "All"
|
|
17
|
+
all: "All",
|
|
18
|
+
save: "Save"
|
|
18
19
|
},
|
|
19
20
|
field: {
|
|
20
21
|
startDateText: "Start date",
|
|
@@ -25,9 +26,12 @@ const a = {
|
|
|
25
26
|
lastWeek: "Last week",
|
|
26
27
|
thisMonth: "This month",
|
|
27
28
|
lastMonth: "Last month",
|
|
29
|
+
thisQuarter: "This quarter",
|
|
30
|
+
lastQuarter: "Last quarter",
|
|
28
31
|
thisYear: "This year",
|
|
29
32
|
lastYear: "Last year",
|
|
30
|
-
lastXDays: "Last {day} days"
|
|
33
|
+
lastXDays: "Last {day} days",
|
|
34
|
+
chooseOnly: "Select only"
|
|
31
35
|
},
|
|
32
36
|
apForm: {
|
|
33
37
|
search: {
|
|
@@ -59,7 +63,13 @@ const a = {
|
|
|
59
63
|
fixToLeft: "Fixed on the left",
|
|
60
64
|
fixToRight: "Fixed on the right",
|
|
61
65
|
unFixed: "Not fixed",
|
|
62
|
-
delete: "Delete"
|
|
66
|
+
delete: "Delete",
|
|
67
|
+
saveAsTemplate: "Save as New Template",
|
|
68
|
+
saveAndApply: "Save and Apply",
|
|
69
|
+
modifyNotification: "The current template has been modified. You can save it as a new template.",
|
|
70
|
+
templateSetting: "Column Configuration Template",
|
|
71
|
+
templateName: "New Template Name",
|
|
72
|
+
templateNamePlaceholder: "Please enter a template name"
|
|
63
73
|
},
|
|
64
74
|
paragraphEllipsis: {
|
|
65
75
|
copy: "Copy",
|
|
@@ -131,7 +141,8 @@ const a = {
|
|
|
131
141
|
},
|
|
132
142
|
apAttachment: {
|
|
133
143
|
downloadall: "Download All",
|
|
134
|
-
more: "More"
|
|
144
|
+
more: "More",
|
|
145
|
+
all: "All"
|
|
135
146
|
},
|
|
136
147
|
apSizeInput: {
|
|
137
148
|
length: "Length",
|
|
@@ -14,20 +14,24 @@ const a = {
|
|
|
14
14
|
redo: "刷新",
|
|
15
15
|
back: "返回",
|
|
16
16
|
more: "更多",
|
|
17
|
-
all: "全部"
|
|
17
|
+
all: "全部",
|
|
18
|
+
save: "保存"
|
|
18
19
|
},
|
|
19
20
|
field: {
|
|
20
21
|
startDateText: "开始日期",
|
|
21
22
|
endDateText: "结束日期",
|
|
22
|
-
today: "
|
|
23
|
-
yesterday: "
|
|
23
|
+
today: "今日",
|
|
24
|
+
yesterday: "昨日",
|
|
24
25
|
thisWeek: "本周",
|
|
25
26
|
lastWeek: "上周",
|
|
26
27
|
thisMonth: "本月",
|
|
27
28
|
lastMonth: "上月",
|
|
29
|
+
thisQuarter: "本季度",
|
|
30
|
+
lastQuarter: "上季度",
|
|
28
31
|
thisYear: "今年",
|
|
29
32
|
lastYear: "去年",
|
|
30
|
-
lastXDays: "近{day}天"
|
|
33
|
+
lastXDays: "近{day}天",
|
|
34
|
+
chooseOnly: "仅选此项"
|
|
31
35
|
},
|
|
32
36
|
modal: {
|
|
33
37
|
restore: "还原",
|
|
@@ -64,11 +68,17 @@ const a = {
|
|
|
64
68
|
sizeSmall: "紧凑",
|
|
65
69
|
sizeNormal: "正常",
|
|
66
70
|
selectCount: "已选字段({count})",
|
|
67
|
-
reset: "
|
|
71
|
+
reset: "恢复默认",
|
|
68
72
|
fixToLeft: "固定在左侧",
|
|
69
73
|
fixToRight: "固定在右侧",
|
|
70
74
|
unFixed: "不固定",
|
|
71
|
-
delete: "删除"
|
|
75
|
+
delete: "删除",
|
|
76
|
+
saveAsTemplate: "保存为新模板",
|
|
77
|
+
saveAndApply: "保存并应用",
|
|
78
|
+
modifyNotification: "当前模板存在变更,可保存为新模板",
|
|
79
|
+
templateSetting: "列配置模板",
|
|
80
|
+
templateName: "新模板名称",
|
|
81
|
+
templateNamePlaceholder: "请输入模板名称"
|
|
72
82
|
},
|
|
73
83
|
paragraphEllipsis: {
|
|
74
84
|
copy: "复制",
|
|
@@ -139,7 +149,8 @@ const a = {
|
|
|
139
149
|
},
|
|
140
150
|
apAttachment: {
|
|
141
151
|
downloadall: "下载全部",
|
|
142
|
-
more: "更多"
|
|
152
|
+
more: "更多",
|
|
153
|
+
all: "全部"
|
|
143
154
|
},
|
|
144
155
|
apSizeInput: {
|
|
145
156
|
length: "长",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScrollBarDirection, InternalScrollBarProps
|
|
1
|
+
import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
|
|
2
2
|
import { ScrollOptions, ScrollViewProps } from './interface';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, Ref, ShallowRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
|
|
4
4
|
declare function scroll(x?: number, y?: number): void;
|
|
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
106
106
|
onScroll?: ((percent: number) => void) | undefined;
|
|
107
107
|
disabled?: boolean | undefined;
|
|
108
108
|
trackSpeed?: number | undefined;
|
|
109
|
-
barColor?:
|
|
110
|
-
trackColor?:
|
|
109
|
+
barColor?: import("csstype").Property.BackgroundColor | undefined;
|
|
110
|
+
trackColor?: import("csstype").Property.BackgroundColor | undefined;
|
|
111
111
|
trackWidth?: number | undefined;
|
|
112
112
|
showTrack?: boolean | undefined;
|
|
113
113
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
118
118
|
onScroll?: ((percent: number) => void) | undefined;
|
|
119
119
|
disabled?: boolean | undefined;
|
|
120
120
|
trackSpeed?: number | undefined;
|
|
121
|
-
barColor?:
|
|
122
|
-
trackColor?:
|
|
121
|
+
barColor?: import("csstype").Property.BackgroundColor | undefined;
|
|
122
|
+
trackColor?: import("csstype").Property.BackgroundColor | undefined;
|
|
123
123
|
trackWidth?: number | undefined;
|
|
124
124
|
showTrack?: boolean | undefined;
|
|
125
125
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
export declare const Wrapper: DefineComponent<{
|
|
3
|
-
uiMode?:
|
|
4
|
-
lang?:
|
|
3
|
+
uiMode?: "admin" | "aplus" | undefined;
|
|
4
|
+
lang?: "en" | "zh-cn" | undefined;
|
|
5
5
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
6
|
-
uiMode?:
|
|
7
|
-
lang?:
|
|
6
|
+
uiMode?: "admin" | "aplus" | undefined;
|
|
7
|
+
lang?: "en" | "zh-cn" | undefined;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
package/es/src/text/context.mjs
CHANGED
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ref as
|
|
1
|
+
import m from "dayjs";
|
|
2
|
+
import { ref as v, watch as M, onBeforeUnmount as h } from "vue";
|
|
3
3
|
function s(n, u) {
|
|
4
4
|
const t = Math.abs(n - u), e = {
|
|
5
5
|
diffMs: t,
|
|
6
6
|
type: n < u ? "ago" : "late"
|
|
7
7
|
};
|
|
8
|
-
return t < 60 * 1e3 ? (e.unit = "s", e.count = Math.round(t / 1e3)) : t <
|
|
8
|
+
return t < 60 * 1e3 ? (e.unit = "s", e.count = Math.round(t / 1e3)) : t < 3600 * 1e3 ? (e.unit = "m", e.count = Math.round(t / (60 * 1e3))) : t < 1440 * 60 * 1e3 ? (e.unit = "h", e.count = Math.round(t / (3600 * 1e3))) : t < 720 * 60 * 60 * 1e3 ? (e.unit = "d", e.count = Math.round(t / (1440 * 60 * 1e3))) : t < 365 * 24 * 60 * 60 * 1e3 ? (e.unit = "M", e.count = Math.round(t / (720 * 60 * 60 * 1e3))) : (e.unit = "y", e.count = Math.round(t / 365 / (1440 * 60 * 1e3))), e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function i(n) {
|
|
11
|
+
return m(n).valueOf();
|
|
12
12
|
}
|
|
13
|
-
let
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
let p = 1;
|
|
14
|
+
function g() {
|
|
15
|
+
return p++;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const o = /* @__PURE__ */ new Map();
|
|
18
18
|
let r, l;
|
|
19
19
|
function w(n, u) {
|
|
20
|
-
|
|
20
|
+
o.set(n, u), o.size && !l && (clearInterval(r), r = setInterval(() => {
|
|
21
21
|
l = !0;
|
|
22
22
|
const t = Date.now();
|
|
23
|
-
|
|
23
|
+
o.forEach((e) => {
|
|
24
24
|
e.interval && Math.abs(t - e.updated - e.interval) < 50 && (e.timeAgo.value = s(e.ts, t), e.updated = t);
|
|
25
25
|
});
|
|
26
26
|
}, 5e3));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
28
|
+
function b(n) {
|
|
29
|
+
o.delete(n), o.size || (clearInterval(r), l = !1);
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
const e =
|
|
33
|
-
s(
|
|
31
|
+
const y = (n, u, t) => {
|
|
32
|
+
const e = g(), a = v(
|
|
33
|
+
s(i(n.value), i(u))
|
|
34
34
|
), f = {
|
|
35
|
-
ts:
|
|
35
|
+
ts: i(n.value),
|
|
36
36
|
timeAgo: a,
|
|
37
37
|
interval: t.value,
|
|
38
38
|
updated: Date.now()
|
|
39
39
|
};
|
|
40
|
-
return
|
|
40
|
+
return M(
|
|
41
41
|
() => n.value,
|
|
42
|
-
(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
f.ts = d, a.value = s(d, o(u));
|
|
42
|
+
(d) => {
|
|
43
|
+
const c = i(d);
|
|
44
|
+
f.ts = c, a.value = s(c, i(u));
|
|
46
45
|
}
|
|
47
|
-
), w(e, f),
|
|
48
|
-
|
|
46
|
+
), w(e, f), h(() => {
|
|
47
|
+
b(e);
|
|
49
48
|
}), a;
|
|
50
49
|
};
|
|
51
50
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
y as default,
|
|
52
|
+
g as getId,
|
|
54
53
|
s as getTimeAgo,
|
|
55
54
|
w as subscribe,
|
|
56
|
-
|
|
55
|
+
b as unsubscribe
|
|
57
56
|
};
|
|
@@ -45,7 +45,19 @@ export declare const presetsGetThisMonth: (timezone?: Timezone, currentDate?: nu
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const presetsGetLastMonth: (timezone?: Timezone, currentDate?: number) => dayjs.Dayjs[];
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 根据时区获取本季度
|
|
49
|
+
* @param {Timezone} [timezone] - 时区
|
|
50
|
+
* @param {number} [currentDate] - 当前时间
|
|
51
|
+
*/
|
|
52
|
+
export declare const presetsGetThisQuarter: (timezone?: Timezone, currentDate?: number) => dayjs.Dayjs[];
|
|
53
|
+
/**
|
|
54
|
+
* 根据时区获取上季度
|
|
55
|
+
* @param {Timezone} [timezone] - 时区
|
|
56
|
+
* @param {number} [currentDate] - 当前时间
|
|
57
|
+
*/
|
|
58
|
+
export declare const presetsGetLastQuarter: (timezone?: Timezone, currentDate?: number) => dayjs.Dayjs[];
|
|
59
|
+
/**
|
|
60
|
+
* 根据时区获取本年
|
|
49
61
|
* @param {Timezone} [timezone] - 时区
|
|
50
62
|
* @param {number} [currentDate] - 当前时间
|
|
51
63
|
*/
|