@fox-js/foxui 3.0.0 → 4.0.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/foxui.es.js +22919 -0
- package/dist/foxui.umd.js +21 -0
- package/dist/locale/index.d.ts +348 -0
- package/dist/locale/index.js +367 -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 +6 -0
- package/dist/types/components/address/index.vue.d.ts +6 -0
- package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +6 -0
- package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +6 -0
- package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +6 -0
- package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +6 -0
- package/dist/types/components/addresslist/index.vue.d.ts +6 -0
- package/dist/types/components/audio/index.vue.d.ts +6 -0
- package/dist/types/components/avatar/index.vue.d.ts +6 -0
- package/dist/types/components/avatargroup/index.vue.d.ts +6 -0
- package/dist/types/components/backtop/index.vue.d.ts +6 -0
- package/dist/types/components/badge/index.vue.d.ts +6 -0
- package/dist/types/components/barrage/index.vue.d.ts +6 -0
- package/dist/types/components/button/index.vue.d.ts +9 -0
- package/dist/types/components/calendar/index.vue.d.ts +67 -0
- package/dist/types/components/calendar/pane.vue.d.ts +6 -0
- package/dist/types/components/calendaritem/index.vue.d.ts +8 -0
- package/dist/types/components/card/index.vue.d.ts +6 -0
- package/dist/types/components/cascader/cascader-pane.vue.d.ts +6 -0
- package/dist/types/components/cascader/helper.d.ts +4 -0
- package/dist/types/components/cascader/index.vue.d.ts +104 -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 +6 -0
- package/dist/types/components/cascaderitem/model.d.ts +34 -0
- package/dist/types/components/category/index.vue.d.ts +6 -0
- package/dist/types/components/categorypane/index.vue.d.ts +6 -0
- package/dist/types/components/cell/index.vue.d.ts +6 -0
- package/dist/types/components/cellgroup/index.vue.d.ts +6 -0
- package/dist/types/components/checkbox/base-props.d.ts +55 -0
- package/dist/types/components/checkbox/index.vue.d.ts +8 -0
- package/dist/types/components/checkboxitem/index.vue.d.ts +6 -0
- package/dist/types/components/checkboxitem/model.d.ts +33 -0
- package/dist/types/components/circleprogress/index.vue.d.ts +6 -0
- package/dist/types/components/col/index.vue.d.ts +6 -0
- package/dist/types/components/collapse/index.vue.d.ts +6 -0
- package/dist/types/components/collapseitem/index.vue.d.ts +6 -0
- package/dist/types/components/comment/components/CmtBottom.vue.d.ts +6 -0
- package/dist/types/components/comment/components/CmtHeader.vue.d.ts +6 -0
- package/dist/types/components/comment/components/CmtImages.vue.d.ts +6 -0
- package/dist/types/components/comment/index.vue.d.ts +6 -0
- package/dist/types/components/content/index.vue.d.ts +6 -0
- package/dist/types/components/countdown/index.vue.d.ts +6 -0
- package/dist/types/components/countdown/util.d.ts +2 -0
- package/dist/types/components/countup/index.vue.d.ts +6 -0
- package/dist/types/components/dateitem/index.vue.d.ts +6 -0
- package/dist/types/components/datepicker/index.vue.d.ts +60 -0
- package/dist/types/components/dialog/index.d.ts +35 -0
- package/dist/types/components/dialog/index.vue.d.ts +6 -0
- package/dist/types/components/divider/index.vue.d.ts +6 -0
- package/dist/types/components/drag/index.vue.d.ts +6 -0
- package/dist/types/components/ecard/index.vue.d.ts +6 -0
- package/dist/types/components/elevator/index.vue.d.ts +6 -0
- package/dist/types/components/empty/index.vue.d.ts +6 -0
- package/dist/types/components/fixednav/index.vue.d.ts +6 -0
- package/dist/types/components/footer/index.vue.d.ts +6 -0
- package/dist/types/components/grid/common.d.ts +87 -0
- package/dist/types/components/grid/index.vue.d.ts +6 -0
- package/dist/types/components/griditem/index.vue.d.ts +6 -0
- package/dist/types/components/group/group-props.d.ts +34 -0
- package/dist/types/components/group/index.vue.d.ts +6 -0
- package/dist/types/components/header/index.vue.d.ts +15 -0
- package/dist/types/components/hinttext/index.d.ts +8 -0
- package/dist/types/components/hinttext/index.vue.d.ts +6 -0
- package/dist/types/components/icon/index.vue.d.ts +6 -0
- package/dist/types/components/imagepreview/index.d.ts +20 -0
- package/dist/types/components/imagepreview/index.vue.d.ts +6 -0
- package/dist/types/components/indicator/index.vue.d.ts +6 -0
- package/dist/types/components/infiniteloading/index.vue.d.ts +6 -0
- package/dist/types/components/inputitem/index.vue.d.ts +6 -0
- package/dist/types/components/inputnumber/index.vue.d.ts +6 -0
- package/dist/types/components/item/index.vue.d.ts +6 -0
- package/dist/types/components/item/item-props.d.ts +121 -0
- package/dist/types/components/layout/index.vue.d.ts +6 -0
- package/dist/types/components/linkitem/index.vue.d.ts +6 -0
- package/dist/types/components/list/index.vue.d.ts +6 -0
- package/dist/types/components/menu/index.vue.d.ts +6 -0
- package/dist/types/components/menuitem/index.vue.d.ts +6 -0
- package/dist/types/components/moneyitem/index.vue.d.ts +6 -0
- package/dist/types/components/moneyitem/util.d.ts +15 -0
- package/dist/types/components/navbar/index.vue.d.ts +6 -0
- package/dist/types/components/noticebar/index.vue.d.ts +6 -0
- package/dist/types/components/notify/index.d.ts +12 -0
- package/dist/types/components/notify/index.vue.d.ts +6 -0
- package/dist/types/components/numberkeyboard/index.vue.d.ts +6 -0
- package/dist/types/components/overlay/index.taro.vue.d.ts +37 -0
- package/dist/types/components/overlay/index.vue.d.ts +37 -0
- package/dist/types/components/page/index.vue.d.ts +6 -0
- package/dist/types/components/pagination/index.vue.d.ts +6 -0
- package/dist/types/components/picker/column.vue.d.ts +6 -0
- package/dist/types/components/picker/common-props.d.ts +26 -0
- package/dist/types/components/picker/index.vue.d.ts +149 -0
- package/dist/types/components/picker/model.d.ts +55 -0
- package/dist/types/components/pickeritem/index.vue.d.ts +6 -0
- package/dist/types/components/placeholder/index.vue.d.ts +6 -0
- package/dist/types/components/popover/index.vue.d.ts +8 -0
- package/dist/types/components/popup/index.vue.d.ts +87 -0
- package/dist/types/components/popup/use-lock-scroll.d.ts +1 -0
- package/dist/types/components/price/index.vue.d.ts +6 -0
- package/dist/types/components/price/price-props.d.ts +37 -0
- package/dist/types/components/progress/index.vue.d.ts +6 -0
- package/dist/types/components/radio/base-props.d.ts +55 -0
- package/dist/types/components/radio/index.vue.d.ts +8 -0
- package/dist/types/components/radioitem/index.vue.d.ts +6 -0
- package/dist/types/components/radioitem/model.d.ts +33 -0
- package/dist/types/components/range/index.vue.d.ts +6 -0
- package/dist/types/components/rate/index.vue.d.ts +6 -0
- package/dist/types/components/row/index.vue.d.ts +6 -0
- package/dist/types/components/searchbar/index.vue.d.ts +6 -0
- package/dist/types/components/shortpassword/index.vue.d.ts +6 -0
- package/dist/types/components/sidenavbar/index.vue.d.ts +6 -0
- package/dist/types/components/sidenavbaritem/index.vue.d.ts +6 -0
- package/dist/types/components/signature/index.vue.d.ts +6 -0
- package/dist/types/components/skeleton/common.d.ts +59 -0
- package/dist/types/components/skeleton/index.vue.d.ts +6 -0
- package/dist/types/components/sku/components/SkuHeader.vue.d.ts +6 -0
- package/dist/types/components/sku/components/SkuOperate.vue.d.ts +6 -0
- package/dist/types/components/sku/components/SkuSelect.vue.d.ts +6 -0
- package/dist/types/components/sku/components/SkuStepper.vue.d.ts +6 -0
- package/dist/types/components/sku/index.vue.d.ts +6 -0
- package/dist/types/components/step/index.vue.d.ts +6 -0
- package/dist/types/components/steps/index.vue.d.ts +6 -0
- package/dist/types/components/sticky/index.vue.d.ts +6 -0
- package/dist/types/components/subsidenavbar/index.vue.d.ts +6 -0
- package/dist/types/components/swipe/index.vue.d.ts +7 -0
- package/dist/types/components/swiper/index.vue.d.ts +6 -0
- package/dist/types/components/swiper/use-touch.d.ts +16 -0
- package/dist/types/components/swiperitem/index.vue.d.ts +6 -0
- package/dist/types/components/switch/index.vue.d.ts +56 -0
- package/dist/types/components/switchitem/index.vue.d.ts +6 -0
- package/dist/types/components/tabbar/index.vue.d.ts +6 -0
- package/dist/types/components/tabbaritem/index.vue.d.ts +6 -0
- package/dist/types/components/table/common.d.ts +52 -0
- package/dist/types/components/table/index.vue.d.ts +6 -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 +6 -0
- package/dist/types/components/tabs/index.vue.d.ts +7 -0
- package/dist/types/components/tag/index.vue.d.ts +7 -0
- package/dist/types/components/textarea/index.vue.d.ts +48 -0
- package/dist/types/components/textareaitem/index.vue.d.ts +6 -0
- package/dist/types/components/timedetail/index.vue.d.ts +6 -0
- package/dist/types/components/timepannel/index.vue.d.ts +6 -0
- package/dist/types/components/timeselect/index.vue.d.ts +6 -0
- package/dist/types/components/toast/index.d.ts +12 -0
- package/dist/types/components/toast/index.vue.d.ts +6 -0
- package/dist/types/components/uploader/index.vue.d.ts +17 -0
- package/dist/types/components/uploader/uploader.d.ts +21 -0
- package/dist/types/components/video/index.vue.d.ts +6 -0
- package/dist/types/index.d.ts +113 -0
- package/dist/types/interface.d.ts +24 -0
- package/dist/types/main.d.ts +17 -0
- package/dist/types/shims-vue.d.ts +15 -0
- package/dist/types/utils/commons.d.ts +15 -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 +1 -0
- package/dist/types/vite-env.d.ts +6 -0
- package/package.json +35 -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,113 @@
|
|
|
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 Layout from './components/layout/index.vue';
|
|
31
|
+
import Col from './components/col/index.vue';
|
|
32
|
+
import Row from './components/row/index.vue';
|
|
33
|
+
import Sticky from './components/sticky/index.vue';
|
|
34
|
+
import Divider from './components/divider/index.vue';
|
|
35
|
+
import Grid from './components/grid/index.vue';
|
|
36
|
+
import GridItem from './components/griditem/index.vue';
|
|
37
|
+
import Navbar from './components/navbar/index.vue';
|
|
38
|
+
import FixedNav from './components/fixednav/index.vue';
|
|
39
|
+
import Menu from './components/menu/index.vue';
|
|
40
|
+
import MenuItem from './components/menuitem/index.vue';
|
|
41
|
+
import Tabbar from './components/tabbar/index.vue';
|
|
42
|
+
import TabbarItem from './components/tabbaritem/index.vue';
|
|
43
|
+
import Elevator from './components/elevator/index.vue';
|
|
44
|
+
import Pagination from './components/pagination/index.vue';
|
|
45
|
+
import Tabs from './components/tabs/index.vue';
|
|
46
|
+
import TabPane from './components/tabpane/index.vue';
|
|
47
|
+
import Indicator from './components/indicator/index.vue';
|
|
48
|
+
import SideNavBar from './components/sidenavbar/index.vue';
|
|
49
|
+
import SideNavBarItem from './components/sidenavbaritem/index.vue';
|
|
50
|
+
import SubSideNavBar from './components/subsidenavbar/index.vue';
|
|
51
|
+
import Range from './components/range/index.vue';
|
|
52
|
+
import SearchBar from './components/searchbar/index.vue';
|
|
53
|
+
import Cascader from './components/cascader/index.vue';
|
|
54
|
+
import Calendar from './components/calendar/index.vue';
|
|
55
|
+
import DatePicker from './components/datepicker/index.vue';
|
|
56
|
+
import InputNumber from './components/inputnumber/index.vue';
|
|
57
|
+
import Rate from './components/rate/index.vue';
|
|
58
|
+
import Picker from './components/picker/index.vue';
|
|
59
|
+
import ShortPassword from './components/shortpassword/index.vue';
|
|
60
|
+
import Uploader from './components/uploader/index.vue';
|
|
61
|
+
import NumberKeyboard from './components/numberkeyboard/index.vue';
|
|
62
|
+
import Swipe from './components/swipe/index.vue';
|
|
63
|
+
import ActionSheet from './components/actionsheet/index.vue';
|
|
64
|
+
import BackTop from './components/backtop/index.vue';
|
|
65
|
+
import Drag from './components/drag/index.vue';
|
|
66
|
+
import Dialog from './components/dialog/index';
|
|
67
|
+
import InfiniteLoading from './components/infiniteloading/index.vue';
|
|
68
|
+
import Notify from './components/notify/index';
|
|
69
|
+
import Switch from './components/switch/index.vue';
|
|
70
|
+
import Toast from './components/toast/index';
|
|
71
|
+
import Audio from './components/audio/index.vue';
|
|
72
|
+
import Avatar from './components/avatar/index.vue';
|
|
73
|
+
import AvatarGroup from './components/avatargroup/index.vue';
|
|
74
|
+
import List from './components/list/index.vue';
|
|
75
|
+
import Progress from './components/progress/index.vue';
|
|
76
|
+
import CircleProgress from './components/circleprogress/index.vue';
|
|
77
|
+
import NoticeBar from './components/noticebar/index.vue';
|
|
78
|
+
import Empty from './components/empty/index.vue';
|
|
79
|
+
import Video from './components/video/index.vue';
|
|
80
|
+
import Steps from './components/steps/index.vue';
|
|
81
|
+
import Step from './components/step/index.vue';
|
|
82
|
+
import Swiper from './components/swiper/index.vue';
|
|
83
|
+
import SwiperItem from './components/swiperitem/index.vue';
|
|
84
|
+
import Price from './components/price/index.vue';
|
|
85
|
+
import ImagePreview from './components/imagepreview/index';
|
|
86
|
+
import CountUp from './components/countup/index.vue';
|
|
87
|
+
import CountDown from './components/countdown/index.vue';
|
|
88
|
+
import Badge from './components/badge/index.vue';
|
|
89
|
+
import Tag from './components/tag/index.vue';
|
|
90
|
+
import Popover from './components/popover/index.vue';
|
|
91
|
+
import Skeleton from './components/skeleton/index.vue';
|
|
92
|
+
import Collapse from './components/collapse/index.vue';
|
|
93
|
+
import CollapseItem from './components/collapseitem/index.vue';
|
|
94
|
+
import Table from './components/table/index.vue';
|
|
95
|
+
import Address from './components/address/index.vue';
|
|
96
|
+
import Barrage from './components/barrage/index.vue';
|
|
97
|
+
import Signature from './components/signature/index.vue';
|
|
98
|
+
import TimeSelect from './components/timeselect/index.vue';
|
|
99
|
+
import TimePannel from './components/timepannel/index.vue';
|
|
100
|
+
import TimeDetail from './components/timedetail/index.vue';
|
|
101
|
+
import Sku from './components/sku/index.vue';
|
|
102
|
+
import Card from './components/card/index.vue';
|
|
103
|
+
import Ecard from './components/ecard/index.vue';
|
|
104
|
+
import AddressList from './components/addresslist/index.vue';
|
|
105
|
+
import Category from './components/category/index.vue';
|
|
106
|
+
import CategoryPane from './components/categorypane/index.vue';
|
|
107
|
+
import Comment from './components/comment/index.vue';
|
|
108
|
+
export * from './utils/commons';
|
|
109
|
+
export * from './utils/functions';
|
|
110
|
+
export * from './utils/date';
|
|
111
|
+
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, 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, Avatar, AvatarGroup, List, Progress, CircleProgress, NoticeBar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, CountUp, CountDown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment };
|
|
112
|
+
declare const _default: FoxUIApp;
|
|
113
|
+
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,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @version: 1.0
|
|
3
|
+
* @Author: 江成
|
|
4
|
+
* @Date: 2022-04-21 11:18:45
|
|
5
|
+
*/
|
|
6
|
+
/*
|
|
7
|
+
* @version: 1.0
|
|
8
|
+
* @Author: 江成
|
|
9
|
+
* @Date: 2022-04-21 11:03:58
|
|
10
|
+
*/
|
|
11
|
+
declare module '*.vue' {
|
|
12
|
+
import type { DefineComponent } from 'vue'
|
|
13
|
+
const component: DefineComponent<{}, {}, any>
|
|
14
|
+
export default component
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 raf: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | typeof setTimeout;
|
|
4
|
+
export declare function isRegExp(v: unknown): v is RegExp;
|
|
5
|
+
export declare const isEmptyString: (v: unknown) => boolean;
|
|
6
|
+
export declare function isNumberString(value: string): boolean;
|
|
7
|
+
export declare function integerLength(value: string | number): number;
|
|
8
|
+
export declare function decimalLength(value: string | number): number;
|
|
9
|
+
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
10
|
+
export declare function indexOf(x: unknown, arr: unknown[]): number;
|
|
11
|
+
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
12
|
+
export declare function valueLength(val: unknown): number;
|
|
13
|
+
export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
|
|
14
|
+
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
15
|
+
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?: unknown): 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;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Rule, ValidateMessages, ValidateResult, ExecuteValidator } from '@fox-js/validator';
|
|
2
|
+
import { ComponentPublicInstance, ComponentInternalInstance } from 'vue';
|
|
3
|
+
export interface ValidateHandler {
|
|
4
|
+
error?(errorMsg: string, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
5
|
+
reset?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
6
|
+
success?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
7
|
+
decorate?(rule: Rule, proxy: ComponentPublicInstance, instance: ComponentInternalInstance): void;
|
|
8
|
+
getValue?(proxy: ComponentPublicInstance, instance: ComponentInternalInstance): any;
|
|
9
|
+
}
|
|
10
|
+
export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
|
|
11
|
+
export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
|
|
12
|
+
export declare function deleteGloabalValidator(type: string): void;
|
|
13
|
+
export declare function setGlobalValidateCheckEvents(events: string[]): void;
|
|
14
|
+
export declare function getGlobalValidateCheckEvents(): string[];
|
|
15
|
+
export declare function setGlobalValidateResetEvents(events: string[]): void;
|
|
16
|
+
export declare function getGlobalValidateResetEvents(): string[];
|
|
17
|
+
export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
|
|
18
|
+
export declare type ValueType = 'string' | 'number' | 'date';
|
|
19
|
+
export interface Descriptor {
|
|
20
|
+
componentName: string;
|
|
21
|
+
valueName?: string;
|
|
22
|
+
valueType?: ValueType;
|
|
23
|
+
validate?: boolean;
|
|
24
|
+
validateHandler?: ValidateHandler;
|
|
25
|
+
validateCheckEvents?: string[];
|
|
26
|
+
validateResetEvents?: string[];
|
|
27
|
+
}
|
|
28
|
+
export declare const ValidateSchemaKey: unique symbol;
|
|
29
|
+
export declare class ValidateSchema {
|
|
30
|
+
private parent;
|
|
31
|
+
private children;
|
|
32
|
+
private validators;
|
|
33
|
+
private attrRules;
|
|
34
|
+
private rules;
|
|
35
|
+
private descriptor;
|
|
36
|
+
private instance;
|
|
37
|
+
private scope;
|
|
38
|
+
constructor(parent: ValidateSchema | null, descriptor: Descriptor, instance: ComponentInternalInstance);
|
|
39
|
+
private init;
|
|
40
|
+
destroy(): void;
|
|
41
|
+
addChild(child: ValidateSchema): void;
|
|
42
|
+
removeChild(child: ValidateSchema): void;
|
|
43
|
+
private execHandlder;
|
|
44
|
+
private decorate;
|
|
45
|
+
private success;
|
|
46
|
+
private error;
|
|
47
|
+
private getValue;
|
|
48
|
+
setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
|
|
49
|
+
getValidator(type: string): ExecuteValidator | null;
|
|
50
|
+
deleteValidator(type: string, global?: boolean): void;
|
|
51
|
+
hasValidator(type: string, global?: boolean): boolean;
|
|
52
|
+
clear(deep?: boolean): void;
|
|
53
|
+
setRule(rule: Rule): void;
|
|
54
|
+
validate(deep?: boolean): Promise<ValidateResult>;
|
|
55
|
+
}
|
|
56
|
+
export declare function createValidateSchema(instance: ComponentInternalInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useExpose(apis: Record<string, any>): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface Rect {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InjectionKey, ComponentInternalInstance } from 'vue';
|
|
2
|
+
declare type ParentProvide<T> = T & {
|
|
3
|
+
add(child: ComponentInternalInstance): void;
|
|
4
|
+
remove(child: ComponentInternalInstance): void;
|
|
5
|
+
internalChildren: ComponentInternalInstance[];
|
|
6
|
+
};
|
|
7
|
+
export declare function useInject<T>(key: InjectionKey<ParentProvide<T>>): {
|
|
8
|
+
parent: ParentProvide<T>;
|
|
9
|
+
index: import("vue").ComputedRef<number>;
|
|
10
|
+
} | {
|
|
11
|
+
parent: null;
|
|
12
|
+
index: import("vue").Ref<number>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VNode, InjectionKey, VNodeNormalizedChildren, ComponentInternalInstance } from 'vue';
|
|
2
|
+
export declare function flattenVNodes(children: VNodeNormalizedChildren, childName?: string): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>[];
|
|
5
|
+
export declare function sortChildren(parent: ComponentInternalInstance, internalChildren: ComponentInternalInstance[], childName?: string): void;
|
|
6
|
+
export declare function useProvide<ProvideValue>(key: InjectionKey<ProvideValue>, childName?: string): (value?: ProvideValue | undefined) => {
|
|
7
|
+
internalChildren: ComponentInternalInstance[];
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useExtend<T>(apis: T): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useTouch(): any;
|