@fox-js/foxui 3.0.0 → 4.0.1-2
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/dist/foxui.es.js +24764 -0
- package/dist/foxui.umd.js +21 -0
- package/dist/locale/index.cjs.js +1 -0
- package/dist/locale/index.d.ts +396 -0
- package/dist/locale/index.js +405 -0
- package/dist/style.css +1 -0
- package/dist/style.es.js +2 -0
- package/dist/types/api/index.d.ts +9 -0
- package/dist/types/components/actionsheet/index.vue.d.ts +13 -0
- package/dist/types/components/address/index.vue.d.ts +13 -0
- package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +13 -0
- package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +13 -0
- package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +13 -0
- package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +13 -0
- package/dist/types/components/addresslist/index.vue.d.ts +13 -0
- package/dist/types/components/animate/index.vue.d.ts +13 -0
- package/dist/types/components/animate/type.d.ts +2 -0
- package/dist/types/components/audio/index.vue.d.ts +13 -0
- package/dist/types/components/audiooperate/index.vue.d.ts +13 -0
- package/dist/types/components/avatar/index.vue.d.ts +13 -0
- package/dist/types/components/avatargroup/index.vue.d.ts +13 -0
- package/dist/types/components/backtop/index.vue.d.ts +13 -0
- package/dist/types/components/badge/index.vue.d.ts +13 -0
- package/dist/types/components/barrage/index.vue.d.ts +13 -0
- package/dist/types/components/button/index.vue.d.ts +13 -0
- package/dist/types/components/button/type.d.ts +3 -0
- package/dist/types/components/calendar/common.d.ts +61 -0
- package/dist/types/components/calendar/index.vue.d.ts +13 -0
- package/dist/types/components/calendar/pane.vue.d.ts +13 -0
- package/dist/types/components/calendar/types.d.ts +13 -0
- package/dist/types/components/calendaritem/common.d.ts +201 -0
- package/dist/types/components/calendaritem/index.vue.d.ts +13 -0
- package/dist/types/components/card/index.vue.d.ts +13 -0
- package/dist/types/components/cascader/cascader-pane.vue.d.ts +13 -0
- package/dist/types/components/cascader/common.d.ts +98 -0
- package/dist/types/components/cascader/helper.d.ts +4 -0
- package/dist/types/components/cascader/index.vue.d.ts +13 -0
- package/dist/types/components/cascader/tree.d.ts +12 -0
- package/dist/types/components/cascader/types.d.ts +26 -0
- package/dist/types/components/cascaderitem/index.vue.d.ts +13 -0
- package/dist/types/components/cascaderitem/model.d.ts +34 -0
- package/dist/types/components/category/index.vue.d.ts +13 -0
- package/dist/types/components/categorypane/index.vue.d.ts +13 -0
- package/dist/types/components/cell/index.vue.d.ts +13 -0
- package/dist/types/components/cellgroup/index.vue.d.ts +13 -0
- package/dist/types/components/checkbox/common.d.ts +64 -0
- package/dist/types/components/checkbox/index.vue.d.ts +13 -0
- package/dist/types/components/checkboxitem/common.d.ts +107 -0
- package/dist/types/components/checkboxitem/index.vue.d.ts +13 -0
- package/dist/types/components/checkboxitem/model.d.ts +33 -0
- package/dist/types/components/circleprogress/index.vue.d.ts +13 -0
- package/dist/types/components/col/index.vue.d.ts +13 -0
- package/dist/types/components/collapse/index.vue.d.ts +13 -0
- package/dist/types/components/collapseitem/index.vue.d.ts +13 -0
- package/dist/types/components/comment/components/CmtBottom.vue.d.ts +13 -0
- package/dist/types/components/comment/components/CmtHeader.vue.d.ts +13 -0
- package/dist/types/components/comment/components/CmtImages.vue.d.ts +13 -0
- package/dist/types/components/comment/index.vue.d.ts +13 -0
- package/dist/types/components/content/index.vue.d.ts +13 -0
- package/dist/types/components/countdown/index.vue.d.ts +13 -0
- package/dist/types/components/countdown/util.d.ts +2 -0
- package/dist/types/components/countup/index.vue.d.ts +13 -0
- package/dist/types/components/dateitem/index.vue.d.ts +13 -0
- package/dist/types/components/datepicker/common.d.ts +55 -0
- package/dist/types/components/datepicker/index.vue.d.ts +13 -0
- package/dist/types/components/dialog/index.d.ts +44 -0
- package/dist/types/components/dialog/index.vue.d.ts +13 -0
- package/dist/types/components/divider/index.vue.d.ts +13 -0
- package/dist/types/components/drag/index.vue.d.ts +13 -0
- package/dist/types/components/ecard/index.vue.d.ts +13 -0
- package/dist/types/components/elevator/index.vue.d.ts +13 -0
- package/dist/types/components/ellipsis/index.vue.d.ts +13 -0
- package/dist/types/components/ellipsis/type.d.ts +1 -0
- package/dist/types/components/empty/index.vue.d.ts +13 -0
- package/dist/types/components/fixednav/index.vue.d.ts +13 -0
- package/dist/types/components/footer/index.vue.d.ts +13 -0
- package/dist/types/components/grid/common.d.ts +87 -0
- package/dist/types/components/grid/index.vue.d.ts +13 -0
- package/dist/types/components/griditem/index.vue.d.ts +13 -0
- package/dist/types/components/group/group-props.d.ts +34 -0
- package/dist/types/components/group/index.vue.d.ts +13 -0
- package/dist/types/components/header/index.vue.d.ts +13 -0
- package/dist/types/components/header/types.d.ts +9 -0
- package/dist/types/components/hinttext/index.d.ts +8 -0
- package/dist/types/components/hinttext/index.vue.d.ts +13 -0
- package/dist/types/components/icon/index.vue.d.ts +13 -0
- package/dist/types/components/image/index.vue.d.ts +13 -0
- package/dist/types/components/image/type.d.ts +2 -0
- package/dist/types/components/imagepreview/imagePreviewItem.vue.d.ts +13 -0
- package/dist/types/components/imagepreview/index.d.ts +20 -0
- package/dist/types/components/imagepreview/index.vue.d.ts +13 -0
- package/dist/types/components/indicator/index.vue.d.ts +13 -0
- package/dist/types/components/infiniteloading/index.vue.d.ts +13 -0
- package/dist/types/components/inputitem/index.vue.d.ts +13 -0
- package/dist/types/components/inputnumber/index.vue.d.ts +13 -0
- package/dist/types/components/item/common.d.ts +121 -0
- package/dist/types/components/item/index.vue.d.ts +13 -0
- package/dist/types/components/layout/index.vue.d.ts +13 -0
- package/dist/types/components/linkitem/common.d.ts +132 -0
- package/dist/types/components/linkitem/index.vue.d.ts +13 -0
- package/dist/types/components/list/index.vue.d.ts +13 -0
- package/dist/types/components/menu/index.vue.d.ts +13 -0
- package/dist/types/components/menuitem/index.vue.d.ts +13 -0
- package/dist/types/components/menuitem/type.d.ts +4 -0
- package/dist/types/components/moneyitem/index.vue.d.ts +13 -0
- package/dist/types/components/moneyitem/util.d.ts +15 -0
- package/dist/types/components/navbar/index.vue.d.ts +13 -0
- package/dist/types/components/noticebar/index.vue.d.ts +13 -0
- package/dist/types/components/notify/index.d.ts +12 -0
- package/dist/types/components/notify/index.vue.d.ts +13 -0
- package/dist/types/components/numberkeyboard/index.vue.d.ts +13 -0
- package/dist/types/components/overlay/common.d.ts +30 -0
- package/dist/types/components/overlay/index.taro.vue.d.ts +13 -0
- package/dist/types/components/overlay/index.vue.d.ts +13 -0
- package/dist/types/components/page/index.vue.d.ts +13 -0
- package/dist/types/components/pagination/index.vue.d.ts +13 -0
- package/dist/types/components/picker/column.vue.d.ts +13 -0
- package/dist/types/components/picker/common-column.d.ts +26 -0
- package/dist/types/components/picker/common.d.ts +143 -0
- package/dist/types/components/picker/index.vue.d.ts +13 -0
- package/dist/types/components/picker/model.d.ts +55 -0
- package/dist/types/components/pickeritem/index.vue.d.ts +13 -0
- package/dist/types/components/placeholder/index.vue.d.ts +13 -0
- package/dist/types/components/popover/index.vue.d.ts +13 -0
- package/dist/types/components/popover/type.d.ts +2 -0
- package/dist/types/components/popup/common.d.ts +81 -0
- package/dist/types/components/popup/index.vue.d.ts +13 -0
- package/dist/types/components/popup/use-lock-scroll.d.ts +1 -0
- package/dist/types/components/price/index.vue.d.ts +13 -0
- package/dist/types/components/price/price-props.d.ts +37 -0
- package/dist/types/components/progress/index.vue.d.ts +13 -0
- package/dist/types/components/radio/common.d.ts +125 -0
- package/dist/types/components/radio/index.vue.d.ts +13 -0
- package/dist/types/components/radioitem/common.d.ts +99 -0
- package/dist/types/components/radioitem/index.vue.d.ts +13 -0
- package/dist/types/components/radioitem/model.d.ts +33 -0
- package/dist/types/components/range/index.vue.d.ts +13 -0
- package/dist/types/components/rate/index.vue.d.ts +13 -0
- package/dist/types/components/row/index.vue.d.ts +13 -0
- package/dist/types/components/searchbar/index.vue.d.ts +13 -0
- package/dist/types/components/searchbar/type.d.ts +5 -0
- package/dist/types/components/shortpassword/index.vue.d.ts +13 -0
- package/dist/types/components/sidenavbar/index.vue.d.ts +13 -0
- package/dist/types/components/sidenavbaritem/index.vue.d.ts +13 -0
- package/dist/types/components/signature/index.vue.d.ts +13 -0
- package/dist/types/components/skeleton/common.d.ts +57 -0
- package/dist/types/components/skeleton/index.vue.d.ts +13 -0
- package/dist/types/components/sku/components/SkuHeader.vue.d.ts +13 -0
- package/dist/types/components/sku/components/SkuOperate.vue.d.ts +13 -0
- package/dist/types/components/sku/components/SkuSelect.vue.d.ts +13 -0
- package/dist/types/components/sku/components/SkuStepper.vue.d.ts +13 -0
- package/dist/types/components/sku/index.vue.d.ts +13 -0
- package/dist/types/components/step/index.vue.d.ts +13 -0
- package/dist/types/components/steps/index.vue.d.ts +13 -0
- package/dist/types/components/sticky/index.vue.d.ts +13 -0
- package/dist/types/components/subsidenavbar/index.vue.d.ts +13 -0
- package/dist/types/components/swipe/index.vue.d.ts +13 -0
- package/dist/types/components/swipe/type.d.ts +1 -0
- package/dist/types/components/swiper/index.vue.d.ts +13 -0
- package/dist/types/components/swiper/use-touch.d.ts +16 -0
- package/dist/types/components/swiperitem/index.vue.d.ts +13 -0
- package/dist/types/components/switch/common.d.ts +50 -0
- package/dist/types/components/switch/index.vue.d.ts +13 -0
- package/dist/types/components/switchitem/index.vue.d.ts +13 -0
- package/dist/types/components/tabbar/index.vue.d.ts +13 -0
- package/dist/types/components/tabbaritem/index.vue.d.ts +13 -0
- package/dist/types/components/table/common.d.ts +52 -0
- package/dist/types/components/table/index.vue.d.ts +13 -0
- package/dist/types/components/table/renderColumn.d.ts +11 -0
- package/dist/types/components/table/types.d.ts +15 -0
- package/dist/types/components/tabpane/index.vue.d.ts +13 -0
- package/dist/types/components/tabs/index.vue.d.ts +13 -0
- package/dist/types/components/tabs/type.d.ts +1 -0
- package/dist/types/components/tag/index.vue.d.ts +13 -0
- package/dist/types/components/tag/type.d.ts +1 -0
- package/dist/types/components/textarea/index.vue.d.ts +13 -0
- package/dist/types/components/textareaitem/index.vue.d.ts +13 -0
- package/dist/types/components/timedetail/index.vue.d.ts +13 -0
- package/dist/types/components/timepannel/index.vue.d.ts +13 -0
- package/dist/types/components/timeselect/index.vue.d.ts +13 -0
- package/dist/types/components/toast/index.d.ts +12 -0
- package/dist/types/components/toast/index.vue.d.ts +13 -0
- package/dist/types/components/uploader/index.vue.d.ts +13 -0
- package/dist/types/components/uploader/type.d.ts +14 -0
- package/dist/types/components/uploader/uploader.d.ts +22 -0
- package/dist/types/components/video/index.vue.d.ts +13 -0
- package/dist/types/components/watermark/index.vue.d.ts +13 -0
- package/dist/types/index.d.ts +119 -0
- package/dist/types/interface.d.ts +24 -0
- package/dist/types/main.d.ts +17 -0
- package/dist/types/utils/commons.d.ts +16 -0
- package/dist/types/utils/create/component.d.ts +18 -0
- package/dist/types/utils/create/index.d.ts +1 -0
- package/dist/types/utils/date.d.ts +16 -0
- package/dist/types/utils/domain/broadcast.d.ts +28 -0
- package/dist/types/utils/domain/domain.d.ts +46 -0
- package/dist/types/utils/domain/events.d.ts +14 -0
- package/dist/types/utils/domain/group.d.ts +17 -0
- package/dist/types/utils/domain/index.d.ts +5 -0
- package/dist/types/utils/domain/item.d.ts +15 -0
- package/dist/types/utils/domain/page.d.ts +25 -0
- package/dist/types/utils/domain/validator.d.ts +56 -0
- package/dist/types/utils/functions.d.ts +3 -0
- package/dist/types/utils/px.d.ts +2 -0
- package/dist/types/utils/types.d.ts +9 -0
- package/dist/types/utils/unique-id.d.ts +5 -0
- package/dist/types/utils/use-expose/index.d.ts +1 -0
- package/dist/types/utils/use-rect/index.d.ts +11 -0
- package/dist/types/utils/use-relation/index.d.ts +3 -0
- package/dist/types/utils/use-relation/useInject.d.ts +14 -0
- package/dist/types/utils/use-relation/useProvide.d.ts +8 -0
- package/dist/types/utils/use-relation/useRelation.d.ts +1 -0
- package/dist/types/utils/use-touch/index.d.ts +18 -0
- package/package.json +36 -75
- package/README.md +0 -73
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -3
- package/dist/static/font/2a312d2206af9eefb8dc.ttf +0 -0
- package/dist/static/font/4fd20882d9cbe2fdc5b8.ttf +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TabsSize = 'large' | 'normal' | 'small';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TagType = 'primary' | 'success' | 'danger' | 'warning';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Toast from './index.vue';
|
|
2
|
+
export declare const ToastFunction: {
|
|
3
|
+
text(msg: string, opts?: {}): any;
|
|
4
|
+
success(msg: string, opts?: {}): any;
|
|
5
|
+
fail(msg: string, opts?: {}): any;
|
|
6
|
+
warn(msg: string, opts?: {}): any;
|
|
7
|
+
loading(msg: string, opts?: {}): any;
|
|
8
|
+
hide(id?: string | undefined): void;
|
|
9
|
+
install(app: any): void;
|
|
10
|
+
};
|
|
11
|
+
export { Toast };
|
|
12
|
+
export default ToastFunction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type SizeType = 'original' | 'compressed';
|
|
2
|
+
export declare type SourceType = 'album' | 'camera' | 'user' | 'environment';
|
|
3
|
+
export declare type FileItemStatus = 'ready' | 'uploading' | 'success' | 'error';
|
|
4
|
+
export declare class FileItem {
|
|
5
|
+
status: FileItemStatus;
|
|
6
|
+
message: string;
|
|
7
|
+
uid: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
path?: string;
|
|
12
|
+
percentage: string | number;
|
|
13
|
+
formData: any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare class UploadOptions {
|
|
2
|
+
url: string;
|
|
3
|
+
name: string;
|
|
4
|
+
fileType?: string | undefined;
|
|
5
|
+
formData?: FormData;
|
|
6
|
+
method: string;
|
|
7
|
+
xhrState: number;
|
|
8
|
+
timeout: number;
|
|
9
|
+
headers: {};
|
|
10
|
+
withCredentials: boolean;
|
|
11
|
+
onStart?: Function;
|
|
12
|
+
taroFilePath?: string;
|
|
13
|
+
onProgress?: Function;
|
|
14
|
+
onSuccess?: Function;
|
|
15
|
+
onFailure?: Function;
|
|
16
|
+
}
|
|
17
|
+
export declare class Uploader {
|
|
18
|
+
options: UploadOptions;
|
|
19
|
+
constructor(options: UploadOptions);
|
|
20
|
+
upload(): void;
|
|
21
|
+
uploadTaro(uploadFile: Function, env: string): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { App, PropType, CSSProperties } from 'vue';
|
|
2
|
+
declare type Install<T> = T & {
|
|
3
|
+
install(app: App): void;
|
|
4
|
+
};
|
|
5
|
+
declare const _sfc_main: Install< import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>>;
|
|
6
|
+
export default _sfc_main;
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalComponents {
|
|
10
|
+
Fox : typeof _sfc_main;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { FoxUIApp } from './main';
|
|
2
|
+
import Page from './components/page/index.vue';
|
|
3
|
+
import Header from './components/header/index.vue';
|
|
4
|
+
import Footer from './components/footer/index.vue';
|
|
5
|
+
import Content from './components/content/index.vue';
|
|
6
|
+
import Group from './components/group/index.vue';
|
|
7
|
+
import Item from './components/item/index.vue';
|
|
8
|
+
import Placeholder from './components/placeholder/index.vue';
|
|
9
|
+
import InputItem from './components/inputitem/index.vue';
|
|
10
|
+
import MoneyItem from './components/moneyitem/index.vue';
|
|
11
|
+
import TextareaItem from './components/textareaitem/index.vue';
|
|
12
|
+
import Textarea from './components/textarea/index.vue';
|
|
13
|
+
import PickerItem from './components/pickeritem/index.vue';
|
|
14
|
+
import CascaderItem from './components/cascaderitem/index.vue';
|
|
15
|
+
import DateItem from './components/dateitem/index.vue';
|
|
16
|
+
import CalendarItem from './components/calendaritem/index.vue';
|
|
17
|
+
import Radio from './components/radio/index.vue';
|
|
18
|
+
import RadioItem from './components/radioitem/index.vue';
|
|
19
|
+
import Checkbox from './components/checkbox/index.vue';
|
|
20
|
+
import CheckboxItem from './components/checkboxitem/index.vue';
|
|
21
|
+
import SwitchItem from './components/switchitem/index.vue';
|
|
22
|
+
import hinttext from './components/hinttext/index.vue';
|
|
23
|
+
import LinkItem from './components/linkitem/index.vue';
|
|
24
|
+
import Button from './components/button/index.vue';
|
|
25
|
+
import Cell from './components/cell/index.vue';
|
|
26
|
+
import CellGroup from './components/cellgroup/index.vue';
|
|
27
|
+
import Icon from './components/icon/index.vue';
|
|
28
|
+
import OverLay from './components/overlay/index.vue';
|
|
29
|
+
import Popup from './components/popup/index.vue';
|
|
30
|
+
import Image from './components/image/index.vue';
|
|
31
|
+
import Layout from './components/layout/index.vue';
|
|
32
|
+
import Col from './components/col/index.vue';
|
|
33
|
+
import Row from './components/row/index.vue';
|
|
34
|
+
import Sticky from './components/sticky/index.vue';
|
|
35
|
+
import Divider from './components/divider/index.vue';
|
|
36
|
+
import Grid from './components/grid/index.vue';
|
|
37
|
+
import GridItem from './components/griditem/index.vue';
|
|
38
|
+
import Navbar from './components/navbar/index.vue';
|
|
39
|
+
import FixedNav from './components/fixednav/index.vue';
|
|
40
|
+
import Menu from './components/menu/index.vue';
|
|
41
|
+
import MenuItem from './components/menuitem/index.vue';
|
|
42
|
+
import Tabbar from './components/tabbar/index.vue';
|
|
43
|
+
import TabbarItem from './components/tabbaritem/index.vue';
|
|
44
|
+
import Elevator from './components/elevator/index.vue';
|
|
45
|
+
import Pagination from './components/pagination/index.vue';
|
|
46
|
+
import Tabs from './components/tabs/index.vue';
|
|
47
|
+
import TabPane from './components/tabpane/index.vue';
|
|
48
|
+
import Indicator from './components/indicator/index.vue';
|
|
49
|
+
import SideNavBar from './components/sidenavbar/index.vue';
|
|
50
|
+
import SideNavBarItem from './components/sidenavbaritem/index.vue';
|
|
51
|
+
import SubSideNavBar from './components/subsidenavbar/index.vue';
|
|
52
|
+
import Range from './components/range/index.vue';
|
|
53
|
+
import SearchBar from './components/searchbar/index.vue';
|
|
54
|
+
import Cascader from './components/cascader/index.vue';
|
|
55
|
+
import Calendar from './components/calendar/index.vue';
|
|
56
|
+
import DatePicker from './components/datepicker/index.vue';
|
|
57
|
+
import InputNumber from './components/inputnumber/index.vue';
|
|
58
|
+
import Rate from './components/rate/index.vue';
|
|
59
|
+
import Picker from './components/picker/index.vue';
|
|
60
|
+
import ShortPassword from './components/shortpassword/index.vue';
|
|
61
|
+
import Uploader from './components/uploader/index.vue';
|
|
62
|
+
import NumberKeyboard from './components/numberkeyboard/index.vue';
|
|
63
|
+
import Swipe from './components/swipe/index.vue';
|
|
64
|
+
import ActionSheet from './components/actionsheet/index.vue';
|
|
65
|
+
import BackTop from './components/backtop/index.vue';
|
|
66
|
+
import Drag from './components/drag/index.vue';
|
|
67
|
+
import Dialog from './components/dialog/index';
|
|
68
|
+
import InfiniteLoading from './components/infiniteloading/index.vue';
|
|
69
|
+
import Notify from './components/notify/index';
|
|
70
|
+
import Switch from './components/switch/index.vue';
|
|
71
|
+
import Toast from './components/toast/index';
|
|
72
|
+
import Audio from './components/audio/index.vue';
|
|
73
|
+
import AudioOperate from './components/audiooperate/index.vue';
|
|
74
|
+
import Avatar from './components/avatar/index.vue';
|
|
75
|
+
import AvatarGroup from './components/avatargroup/index.vue';
|
|
76
|
+
import List from './components/list/index.vue';
|
|
77
|
+
import Progress from './components/progress/index.vue';
|
|
78
|
+
import CircleProgress from './components/circleprogress/index.vue';
|
|
79
|
+
import NoticeBar from './components/noticebar/index.vue';
|
|
80
|
+
import Empty from './components/empty/index.vue';
|
|
81
|
+
import Video from './components/video/index.vue';
|
|
82
|
+
import Steps from './components/steps/index.vue';
|
|
83
|
+
import Step from './components/step/index.vue';
|
|
84
|
+
import Swiper from './components/swiper/index.vue';
|
|
85
|
+
import SwiperItem from './components/swiperitem/index.vue';
|
|
86
|
+
import Price from './components/price/index.vue';
|
|
87
|
+
import ImagePreview from './components/imagepreview/index';
|
|
88
|
+
import CountUp from './components/countup/index.vue';
|
|
89
|
+
import CountDown from './components/countdown/index.vue';
|
|
90
|
+
import Badge from './components/badge/index.vue';
|
|
91
|
+
import Tag from './components/tag/index.vue';
|
|
92
|
+
import Popover from './components/popover/index.vue';
|
|
93
|
+
import Skeleton from './components/skeleton/index.vue';
|
|
94
|
+
import Collapse from './components/collapse/index.vue';
|
|
95
|
+
import CollapseItem from './components/collapseitem/index.vue';
|
|
96
|
+
import Table from './components/table/index.vue';
|
|
97
|
+
import Ellipsis from './components/ellipsis/index.vue';
|
|
98
|
+
import Animate from './components/animate/index.vue';
|
|
99
|
+
import WaterMark from './components/watermark/index.vue';
|
|
100
|
+
import Address from './components/address/index.vue';
|
|
101
|
+
import Barrage from './components/barrage/index.vue';
|
|
102
|
+
import Signature from './components/signature/index.vue';
|
|
103
|
+
import TimeSelect from './components/timeselect/index.vue';
|
|
104
|
+
import TimePannel from './components/timepannel/index.vue';
|
|
105
|
+
import TimeDetail from './components/timedetail/index.vue';
|
|
106
|
+
import Sku from './components/sku/index.vue';
|
|
107
|
+
import Card from './components/card/index.vue';
|
|
108
|
+
import Ecard from './components/ecard/index.vue';
|
|
109
|
+
import AddressList from './components/addresslist/index.vue';
|
|
110
|
+
import Category from './components/category/index.vue';
|
|
111
|
+
import CategoryPane from './components/categorypane/index.vue';
|
|
112
|
+
import Comment from './components/comment/index.vue';
|
|
113
|
+
export * from './utils/commons';
|
|
114
|
+
export * from './utils/functions';
|
|
115
|
+
export * from './utils/date';
|
|
116
|
+
export * from './utils/unique-id';
|
|
117
|
+
export { Page, Header, Footer, Content, Group, Item, Placeholder, InputItem, MoneyItem, TextareaItem, Textarea, PickerItem, CascaderItem, DateItem, CalendarItem, Radio, RadioItem, Checkbox, CheckboxItem, SwitchItem, hinttext, LinkItem, Button, Cell, CellGroup, Icon, OverLay, Popup, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SideNavBarItem, SubSideNavBar, Range, SearchBar, Cascader, Calendar, DatePicker, InputNumber, Rate, Picker, ShortPassword, Uploader, NumberKeyboard, Swipe, ActionSheet, BackTop, Drag, Dialog, InfiniteLoading, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Ellipsis, Animate, WaterMark, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment };
|
|
118
|
+
declare const _default: FoxUIApp;
|
|
119
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { App, ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { Rect } from './utils/types';
|
|
3
|
+
import { ScopeGetter } from './api';
|
|
4
|
+
import { GroupLayout } from './utils/domain/group';
|
|
5
|
+
import { SafeAreaInset, PageLayout, Domain } from './utils/domain';
|
|
6
|
+
export interface FoxUIOptions {
|
|
7
|
+
safeAreaInset?: SafeAreaInset;
|
|
8
|
+
pageLayout?: PageLayout;
|
|
9
|
+
headerPadding?: Rect;
|
|
10
|
+
contentPadding?: Rect;
|
|
11
|
+
groupLaout?: GroupLayout;
|
|
12
|
+
labelWidth?: number | string;
|
|
13
|
+
[propName: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export interface FoxUI {
|
|
16
|
+
version: string;
|
|
17
|
+
install(app: App, options: FoxUIOptions): void;
|
|
18
|
+
setScopeGetter(getter: ScopeGetter): void;
|
|
19
|
+
setAPI(name: string, func: any, scope?: string): void;
|
|
20
|
+
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
21
|
+
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
22
|
+
clearScopeAPI(scope: string): void;
|
|
23
|
+
getRootDomain(): Domain;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { App, ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { Domain } from './utils/domain';
|
|
3
|
+
import { ScopeGetter } from './api';
|
|
4
|
+
import { FoxUI, FoxUIOptions } from './interface';
|
|
5
|
+
export declare class FoxUIApp implements FoxUI {
|
|
6
|
+
private packages;
|
|
7
|
+
private _version;
|
|
8
|
+
get version(): string;
|
|
9
|
+
constructor(packages: any[], version: string);
|
|
10
|
+
install(app: App, options: FoxUIOptions): void;
|
|
11
|
+
setScopeGetter(getter: ScopeGetter): void;
|
|
12
|
+
setAPI(name: string, api: any, scope?: string): void;
|
|
13
|
+
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
14
|
+
batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
15
|
+
clearScopeAPI(scope: string): void;
|
|
16
|
+
getRootDomain(): Domain;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { isArray, isMap, isSet, isDate, isFunction, isString, isSymbol, isObject, isPromise, isPlainObject, isESModule, isEqual, toTypeString, toBoolean, toNumber, extend, clone } from '@fox-js/fox';
|
|
2
|
+
export { numberFormat, unNumberFormat, multiply, divide, negate, compareTo } from '@fox-js/big-decimal';
|
|
3
|
+
export declare const isBrowser: boolean;
|
|
4
|
+
export declare const raf: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | typeof setTimeout;
|
|
5
|
+
export declare function isRegExp(v: unknown): v is RegExp;
|
|
6
|
+
export declare const isEmptyString: (v: unknown) => boolean;
|
|
7
|
+
export declare function isNumberString(value: string): boolean;
|
|
8
|
+
export declare function integerLength(value: string | number): number;
|
|
9
|
+
export declare function decimalLength(value: string | number): number;
|
|
10
|
+
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
11
|
+
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
12
|
+
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
13
|
+
export declare function valueLength(val: unknown): number;
|
|
14
|
+
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
15
|
+
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
16
|
+
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { App, DefineComponent, ComponentPropsOptions, ExtractPropTypes, SetupContext, RenderFunction, Component } from 'vue';
|
|
2
|
+
export declare function createComponent(name: string): {
|
|
3
|
+
componentName: string;
|
|
4
|
+
scope: string;
|
|
5
|
+
create<PropsOptions extends Readonly<ComponentPropsOptions<{
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
}>>, Props extends Readonly<ExtractPropTypes<PropsOptions>>>(_component: {
|
|
8
|
+
[optionKey: string]: any;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
baseName?: string | undefined;
|
|
11
|
+
install?: ((vue: App) => void) | undefined;
|
|
12
|
+
props?: PropsOptions | undefined;
|
|
13
|
+
components?: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
14
|
+
setup?: ((props: Props, setupContext: SetupContext) => RenderFunction | Record<string, any> | any) | undefined;
|
|
15
|
+
emits?: string[] | undefined;
|
|
16
|
+
}): DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
17
|
+
createDemo(_component: any): DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createComponent } from './component';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const DateUtils: {
|
|
2
|
+
format(date: Date, template: string): string;
|
|
3
|
+
parser(str: string, template: string): Date;
|
|
4
|
+
isLeapYear(y: number): boolean;
|
|
5
|
+
getWhatDay(year: number, month: number, day: number): string;
|
|
6
|
+
getMonthPreDay(year: number, month: number): number;
|
|
7
|
+
getMonthDays(year: string, month: string): number;
|
|
8
|
+
getNumTwoBit(n: number): string;
|
|
9
|
+
date2Str: (date: Date, split?: string | undefined) => string;
|
|
10
|
+
getDay(i: number): string;
|
|
11
|
+
compareDate(date1: string | Date, date2: string | Date): boolean;
|
|
12
|
+
isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
|
|
13
|
+
inScope4Day(date: Date, startDate: Date, span: number): boolean;
|
|
14
|
+
inScope4Month(date: Date, startDate: Date, span: number): boolean;
|
|
15
|
+
};
|
|
16
|
+
export default DateUtils;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
|
2
|
+
export declare const BroadcastKey: unique symbol;
|
|
3
|
+
export interface Matched {
|
|
4
|
+
name?: string | RegExp;
|
|
5
|
+
maxLevel?: number;
|
|
6
|
+
level?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare type Result = Promise<any> | any;
|
|
9
|
+
export declare type Results = Result[];
|
|
10
|
+
export interface BroadcastCallback {
|
|
11
|
+
(...args: any[]): Result;
|
|
12
|
+
}
|
|
13
|
+
export declare class Broadcast {
|
|
14
|
+
private parent;
|
|
15
|
+
private children;
|
|
16
|
+
private callbacks;
|
|
17
|
+
private instance;
|
|
18
|
+
private name?;
|
|
19
|
+
constructor(parent: Broadcast | null, instance: ComponentInternalInstance, name?: string);
|
|
20
|
+
private addChild;
|
|
21
|
+
private removeChild;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
emit(matched: Matched, action: string, ...args: any[]): Results;
|
|
24
|
+
on(action: string, callback: BroadcastCallback): void;
|
|
25
|
+
}
|
|
26
|
+
export declare function createBroadcast(instance: ComponentInternalInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
|
|
27
|
+
export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast | null;
|
|
28
|
+
export declare function useBroadcast(proxy?: ComponentPublicInstance | null): Broadcast | null;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentInternalInstance } from 'vue';
|
|
2
|
+
import { Broadcast, BroadcastCallback } from './broadcast';
|
|
3
|
+
import { ValidateSchema, Descriptor } from './validator';
|
|
4
|
+
import { EventListener } from './events';
|
|
5
|
+
export declare const DomainKey: unique symbol;
|
|
6
|
+
export declare class Domain {
|
|
7
|
+
private _parent;
|
|
8
|
+
get parent(): Domain | null;
|
|
9
|
+
set parent(val: Domain | null);
|
|
10
|
+
private _name;
|
|
11
|
+
get name(): string | null;
|
|
12
|
+
private _broadcast;
|
|
13
|
+
get broadcast(): Broadcast | null;
|
|
14
|
+
set broadcast(val: Broadcast | null);
|
|
15
|
+
private _validateSchema;
|
|
16
|
+
get validateSchema(): ValidateSchema | null;
|
|
17
|
+
set validateSchema(val: ValidateSchema | null);
|
|
18
|
+
private _props;
|
|
19
|
+
constructor(name?: string | null);
|
|
20
|
+
destroy(): void;
|
|
21
|
+
merge(props: Record<string | number, any>, ignores?: any[]): void;
|
|
22
|
+
has(key: string | number): boolean;
|
|
23
|
+
delete(key: string | number): void;
|
|
24
|
+
set(key: string | number, value: any): void;
|
|
25
|
+
get(key: string | number, defaultValue?: any): any;
|
|
26
|
+
getForParent(key: string | number, defaultValue?: any): any;
|
|
27
|
+
getForSelf(key: string | number): any;
|
|
28
|
+
getAll(key: string | number): any[];
|
|
29
|
+
}
|
|
30
|
+
export declare function getRootDomain(): Domain;
|
|
31
|
+
export declare function useDomain(instance?: ComponentInternalInstance | null): Domain | null;
|
|
32
|
+
export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
|
|
33
|
+
export interface DomainItem {
|
|
34
|
+
broadcast: Broadcast;
|
|
35
|
+
validateSchema: ValidateSchema;
|
|
36
|
+
emitEvent: {
|
|
37
|
+
(type: string, ...args: any[]): void;
|
|
38
|
+
};
|
|
39
|
+
onEvent: {
|
|
40
|
+
(type: string, listener: EventListener): void;
|
|
41
|
+
};
|
|
42
|
+
offEvent: {
|
|
43
|
+
(type: string, listener: EventListener): void;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
export declare const EventEmitterKey: unique symbol;
|
|
3
|
+
export interface EventListener {
|
|
4
|
+
(...args: any[]): void;
|
|
5
|
+
}
|
|
6
|
+
export declare class EventEmitter {
|
|
7
|
+
private register;
|
|
8
|
+
private proxy;
|
|
9
|
+
constructor(proxy: ComponentPublicInstance);
|
|
10
|
+
destroy(): void;
|
|
11
|
+
off(type: string, listener: EventListener): void;
|
|
12
|
+
on(type: string, listener: EventListener): void;
|
|
13
|
+
emit(type: string, ...args: any[]): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Domain } from './domain';
|
|
3
|
+
export declare function injectGroupScope(): boolean;
|
|
4
|
+
export declare function provideGroupScope(flag?: boolean): void;
|
|
5
|
+
export interface GroupLayout {
|
|
6
|
+
width: number;
|
|
7
|
+
column: number;
|
|
8
|
+
gutter: number;
|
|
9
|
+
itemWidth: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function createGroupState(domain: Domain): {
|
|
12
|
+
layout: Ref<GroupLayout>;
|
|
13
|
+
passport: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function updateGroupLayout(domain: Domain, width: number | string, column?: number | string, gutter?: number | string, immediate?: boolean): void;
|
|
16
|
+
export declare function getGroupLayout(domain: Domain, inGroupItem?: boolean): Ref<GroupLayout>;
|
|
17
|
+
export declare function getItemWidth(domain: Domain, span?: number | string, inGroupItem?: boolean): number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref, UnwrapRef } from 'vue';
|
|
2
|
+
export declare enum PriorityPolicy {
|
|
3
|
+
Parent = 0,
|
|
4
|
+
Near = 1
|
|
5
|
+
}
|
|
6
|
+
export interface AcceptFilter {
|
|
7
|
+
(value: any): boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
|
|
10
|
+
export declare function readonlyProperty(source: Ref): Ref;
|
|
11
|
+
export declare function disabledProperty(source: Ref): Ref;
|
|
12
|
+
export interface ValueFormat<T, K> {
|
|
13
|
+
(value: T): K;
|
|
14
|
+
}
|
|
15
|
+
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Domain } from './domain';
|
|
2
|
+
export interface SafeAreaInset {
|
|
3
|
+
left: number | string;
|
|
4
|
+
top: number | string;
|
|
5
|
+
right: number | string;
|
|
6
|
+
bottom: number | string;
|
|
7
|
+
}
|
|
8
|
+
export interface PageLayout {
|
|
9
|
+
width: number | string;
|
|
10
|
+
height: number | string;
|
|
11
|
+
headerHeight: number | string;
|
|
12
|
+
footerHeight: number | string;
|
|
13
|
+
}
|
|
14
|
+
export declare function createPageState(domain: Domain, source?: Record<string, number>): any;
|
|
15
|
+
export declare function getPageHeaderHeight(domain: Domain): number;
|
|
16
|
+
export declare function setPageHeaderHeight(domain: Domain, height: number): void;
|
|
17
|
+
export declare function getPageFooterHeight(domain: Domain): number;
|
|
18
|
+
export declare function setPageFooterHeight(domain: Domain, height: number): void;
|
|
19
|
+
export declare function getPageContentHeight(domain: Domain): number;
|
|
20
|
+
export declare function setPageContentHeight(domain: Domain, height: number): void;
|
|
21
|
+
export declare function getPageContentWidth(domain: Domain): number;
|
|
22
|
+
export declare function setPageContentWidth(domain: Domain, width: number): void;
|
|
23
|
+
export declare function isSubPage(domain: Domain): boolean;
|
|
24
|
+
export declare function getParentPageContentHeight(domain: Domain): number;
|
|
25
|
+
export declare function getParentPageContentWidth(domain: Domain): number;
|