@fox-js/foxui 4.0.1-3 → 4.0.1-30

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.
Files changed (221) hide show
  1. package/dist/index.cjs.js +13 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.esm.js +25127 -0
  4. package/dist/index.umd.js +13 -0
  5. package/dist/locale/index.esm.js +473 -0
  6. package/dist/locale/index.umd.js +3 -0
  7. package/dist/style.css +1 -1
  8. package/dist/style.esm.js +3 -0
  9. package/dist/types/index.d.ts +2104 -119
  10. package/package.json +15 -17
  11. package/dist/foxui.es.js +0 -24764
  12. package/dist/foxui.umd.js +0 -21
  13. package/dist/locale/index.cjs.js +0 -1
  14. package/dist/locale/index.d.ts +0 -396
  15. package/dist/locale/index.js +0 -405
  16. package/dist/style.es.js +0 -2
  17. package/dist/types/api/index.d.ts +0 -9
  18. package/dist/types/components/actionsheet/index.vue.d.ts +0 -13
  19. package/dist/types/components/address/index.vue.d.ts +0 -13
  20. package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +0 -13
  21. package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +0 -13
  22. package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +0 -13
  23. package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +0 -13
  24. package/dist/types/components/addresslist/index.vue.d.ts +0 -13
  25. package/dist/types/components/animate/index.vue.d.ts +0 -13
  26. package/dist/types/components/animate/type.d.ts +0 -2
  27. package/dist/types/components/audio/index.vue.d.ts +0 -13
  28. package/dist/types/components/audiooperate/index.vue.d.ts +0 -13
  29. package/dist/types/components/avatar/index.vue.d.ts +0 -13
  30. package/dist/types/components/avatargroup/index.vue.d.ts +0 -13
  31. package/dist/types/components/backtop/index.vue.d.ts +0 -13
  32. package/dist/types/components/badge/index.vue.d.ts +0 -13
  33. package/dist/types/components/barrage/index.vue.d.ts +0 -13
  34. package/dist/types/components/button/index.vue.d.ts +0 -13
  35. package/dist/types/components/button/type.d.ts +0 -3
  36. package/dist/types/components/calendar/common.d.ts +0 -61
  37. package/dist/types/components/calendar/index.vue.d.ts +0 -13
  38. package/dist/types/components/calendar/pane.vue.d.ts +0 -13
  39. package/dist/types/components/calendar/types.d.ts +0 -13
  40. package/dist/types/components/calendaritem/common.d.ts +0 -201
  41. package/dist/types/components/calendaritem/index.vue.d.ts +0 -13
  42. package/dist/types/components/card/index.vue.d.ts +0 -13
  43. package/dist/types/components/cascader/cascader-pane.vue.d.ts +0 -13
  44. package/dist/types/components/cascader/common.d.ts +0 -98
  45. package/dist/types/components/cascader/helper.d.ts +0 -4
  46. package/dist/types/components/cascader/index.vue.d.ts +0 -13
  47. package/dist/types/components/cascader/tree.d.ts +0 -12
  48. package/dist/types/components/cascader/types.d.ts +0 -26
  49. package/dist/types/components/cascaderitem/index.vue.d.ts +0 -13
  50. package/dist/types/components/cascaderitem/model.d.ts +0 -34
  51. package/dist/types/components/category/index.vue.d.ts +0 -13
  52. package/dist/types/components/categorypane/index.vue.d.ts +0 -13
  53. package/dist/types/components/cell/index.vue.d.ts +0 -13
  54. package/dist/types/components/cellgroup/index.vue.d.ts +0 -13
  55. package/dist/types/components/checkbox/common.d.ts +0 -64
  56. package/dist/types/components/checkbox/index.vue.d.ts +0 -13
  57. package/dist/types/components/checkboxitem/common.d.ts +0 -107
  58. package/dist/types/components/checkboxitem/index.vue.d.ts +0 -13
  59. package/dist/types/components/checkboxitem/model.d.ts +0 -33
  60. package/dist/types/components/circleprogress/index.vue.d.ts +0 -13
  61. package/dist/types/components/col/index.vue.d.ts +0 -13
  62. package/dist/types/components/collapse/index.vue.d.ts +0 -13
  63. package/dist/types/components/collapseitem/index.vue.d.ts +0 -13
  64. package/dist/types/components/comment/components/CmtBottom.vue.d.ts +0 -13
  65. package/dist/types/components/comment/components/CmtHeader.vue.d.ts +0 -13
  66. package/dist/types/components/comment/components/CmtImages.vue.d.ts +0 -13
  67. package/dist/types/components/comment/index.vue.d.ts +0 -13
  68. package/dist/types/components/content/index.vue.d.ts +0 -13
  69. package/dist/types/components/countdown/index.vue.d.ts +0 -13
  70. package/dist/types/components/countdown/util.d.ts +0 -2
  71. package/dist/types/components/countup/index.vue.d.ts +0 -13
  72. package/dist/types/components/dateitem/index.vue.d.ts +0 -13
  73. package/dist/types/components/datepicker/common.d.ts +0 -55
  74. package/dist/types/components/datepicker/index.vue.d.ts +0 -13
  75. package/dist/types/components/dialog/index.d.ts +0 -44
  76. package/dist/types/components/dialog/index.vue.d.ts +0 -13
  77. package/dist/types/components/divider/index.vue.d.ts +0 -13
  78. package/dist/types/components/drag/index.vue.d.ts +0 -13
  79. package/dist/types/components/ecard/index.vue.d.ts +0 -13
  80. package/dist/types/components/elevator/index.vue.d.ts +0 -13
  81. package/dist/types/components/ellipsis/index.vue.d.ts +0 -13
  82. package/dist/types/components/ellipsis/type.d.ts +0 -1
  83. package/dist/types/components/empty/index.vue.d.ts +0 -13
  84. package/dist/types/components/fixednav/index.vue.d.ts +0 -13
  85. package/dist/types/components/footer/index.vue.d.ts +0 -13
  86. package/dist/types/components/grid/common.d.ts +0 -87
  87. package/dist/types/components/grid/index.vue.d.ts +0 -13
  88. package/dist/types/components/griditem/index.vue.d.ts +0 -13
  89. package/dist/types/components/group/group-props.d.ts +0 -34
  90. package/dist/types/components/group/index.vue.d.ts +0 -13
  91. package/dist/types/components/header/index.vue.d.ts +0 -13
  92. package/dist/types/components/header/types.d.ts +0 -9
  93. package/dist/types/components/hinttext/index.d.ts +0 -8
  94. package/dist/types/components/hinttext/index.vue.d.ts +0 -13
  95. package/dist/types/components/icon/index.vue.d.ts +0 -13
  96. package/dist/types/components/image/index.vue.d.ts +0 -13
  97. package/dist/types/components/image/type.d.ts +0 -2
  98. package/dist/types/components/imagepreview/imagePreviewItem.vue.d.ts +0 -13
  99. package/dist/types/components/imagepreview/index.d.ts +0 -20
  100. package/dist/types/components/imagepreview/index.vue.d.ts +0 -13
  101. package/dist/types/components/indicator/index.vue.d.ts +0 -13
  102. package/dist/types/components/infiniteloading/index.vue.d.ts +0 -13
  103. package/dist/types/components/inputitem/index.vue.d.ts +0 -13
  104. package/dist/types/components/inputnumber/index.vue.d.ts +0 -13
  105. package/dist/types/components/item/common.d.ts +0 -121
  106. package/dist/types/components/item/index.vue.d.ts +0 -13
  107. package/dist/types/components/layout/index.vue.d.ts +0 -13
  108. package/dist/types/components/linkitem/common.d.ts +0 -132
  109. package/dist/types/components/linkitem/index.vue.d.ts +0 -13
  110. package/dist/types/components/list/index.vue.d.ts +0 -13
  111. package/dist/types/components/menu/index.vue.d.ts +0 -13
  112. package/dist/types/components/menuitem/index.vue.d.ts +0 -13
  113. package/dist/types/components/menuitem/type.d.ts +0 -4
  114. package/dist/types/components/moneyitem/index.vue.d.ts +0 -13
  115. package/dist/types/components/moneyitem/util.d.ts +0 -15
  116. package/dist/types/components/navbar/index.vue.d.ts +0 -13
  117. package/dist/types/components/noticebar/index.vue.d.ts +0 -13
  118. package/dist/types/components/notify/index.d.ts +0 -12
  119. package/dist/types/components/notify/index.vue.d.ts +0 -13
  120. package/dist/types/components/numberkeyboard/index.vue.d.ts +0 -13
  121. package/dist/types/components/overlay/common.d.ts +0 -30
  122. package/dist/types/components/overlay/index.taro.vue.d.ts +0 -13
  123. package/dist/types/components/overlay/index.vue.d.ts +0 -13
  124. package/dist/types/components/page/index.vue.d.ts +0 -13
  125. package/dist/types/components/pagination/index.vue.d.ts +0 -13
  126. package/dist/types/components/picker/column.vue.d.ts +0 -13
  127. package/dist/types/components/picker/common-column.d.ts +0 -26
  128. package/dist/types/components/picker/common.d.ts +0 -143
  129. package/dist/types/components/picker/index.vue.d.ts +0 -13
  130. package/dist/types/components/picker/model.d.ts +0 -55
  131. package/dist/types/components/pickeritem/index.vue.d.ts +0 -13
  132. package/dist/types/components/placeholder/index.vue.d.ts +0 -13
  133. package/dist/types/components/popover/index.vue.d.ts +0 -13
  134. package/dist/types/components/popover/type.d.ts +0 -2
  135. package/dist/types/components/popup/common.d.ts +0 -81
  136. package/dist/types/components/popup/index.vue.d.ts +0 -13
  137. package/dist/types/components/popup/use-lock-scroll.d.ts +0 -1
  138. package/dist/types/components/price/index.vue.d.ts +0 -13
  139. package/dist/types/components/price/price-props.d.ts +0 -37
  140. package/dist/types/components/progress/index.vue.d.ts +0 -13
  141. package/dist/types/components/radio/common.d.ts +0 -125
  142. package/dist/types/components/radio/index.vue.d.ts +0 -13
  143. package/dist/types/components/radioitem/common.d.ts +0 -99
  144. package/dist/types/components/radioitem/index.vue.d.ts +0 -13
  145. package/dist/types/components/radioitem/model.d.ts +0 -33
  146. package/dist/types/components/range/index.vue.d.ts +0 -13
  147. package/dist/types/components/rate/index.vue.d.ts +0 -13
  148. package/dist/types/components/row/index.vue.d.ts +0 -13
  149. package/dist/types/components/searchbar/index.vue.d.ts +0 -13
  150. package/dist/types/components/searchbar/type.d.ts +0 -5
  151. package/dist/types/components/shortpassword/index.vue.d.ts +0 -13
  152. package/dist/types/components/sidenavbar/index.vue.d.ts +0 -13
  153. package/dist/types/components/sidenavbaritem/index.vue.d.ts +0 -13
  154. package/dist/types/components/signature/index.vue.d.ts +0 -13
  155. package/dist/types/components/skeleton/common.d.ts +0 -57
  156. package/dist/types/components/skeleton/index.vue.d.ts +0 -13
  157. package/dist/types/components/sku/components/SkuHeader.vue.d.ts +0 -13
  158. package/dist/types/components/sku/components/SkuOperate.vue.d.ts +0 -13
  159. package/dist/types/components/sku/components/SkuSelect.vue.d.ts +0 -13
  160. package/dist/types/components/sku/components/SkuStepper.vue.d.ts +0 -13
  161. package/dist/types/components/sku/index.vue.d.ts +0 -13
  162. package/dist/types/components/step/index.vue.d.ts +0 -13
  163. package/dist/types/components/steps/index.vue.d.ts +0 -13
  164. package/dist/types/components/sticky/index.vue.d.ts +0 -13
  165. package/dist/types/components/subsidenavbar/index.vue.d.ts +0 -13
  166. package/dist/types/components/swipe/index.vue.d.ts +0 -13
  167. package/dist/types/components/swipe/type.d.ts +0 -1
  168. package/dist/types/components/swiper/index.vue.d.ts +0 -13
  169. package/dist/types/components/swiper/use-touch.d.ts +0 -16
  170. package/dist/types/components/swiperitem/index.vue.d.ts +0 -13
  171. package/dist/types/components/switch/common.d.ts +0 -50
  172. package/dist/types/components/switch/index.vue.d.ts +0 -13
  173. package/dist/types/components/switchitem/index.vue.d.ts +0 -13
  174. package/dist/types/components/tabbar/index.vue.d.ts +0 -13
  175. package/dist/types/components/tabbaritem/index.vue.d.ts +0 -13
  176. package/dist/types/components/table/common.d.ts +0 -52
  177. package/dist/types/components/table/index.vue.d.ts +0 -13
  178. package/dist/types/components/table/renderColumn.d.ts +0 -11
  179. package/dist/types/components/table/types.d.ts +0 -15
  180. package/dist/types/components/tabpane/index.vue.d.ts +0 -13
  181. package/dist/types/components/tabs/index.vue.d.ts +0 -13
  182. package/dist/types/components/tabs/type.d.ts +0 -1
  183. package/dist/types/components/tag/index.vue.d.ts +0 -13
  184. package/dist/types/components/tag/type.d.ts +0 -1
  185. package/dist/types/components/textarea/index.vue.d.ts +0 -13
  186. package/dist/types/components/textareaitem/index.vue.d.ts +0 -13
  187. package/dist/types/components/timedetail/index.vue.d.ts +0 -13
  188. package/dist/types/components/timepannel/index.vue.d.ts +0 -13
  189. package/dist/types/components/timeselect/index.vue.d.ts +0 -13
  190. package/dist/types/components/toast/index.d.ts +0 -12
  191. package/dist/types/components/toast/index.vue.d.ts +0 -13
  192. package/dist/types/components/uploader/index.vue.d.ts +0 -13
  193. package/dist/types/components/uploader/type.d.ts +0 -14
  194. package/dist/types/components/uploader/uploader.d.ts +0 -22
  195. package/dist/types/components/video/index.vue.d.ts +0 -13
  196. package/dist/types/components/watermark/index.vue.d.ts +0 -13
  197. package/dist/types/interface.d.ts +0 -24
  198. package/dist/types/main.d.ts +0 -17
  199. package/dist/types/utils/commons.d.ts +0 -16
  200. package/dist/types/utils/create/component.d.ts +0 -18
  201. package/dist/types/utils/create/index.d.ts +0 -1
  202. package/dist/types/utils/date.d.ts +0 -16
  203. package/dist/types/utils/domain/broadcast.d.ts +0 -28
  204. package/dist/types/utils/domain/domain.d.ts +0 -46
  205. package/dist/types/utils/domain/events.d.ts +0 -14
  206. package/dist/types/utils/domain/group.d.ts +0 -17
  207. package/dist/types/utils/domain/index.d.ts +0 -5
  208. package/dist/types/utils/domain/item.d.ts +0 -15
  209. package/dist/types/utils/domain/page.d.ts +0 -25
  210. package/dist/types/utils/domain/validator.d.ts +0 -56
  211. package/dist/types/utils/functions.d.ts +0 -3
  212. package/dist/types/utils/px.d.ts +0 -2
  213. package/dist/types/utils/types.d.ts +0 -9
  214. package/dist/types/utils/unique-id.d.ts +0 -5
  215. package/dist/types/utils/use-expose/index.d.ts +0 -1
  216. package/dist/types/utils/use-rect/index.d.ts +0 -11
  217. package/dist/types/utils/use-relation/index.d.ts +0 -3
  218. package/dist/types/utils/use-relation/useInject.d.ts +0 -14
  219. package/dist/types/utils/use-relation/useProvide.d.ts +0 -8
  220. package/dist/types/utils/use-relation/useRelation.d.ts +0 -1
  221. package/dist/types/utils/use-touch/index.d.ts +0 -18
