@aplus-frontend/ui 0.4.18 → 0.4.19
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/ap-action/item/index.vue.d.ts +1 -2
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -2
- package/es/src/ap-button/ap-button.vue.d.ts +1 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
- package/es/src/ap-download/ap-download.vue.d.ts +3 -5
- package/es/src/ap-field/date/index.vue.d.ts +1 -2
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -2
- package/es/src/ap-field/number/index.vue.d.ts +2 -324
- package/es/src/ap-field/radio/index.vue.d.ts +2 -98
- package/es/src/ap-field/rate/index.vue.d.ts +2 -84
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -2
- package/es/src/ap-field/select/index.vue.d.ts +2 -409
- package/es/src/ap-field/select/index.vue.mjs +6 -7
- package/es/src/ap-field/slider/index.vue.d.ts +2 -259
- package/es/src/ap-field/switch/index.vue.d.ts +1 -2
- package/es/src/ap-field/text/index.vue.d.ts +1 -2
- package/es/src/ap-field/text/password.vue.d.ts +1 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -267
- package/es/src/ap-form/ap-form.vue.d.ts +4 -639
- package/es/src/ap-form/dependency/index.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
- package/es/src/ap-form/item/index.vue.d.ts +2 -779
- package/es/src/ap-form/item-group/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -785
- package/es/src/ap-form/items/radio/index.vue.d.ts +4 -223
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +1 -2
- package/es/src/ap-form/items/text/group.vue.d.ts +1 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -141
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -150
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -568
- package/es/src/ap-form/list/index.vue.d.ts +1 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -1457
- package/es/src/ap-form/provider/index.vue.d.ts +1 -2
- package/es/src/ap-form/render/control.vue.d.ts +1 -2
- package/es/src/ap-form/render/item.vue.d.ts +1 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +5 -1457
- package/es/src/ap-form/set/index.vue.d.ts +1 -2
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
- package/es/src/ap-list/index.vue.d.ts +5 -3
- package/es/src/ap-table/ap-table.vue.d.ts +10 -3
- package/es/src/ap-table/ap-table.vue2.mjs +72 -68
- package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +14 -2264
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/interface.d.ts +9 -0
- package/es/src/ap-table/utils.d.ts +8 -1180
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +2 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
- package/es/src/ap-upload/components/Picture.vue.d.ts +9 -7
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/index.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
- package/es/src/business/ap-batch-action/index.d.ts +1 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
- package/es/src/business/ap-batch-action-group/index.d.ts +5 -887
- package/es/src/business/ap-card/ApCard.vue.d.ts +2 -3
- package/es/src/business/ap-card/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +8 -9
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -8
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/index.d.ts +4 -418
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +14 -15
- package/es/src/business/ap-image/ApImage.vue.d.ts +1 -2
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +1 -1
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +1 -4
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/es/src/business/ap-table-modal/index.d.ts +44 -22
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
- package/es/src/business/ap-title/ApTitle.vue.d.ts +2 -3
- package/es/src/business/ap-title/index.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +3 -146
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
- package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/es/src/business/hooks/useTableRefresh.mjs +33 -12
- package/es/src/check-card/group.vue.d.ts +1 -2
- package/es/src/check-card/index.vue.d.ts +2 -3
- package/es/src/config-provider/config-provider-props.d.ts +3 -0
- package/es/src/config-provider/config-provider-props.mjs +3 -0
- package/es/src/config-provider/config-provider.d.ts +6 -0
- package/es/src/config-provider/config-provider.mjs +24 -23
- package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/es/src/config-provider/index.d.ts +9 -0
- package/es/src/editable-table/form-item.vue.d.ts +5 -3
- package/es/src/editable-table/index.vue.d.ts +5 -3
- package/es/src/full-screen/index.vue.d.ts +2 -6
- package/es/src/portal/index.vue.d.ts +1 -2
- package/es/src/resize-observer/index.vue.d.ts +1 -2
- package/es/src/scroll-bar/index.vue.d.ts +4 -43
- package/es/src/scroll-bar/index.vue.mjs +51 -49
- package/es/src/scroll-bar/internal.vue.d.ts +1 -5
- package/es/src/scroll-view/index.vue.d.ts +9 -97
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
- package/lib/src/ap-action/item/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -2
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -2
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -2
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
- package/lib/src/ap-download/ap-download.vue.d.ts +3 -5
- package/lib/src/ap-field/date/index.vue.d.ts +1 -2
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -2
- package/lib/src/ap-field/number/index.vue.d.ts +2 -324
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -98
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -84
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -2
- package/lib/src/ap-field/select/index.vue.d.ts +2 -409
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -259
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -2
- package/lib/src/ap-field/text/index.vue.d.ts +1 -2
- package/lib/src/ap-field/text/password.vue.d.ts +1 -2
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -267
- package/lib/src/ap-form/ap-form.vue.d.ts +4 -639
- package/lib/src/ap-form/dependency/index.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
- package/lib/src/ap-form/item/index.vue.d.ts +2 -779
- package/lib/src/ap-form/item-group/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/date/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -785
- package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -223
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -2
- package/lib/src/ap-form/items/text/group.vue.d.ts +1 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -141
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -150
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -568
- package/lib/src/ap-form/list/index.vue.d.ts +1 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -1457
- package/lib/src/ap-form/provider/index.vue.d.ts +1 -2
- package/lib/src/ap-form/render/control.vue.d.ts +1 -2
- package/lib/src/ap-form/render/item.vue.d.ts +1 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +5 -1457
- package/lib/src/ap-form/set/index.vue.d.ts +1 -2
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
- package/lib/src/ap-list/index.vue.d.ts +5 -3
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -3
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +14 -2264
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/interface.d.ts +9 -0
- package/lib/src/ap-table/utils.d.ts +8 -1180
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +2 -5
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
- package/lib/src/ap-upload/components/Picture.vue.d.ts +9 -7
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
- package/lib/src/business/ap-batch-action/index.d.ts +1 -3
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
- package/lib/src/business/ap-batch-action-group/index.d.ts +5 -887
- package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -3
- package/lib/src/business/ap-card/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +4 -418
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +1 -2
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
- package/lib/src/business/ap-table-modal/index.d.ts +44 -22
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +2 -3
- package/lib/src/business/ap-title/index.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +3 -146
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
- package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
- package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -2
- package/lib/src/check-card/index.vue.d.ts +2 -3
- package/lib/src/config-provider/config-provider-props.d.ts +3 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +6 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
- package/lib/src/config-provider/index.d.ts +9 -0
- package/lib/src/editable-table/form-item.vue.d.ts +5 -3
- package/lib/src/editable-table/index.vue.d.ts +5 -3
- package/lib/src/full-screen/index.vue.d.ts +2 -6
- package/lib/src/portal/index.vue.d.ts +1 -2
- package/lib/src/resize-observer/index.vue.d.ts +1 -2
- package/lib/src/scroll-bar/index.vue.d.ts +4 -43
- package/lib/src/scroll-bar/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.d.ts +1 -5
- package/lib/src/scroll-view/index.vue.d.ts +9 -97
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
- package/package.json +2 -2
- package/theme/ap-scroll-bar/index.css +0 -31
- package/theme/ap-scroll-bar/index.less +0 -39
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { isVNode as v, ref as V, defineComponent as M, computed as n, unref as r, watch as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { useGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { mergeAntdProvideConfig as
|
|
6
|
-
import { generateCssVar as
|
|
7
|
-
import { DEFAULT_NAMESPACE as
|
|
1
|
+
import { isVNode as v, ref as V, defineComponent as M, computed as n, unref as r, watch as u, createVNode as P, renderSlot as b } from "vue";
|
|
2
|
+
import { ConfigProvider as D } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useGlobalConfig as c, provideGlobalConfig as N } from "./hooks/use-global-config.mjs";
|
|
4
|
+
import { configProviderProps as U } from "./config-provider-props.mjs";
|
|
5
|
+
import { mergeAntdProvideConfig as A } from "../utils/config-provider-preset.mjs";
|
|
6
|
+
import { generateCssVar as S, aplusCssVar as T, adminCssVar as w, setCSSVariables as y } from "./css-var.mjs";
|
|
7
|
+
import { DEFAULT_NAMESPACE as E, DEFAULT_UIMODE as F } from "./constants.mjs";
|
|
8
8
|
function L(e) {
|
|
9
9
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const d = V({}), I = /* @__PURE__ */ M({
|
|
12
12
|
name: "AplusConfigProvider",
|
|
13
|
-
props:
|
|
13
|
+
props: U(),
|
|
14
14
|
setup(e, {
|
|
15
|
-
slots:
|
|
15
|
+
slots: f
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
17
|
+
const a = c("namespace"), i = c("uiMode"), s = n(() => e.namespace ? e.namespace : r(a) ? r(a) : E), l = n(() => e.uiMode ? e.uiMode : r(i) ? r(i) : F), m = n(() => ({
|
|
18
18
|
namespace: r(s),
|
|
19
19
|
aplusLocale: e.aplusLocale,
|
|
20
20
|
api: e.api,
|
|
21
|
-
uiMode: r(
|
|
21
|
+
uiMode: r(l),
|
|
22
22
|
apUpload: e.apUpload,
|
|
23
23
|
apDescriptions: e.apDescriptions,
|
|
24
24
|
valueTypeMap: e.valueTypeMap,
|
|
25
25
|
downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
|
|
26
|
-
exportField: e.exportField
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
exportField: e.exportField,
|
|
27
|
+
scrollYDomName: e.scrollYDomName
|
|
28
|
+
})), t = N(m);
|
|
29
|
+
return u(() => e, (o) => {
|
|
30
|
+
d.value = A(o);
|
|
30
31
|
}, {
|
|
31
32
|
deep: !0,
|
|
32
33
|
immediate: !0
|
|
33
|
-
}), typeof window < "u" &&
|
|
34
|
-
const C =
|
|
35
|
-
...o === "aplus" ?
|
|
34
|
+
}), typeof window < "u" && u(() => [r(l), e.cssVar], ([o, p]) => {
|
|
35
|
+
const C = S(p), g = {
|
|
36
|
+
...o === "aplus" ? T : w,
|
|
36
37
|
...C
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
y(g);
|
|
39
40
|
}, {
|
|
40
41
|
immediate: !0
|
|
41
42
|
}), () => {
|
|
42
43
|
let o;
|
|
43
|
-
return P(
|
|
44
|
+
return P(D, d.value, L(o = b(f, "default", {
|
|
44
45
|
config: t == null ? void 0 : t.value
|
|
45
46
|
})) ? o : {
|
|
46
47
|
default: () => [o]
|
|
@@ -49,6 +50,6 @@ const c = V({}), $ = /* @__PURE__ */ M({
|
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
I as ConfigProvider,
|
|
54
|
+
d as globalConfigCached
|
|
54
55
|
};
|
|
@@ -273,6 +273,9 @@ export declare const APConfigProvider: {
|
|
|
273
273
|
type: PropType<ExportField>;
|
|
274
274
|
default: boolean;
|
|
275
275
|
};
|
|
276
|
+
scrollYDomName: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
};
|
|
276
279
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
277
280
|
input: {
|
|
278
281
|
autocomplete?: string;
|
|
@@ -679,6 +682,9 @@ export declare const APConfigProvider: {
|
|
|
679
682
|
type: PropType<ExportField>;
|
|
680
683
|
default: boolean;
|
|
681
684
|
};
|
|
685
|
+
scrollYDomName: {
|
|
686
|
+
type: StringConstructor;
|
|
687
|
+
};
|
|
682
688
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
683
689
|
input: {
|
|
684
690
|
autocomplete?: string;
|
|
@@ -977,6 +983,9 @@ export declare const APConfigProvider: {
|
|
|
977
983
|
type: PropType<ExportField>;
|
|
978
984
|
default: boolean;
|
|
979
985
|
};
|
|
986
|
+
scrollYDomName: {
|
|
987
|
+
type: StringConstructor;
|
|
988
|
+
};
|
|
980
989
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
981
990
|
input: {
|
|
982
991
|
autocomplete?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EditableColumnType, EditableTableFormItemProps } from './interface';
|
|
2
2
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
5
5
|
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<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
add: (defaultValue?: any, insertIndex?: number) => void;
|
|
9
9
|
remove: (index: number | number[]) => void;
|
|
@@ -48,7 +48,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
48
48
|
}) => void;
|
|
49
49
|
};
|
|
50
50
|
emit: {};
|
|
51
|
-
}>) => VNode
|
|
51
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}> & {
|
|
52
54
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
53
55
|
};
|
|
54
56
|
export default _default;
|
|
@@ -2,11 +2,11 @@ import { EditableTableProps, EditableColumnType } from './interface';
|
|
|
2
2
|
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
6
6
|
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<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType
|
|
9
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType>> & PublicProps;
|
|
10
10
|
expose(exposed: ShallowUnwrapRef<{
|
|
11
11
|
resetFields: () => void;
|
|
12
12
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
@@ -53,7 +53,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
53
53
|
}) => void;
|
|
54
54
|
};
|
|
55
55
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
56
|
-
}>) => VNode
|
|
56
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}> & {
|
|
57
59
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
60
|
};
|
|
59
61
|
export default _default;
|
|
@@ -4,7 +4,6 @@ declare function enter(mode: FullScreenMode, force?: boolean): Promise<void>;
|
|
|
4
4
|
declare function exit(force?: boolean): Promise<void>;
|
|
5
5
|
declare function toggle(mode: FullScreenMode, force?: boolean): Promise<void>;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
7
|
slots: {
|
|
9
8
|
default?(_: {
|
|
10
9
|
full: boolean;
|
|
@@ -19,7 +18,7 @@ declare function __VLS_template(): {
|
|
|
19
18
|
target: unknown;
|
|
20
19
|
portalRootRef: HTMLDivElement;
|
|
21
20
|
};
|
|
22
|
-
|
|
21
|
+
attrs: Partial<{}>;
|
|
23
22
|
};
|
|
24
23
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
24
|
declare const __VLS_component: DefineComponent<FullScreenProps, {
|
|
@@ -30,10 +29,7 @@ declare const __VLS_component: DefineComponent<FullScreenProps, {
|
|
|
30
29
|
enter: typeof enter;
|
|
31
30
|
exit: typeof exit;
|
|
32
31
|
toggle: typeof toggle;
|
|
33
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FullScreenProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
34
|
-
target: unknown;
|
|
35
|
-
portalRootRef: HTMLDivElement;
|
|
36
|
-
}, any>;
|
|
32
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FullScreenProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
37
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
34
|
export default _default;
|
|
39
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DefineComponent, TeleportProps, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
3
|
slots: {
|
|
5
4
|
default?(_: {}): any;
|
|
6
5
|
};
|
|
7
6
|
refs: {};
|
|
8
|
-
|
|
7
|
+
attrs: Partial<{}>;
|
|
9
8
|
};
|
|
10
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
10
|
declare const __VLS_component: DefineComponent<Partial< TeleportProps>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Partial< TeleportProps>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -3,12 +3,11 @@ import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, Compo
|
|
|
3
3
|
declare function observe(): void;
|
|
4
4
|
declare function unobserve(): void;
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
6
|
slots: {
|
|
8
7
|
default?(_: {}): any;
|
|
9
8
|
};
|
|
10
9
|
refs: {};
|
|
11
|
-
|
|
10
|
+
attrs: Partial<{}>;
|
|
12
11
|
};
|
|
13
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
13
|
declare const __VLS_component: DefineComponent<ResizeObserverProps, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ScrollBarProps, ScrollBarDirection
|
|
2
|
-
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions
|
|
1
|
+
import { ScrollBarProps, ScrollBarDirection } from './interface';
|
|
2
|
+
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ScrollBarProps, {
|
|
4
4
|
currentScroll: ComputedRef<number | undefined>;
|
|
5
|
-
scroll: (
|
|
5
|
+
scroll: (percent: number) => void | undefined;
|
|
6
6
|
visible: ComputedRef<boolean>;
|
|
7
7
|
rootElement: ComputedRef<HTMLElement | undefined>;
|
|
8
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ScrollBarProps> & Readonly<{}>, {
|
|
@@ -12,44 +12,5 @@ declare const _default: DefineComponent<ScrollBarProps, {
|
|
|
12
12
|
trackSpeed: number;
|
|
13
13
|
barLength: number;
|
|
14
14
|
showTrack: boolean;
|
|
15
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
-
barRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
17
|
-
currentScroll: Ref<number, number>;
|
|
18
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
19
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
21
|
-
scroll: (percent: number) => void;
|
|
22
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
23
|
-
scroll: number;
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
direction: ScrollBarDirection;
|
|
26
|
-
trackSpeed: number;
|
|
27
|
-
barLength: number;
|
|
28
|
-
showTrack: boolean;
|
|
29
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
30
|
-
container: HTMLDivElement;
|
|
31
|
-
track: HTMLDivElement;
|
|
32
|
-
bar: HTMLDivElement;
|
|
33
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
34
|
-
P: {};
|
|
35
|
-
B: {};
|
|
36
|
-
D: {};
|
|
37
|
-
C: {};
|
|
38
|
-
M: {};
|
|
39
|
-
Defaults: {};
|
|
40
|
-
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
41
|
-
currentScroll: Ref<number, number>;
|
|
42
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
43
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
44
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
45
|
-
scroll: (percent: number) => void;
|
|
46
|
-
}, {}, {}, {}, {
|
|
47
|
-
scroll: number;
|
|
48
|
-
disabled: boolean;
|
|
49
|
-
direction: ScrollBarDirection;
|
|
50
|
-
trackSpeed: number;
|
|
51
|
-
barLength: number;
|
|
52
|
-
showTrack: boolean;
|
|
53
|
-
}> | null;
|
|
54
|
-
}, any>;
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
55
16
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, toRef as g, ref as d, watchEffect as x, unref as c, watch as _, computed as s, openBlock as k, createBlock as C, mergeProps as B, createCommentVNode as L } from "vue";
|
|
2
2
|
import "./internal.vue2.mjs";
|
|
3
|
-
import { omit as
|
|
4
|
-
import { getScrollable as u, ensureRangeValue as
|
|
5
|
-
import { useResizeObserver as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
3
|
+
import { omit as R } from "lodash-unified";
|
|
4
|
+
import { getScrollable as u, ensureRangeValue as w } from "./utils/index.mjs";
|
|
5
|
+
import { useResizeObserver as y } from "@vueuse/core";
|
|
6
|
+
import E from "./internal.vue.mjs";
|
|
7
|
+
const W = /* @__PURE__ */ z({
|
|
8
8
|
name: "ScrollBar",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -24,72 +24,74 @@ const j = /* @__PURE__ */ g({
|
|
|
24
24
|
onScroll: {},
|
|
25
25
|
onScrollEnd: {}
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
l.value.scroll(i);
|
|
27
|
+
setup(p, { expose: S }) {
|
|
28
|
+
const t = p, l = g(t, "scrollContainer"), n = d(), a = d(t.barLength);
|
|
29
|
+
function m() {
|
|
30
|
+
if (!l.value || !n.value) return;
|
|
31
|
+
const { totalSize: e, visibleSize: r, distance: o } = u(
|
|
32
|
+
l.value,
|
|
33
|
+
t.direction
|
|
34
|
+
), i = o / (e + t.extraSize - r || 1) * 100;
|
|
35
|
+
n.value.scroll(i);
|
|
37
36
|
}
|
|
38
37
|
function f() {
|
|
39
|
-
const { visibleSize: e, totalSize:
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
const { visibleSize: e, totalSize: r } = u(
|
|
39
|
+
l.value,
|
|
40
|
+
t.direction
|
|
42
41
|
);
|
|
43
|
-
|
|
44
|
-
e / (
|
|
42
|
+
a.value = w(
|
|
43
|
+
e / (r + t.extraSize || 1) * 100
|
|
45
44
|
);
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
y(l, () => {
|
|
48
47
|
f();
|
|
49
|
-
}),
|
|
48
|
+
}), x(
|
|
50
49
|
() => {
|
|
51
|
-
const e =
|
|
52
|
-
e && (f(), e.addEventListener("scroll",
|
|
50
|
+
const e = c(l.value);
|
|
51
|
+
e && (f(), e.addEventListener("scroll", m));
|
|
53
52
|
},
|
|
54
53
|
{ flush: "post" }
|
|
55
|
-
),
|
|
56
|
-
() =>
|
|
54
|
+
), _(
|
|
55
|
+
() => t.barLength,
|
|
57
56
|
(e) => {
|
|
58
|
-
|
|
57
|
+
a.value = e;
|
|
59
58
|
}
|
|
60
59
|
);
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
64
|
-
const { totalSize:
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
function v(e) {
|
|
61
|
+
const r = c(l);
|
|
62
|
+
if (!r) return;
|
|
63
|
+
const { totalSize: o, visibleSize: i, topOrLeft: b } = u(
|
|
64
|
+
r,
|
|
65
|
+
t.direction
|
|
67
66
|
);
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
|
|
67
|
+
if (o <= i) return;
|
|
68
|
+
const h = `scroll${b}`;
|
|
69
|
+
r[h] = e * (o + t.extraSize - i) / 100;
|
|
71
70
|
}
|
|
72
|
-
return
|
|
71
|
+
return S({
|
|
73
72
|
currentScroll: s(() => {
|
|
74
73
|
var e;
|
|
75
|
-
return
|
|
74
|
+
return c((e = n.value) == null ? void 0 : e.currentScroll);
|
|
76
75
|
}),
|
|
77
|
-
scroll: (
|
|
78
|
-
|
|
76
|
+
scroll: (e) => {
|
|
77
|
+
var r, o;
|
|
78
|
+
return (o = (r = n.value) == null ? void 0 : r.scroll) == null ? void 0 : o.call(r, e);
|
|
79
|
+
},
|
|
80
|
+
visible: s(() => a.value < 100),
|
|
79
81
|
rootElement: s(() => {
|
|
80
82
|
var e;
|
|
81
|
-
return
|
|
83
|
+
return c((e = n.value) == null ? void 0 : e.container);
|
|
82
84
|
})
|
|
83
|
-
}), (e,
|
|
85
|
+
}), (e, r) => a.value !== 100 ? (k(), C(E, B({
|
|
84
86
|
key: 0,
|
|
85
87
|
ref_key: "barRef",
|
|
86
|
-
ref:
|
|
87
|
-
},
|
|
88
|
-
"bar-length":
|
|
89
|
-
onScroll:
|
|
90
|
-
}), null, 16, ["bar-length"])) :
|
|
88
|
+
ref: n
|
|
89
|
+
}, c(R)(t, ["onScroll", "extraSize", "scrollContainer"]), {
|
|
90
|
+
"bar-length": a.value,
|
|
91
|
+
onScroll: v
|
|
92
|
+
}), null, 16, ["bar-length"])) : L("", !0);
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
export {
|
|
94
|
-
|
|
96
|
+
W as default
|
|
95
97
|
};
|
|
@@ -14,9 +14,5 @@ declare const _default: DefineComponent<InternalScrollBarProps, {
|
|
|
14
14
|
trackSpeed: number;
|
|
15
15
|
barLength: number;
|
|
16
16
|
showTrack: boolean;
|
|
17
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
18
|
-
container: HTMLDivElement;
|
|
19
|
-
track: HTMLDivElement;
|
|
20
|
-
bar: HTMLDivElement;
|
|
21
|
-
}, HTMLDivElement>;
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
18
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ScrollOptions, ScrollViewProps } from './interface';
|
|
2
|
-
import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
|
|
2
|
+
import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
|
|
4
4
|
declare function scroll(x?: number, y?: number): void;
|
|
5
5
|
declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
|
|
6
6
|
declare function scrollIntoView(element: HTMLElement, position?: 'start' | 'center' | 'end'): void;
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
8
|
slots: {
|
|
10
9
|
default?(_: {}): any;
|
|
11
10
|
};
|
|
@@ -25,11 +24,7 @@ declare function __VLS_template(): {
|
|
|
25
24
|
trackSpeed: number;
|
|
26
25
|
barLength: number;
|
|
27
26
|
showTrack: boolean;
|
|
28
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
29
|
-
container: HTMLDivElement;
|
|
30
|
-
track: HTMLDivElement;
|
|
31
|
-
bar: HTMLDivElement;
|
|
32
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
27
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
33
28
|
P: {};
|
|
34
29
|
B: {};
|
|
35
30
|
D: {};
|
|
@@ -63,11 +58,7 @@ declare function __VLS_template(): {
|
|
|
63
58
|
trackSpeed: number;
|
|
64
59
|
barLength: number;
|
|
65
60
|
showTrack: boolean;
|
|
66
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
67
|
-
container: HTMLDivElement;
|
|
68
|
-
track: HTMLDivElement;
|
|
69
|
-
bar: HTMLDivElement;
|
|
70
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
61
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
71
62
|
P: {};
|
|
72
63
|
B: {};
|
|
73
64
|
D: {};
|
|
@@ -89,7 +80,7 @@ declare function __VLS_template(): {
|
|
|
89
80
|
showTrack: boolean;
|
|
90
81
|
}> | null;
|
|
91
82
|
};
|
|
92
|
-
|
|
83
|
+
attrs: Partial<{}>;
|
|
93
84
|
};
|
|
94
85
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
95
86
|
declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
@@ -106,8 +97,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
106
97
|
onScroll?: ((percent: number) => void) | undefined;
|
|
107
98
|
disabled?: boolean | undefined;
|
|
108
99
|
trackSpeed?: number | undefined;
|
|
109
|
-
barColor?:
|
|
110
|
-
trackColor?:
|
|
100
|
+
barColor?: ColorType;
|
|
101
|
+
trackColor?: ColorType;
|
|
111
102
|
trackWidth?: number | undefined;
|
|
112
103
|
showTrack?: boolean | undefined;
|
|
113
104
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -118,93 +109,14 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
118
109
|
onScroll?: ((percent: number) => void) | undefined;
|
|
119
110
|
disabled?: boolean | undefined;
|
|
120
111
|
trackSpeed?: number | undefined;
|
|
121
|
-
barColor?:
|
|
122
|
-
trackColor?:
|
|
112
|
+
barColor?: ColorType;
|
|
113
|
+
trackColor?: ColorType;
|
|
123
114
|
trackWidth?: number | undefined;
|
|
124
115
|
showTrack?: boolean | undefined;
|
|
125
116
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
126
117
|
onScrollEnd?: ((percent: number) => void) | undefined;
|
|
127
118
|
};
|
|
128
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
129
|
-
containerRef: HTMLDivElement;
|
|
130
|
-
contentRef: HTMLDivElement;
|
|
131
|
-
yBarRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
132
|
-
currentScroll: Ref<number, number>;
|
|
133
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
134
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
135
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
136
|
-
scroll: (percent: number) => void;
|
|
137
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
138
|
-
scroll: number;
|
|
139
|
-
disabled: boolean;
|
|
140
|
-
direction: ScrollBarDirection;
|
|
141
|
-
trackSpeed: number;
|
|
142
|
-
barLength: number;
|
|
143
|
-
showTrack: boolean;
|
|
144
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
145
|
-
container: HTMLDivElement;
|
|
146
|
-
track: HTMLDivElement;
|
|
147
|
-
bar: HTMLDivElement;
|
|
148
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
149
|
-
P: {};
|
|
150
|
-
B: {};
|
|
151
|
-
D: {};
|
|
152
|
-
C: {};
|
|
153
|
-
M: {};
|
|
154
|
-
Defaults: {};
|
|
155
|
-
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
156
|
-
currentScroll: Ref<number, number>;
|
|
157
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
158
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
159
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
160
|
-
scroll: (percent: number) => void;
|
|
161
|
-
}, {}, {}, {}, {
|
|
162
|
-
scroll: number;
|
|
163
|
-
disabled: boolean;
|
|
164
|
-
direction: ScrollBarDirection;
|
|
165
|
-
trackSpeed: number;
|
|
166
|
-
barLength: number;
|
|
167
|
-
showTrack: boolean;
|
|
168
|
-
}> | null;
|
|
169
|
-
xBarRef: CreateComponentPublicInstanceWithMixins<Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
170
|
-
currentScroll: Ref<number, number>;
|
|
171
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
172
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
173
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
174
|
-
scroll: (percent: number) => void;
|
|
175
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
176
|
-
scroll: number;
|
|
177
|
-
disabled: boolean;
|
|
178
|
-
direction: ScrollBarDirection;
|
|
179
|
-
trackSpeed: number;
|
|
180
|
-
barLength: number;
|
|
181
|
-
showTrack: boolean;
|
|
182
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
183
|
-
container: HTMLDivElement;
|
|
184
|
-
track: HTMLDivElement;
|
|
185
|
-
bar: HTMLDivElement;
|
|
186
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
187
|
-
P: {};
|
|
188
|
-
B: {};
|
|
189
|
-
D: {};
|
|
190
|
-
C: {};
|
|
191
|
-
M: {};
|
|
192
|
-
Defaults: {};
|
|
193
|
-
}, Readonly< InternalScrollBarProps> & Readonly<{}>, {
|
|
194
|
-
currentScroll: Ref<number, number>;
|
|
195
|
-
container: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
196
|
-
bar: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
197
|
-
track: Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
198
|
-
scroll: (percent: number) => void;
|
|
199
|
-
}, {}, {}, {}, {
|
|
200
|
-
scroll: number;
|
|
201
|
-
disabled: boolean;
|
|
202
|
-
direction: ScrollBarDirection;
|
|
203
|
-
trackSpeed: number;
|
|
204
|
-
barLength: number;
|
|
205
|
-
showTrack: boolean;
|
|
206
|
-
}> | null;
|
|
207
|
-
}, HTMLDivElement>;
|
|
119
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
208
120
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
209
121
|
export default _default;
|
|
210
122
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
export declare const Wrapper: DefineComponent<{
|
|
3
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
4
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
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?: "admin" | "aplus" | undefined;
|
|
7
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
6
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
7
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
package/es/src/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { Recordable } from '../type';
|
|
2
3
|
/**
|
|
3
4
|
* @description: Set ui mount node
|
|
@@ -40,3 +41,10 @@ export declare function runFunction<T extends any[]>(func: any, ...restParams: T
|
|
|
40
41
|
*/
|
|
41
42
|
export declare function getRouteType(): "history" | "hash";
|
|
42
43
|
export declare function getScrollbarSize(): number;
|
|
44
|
+
export type UnwrapRef<T> = T extends Ref<infer U> ? U : T;
|
|
45
|
+
/**
|
|
46
|
+
* 将传入的泛型中所有类型为 Ref<x> 转换为类型 x
|
|
47
|
+
*/
|
|
48
|
+
export type UnwrapRefProps<T> = {
|
|
49
|
+
[K in keyof T]: UnwrapRef<T[K]>;
|
|
50
|
+
};
|