@fox-js/foxui 4.0.1-1 → 4.0.1-4
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 +3724 -2473
- package/dist/foxui.umd.js +11 -12
- package/dist/locale/index.cjs.js +1 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/types/components/calendaritem/common.d.ts +1 -1
- package/dist/types/components/content/common.d.ts +16 -0
- package/dist/types/components/fixednav/common.d.ts +51 -0
- package/dist/types/components/footer/common.d.ts +22 -0
- package/dist/types/components/footer/type.d.ts +1 -0
- package/dist/types/components/header/common.d.ts +87 -0
- package/dist/types/components/{overlay/index.taro.vue.d.ts → imagepreview/imagePreviewItem.vue.d.ts} +0 -0
- package/dist/types/components/item/common.d.ts +1 -1
- package/dist/types/components/linkitem/common.d.ts +1 -1
- package/dist/types/components/page/common.d.ts +78 -0
- package/dist/types/components/table/common.d.ts +3 -0
- package/dist/types/components/table/types.d.ts +2 -0
- package/dist/types/components/uploader/uploader.d.ts +2 -0
- package/dist/types/components/watermark/index.vue.d.ts +13 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interface.d.ts +4 -1
- package/dist/types/main.d.ts +1 -0
- package/dist/types/utils/commons.d.ts +1 -0
- package/dist/types/utils/domain/page.d.ts +35 -11
- package/dist/types/utils/domain/validator.d.ts +3 -3
- package/dist/types/utils/use-expose/index.d.ts +2 -1
- package/package.json +9 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType, CSSProperties } from 'vue';
|
|
2
|
+
import { Padding } from '../../utils/domain';
|
|
3
|
+
export declare function component(componentName: string, scope: string): {
|
|
4
|
+
props: {
|
|
5
|
+
padding: {
|
|
6
|
+
type: PropType<Padding>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
setup(props: Record<string, any>): {
|
|
11
|
+
classes: import("vue").ComputedRef<{
|
|
12
|
+
[x: string]: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
styles: import("vue").ComputedRef<CSSProperties>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const component: (componentName: string, scope: string) => {
|
|
3
|
+
props: {
|
|
4
|
+
visible: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
overlay: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
navList: {
|
|
13
|
+
default: () => never[];
|
|
14
|
+
type: PropType<any[]>;
|
|
15
|
+
};
|
|
16
|
+
activeColor: {
|
|
17
|
+
default: string;
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
activeText: {
|
|
21
|
+
default: string;
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
unActiveText: {
|
|
25
|
+
default: string;
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
position: {
|
|
29
|
+
default: () => {
|
|
30
|
+
top: string;
|
|
31
|
+
bottom: string;
|
|
32
|
+
};
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
};
|
|
35
|
+
type: {
|
|
36
|
+
default: string;
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
emits: string[];
|
|
41
|
+
setup(props: any, { emit }: any): {
|
|
42
|
+
classes: import("vue").ComputedRef<{
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
[x: number]: boolean;
|
|
45
|
+
active: any;
|
|
46
|
+
}>;
|
|
47
|
+
updateValue: (value?: boolean) => void;
|
|
48
|
+
selected: (item: any, event: Event) => void;
|
|
49
|
+
current: import("vue").Ref<number>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropType, SetupContext, CSSProperties } from 'vue';
|
|
2
|
+
import { Padding } from '../../utils/domain';
|
|
3
|
+
import type { AlignType } from './type';
|
|
4
|
+
export declare function component(componentName: string, scope: string): {
|
|
5
|
+
props: {
|
|
6
|
+
padding: {
|
|
7
|
+
type: PropType<Padding>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
align: {
|
|
11
|
+
type: PropType<AlignType>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
setup(props: Record<string, any>, context: SetupContext): {
|
|
17
|
+
classes: import("vue").ComputedRef<{
|
|
18
|
+
[x: string]: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
styles: import("vue").ComputedRef<CSSProperties>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type AlignType = 'left' | 'center' | 'right';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PropType, SetupContext, CSSProperties } from 'vue';
|
|
2
|
+
import { Padding } from '../../utils/domain';
|
|
3
|
+
import { IconParams, Tab } from './types';
|
|
4
|
+
export declare const component: (componentName: string, scope: string) => {
|
|
5
|
+
props: {
|
|
6
|
+
padding: {
|
|
7
|
+
type: PropType<Padding>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
leftShow: {
|
|
11
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
12
|
+
required: boolean;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
leftIcon: {
|
|
16
|
+
type: PropType<string | IconParams>;
|
|
17
|
+
required: boolean;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
leftText: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: boolean;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
titleShow: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: boolean;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
defaultIndex: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
tabs: {
|
|
35
|
+
type: PropType<Tab[]>;
|
|
36
|
+
default: () => never[];
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: boolean;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
titleIcon: {
|
|
44
|
+
type: PropType<string | IconParams>;
|
|
45
|
+
required: boolean;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
rightShow: {
|
|
49
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
50
|
+
required: boolean;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
rightIcon: {
|
|
54
|
+
type: PropType<string | IconParams>;
|
|
55
|
+
required: boolean;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
rightText: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
required: boolean;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
emits: string[];
|
|
65
|
+
setup(props: Record<string, any>, context: SetupContext): {
|
|
66
|
+
classes: import("vue").ComputedRef<{
|
|
67
|
+
[x: string]: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
styles: import("vue").ComputedRef<CSSProperties>;
|
|
70
|
+
activeIndex: import("vue").Ref<string | number>;
|
|
71
|
+
leftStyles: import("vue").ComputedRef<CSSProperties>;
|
|
72
|
+
rightStyles: import("vue").ComputedRef<CSSProperties>;
|
|
73
|
+
tabStyles: import("vue").ComputedRef<CSSProperties>;
|
|
74
|
+
mLeftShow: import("vue").ComputedRef<any>;
|
|
75
|
+
mTitleShow: import("vue").ComputedRef<any>;
|
|
76
|
+
mTabsShow: import("vue").ComputedRef<any>;
|
|
77
|
+
mRightShow: import("vue").ComputedRef<any>;
|
|
78
|
+
mLeftIcon: import("vue").ComputedRef<Record<string, any>>;
|
|
79
|
+
mTitleIcon: import("vue").ComputedRef<Record<string, any>>;
|
|
80
|
+
mRightIcon: import("vue").ComputedRef<Record<string, any>>;
|
|
81
|
+
handleLeft: () => void;
|
|
82
|
+
handleCenter: () => void;
|
|
83
|
+
handleRight: () => void;
|
|
84
|
+
handleRightText: () => void;
|
|
85
|
+
handleTabChange: (id: number | string, name: string) => void;
|
|
86
|
+
};
|
|
87
|
+
};
|
package/dist/types/components/{overlay/index.taro.vue.d.ts → imagepreview/imagePreviewItem.vue.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { CSSProperties, PropType, SetupContext } from 'vue';
|
|
2
|
+
import { SafeAreaInset } from '../../utils/domain';
|
|
3
|
+
import { Rect } from '../../utils/types';
|
|
4
|
+
export declare const component: (componentName: string, scope: string) => {
|
|
5
|
+
props: {
|
|
6
|
+
name: {
|
|
7
|
+
type: PropType<string>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
width: {
|
|
12
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
safeAreaInset: {
|
|
20
|
+
type: PropType<SafeAreaInset>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
contentPadding: {
|
|
24
|
+
type: PropType<Rect>;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
headerPadding: {
|
|
28
|
+
type: PropType<Rect>;
|
|
29
|
+
required: boolean;
|
|
30
|
+
};
|
|
31
|
+
footerPadding: {
|
|
32
|
+
type: PropType<Rect>;
|
|
33
|
+
required: boolean;
|
|
34
|
+
};
|
|
35
|
+
headerHeight: {
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
|
+
required: boolean;
|
|
38
|
+
};
|
|
39
|
+
footerHeight: {
|
|
40
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
column: {
|
|
44
|
+
type: PropType<string | number>;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
47
|
+
gutter: {
|
|
48
|
+
type: PropType<string | number>;
|
|
49
|
+
required: boolean;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
53
|
+
required: boolean;
|
|
54
|
+
};
|
|
55
|
+
readonly: {
|
|
56
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
57
|
+
required: boolean;
|
|
58
|
+
};
|
|
59
|
+
labelPosition: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
required: boolean;
|
|
62
|
+
};
|
|
63
|
+
labelWidth: {
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
hasBorder: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
setup(props: Record<string, unknown>, context: SetupContext): {
|
|
73
|
+
classes: import("vue").ComputedRef<{
|
|
74
|
+
[x: string]: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
styles: import("vue").ComputedRef<CSSProperties>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -44,9 +44,12 @@ export declare const component: (componentName: string, scope: string) => {
|
|
|
44
44
|
'fox-table__main__head__tr--border': any;
|
|
45
45
|
};
|
|
46
46
|
getColumnItem: (value: string) => TableColumnProps;
|
|
47
|
+
getColumnItemStyle: (value: string) => any;
|
|
47
48
|
handleSorterClick: (item: TableColumnProps) => void;
|
|
48
49
|
sortDataItem: () => any;
|
|
49
50
|
t: (key: string | string[], ...args: unknown[]) => string;
|
|
51
|
+
stylehead: (item: TableColumnProps) => string;
|
|
52
|
+
stylecolumn: (item: TableColumnProps) => string;
|
|
50
53
|
curData: import("vue").Ref<any>;
|
|
51
54
|
};
|
|
52
55
|
};
|
|
@@ -3,6 +3,7 @@ export declare class UploadOptions {
|
|
|
3
3
|
name: string;
|
|
4
4
|
fileType?: string | undefined;
|
|
5
5
|
formData?: FormData;
|
|
6
|
+
sourceFile: any;
|
|
6
7
|
method: string;
|
|
7
8
|
xhrState: number;
|
|
8
9
|
timeout: number;
|
|
@@ -13,6 +14,7 @@ export declare class UploadOptions {
|
|
|
13
14
|
onProgress?: Function;
|
|
14
15
|
onSuccess?: Function;
|
|
15
16
|
onFailure?: Function;
|
|
17
|
+
beforeXhrUpload?: Function;
|
|
16
18
|
}
|
|
17
19
|
export declare class Uploader {
|
|
18
20
|
options: UploadOptions;
|
|
@@ -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
|
+
|
package/dist/types/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ import CollapseItem from './components/collapseitem/index.vue';
|
|
|
96
96
|
import Table from './components/table/index.vue';
|
|
97
97
|
import Ellipsis from './components/ellipsis/index.vue';
|
|
98
98
|
import Animate from './components/animate/index.vue';
|
|
99
|
+
import WaterMark from './components/watermark/index.vue';
|
|
99
100
|
import Address from './components/address/index.vue';
|
|
100
101
|
import Barrage from './components/barrage/index.vue';
|
|
101
102
|
import Signature from './components/signature/index.vue';
|
|
@@ -113,6 +114,6 @@ export * from './utils/commons';
|
|
|
113
114
|
export * from './utils/functions';
|
|
114
115
|
export * from './utils/date';
|
|
115
116
|
export * from './utils/unique-id';
|
|
116
|
-
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, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment };
|
|
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 };
|
|
117
118
|
declare const _default: FoxUIApp;
|
|
118
119
|
export default _default;
|
|
@@ -4,17 +4,20 @@ import { ScopeGetter } from './api';
|
|
|
4
4
|
import { GroupLayout } from './utils/domain/group';
|
|
5
5
|
import { SafeAreaInset, PageLayout, Domain } from './utils/domain';
|
|
6
6
|
export interface FoxUIOptions {
|
|
7
|
+
headerBarHeight?: number;
|
|
8
|
+
footerBarHeight?: number;
|
|
7
9
|
safeAreaInset?: SafeAreaInset;
|
|
8
10
|
pageLayout?: PageLayout;
|
|
9
11
|
headerPadding?: Rect;
|
|
10
12
|
contentPadding?: Rect;
|
|
11
|
-
|
|
13
|
+
groupLayout?: GroupLayout;
|
|
12
14
|
labelWidth?: number | string;
|
|
13
15
|
[propName: string]: any;
|
|
14
16
|
}
|
|
15
17
|
export interface FoxUI {
|
|
16
18
|
version: string;
|
|
17
19
|
install(app: App, options: FoxUIOptions): void;
|
|
20
|
+
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
18
21
|
setScopeGetter(getter: ScopeGetter): void;
|
|
19
22
|
setAPI(name: string, func: any, scope?: string): void;
|
|
20
23
|
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class FoxUIApp implements FoxUI {
|
|
|
8
8
|
get version(): string;
|
|
9
9
|
constructor(packages: any[], version: string);
|
|
10
10
|
install(app: App, options: FoxUIOptions): void;
|
|
11
|
+
initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
|
|
11
12
|
setScopeGetter(getter: ScopeGetter): void;
|
|
12
13
|
setAPI(name: string, api: any, scope?: string): void;
|
|
13
14
|
getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { isArray, isMap, isSet, isDate, isFunction, isString, isSymbol, isObject, isPromise, isPlainObject, isESModule, isEqual, toTypeString, toBoolean, toNumber, extend, clone } from '@fox-js/fox';
|
|
2
2
|
export { numberFormat, unNumberFormat, multiply, divide, negate, compareTo } from '@fox-js/big-decimal';
|
|
3
|
+
export declare const isBrowser: boolean;
|
|
3
4
|
export declare const raf: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | typeof setTimeout;
|
|
4
5
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
5
6
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
@@ -1,25 +1,49 @@
|
|
|
1
1
|
import { Domain } from './domain';
|
|
2
|
+
import { UnwrapNestedRefs } from 'vue';
|
|
2
3
|
export interface SafeAreaInset {
|
|
3
4
|
left: number | string;
|
|
4
5
|
top: number | string;
|
|
5
6
|
right: number | string;
|
|
6
7
|
bottom: number | string;
|
|
7
8
|
}
|
|
9
|
+
export interface Padding {
|
|
10
|
+
left: number | null;
|
|
11
|
+
top: number | null;
|
|
12
|
+
right: number | null;
|
|
13
|
+
bottom: number | null;
|
|
14
|
+
}
|
|
8
15
|
export interface PageLayout {
|
|
9
16
|
width: number | string;
|
|
10
17
|
height: number | string;
|
|
11
18
|
headerHeight: number | string;
|
|
12
19
|
footerHeight: number | string;
|
|
20
|
+
headerPadding?: Padding;
|
|
21
|
+
footerPadding?: Padding;
|
|
22
|
+
contentPadding?: Padding;
|
|
23
|
+
}
|
|
24
|
+
export interface PageState {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
headerHeight: number;
|
|
28
|
+
headerPadding: Padding;
|
|
29
|
+
footerHeight: number;
|
|
30
|
+
footerPadding: Padding;
|
|
31
|
+
contentHeight: number | string | null;
|
|
32
|
+
contentPadding: Padding;
|
|
33
|
+
safeAreaTop: number;
|
|
34
|
+
safeAreaBottom: number;
|
|
35
|
+
safeAreaLeft: number;
|
|
36
|
+
safeAreaRight: number;
|
|
37
|
+
headerMounted?: boolean;
|
|
38
|
+
footerMounted?: boolean;
|
|
13
39
|
}
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
40
|
+
export declare function toPadding(rect: any): Padding;
|
|
41
|
+
export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number): void;
|
|
42
|
+
export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
|
|
43
|
+
export declare function usePageState(domain: Domain): PageState | null;
|
|
44
|
+
export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
|
|
45
|
+
export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
|
|
46
|
+
export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
|
|
47
|
+
export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
|
|
48
|
+
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
23
49
|
export declare function isSubPage(domain: Domain): boolean;
|
|
24
|
-
export declare function getParentPageContentHeight(domain: Domain): number;
|
|
25
|
-
export declare function getParentPageContentWidth(domain: Domain): number;
|
|
@@ -4,12 +4,12 @@ export interface ValidateHandler {
|
|
|
4
4
|
error?(errorMsg: string, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
5
5
|
reset?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
6
6
|
success?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
7
|
-
decorate?(
|
|
7
|
+
decorate?(newRule: Rule, oldRle: Rule, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
8
8
|
getValue?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): any;
|
|
9
9
|
}
|
|
10
10
|
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
11
11
|
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function deleteGlobalValidator(type: string): void;
|
|
13
13
|
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
14
14
|
export declare function getGlobalValidateCheckEvents(): string[];
|
|
15
15
|
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
@@ -40,7 +40,7 @@ export declare class ValidateSchema {
|
|
|
40
40
|
destroy(): void;
|
|
41
41
|
addChild(child: ValidateSchema): void;
|
|
42
42
|
removeChild(child: ValidateSchema): void;
|
|
43
|
-
private
|
|
43
|
+
private execHandler;
|
|
44
44
|
private decorate;
|
|
45
45
|
private success;
|
|
46
46
|
private error;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentInternalInstance } from 'vue';
|
|
2
|
+
export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fox-js/foxui",
|
|
3
|
-
"version": "4.0.1-
|
|
3
|
+
"version": "4.0.1-4",
|
|
4
4
|
"description": "FoxUI轻量级移动端组件库(支持小程序开发)",
|
|
5
5
|
"author": "jiangcheng",
|
|
6
6
|
"main": "dist/foxui.umd.js",
|
|
@@ -12,7 +12,14 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./style.css": "./dist/style.css",
|
|
14
14
|
"./dist/locale": {
|
|
15
|
-
"import":
|
|
15
|
+
"import": {
|
|
16
|
+
"node": "./dist/locale/index.cjs.js",
|
|
17
|
+
"default": "./dist/locale/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"node": "./dist/locale/index.cjs.js",
|
|
21
|
+
"default": "./dist/locale/index.cjs.js"
|
|
22
|
+
}
|
|
16
23
|
}
|
|
17
24
|
},
|
|
18
25
|
"style": "dist/style.css",
|