@@ -1,119 +1,2104 @@
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;
1
+ import { App } from 'vue';
2
+ import { compareTo } from '@fox-js/big-decimal';
3
+ import { ComponentInternalInstance } from 'vue';
4
+ import { ComponentPublicInstance } from 'vue';
5
+ import { CSSProperties } from 'vue';
6
+ import { divide } from '@fox-js/big-decimal';
7
+ import { ExecuteValidator } from '@fox-js/validator';
8
+ import { FoxComponentPublicInstance } from './types';
9
+ import { FoxUI } from './interface';
10
+ import { FoxUIOptions } from './interface';
11
+ import { multiply } from '@fox-js/big-decimal';
12
+ import { negate } from '@fox-js/big-decimal';
13
+ import { numberFormat } from '@fox-js/big-decimal';
14
+ import { Ref } from 'vue';
15
+ import { Rule } from '@fox-js/validator';
16
+ import { ScopeGetter } from './api';
17
+ import { unNumberFormat } from '@fox-js/big-decimal';
18
+ import { UnwrapNestedRefs } from 'vue';
19
+ import { UnwrapRef } from 'vue';
20
+ import { ValidateMessages } from '@fox-js/validator';
21
+ import { ValidateResult } from '@fox-js/validator';
22
+ import { VNode } from 'vue';
23
+
24
+ /**
25
+ * 是否接受value过滤器
26
+ */
27
+ export declare interface AcceptFilter {
28
+ (value: any): boolean;
29
+ }
30
+
31
+ /**
32
+ * 广播类
33
+ */
34
+ export declare class Broadcast {
35
+ /**
36
+ * parent
37
+ */
38
+ private parent;
39
+ /**
40
+ * children
41
+ */
42
+ private children;
43
+ /**
44
+ * 回调函数注册表
45
+ */
46
+ private callbacks;
47
+ /**
48
+ * vue proxy
49
+ */
50
+ private proxy;
51
+ /**
52
+ * 名称
53
+ */
54
+ private name?;
55
+ /**
56
+ * 构造函数
57
+ * @param parent
58
+ * @param proxy
59
+ * @param name
60
+ */
61
+ constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
62
+ /**
63
+ * 加入孩子节点
64
+ * @param child
65
+ */
66
+ private addChild;
67
+ /**
68
+ * 移除孩子节点
69
+ * @param child
70
+ */
71
+ private removeChild;
72
+ /**
73
+ * 销毁
74
+ */
75
+ destroy(): void;
76
+ /**
77
+ * 发生消息
78
+ * @param matched
79
+ * @param action
80
+ * @param args
81
+ */
82
+ emit(matched: Matched, action: string, ...args: any[]): Results;
83
+ /**
84
+ * 发生消息(只发给孩子节点)
85
+ * @param matched
86
+ * @param action
87
+ * @param args
88
+ */
89
+ emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
90
+ /**
91
+ * 注册回调函数
92
+ * @param action
93
+ * @param callback
94
+ * @returns
95
+ */
96
+ on(action: string, callback: BroadcastCallback): void;
97
+ }
98
+
99
+ /**
100
+ * broadcast callback
101
+ */
102
+ export declare interface BroadcastCallback {
103
+ (...args: any[]): Result;
104
+ }
105
+
106
+ export declare const BroadcastKey: unique symbol;
107
+
108
+ export declare function cancelRaf(id: number): void;
109
+
110
+ /**
111
+ * clamp
112
+ * @param num
113
+ * @param min
114
+ * @param max
115
+ * @returns
116
+ */
117
+ export declare const clamp: (num: number, min: number, max: number) => number;
118
+
119
+ /**
120
+ * 清理非数字
121
+ */
122
+ export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
123
+
124
+ /**
125
+ * 克隆对象
126
+ * @param target
127
+ * @param source
128
+ * @param plain
129
+ *
130
+ * @returns
131
+ */
132
+ export declare function clone(target: any, source: any, plain?: boolean): any;
133
+
134
+ export { compareTo }
135
+
136
+ /**
137
+ * 内容
138
+ */
139
+ declare type Content_2 = string | GroupContent[] | string[] | VNode | {
140
+ (): VNode;
141
+ };
142
+
143
+ /**
144
+ * 创建broadcast
145
+ *
146
+ * @param proxy
147
+ * @param parent
148
+ * @param name
149
+ * @param callbacks
150
+ * @returns
151
+ */
152
+ export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
153
+
154
+ /**
155
+ * 创建校验schema
156
+ * @param proxy
157
+ * @param parent
158
+ * @param descriptor
159
+ * @returns
160
+ */
161
+ export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
162
+
163
+ /**
164
+ * data items key
165
+ */
166
+ export declare const DataItemsKey: unique symbol;
167
+
168
+ export declare const DateUtils: {
169
+ /**
170
+ * 格式化
171
+ * @param date
172
+ * @param template
173
+ * @returns
174
+ */
175
+ format(date: Date, template: string): string;
176
+ /**
177
+ * 解析
178
+ * @param str
179
+ * @param template
180
+ */
181
+ parser(str: string, template: string): Date;
182
+ /**
183
+ * 是否为闫年
184
+ * @return {Boolse} true|false
185
+ */
186
+ isLeapYear(y: number): boolean;
187
+ /**
188
+ * 返回星期数
189
+ * @return {String}
190
+ */
191
+ getWhatDay(year: number, month: number, day: number): string;
192
+ /**
193
+ * 返回星期数
194
+ * @return {Number}
195
+ */
196
+ getMonthPreDay(year: number, month: number): number;
197
+ /**
198
+ * 返回月份天数
199
+ * @return {Number}
200
+ */
201
+ getMonthDays(year: string, month: string): number;
202
+ /**
203
+ * 补齐数字位数
204
+ * @return {string}
205
+ */
206
+ getNumTwoBit(n: number): string;
207
+ /**
208
+ * 日期对象转成字符串
209
+ * @return {string}
210
+ */
211
+ date2Str: (date: Date, split?: string) => string;
212
+ /**
213
+ * 返回日期格式字符串
214
+ * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
215
+ * @param {Date} 起点日期
216
+ * @return {string} '2014-12-31'
217
+ */
218
+ getDay(i: number, startDate?: Date): string;
219
+ /**
220
+ * 时间比较
221
+ * @return
222
+ */
223
+ compareDate(date1: string | Date, date2: string | Date): boolean;
224
+ /**
225
+ * 时间是否相等
226
+ * @return
227
+ */
228
+ isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
229
+ /**
230
+ * get month week
231
+ * @param year
232
+ * @param month
233
+ * @param date
234
+ * @param firstDayOfWeek
235
+ * @returns
236
+ */
237
+ getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
238
+ /**
239
+ * get year week
240
+ * @param year
241
+ * @param month
242
+ * @param date
243
+ * @param firstDayOfWeek
244
+ * @returns
245
+ */
246
+ getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
247
+ /**
248
+ * get week date
249
+ */
250
+ getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
251
+ /**
252
+ * format result date
253
+ */
254
+ formatResultDate: (date: string) => string[];
255
+ /**
256
+ * 判断日期是否在范围内
257
+ * @param date
258
+ * @param startDate
259
+ * @param span 允许负数
260
+ */
261
+ inScope4Day(date: Date, startDate: Date, span: number): boolean;
262
+ /**
263
+ * 判断日期是否在范围内
264
+ * @param date
265
+ * @param startDate
266
+ * @param span
267
+ */
268
+ inScope4Month(date: Date, startDate: Date, span: number): boolean;
269
+ };
270
+
271
+ /**
272
+ * 防抖函数(执行时间范围内的最后一次)
273
+ * @param func 函数
274
+ * @param delay 防止抖动毫秒数
275
+ * @returns
276
+ */
277
+ export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
278
+
279
+ /**
280
+ * 防抖Ref
281
+ * @param value
282
+ * @param delay
283
+ */
284
+ export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
285
+
286
+ /**
287
+ * 获取小数长度
288
+ * @param value
289
+ */
290
+ export declare function decimalLength(value: string | number): number;
291
+
292
+ declare const _default: FoxUIApp;
293
+ export default _default;
294
+
295
+ declare const _default_10: any;
296
+ export { _default_10 as FoxInputItem }
297
+ export { _default_10 as InputItem }
298
+
299
+ declare const _default_100: any;
300
+ export { _default_100 as CountDown }
301
+ export { _default_100 as FoxCountDown }
302
+
303
+ declare const _default_101: any;
304
+ export { _default_101 as Badge }
305
+ export { _default_101 as FoxBadge }
306
+
307
+ declare const _default_102: any;
308
+ export { _default_102 as FoxTag }
309
+ export { _default_102 as Tag }
310
+
311
+ declare const _default_103: any;
312
+ export { _default_103 as FoxPopover }
313
+ export { _default_103 as Popover }
314
+
315
+ declare const _default_104: any;
316
+ export { _default_104 as FoxSkeleton }
317
+ export { _default_104 as Skeleton }
318
+
319
+ declare const _default_105: any;
320
+ export { _default_105 as Collapse }
321
+ export { _default_105 as FoxCollapse }
322
+
323
+ declare const _default_106: any;
324
+ export { _default_106 as CollapseItem }
325
+ export { _default_106 as FoxCollapseItem }
326
+
327
+ declare const _default_107: any;
328
+ export { _default_107 as FoxTable }
329
+ export { _default_107 as Table }
330
+
331
+ declare const _default_108: any;
332
+ export { _default_108 as Ellipsis }
333
+ export { _default_108 as FoxEllipsis }
334
+
335
+ declare const _default_109: any;
336
+ export { _default_109 as Animate }
337
+ export { _default_109 as FoxAnimate }
338
+
339
+ declare const _default_11: any;
340
+ export { _default_11 as FoxMoneyItem }
341
+ export { _default_11 as MoneyItem }
342
+
343
+ declare const _default_110: any;
344
+ export { _default_110 as FoxWaterMark }
345
+ export { _default_110 as WaterMark }
346
+
347
+ declare const _default_111: any;
348
+ export { _default_111 as FoxTrendArrow }
349
+ export { _default_111 as TrendArrow }
350
+
351
+ declare const _default_112: any;
352
+ export { _default_112 as FoxTour }
353
+ export { _default_112 as Tour }
354
+
355
+ declare const _default_113: any;
356
+ export { _default_113 as Address }
357
+ export { _default_113 as FoxAddress }
358
+
359
+ declare const _default_114: any;
360
+ export { _default_114 as Barrage }
361
+ export { _default_114 as FoxBarrage }
362
+
363
+ declare const _default_115: any;
364
+ export { _default_115 as FoxSignature }
365
+ export { _default_115 as Signature }
366
+
367
+ declare const _default_116: any;
368
+ export { _default_116 as FoxTimeSelect }
369
+ export { _default_116 as TimeSelect }
370
+
371
+ declare const _default_117: any;
372
+ export { _default_117 as FoxTimePannel }
373
+ export { _default_117 as TimePannel }
374
+
375
+ declare const _default_118: any;
376
+ export { _default_118 as FoxTimeDetail }
377
+ export { _default_118 as TimeDetail }
378
+
379
+ declare const _default_119: any;
380
+ export { _default_119 as FoxSku }
381
+ export { _default_119 as Sku }
382
+
383
+ declare const _default_12: any;
384
+ export { _default_12 as FoxTextareaItem }
385
+ export { _default_12 as TextareaItem }
386
+
387
+ declare const _default_120: any;
388
+ export { _default_120 as Card }
389
+ export { _default_120 as FoxCard }
390
+
391
+ declare const _default_121: any;
392
+ export { _default_121 as Ecard }
393
+ export { _default_121 as FoxEcard }
394
+
395
+ declare const _default_122: any;
396
+ export { _default_122 as AddressList }
397
+ export { _default_122 as FoxAddressList }
398
+
399
+ declare const _default_123: any;
400
+ export { _default_123 as Category }
401
+ export { _default_123 as FoxCategory }
402
+
403
+ declare const _default_124: any;
404
+ export { _default_124 as CategoryPane }
405
+ export { _default_124 as FoxCategoryPane }
406
+
407
+ declare const _default_125: any;
408
+ export { _default_125 as Comment }
409
+ export { _default_125 as FoxComment }
410
+
411
+ declare const _default_13: any;
412
+ export { _default_13 as FoxTextarea }
413
+ export { _default_13 as Textarea }
414
+
415
+ declare const _default_14: any;
416
+ export { _default_14 as FoxPickerItem }
417
+ export { _default_14 as PickerItem }
418
+
419
+ declare const _default_15: any;
420
+ export { _default_15 as CascaderItem }
421
+ export { _default_15 as FoxCascaderItem }
422
+
423
+ declare const _default_16: any;
424
+ export { _default_16 as DateItem }
425
+ export { _default_16 as FoxDateItem }
426
+
427
+ declare const _default_17: any;
428
+ export { _default_17 as CalendarItem }
429
+ export { _default_17 as FoxCalendarItem }
430
+
431
+ declare const _default_18: any;
432
+ export { _default_18 as FoxRadio }
433
+ export { _default_18 as Radio }
434
+
435
+ declare const _default_19: any;
436
+ export { _default_19 as FoxRadioGroup }
437
+ export { _default_19 as RadioGroup }
438
+
439
+ declare const _default_2: any;
440
+ export { _default_2 as FoxPage }
441
+ export { _default_2 as Page }
442
+
443
+ declare const _default_20: any;
444
+ export { _default_20 as FoxRadioItem }
445
+ export { _default_20 as RadioItem }
446
+
447
+ declare const _default_21: any;
448
+ export { _default_21 as Checkbox }
449
+ export { _default_21 as FoxCheckbox }
450
+
451
+ declare const _default_22: any;
452
+ export { _default_22 as CheckboxGroup }
453
+ export { _default_22 as FoxCheckboxGroup }
454
+
455
+ declare const _default_23: any;
456
+ export { _default_23 as CheckboxItem }
457
+ export { _default_23 as FoxCheckboxItem }
458
+
459
+ declare const _default_24: any;
460
+ export { _default_24 as FoxSwitchItem }
461
+ export { _default_24 as SwitchItem }
462
+
463
+ declare const _default_25: any;
464
+ export { _default_25 as FoxLinkItem }
465
+ export { _default_25 as LinkItem }
466
+
467
+ declare const _default_26: any;
468
+ export { _default_26 as FoxRateItem }
469
+ export { _default_26 as RateItem }
470
+
471
+ declare const _default_27: any;
472
+ export { _default_27 as ActionsheetPane }
473
+ export { _default_27 as FoxActionsheetPane }
474
+
475
+ declare const _default_28: any;
476
+ export { _default_28 as ActionsheetItem }
477
+ export { _default_28 as FoxActionsheetItem }
478
+
479
+ declare const _default_29: any;
480
+ export { _default_29 as FoxInputnumberItem }
481
+ export { _default_29 as InputnumberItem }
482
+
483
+ declare const _default_3: any;
484
+ export { _default_3 as FoxHeaderBar }
485
+ export { _default_3 as HeaderBar }
486
+
487
+ declare const _default_30: any;
488
+ export { _default_30 as FoxTabsBar }
489
+ export { _default_30 as TabsBar }
490
+
491
+ declare const _default_31: any;
492
+ export { _default_31 as FoxTabsContainer }
493
+ export { _default_31 as TabsContainer }
494
+
495
+ declare const _default_32: any;
496
+ export { _default_32 as FoxTabsPane }
497
+ export { _default_32 as TabsPane }
498
+
499
+ declare const _default_33: any;
500
+ export { _default_33 as FoxStepsBar }
501
+ export { _default_33 as StepsBar }
502
+
503
+ declare const _default_34: any;
504
+ export { _default_34 as FloatingButton }
505
+ export { _default_34 as FoxFloatingButton }
506
+
507
+ declare const _default_35: any;
508
+ export { _default_35 as FoxText }
509
+ export { _default_35 as Text }
510
+
511
+ declare const _default_36: any;
512
+ export { _default_36 as FoxMapping }
513
+ export { _default_36 as Mapping }
514
+
515
+ declare const _default_37: any;
516
+ export { _default_37 as DomainProvider }
517
+ export { _default_37 as FoxDomainProvider }
518
+
519
+ declare const _default_38: any;
520
+ export { _default_38 as FoxRollingProvider }
521
+ export { _default_38 as RollingProvider }
522
+
523
+ declare const _default_39: any;
524
+ export { _default_39 as Button }
525
+ export { _default_39 as FoxButton }
526
+
527
+ declare const _default_4: any;
528
+ export { _default_4 as FooterBar }
529
+ export { _default_4 as FoxFooterBar }
530
+
531
+ declare const _default_40: any;
532
+ export { _default_40 as Cell }
533
+ export { _default_40 as FoxCell }
534
+
535
+ declare const _default_41: any;
536
+ export { _default_41 as CellGroup }
537
+ export { _default_41 as FoxCellGroup }
538
+
539
+ declare const _default_42: any;
540
+ export { _default_42 as FoxOverLay }
541
+ export { _default_42 as OverLay }
542
+
543
+ declare const _default_43: any;
544
+ export { _default_43 as FoxPopup }
545
+ export { _default_43 as Popup }
546
+
547
+ declare const _default_44: any;
548
+ export { _default_44 as FoxImage }
549
+ export { _default_44 as Image }
550
+
551
+ declare const _default_45: any;
552
+ export { _default_45 as FoxLayout }
553
+ export { _default_45 as Layout }
554
+
555
+ declare const _default_46: any;
556
+ export { _default_46 as Col }
557
+ export { _default_46 as FoxCol }
558
+
559
+ declare const _default_47: any;
560
+ export { _default_47 as FoxRow }
561
+ export { _default_47 as Row }
562
+
563
+ declare const _default_48: any;
564
+ export { _default_48 as FoxSticky }
565
+ export { _default_48 as Sticky }
566
+
567
+ declare const _default_49: any;
568
+ export { _default_49 as Divider }
569
+ export { _default_49 as FoxDivider }
570
+
571
+ declare const _default_5: any;
572
+ export { _default_5 as Content }
573
+ export { _default_5 as FoxContent }
574
+
575
+ declare const _default_50: any;
576
+ export { _default_50 as FoxGrid }
577
+ export { _default_50 as Grid }
578
+
579
+ declare const _default_51: any;
580
+ export { _default_51 as FoxGridItem }
581
+ export { _default_51 as GridItem }
582
+
583
+ declare const _default_52: any;
584
+ export { _default_52 as FoxNavbar }
585
+ export { _default_52 as Navbar }
586
+
587
+ declare const _default_53: any;
588
+ export { _default_53 as FixedNav }
589
+ export { _default_53 as FoxFixedNav }
590
+
591
+ declare const _default_54: any;
592
+ export { _default_54 as FoxMenu }
593
+ export { _default_54 as Menu }
594
+
595
+ declare const _default_55: any;
596
+ export { _default_55 as FoxMenuItem }
597
+ export { _default_55 as MenuItem }
598
+
599
+ declare const _default_56: any;
600
+ export { _default_56 as FoxTabbar }
601
+ export { _default_56 as Tabbar }
602
+
603
+ declare const _default_57: any;
604
+ export { _default_57 as FoxTabbarItem }
605
+ export { _default_57 as TabbarItem }
606
+
607
+ declare const _default_58: any;
608
+ export { _default_58 as Elevator }
609
+ export { _default_58 as FoxElevator }
610
+
611
+ declare const _default_59: any;
612
+ export { _default_59 as FoxPagination }
613
+ export { _default_59 as Pagination }
614
+
615
+ declare const _default_6: any;
616
+ export { _default_6 as FoxGroup }
617
+ export { _default_6 as Group }
618
+
619
+ declare const _default_60: any;
620
+ export { _default_60 as FoxTabs }
621
+ export { _default_60 as Tabs }
622
+
623
+ declare const _default_61: any;
624
+ export { _default_61 as FoxTabPane }
625
+ export { _default_61 as TabPane }
626
+
627
+ declare const _default_62: any;
628
+ export { _default_62 as FoxIndicator }
629
+ export { _default_62 as Indicator }
630
+
631
+ declare const _default_63: any;
632
+ export { _default_63 as FoxSideNavBar }
633
+ export { _default_63 as SideNavBar }
634
+
635
+ declare const _default_64: any;
636
+ export { _default_64 as FoxSideNavBarItem }
637
+ export { _default_64 as SideNavBarItem }
638
+
639
+ declare const _default_65: any;
640
+ export { _default_65 as FoxSubSideNavBar }
641
+ export { _default_65 as SubSideNavBar }
642
+
643
+ declare const _default_66: any;
644
+ export { _default_66 as FoxRange }
645
+ export { _default_66 as Range }
646
+
647
+ declare const _default_67: any;
648
+ export { _default_67 as FoxSearchBar }
649
+ export { _default_67 as SearchBar }
650
+
651
+ declare const _default_68: any;
652
+ export { _default_68 as Cascader }
653
+ export { _default_68 as FoxCascader }
654
+
655
+ declare const _default_69: any;
656
+ export { _default_69 as Calendar }
657
+ export { _default_69 as FoxCalendar }
658
+
659
+ declare const _default_7: any;
660
+ export { _default_7 as FoxItem }
661
+ export { _default_7 as Item }
662
+
663
+ declare const _default_70: any;
664
+ export { _default_70 as DatePicker }
665
+ export { _default_70 as FoxDatePicker }
666
+
667
+ declare const _default_71: any;
668
+ export { _default_71 as FoxInputNumber }
669
+ export { _default_71 as InputNumber }
670
+
671
+ declare const _default_72: any;
672
+ export { _default_72 as FoxRate }
673
+ export { _default_72 as Rate }
674
+
675
+ declare const _default_73: any;
676
+ export { _default_73 as FoxPicker }
677
+ export { _default_73 as Picker }
678
+
679
+ declare const _default_74: any;
680
+ export { _default_74 as FoxShortPassword }
681
+ export { _default_74 as ShortPassword }
682
+
683
+ declare const _default_75: any;
684
+ export { _default_75 as FoxUploader }
685
+ export { _default_75 as Uploader }
686
+
687
+ declare const _default_76: any;
688
+ export { _default_76 as FoxNumberKeyboard }
689
+ export { _default_76 as NumberKeyboard }
690
+
691
+ declare const _default_77: any;
692
+ export { _default_77 as FoxSwipe }
693
+ export { _default_77 as Swipe }
694
+
695
+ declare const _default_78: any;
696
+ export { _default_78 as ActionSheet }
697
+ export { _default_78 as FoxActionSheet }
698
+
699
+ declare const _default_79: any;
700
+ export { _default_79 as BackTop }
701
+ export { _default_79 as FoxBackTop }
702
+
703
+ declare const _default_8: any;
704
+ export { _default_8 as FoxRowItem }
705
+ export { _default_8 as RowItem }
706
+
707
+ declare const _default_80: any;
708
+ export { _default_80 as Drag }
709
+ export { _default_80 as FoxDrag }
710
+
711
+ declare const _default_81: any;
712
+ export { _default_81 as FoxInfiniteLoading }
713
+ export { _default_81 as InfiniteLoading }
714
+
715
+ declare const _default_82: any;
716
+ export { _default_82 as FoxPullRefresh }
717
+ export { _default_82 as PullRefresh }
718
+
719
+ declare const _default_83: any;
720
+ export { _default_83 as FoxSwitch }
721
+ export { _default_83 as Switch }
722
+
723
+ declare const _default_84: any;
724
+ export { _default_84 as Audio }
725
+ export { _default_84 as FoxAudio }
726
+
727
+ declare const _default_85: any;
728
+ export { _default_85 as AudioOperate }
729
+ export { _default_85 as FoxAudioOperate }
730
+
731
+ declare const _default_86: any;
732
+ export { _default_86 as Avatar }
733
+ export { _default_86 as FoxAvatar }
734
+
735
+ declare const _default_87: any;
736
+ export { _default_87 as AvatarGroup }
737
+ export { _default_87 as FoxAvatarGroup }
738
+
739
+ declare const _default_88: any;
740
+ export { _default_88 as FoxList }
741
+ export { _default_88 as List }
742
+
743
+ declare const _default_89: any;
744
+ export { _default_89 as FoxProgress }
745
+ export { _default_89 as Progress }
746
+
747
+ declare const _default_9: any;
748
+ export { _default_9 as FoxSlotItem }
749
+ export { _default_9 as SlotItem }
750
+
751
+ declare const _default_90: any;
752
+ export { _default_90 as CircleProgress }
753
+ export { _default_90 as FoxCircleProgress }
754
+
755
+ declare const _default_91: any;
756
+ export { _default_91 as FoxNoticeBar }
757
+ export { _default_91 as NoticeBar }
758
+
759
+ declare const _default_92: any;
760
+ export { _default_92 as Empty }
761
+ export { _default_92 as FoxEmpty }
762
+
763
+ declare const _default_93: any;
764
+ export { _default_93 as FoxVideo }
765
+ export { _default_93 as Video }
766
+
767
+ declare const _default_94: any;
768
+ export { _default_94 as FoxSteps }
769
+ export { _default_94 as Steps }
770
+
771
+ declare const _default_95: any;
772
+ export { _default_95 as FoxStep }
773
+ export { _default_95 as Step }
774
+
775
+ declare const _default_96: any;
776
+ export { _default_96 as FoxSwiper }
777
+ export { _default_96 as Swiper }
778
+
779
+ declare const _default_97: any;
780
+ export { _default_97 as FoxSwiperItem }
781
+ export { _default_97 as SwiperItem }
782
+
783
+ declare const _default_98: any;
784
+ export { _default_98 as FoxPrice }
785
+ export { _default_98 as Price }
786
+
787
+ declare const _default_99: any;
788
+ export { _default_99 as CountUp }
789
+ export { _default_99 as FoxCountUp }
790
+
791
+ /**
792
+ * anyNode
793
+ * @param name
794
+ * @param callbacks
795
+ * @returns
796
+ */
797
+ export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
798
+
799
+ /**
800
+ * 安装config domain
801
+ * @param name 名称
802
+ * @param props 属性
803
+ * @param ignores 忽略的属性
804
+ * @returns
805
+ */
806
+ export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
807
+
808
+ /**
809
+ * 定义domain data item
810
+ * @returns
811
+ */
812
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
813
+ broadcast: Broadcast;
814
+ validateSchema: ValidateSchema;
815
+ };
816
+
817
+ /**
818
+ * 安装domain
819
+ * @param name 名称
820
+ * @param props 属性
821
+ * @param ignores 忽略的属性
822
+ * @param exposes 暴露的方法
823
+ * @returns
824
+ */
825
+ export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
826
+
827
+ /**
828
+ * 定义domain item
829
+ * @returns
830
+ */
831
+ export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
832
+
833
+ /**
834
+ * 创建page state
835
+ *
836
+ * @param domain
837
+ * @param overrideProps
838
+ */
839
+ export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
840
+
841
+ /**
842
+ * 删除公共校验器
843
+ * @param type
844
+ */
845
+ export declare function deleteGlobalValidator(type: string): void;
846
+
847
+ /**
848
+ * 组件描述
849
+ */
850
+ export declare interface Descriptor {
851
+ componentName: string;
852
+ fieldName?: string;
853
+ valueName?: string;
854
+ valueType?: ValueType;
855
+ validate?: boolean;
856
+ pureDataValidate?: boolean;
857
+ validateHandler?: ValidateHandler;
858
+ validateCheckEvents?: string[];
859
+ validateResetEvents?: string[];
860
+ }
861
+
862
+ declare const _Dialog: {
863
+ (options: DialogOptions): DialogFunction;
864
+ install(app: any): void;
865
+ };
866
+ export { _Dialog as Dialog }
867
+ export { _Dialog as FoxDialog }
868
+
869
+ declare class DialogFunction {
870
+ private options;
871
+ /**
872
+ * 构造函数
873
+ * @param _options
874
+ */
875
+ constructor(_options: DialogOptions);
876
+ }
877
+
878
+ /**
879
+ * 默认配置
880
+ */
881
+ declare class DialogOptions {
882
+ title?: string;
883
+ content?: string | VNode;
884
+ cancelText?: string;
885
+ confirmText?: string;
886
+ textAlign?: string;
887
+ customClass?: string;
888
+ overlayStyle?: CSSProperties;
889
+ overlayClass?: string;
890
+ popStyle?: CSSProperties;
891
+ popClass?: string;
892
+ teleport?: string | HTMLElement;
893
+ id?: string | number;
894
+ footerDirection?: string;
895
+ onUpdate?: Function;
896
+ onConfirm?: Function;
897
+ onCancel?: Function;
898
+ onOpened?: Function;
899
+ onClosed?: Function;
900
+ beforeClose?: Function;
901
+ visible?: boolean;
902
+ noFooter?: boolean;
903
+ noConfirmBtn?: boolean;
904
+ noCancelBtn?: boolean;
905
+ confrimBtnDisabled?: boolean;
906
+ closeOnPopstate?: boolean;
907
+ lockScroll?: boolean;
908
+ }
909
+
910
+ /**
911
+ * 禁用属性
912
+ * @param source
913
+ */
914
+ export declare function disabledProperty(source: Ref): Ref;
915
+
916
+ export { divide }
917
+
918
+ /**
919
+ * Domain
920
+ */
921
+ export declare class Domain {
922
+ /**
923
+ * 父亲domain
924
+ */
925
+ private _parent;
926
+ get parent(): Domain | null;
927
+ set parent(val: Domain | null);
928
+ /**
929
+ * 名称
930
+ */
931
+ private _name;
932
+ get name(): string | null;
933
+ /**
934
+ * 广播器
935
+ */
936
+ private _broadcast;
937
+ get broadcast(): Broadcast | null;
938
+ set broadcast(val: Broadcast | null);
939
+ /**
940
+ * 校验器
941
+ */
942
+ private _validateSchema;
943
+ get validateSchema(): ValidateSchema | null;
944
+ set validateSchema(val: ValidateSchema | null);
945
+ /**
946
+ * 属性集合
947
+ */
948
+ private _props;
949
+ /**
950
+ * 构造函数
951
+ * @param name
952
+ */
953
+ constructor(name?: string | null);
954
+ /**
955
+ * 销毁
956
+ */
957
+ destroy(): void;
958
+ /**
959
+ * 合并属性
960
+ * @param props
961
+ */
962
+ merge(props: Record<string | number, any>, ignores?: any[]): void;
963
+ /**
964
+ * 判断是否有属性
965
+ */
966
+ has(key: string | number): boolean;
967
+ /**
968
+ * 删除属性
969
+ * @param key
970
+ */
971
+ delete(key: string | number): void;
972
+ /**
973
+ * 设置属性
974
+ * @param key
975
+ * @param value
976
+ */
977
+ set(key: string | number, value: any): void;
978
+ /**
979
+ * 获取属性
980
+ *
981
+ * @param key
982
+ * @param defaultValue
983
+ */
984
+ get(key: string | number, defaultValue?: any): any;
985
+ /**
986
+ * 获取属性
987
+ *
988
+ * @param key
989
+ * @param defaultValue
990
+ */
991
+ getForParent(key: string | number, defaultValue?: any): any;
992
+ /**
993
+ * 获取self属性
994
+ * @param key
995
+ * @returns
996
+ */
997
+ getForSelf(key: string | number): any;
998
+ /**
999
+ * 从继承关系中获取属性集合
1000
+ * @param key
1001
+ */
1002
+ getAll(key: string | number): any[];
1003
+ }
1004
+
1005
+ /**
1006
+ * domain item
1007
+ */
1008
+ export declare interface DomainItem {
1009
+ broadcast: Broadcast;
1010
+ validateSchema: ValidateSchema;
1011
+ emitEvent: {
1012
+ (type: string, ...args: any[]): void;
1013
+ };
1014
+ onEvent: {
1015
+ (type: string, listener: EventListener_2): void;
1016
+ };
1017
+ offEvent: {
1018
+ (type: string, listener: EventListener_2): void;
1019
+ };
1020
+ }
1021
+
1022
+ /**
1023
+ * domain key
1024
+ */
1025
+ export declare const DomainKey: unique symbol;
1026
+
1027
+ /**
1028
+ * event listener
1029
+ */
1030
+ declare interface EventListener_2 {
1031
+ (...args: any[]): void;
1032
+ }
1033
+
1034
+ /**
1035
+ * 根据排除模版,抽取属性
1036
+ * @param src
1037
+ * @param excludeTemplates
1038
+ * @returns
1039
+ */
1040
+ export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
1041
+
1042
+ /**
1043
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
1044
+ *
1045
+ * @returns
1046
+ */
1047
+ export declare function extend(...args: any[]): any;
1048
+
1049
+ /**
1050
+ * float data
1051
+ * @param format
1052
+ * @param dataOp
1053
+ * @param mapOps
1054
+ * @returns
1055
+ */
1056
+ export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
1057
+
1058
+ /**
1059
+ * Fox UI App
1060
+ */
1061
+ declare class FoxUIApp implements FoxUI {
1062
+ /**
1063
+ * packages
1064
+ */
1065
+ private packages;
1066
+ /**
1067
+ * version
1068
+ */
1069
+ private _version;
1070
+ get version(): string;
1071
+ /**
1072
+ * 构造函数
1073
+ * @param packages
1074
+ * @param version
1075
+ */
1076
+ constructor(packages: any[], version: string);
1077
+ /**
1078
+ * 安装
1079
+ * @param app
1080
+ * @param options
1081
+ */
1082
+ install(app: App, options: FoxUIOptions): any;
1083
+ /**
1084
+ * 初始化page Layout
1085
+ *
1086
+ * @param options
1087
+ * @param rootDomain
1088
+ */
1089
+ initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1090
+ /**
1091
+ * 设置scope getter
1092
+ * @param getter
1093
+ */
1094
+ setScopeGetter(getter: ScopeGetter): void;
1095
+ /**
1096
+ * 设置API
1097
+ * @param name
1098
+ * @param api
1099
+ * @param scope
1100
+ */
1101
+ setAPI(name: string, api: any, scope?: string): void;
1102
+ /**
1103
+ * 获取API
1104
+ * @param proxy
1105
+ * @param name
1106
+ * @param scope
1107
+ */
1108
+ getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
1109
+ /**
1110
+ * 批量增加api
1111
+ * @param apis
1112
+ * @param scope
1113
+ */
1114
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
1115
+ /**
1116
+ * 清空scope apis
1117
+ * @param scope
1118
+ */
1119
+ clearScopeAPI(scope: string): void;
1120
+ /**
1121
+ * 获取root domain
1122
+ */
1123
+ getRootDomain(): Domain;
1124
+ }
1125
+
1126
+ /**
1127
+ * 通用函数接口
1128
+ */
1129
+ export declare interface GenericFunction {
1130
+ (...args: any[]): any;
1131
+ }
1132
+
1133
+ /**
1134
+ * 获取公共校验检查事件
1135
+ */
1136
+ export declare function getGlobalValidateCheckEvents(): string[];
1137
+
1138
+ /**
1139
+ * 获取公共校验重置事件
1140
+ */
1141
+ export declare function getGlobalValidateResetEvents(): string[];
1142
+
1143
+ /**
1144
+ * 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
1145
+ * @param domain
1146
+ * @param state
1147
+ * @returns
1148
+ */
1149
+ export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
1150
+
1151
+ /**
1152
+ * 获取page content区域宽度(pageWidth - padding )
1153
+ * @param domain
1154
+ * @param state
1155
+ * @returns
1156
+ */
1157
+ export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
1158
+
1159
+ /**
1160
+ * 获取page footer区域高度(footerHeight + SafeAreaBottom )
1161
+ * @param domain
1162
+ * @param state
1163
+ * @returns
1164
+ */
1165
+ export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
1166
+
1167
+ /**
1168
+ * 获取page header区域高度(headerHeight + SafeAreaTop )
1169
+ * @param domain
1170
+ * @param state
1171
+ * @returns
1172
+ */
1173
+ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
1174
+
1175
+ /**
1176
+ * 获取root domain
1177
+ * @returns
1178
+ */
1179
+ export declare function getRootDomain(): Domain;
1180
+
1181
+ /**
1182
+ * 获取scroll top root
1183
+ * @returns
1184
+ */
1185
+ export declare const getScrollTopRoot: () => number;
1186
+
1187
+ /**
1188
+ * Group Content
1189
+ */
1190
+ declare type GroupContent = {
1191
+ title: string;
1192
+ content: Array<string> | string;
1193
+ };
1194
+
1195
+ /**
1196
+ * 是否支持symbol
1197
+ */
1198
+ export declare const hasSymbol: boolean;
1199
+
1200
+ /**
1201
+ * hint text function
1202
+ */
1203
+ declare const HintTextFunction: {
1204
+ /**
1205
+ * 显示
1206
+ * @param reference
1207
+ * @param message
1208
+ * @param opts
1209
+ * @param only
1210
+ * @returns
1211
+ */
1212
+ show(reference: HTMLElement, message: string, opts?: Record<string, any>, only?: boolean): string;
1213
+ /**
1214
+ * 隐藏
1215
+ * @param id
1216
+ */
1217
+ hide(id?: string): void;
1218
+ /**
1219
+ * 安装
1220
+ * @param app
1221
+ */
1222
+ install(app: any): void;
1223
+ };
1224
+ export { HintTextFunction as FoxHintText }
1225
+ export { HintTextFunction as HintText }
1226
+
1227
+ declare interface ImageInterface {
1228
+ src: string;
1229
+ }
1230
+
1231
+ declare class ImagePreviewApp {
1232
+ options: ImagePreviewOptions;
1233
+ constructor(_options: ImagePreviewOptions);
1234
+ }
1235
+
1236
+ declare const ImagePreviewFunction: {
1237
+ (options: ImagePreviewOptions): ImagePreviewApp;
1238
+ install(app: any): void;
1239
+ };
1240
+ export { ImagePreviewFunction as FoxImagePreview }
1241
+ export { ImagePreviewFunction as ImagePreview }
1242
+
1243
+ declare class ImagePreviewOptions {
1244
+ show: boolean;
1245
+ images: ImageInterface[];
1246
+ videos?: [];
1247
+ contentClose?: boolean;
1248
+ initNo?: number;
1249
+ paginationVisible?: boolean;
1250
+ paginationColor?: string;
1251
+ autoplay?: number | string;
1252
+ isWrapTeleport?: boolean;
1253
+ showIndex?: boolean;
1254
+ closeable?: boolean;
1255
+ closeIconPosition?: string;
1256
+ beforeClose?: Interceptor;
1257
+ maxZoom?: number;
1258
+ minZoom?: number;
1259
+ isLoop?: boolean;
1260
+ onClose?(): void;
1261
+ onChange?(index: number): void;
1262
+ teleport?: string | HTMLElement;
1263
+ }
1264
+
1265
+ /**
1266
+ * 根据包含模版,抽取属性
1267
+ * @param src
1268
+ * @param includeTemplates
1269
+ * @returns
1270
+ */
1271
+ export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
1272
+
1273
+ /**
1274
+ * 获取对应元素的在数组中第一个匹配的索引
1275
+ * @param x
1276
+ * @param arr
1277
+ * @returns
1278
+ */
1279
+ export declare function indexOf(x: unknown, arr: unknown[]): number;
1280
+
1281
+ /**
1282
+ * 安装校验规则
1283
+ * @param proxy
1284
+ */
1285
+ export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1286
+
1287
+ /**
1288
+ * 获取整数长度
1289
+ * @param value
1290
+ */
1291
+ export declare function integerLength(value: string | number): number;
1292
+
1293
+ declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
1294
+
1295
+ /**
1296
+ * 是否数组
1297
+ */
1298
+ export declare const isArray: (arg: any) => arg is any[];
1299
+
1300
+ /**
1301
+ * 是否为类数组
1302
+ * @param obj
1303
+ * @returns {boolean}
1304
+ */
1305
+ export declare function isArrayLike(obj: any): boolean;
1306
+
1307
+ /**
1308
+ * 是否为浏览器环境
1309
+ */
1310
+ export declare const isBrowser: boolean;
1311
+
1312
+ /**
1313
+ * 是否为Date
1314
+ * @param val
1315
+ * @returns
1316
+ */
1317
+ export declare const isDate: (val: unknown) => val is Date;
1318
+
1319
+ /**
1320
+ * 是否空字符串
1321
+ * @param v
1322
+ * @returns
1323
+ */
1324
+ export declare const isEmptyString: (v: unknown) => boolean;
1325
+
1326
+ /**
1327
+ * 判断两个对象是否一致
1328
+ * @param x
1329
+ * @param y
1330
+ * @return
1331
+ */
1332
+ export declare function isEqual(x: any, y: any): boolean;
1333
+
1334
+ /**
1335
+ * 是否为es module
1336
+ * @param obj
1337
+ * @returns
1338
+ */
1339
+ export declare function isESModule(obj: any): obj is Object;
1340
+
1341
+ /**
1342
+ * 是否为函数
1343
+ * @param val
1344
+ * @returns
1345
+ */
1346
+ export declare const isFunction: (val: unknown) => val is Function;
1347
+
1348
+ /**
1349
+ * 是否是隐藏element
1350
+ * @param el
1351
+ */
1352
+ export declare function isHidden(el: any): boolean;
1353
+
1354
+ /**
1355
+ * 是否为内嵌页面
1356
+ * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
1357
+ * @param domain
1358
+ * @param proxy
1359
+ * @returns
1360
+ */
1361
+ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
1362
+
1363
+ /**
1364
+ * 是否为Map
1365
+ * @param val
1366
+ * @returns
1367
+ */
1368
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
1369
+
1370
+ /**
1371
+ * 是否null/undefined对象
1372
+ */
1373
+ export declare function isNil(v: unknown): v is null | undefined;
1374
+
1375
+ /**
1376
+ * 是否为数字字符串
1377
+ * @param value
1378
+ * @returns
1379
+ */
1380
+ export declare function isNumberString(value: string): boolean;
1381
+
1382
+ /**
1383
+ * 是否为object
1384
+ */
1385
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
1386
+
1387
+ /**
1388
+ * 是否为plain对象
1389
+ * @param val
1390
+ * @returns
1391
+ */
1392
+ export declare const isPlainObject: (val: unknown) => val is object;
1393
+
1394
+ /**
1395
+ * 是否为promise
1396
+ * @param val
1397
+ * @returns
1398
+ */
1399
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
1400
+
1401
+ /**
1402
+ * 判断是否为正则表达式
1403
+ * @param v
1404
+ * @returns
1405
+ */
1406
+ export declare function isRegExp(v: unknown): v is RegExp;
1407
+
1408
+ /**
1409
+ * 是否为Set
1410
+ * @param val
1411
+ * @returns
1412
+ */
1413
+ export declare const isSet: (val: unknown) => val is Set<any>;
1414
+
1415
+ /**
1416
+ * 是否为字符串
1417
+ * @param val
1418
+ * @returns
1419
+ */
1420
+ export declare const isString: (val: unknown) => val is string;
1421
+
1422
+ /**
1423
+ * 是否子页面
1424
+ * @param domain
1425
+ */
1426
+ export declare function isSubPage(domain: Domain): boolean;
1427
+
1428
+ /**
1429
+ * 是否为symbol
1430
+ * @param val
1431
+ * @returns
1432
+ */
1433
+ export declare const isSymbol: (val: unknown) => val is symbol;
1434
+
1435
+ /**
1436
+ * 是否是window对象
1437
+ * @param obj
1438
+ */
1439
+ export declare function isWindow(obj: any): boolean;
1440
+
1441
+ /**
1442
+ * 获取对应元素的在数组中最后一个匹配的索引
1443
+ * @param x
1444
+ * @param arr
1445
+ * @returns
1446
+ */
1447
+ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
1448
+
1449
+ /**
1450
+ * 创建数组
1451
+ * @param arr
1452
+ * @param results
1453
+ * @return
1454
+ */
1455
+ export declare function makeArray(arr: any, results?: any[]): any[];
1456
+
1457
+ /**
1458
+ * 匹配条件
1459
+ */
1460
+ export declare interface Matched {
1461
+ name?: string | RegExp | {
1462
+ (name: string): boolean;
1463
+ };
1464
+ maxLevel?: number;
1465
+ level?: number;
1466
+ }
1467
+
1468
+ /**
1469
+ * 合并数组
1470
+ * @param first
1471
+ * @param second
1472
+ * @return
1473
+ */
1474
+ export declare function merge(first: any[], second: any[]): any[];
1475
+
1476
+ /**
1477
+ * MessageBox动作
1478
+ */
1479
+ declare type MessageBoxAction = 'confirm' | 'cancel' | 'close';
1480
+
1481
+ /**
1482
+ * MesageBox Function
1483
+ */
1484
+ declare const MessageBoxFunction: {
1485
+ /**
1486
+ * show
1487
+ * @param message
1488
+ * @param title
1489
+ * @param options
1490
+ */
1491
+ show: (openType: OpenType, message: Content_2 | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1492
+ /**
1493
+ * alert
1494
+ * @param messge
1495
+ * @param title
1496
+ * @param options
1497
+ */
1498
+ alert: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1499
+ /**
1500
+ * confirm
1501
+ * @param messge
1502
+ * @param title
1503
+ * @param options
1504
+ */
1505
+ confirm: (message: string | Options, title?: string | Options, options?: Options) => Promise<MessageResult>;
1506
+ /**
1507
+ * 安装
1508
+ * @param app
1509
+ */
1510
+ install(app: any): void;
1511
+ };
1512
+ export { MessageBoxFunction as FoxMessageBox }
1513
+ export { MessageBoxFunction as MessageBox }
1514
+
1515
+ /**
1516
+ * Message Box返回值
1517
+ */
1518
+ declare type MessageResult = {
1519
+ action: MessageBoxAction;
1520
+ };
1521
+
1522
+ export { multiply }
1523
+
1524
+ export { negate }
1525
+
1526
+ /**
1527
+ * 下一个事件周期中执行函数
1528
+ * @param fn
1529
+ * @param args
1530
+ */
1531
+ export declare function nextTick(fn: {
1532
+ (...args: any[]): void;
1533
+ }, ...args: any[]): void;
1534
+
1535
+ declare const NotifyFunction: {
1536
+ text(msg: string, obj?: {}): any;
1537
+ primary(msg: string, obj?: {}): any;
1538
+ success(msg: string, obj?: {}): any;
1539
+ danger(msg: string, obj?: {}): any;
1540
+ warn(msg: string, obj?: {}): any;
1541
+ hide(): void;
1542
+ install(app: any): void;
1543
+ };
1544
+ export { NotifyFunction as FoxNotify }
1545
+ export { NotifyFunction as Notify }
1546
+
1547
+ export { numberFormat }
1548
+
1549
+ /**
1550
+ * 对象类型
1551
+ */
1552
+ export declare const objectToString: () => string;
1553
+
1554
+ /**
1555
+ * 只执行一次函数
1556
+ * @param func
1557
+ * @returns
1558
+ */
1559
+ export declare function once(func: GenericFunction): GenericFunction;
1560
+
1561
+ /**
1562
+ * 打开类型
1563
+ */
1564
+ declare type OpenType = 'alert' | 'confirm' | '';
1565
+
1566
+ declare type Options = {
1567
+ teleport?: string | HTMLElement;
1568
+ [propName: string]: any;
1569
+ };
1570
+
1571
+ /**
1572
+ * padding
1573
+ */
1574
+ export declare interface Padding {
1575
+ left: number | null;
1576
+ top: number | null;
1577
+ right: number | null;
1578
+ bottom: number | null;
1579
+ }
1580
+
1581
+ /**
1582
+ * pad zero
1583
+ */
1584
+ export declare const padZero: (num: number | string, length?: number) => string;
1585
+
1586
+ /**
1587
+ * page layout
1588
+ */
1589
+ export declare interface PageLayout {
1590
+ width: number | string;
1591
+ height: number | string;
1592
+ headerHeight?: number | string;
1593
+ footerHeight?: number | string;
1594
+ headerPadding?: Padding;
1595
+ footerPadding?: Padding;
1596
+ contentPadding?: Padding;
1597
+ }
1598
+
1599
+ export declare interface PageState {
1600
+ width: number;
1601
+ height: number;
1602
+ headerHeight: number;
1603
+ headerPadding: Padding;
1604
+ headerAllHeight?: number;
1605
+ footerHeight: number;
1606
+ footerPadding: Padding;
1607
+ footerAllHeight?: number;
1608
+ contentHeight: number | string | null;
1609
+ contentPadding: Padding;
1610
+ contentInnerHeight?: number;
1611
+ contentInnerWidth?: number;
1612
+ safeAreaTop: number;
1613
+ safeAreaBottom: number;
1614
+ safeAreaLeft: number;
1615
+ safeAreaRight: number;
1616
+ headerMounted?: boolean;
1617
+ footerMounted?: boolean;
1618
+ }
1619
+
1620
+ /**
1621
+ * 坐标
1622
+ */
1623
+ export declare interface Point {
1624
+ x: number;
1625
+ y: number;
1626
+ }
1627
+
1628
+ /**
1629
+ * prevent default
1630
+ * @param event
1631
+ * @param isStopPropagation
1632
+ */
1633
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1634
+
1635
+ /**
1636
+ * 优先策略
1637
+ */
1638
+ export declare enum PriorityPolicy {
1639
+ Parent = 0,
1640
+ Near = 1
1641
+ }
1642
+
1643
+ /**
1644
+ * 属性
1645
+ * @param source
1646
+ * @param name
1647
+ * @param policy
1648
+ * @param filter
1649
+ */
1650
+ export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1651
+
1652
+ export declare const raf: any;
1653
+
1654
+ /**
1655
+ * 只读属性
1656
+ * @param source
1657
+ */
1658
+ export declare function readonlyProperty(source: Ref): Ref;
1659
+
1660
+ export declare interface Rect {
1661
+ top: number;
1662
+ left: number;
1663
+ right: number;
1664
+ bottom: number;
1665
+ width: number;
1666
+ height: number;
1667
+ }
1668
+
1669
+ /**
1670
+ * 结果类型
1671
+ */
1672
+ export declare type Result = Promise<any> | any;
1673
+
1674
+ /**
1675
+ * 结果集合
1676
+ */
1677
+ export declare type Results = Result[];
1678
+
1679
+ /**
1680
+ * 安全区域
1681
+ */
1682
+ export declare interface SafeAreaInset {
1683
+ left: number | string;
1684
+ top: number | string;
1685
+ right: number | string;
1686
+ bottom: number | string;
1687
+ }
1688
+
1689
+ /**
1690
+ * 设置公共校验检查事件
1691
+ * @param events
1692
+ */
1693
+ export declare function setGlobalValidateCheckEvents(events: string[]): void;
1694
+
1695
+ /**
1696
+ * 设置公共的校验处理器
1697
+ * @param validateHandler
1698
+ */
1699
+ export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
1700
+
1701
+ /**
1702
+ * 设置公共校验提示信息
1703
+ */
1704
+ export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
1705
+
1706
+ /**
1707
+ * 设置公共校验重置事件
1708
+ * @param events
1709
+ */
1710
+ export declare function setGlobalValidateResetEvents(events: string[]): void;
1711
+
1712
+ /**
1713
+ * 设置公共校验器
1714
+ * @param type
1715
+ * @param validator
1716
+ */
1717
+ export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1718
+
1719
+ /**
1720
+ * size
1721
+ */
1722
+ declare interface Size {
1723
+ width: number;
1724
+ height: number;
1725
+ }
1726
+
1727
+ /**
1728
+ * 节流函数(执行时间范围内的第一次)
1729
+ * @param func 函数
1730
+ * @param delay 延迟执行毫秒数
1731
+ * @returns
1732
+ */
1733
+ export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1734
+
1735
+ declare const ToastFunction: {
1736
+ text(msg: string, opts?: {}): any;
1737
+ success(msg: string, opts?: {}): any;
1738
+ fail(msg: string, opts?: {}): any;
1739
+ warn(msg: string, opts?: {}): any;
1740
+ loading(msg: string, opts?: {}): any;
1741
+ hide(id?: string): void;
1742
+ install(app: any): void;
1743
+ };
1744
+ export { ToastFunction as FoxToast }
1745
+ export { ToastFunction as Toast }
1746
+
1747
+ /**
1748
+ * 转换为boolean值
1749
+ * @param val
1750
+ * @returns
1751
+ */
1752
+ export declare function toBoolean(val: unknown): boolean;
1753
+
1754
+ /**
1755
+ * 转换为number值
1756
+ * @param val
1757
+ * @returns
1758
+ */
1759
+ export declare function toNumber(val: unknown): number;
1760
+
1761
+ /**
1762
+ * 转换为number rect
1763
+ */
1764
+ export declare function toPadding(rect: any): Padding;
1765
+
1766
+ /**
1767
+ * 转换为px number数值
1768
+ * @param value
1769
+ * @param size
1770
+ */
1771
+ export declare function toPx(value: number | string, size?: number): number;
1772
+
1773
+ /**
1774
+ * to px desc
1775
+ * @param value
1776
+ * @returns
1777
+ */
1778
+ export declare const toPxDesc: (value: string | number) => string;
1779
+
1780
+ export declare const toTypeString: (value: unknown) => string;
1781
+
1782
+ /**
1783
+ * to model value
1784
+ * @param props
1785
+ * @param format
1786
+ * @returns
1787
+ */
1788
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1789
+
1790
+ /**
1791
+ * 尝试执行多次函数
1792
+ * @param func 执行函数
1793
+ * @param milliseconds 执行间隔
1794
+ * @param maxLimit 最大尝试次数
1795
+ * @param step 间隔增加步长
1796
+ * @param immediately 是否立刻执行
1797
+ */
1798
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1799
+
1800
+ /**
1801
+ * 尝试多次函数
1802
+ * 返回true,代表执行完成,不在需要重试
1803
+ */
1804
+ export declare interface TryTimesFunction {
1805
+ (): boolean;
1806
+ }
1807
+
1808
+ /**
1809
+ * 判断类型
1810
+ * @param obj
1811
+ * @returns any
1812
+ */
1813
+ export declare function typeOf(obj: any): string;
1814
+
1815
+ export declare class UniqueID {
1816
+ /**
1817
+ * seed id
1818
+ */
1819
+ private seed;
1820
+ /**
1821
+ * 种子
1822
+ * @param seed
1823
+ */
1824
+ constructor(seed?: number);
1825
+ /**
1826
+ * 获取唯一ID
1827
+ * @returns
1828
+ */
1829
+ get(): number;
1830
+ }
1831
+
1832
+ export { unNumberFormat }
1833
+
1834
+ /**
1835
+ * 更新 page state
1836
+ * @param state
1837
+ * @param pageLayout
1838
+ * @param overrideProps
1839
+ * @param root
1840
+ * @param rootWidth
1841
+ * @param rootHeight
1842
+ * @param headerBarHeight
1843
+ * @param footerBarHeight
1844
+ */
1845
+ export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1846
+
1847
+ /**
1848
+ * 使用broadcast
1849
+ * @param proxy
1850
+ * @returns
1851
+ */
1852
+ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
1853
+
1854
+ /**
1855
+ * 获取当前domain
1856
+ * @returns
1857
+ */
1858
+ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1859
+
1860
+ /**
1861
+ * use expose
1862
+ * @param apis
1863
+ */
1864
+ export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
1865
+
1866
+ /**
1867
+ * 获取内部可用size
1868
+ * @param elementRef
1869
+ * @returns
1870
+ */
1871
+ export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
1872
+
1873
+ /**
1874
+ * 获取page state
1875
+ * @param domain
1876
+ * @returns
1877
+ */
1878
+ export declare function usePageState(domain: Domain): PageState | null;
1879
+
1880
+ /**
1881
+ * 获取element 位置
1882
+ * @param elementRef
1883
+ * @returns
1884
+ */
1885
+ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1886
+
1887
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1888
+
1889
+ /**
1890
+ * 获取size
1891
+ * @param elementRef
1892
+ * @returns
1893
+ */
1894
+ export declare function useSize(elementRef: Element | Ref<Element>): Size;
1895
+
1896
+ export declare function useTouch(): {
1897
+ move: EventListener;
1898
+ start: EventListener;
1899
+ reset: () => void;
1900
+ startX: any;
1901
+ startY: any;
1902
+ startTime: any;
1903
+ duration: any;
1904
+ moveX: any;
1905
+ moveY: any;
1906
+ deltaX: any;
1907
+ deltaY: any;
1908
+ offsetX: any;
1909
+ offsetY: any;
1910
+ direction: any;
1911
+ isVertical: () => boolean;
1912
+ isHorizontal: () => boolean;
1913
+ };
1914
+
1915
+ /**
1916
+ * 校验条件
1917
+ */
1918
+ export declare interface ValidateCondition {
1919
+ deep?: boolean;
1920
+ include?: string[];
1921
+ exclude?: string[];
1922
+ ignoreHidden?: boolean;
1923
+ }
1924
+
1925
+ /**
1926
+ * 校验器handler
1927
+ */
1928
+ export declare interface ValidateHandler {
1929
+ /**
1930
+ * 错误处理
1931
+ * @param errorMsg
1932
+ * @param proxy
1933
+ *
1934
+ */
1935
+ error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
1936
+ /**
1937
+ * 重置处理
1938
+ * @param proxy
1939
+ *
1940
+ */
1941
+ reset?(proxy: FoxComponentPublicInstance): void;
1942
+ /**
1943
+ * 成功处理
1944
+ * @param proxy
1945
+ *
1946
+ */
1947
+ success?(proxy: FoxComponentPublicInstance): void;
1948
+ /**
1949
+ * 规则装饰处理
1950
+ * @param newRule
1951
+ * @param oldRule
1952
+ * @param proxy
1953
+ *
1954
+ */
1955
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
1956
+ /**
1957
+ * 获取value
1958
+ * @param proxy
1959
+ *
1960
+ */
1961
+ getValue?(proxy: FoxComponentPublicInstance): any;
1962
+ }
1963
+
1964
+ /**
1965
+ * 校验器schema
1966
+ */
1967
+ export declare class ValidateSchema {
1968
+ /**
1969
+ * parent
1970
+ */
1971
+ private parent;
1972
+ /**
1973
+ * 校验器
1974
+ */
1975
+ private validators;
1976
+ /**
1977
+ * 属性rule
1978
+ */
1979
+ private attrRules;
1980
+ /**
1981
+ * rule
1982
+ */
1983
+ private rules;
1984
+ /**
1985
+ * 描述
1986
+ */
1987
+ private descriptor;
1988
+ /**
1989
+ * 实例
1990
+ */
1991
+ private proxy;
1992
+ /**
1993
+ * effect scope
1994
+ */
1995
+ private scope;
1996
+ /**
1997
+ * 构造函数
1998
+ * @param parent
1999
+ * @param descriptor
2000
+ * @param proxy
2001
+ */
2002
+ constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
2003
+ /**
2004
+ * 初始化
2005
+ */
2006
+ private init;
2007
+ /**
2008
+ * 销毁
2009
+ */
2010
+ destroy(): void;
2011
+ /**
2012
+ * 执行validate handler函数
2013
+ * @param name
2014
+ * @param args
2015
+ */
2016
+ private execHandler;
2017
+ /**
2018
+ * 调用装饰处理函数
2019
+ */
2020
+ private decorate;
2021
+ /**
2022
+ * 调用成功处理函数
2023
+ */
2024
+ private success;
2025
+ /**
2026
+ * 调用错误处理函数
2027
+ * @returns
2028
+ */
2029
+ private error;
2030
+ /**
2031
+ * 调用错误处理函数
2032
+ * @returns
2033
+ */
2034
+ private getValue;
2035
+ /**
2036
+ * 设置校验器
2037
+ * @param type
2038
+ * @param validator
2039
+ * @param global
2040
+ *
2041
+ * @returns
2042
+ */
2043
+ setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
2044
+ /**
2045
+ * 获取validator(只获取私有的validator)
2046
+ * @param type
2047
+ */
2048
+ getValidator(type: string): ExecuteValidator | null;
2049
+ /**
2050
+ * 删除校验器
2051
+ * @param type
2052
+ * @param global
2053
+ */
2054
+ deleteValidator(type: string, global?: boolean): void;
2055
+ /**
2056
+ * 判断校验器是否存在
2057
+ * @param type
2058
+ * @param global
2059
+ * @returns
2060
+ */
2061
+ hasValidator(type: string, global?: boolean): boolean;
2062
+ /**
2063
+ * 设置rule
2064
+ * @param rule
2065
+ */
2066
+ setRule(rule: Rule | null): void;
2067
+ /**
2068
+ * 清空校验错误信息
2069
+ * @params deep
2070
+ * @returns
2071
+ */
2072
+ clear(): void;
2073
+ /**
2074
+ * 执行校验
2075
+ * @returns
2076
+ */
2077
+ validate(): Promise<ValidateResult>;
2078
+ }
2079
+
2080
+ /**
2081
+ * validate schema key
2082
+ */
2083
+ export declare const ValidateSchemaKey: unique symbol;
2084
+
2085
+ /**
2086
+ * value 格式话
2087
+ */
2088
+ export declare interface ValueFormat<T, K> {
2089
+ (value: T): K;
2090
+ }
2091
+
2092
+ /**
2093
+ * 获取value长度
2094
+ * @param val
2095
+ * @returns
2096
+ */
2097
+ export declare function valueLength(val: unknown): number;
2098
+
2099
+ /**
2100
+ * value 类型
2101
+ */
2102
+ export declare type ValueType = 'string' | 'number' | 'date';
2103
+
2104
+ export { }