@fox-js/foxui 4.0.1-2 → 4.0.1-20

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 +21984 -0
  4. package/dist/index.umd.js +13 -0
  5. package/dist/locale/index.esm.js +425 -0
  6. package/dist/locale/index.umd.js +3 -0
  7. package/dist/style.css +1 -1
  8. package/dist/style.esm.js +7 -0
  9. package/dist/types/index.d.ts +1700 -119
  10. package/package.json +15 -11
  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,1700 @@
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
+ export declare const ActionSheet: any;
32
+
33
+ export declare const Address: any;
34
+
35
+ export declare const AddressList: any;
36
+
37
+ export declare const Animate: any;
38
+
39
+ declare const Audio_2: any;
40
+ export { Audio_2 as Audio }
41
+
42
+ export declare const AudioOperate: any;
43
+
44
+ export declare const Avatar: any;
45
+
46
+ export declare const AvatarGroup: any;
47
+
48
+ export declare const BackTop: any;
49
+
50
+ export declare const Badge: any;
51
+
52
+ export declare const Barrage: any;
53
+
54
+ /**
55
+ * 广播类
56
+ */
57
+ export declare class Broadcast {
58
+ /**
59
+ * parent
60
+ */
61
+ private parent;
62
+ /**
63
+ * children
64
+ */
65
+ private children;
66
+ /**
67
+ * 回调函数注册表
68
+ */
69
+ private callbacks;
70
+ /**
71
+ * vue proxy
72
+ */
73
+ private proxy;
74
+ /**
75
+ * 名称
76
+ */
77
+ private name?;
78
+ /**
79
+ * 构造函数
80
+ * @param parent
81
+ * @param proxy
82
+ * @param name
83
+ */
84
+ constructor(parent: Broadcast | null, proxy: FoxComponentPublicInstance, name?: string);
85
+ /**
86
+ * 加入孩子节点
87
+ * @param child
88
+ */
89
+ private addChild;
90
+ /**
91
+ * 移除孩子节点
92
+ * @param child
93
+ */
94
+ private removeChild;
95
+ /**
96
+ * 销毁
97
+ */
98
+ destroy(): void;
99
+ /**
100
+ * 发生消息
101
+ * @param matched
102
+ * @param action
103
+ * @param args
104
+ */
105
+ emit(matched: Matched, action: string, ...args: any[]): Results;
106
+ /**
107
+ * 发生消息(只发给孩子节点)
108
+ * @param matched
109
+ * @param action
110
+ * @param args
111
+ */
112
+ emitToChildren(matched: Matched, action: string, ...args: any[]): Results;
113
+ /**
114
+ * 注册回调函数
115
+ * @param action
116
+ * @param callback
117
+ * @returns
118
+ */
119
+ on(action: string, callback: BroadcastCallback): void;
120
+ }
121
+
122
+ /**
123
+ * broadcast callback
124
+ */
125
+ export declare interface BroadcastCallback {
126
+ (...args: any[]): Result;
127
+ }
128
+
129
+ export declare const BroadcastKey: unique symbol;
130
+
131
+ export declare const Button: any;
132
+
133
+ export declare const Calendar: any;
134
+
135
+ export declare const CalendarItem: any;
136
+
137
+ export declare function cancelRaf(id: number): void;
138
+
139
+ export declare const Card: any;
140
+
141
+ export declare const Cascader: any;
142
+
143
+ export declare const CascaderItem: any;
144
+
145
+ export declare const Category: any;
146
+
147
+ export declare const CategoryPane: any;
148
+
149
+ export declare const Cell: any;
150
+
151
+ export declare const CellGroup: any;
152
+
153
+ export declare const Checkbox: any;
154
+
155
+ export declare const CheckboxGroup: any;
156
+
157
+ export declare const CheckboxItem: any;
158
+
159
+ export declare const CircleProgress: any;
160
+
161
+ export declare const clamp: (num: number, min: number, max: number) => number;
162
+
163
+ /**
164
+ * 清理非数字
165
+ */
166
+ export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
167
+
168
+ /**
169
+ * 克隆对象
170
+ * @param target
171
+ * @param source
172
+ * @param plain
173
+ *
174
+ * @returns
175
+ */
176
+ export declare function clone(target: any, source: any, plain?: boolean): any;
177
+
178
+ export declare const Col: any;
179
+
180
+ export declare const Collapse: any;
181
+
182
+ export declare const CollapseItem: any;
183
+
184
+ declare const Comment_2: any;
185
+ export { Comment_2 as Comment }
186
+
187
+ export { compareTo }
188
+
189
+ export declare const Content: any;
190
+
191
+ export declare const CountDown: any;
192
+
193
+ export declare const CountUp: any;
194
+
195
+ /**
196
+ * 创建broadcast
197
+ *
198
+ * @param proxy
199
+ * @param parent
200
+ * @param name
201
+ * @param callbacks
202
+ * @returns
203
+ */
204
+ export declare function createBroadcast(proxy: FoxComponentPublicInstance, parent: Broadcast | null, name?: string, callbacks?: Record<string, BroadcastCallback>): Broadcast;
205
+
206
+ /**
207
+ * 创建校验schema
208
+ * @param proxy
209
+ * @param parent
210
+ * @param descriptor
211
+ * @returns
212
+ */
213
+ export declare function createValidateSchema(proxy: FoxComponentPublicInstance, parent: ValidateSchema | null, descriptor: Descriptor): ValidateSchema;
214
+
215
+ /**
216
+ * data items key
217
+ */
218
+ export declare const DataItemsKey: unique symbol;
219
+
220
+ export declare const DateItem: any;
221
+
222
+ export declare const DatePicker: any;
223
+
224
+ export declare const DateUtils: {
225
+ /**
226
+ * 格式化
227
+ * @param date
228
+ * @param template
229
+ * @returns
230
+ */
231
+ format(date: Date, template: string): string;
232
+ /**
233
+ * 解析
234
+ * @param str
235
+ * @param template
236
+ */
237
+ parser(str: string, template: string): Date;
238
+ /**
239
+ * 是否为闫年
240
+ * @return {Boolse} true|false
241
+ */
242
+ isLeapYear(y: number): boolean;
243
+ /**
244
+ * 返回星期数
245
+ * @return {String}
246
+ */
247
+ getWhatDay(year: number, month: number, day: number): string;
248
+ /**
249
+ * 返回星期数
250
+ * @return {Number}
251
+ */
252
+ getMonthPreDay(year: number, month: number): number;
253
+ /**
254
+ * 返回月份天数
255
+ * @return {Number}
256
+ */
257
+ getMonthDays(year: string, month: string): number;
258
+ /**
259
+ * 补齐数字位数
260
+ * @return {string}
261
+ */
262
+ getNumTwoBit(n: number): string;
263
+ /**
264
+ * 日期对象转成字符串
265
+ * @return {string}
266
+ */
267
+ date2Str: (date: Date, split?: string) => string;
268
+ /**
269
+ * 返回日期格式字符串
270
+ * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
271
+ * @param {Date} 起点日期
272
+ * @return {string} '2014-12-31'
273
+ */
274
+ getDay(i: number, startDate?: Date): string;
275
+ /**
276
+ * 时间比较
277
+ * @return
278
+ */
279
+ compareDate(date1: string | Date, date2: string | Date): boolean;
280
+ /**
281
+ * 时间是否相等
282
+ * @return
283
+ */
284
+ isEqual(date1: string | Date | null, date2: string | Date | null): boolean;
285
+ /**
286
+ * get month week
287
+ * @param year
288
+ * @param month
289
+ * @param date
290
+ * @param firstDayOfWeek
291
+ * @returns
292
+ */
293
+ getMonthWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
294
+ /**
295
+ * get year week
296
+ * @param year
297
+ * @param month
298
+ * @param date
299
+ * @param firstDayOfWeek
300
+ * @returns
301
+ */
302
+ getYearWeek: (year: string, month: string, date: string, firstDayOfWeek?: number) => number;
303
+ /**
304
+ * get week date
305
+ */
306
+ getWeekDate: (year: string, month: string, date: string, firstDayOfWeek?: number) => string[];
307
+ /**
308
+ * format result date
309
+ */
310
+ formatResultDate: (date: string) => string[];
311
+ /**
312
+ * 判断日期是否在范围内
313
+ * @param date
314
+ * @param startDate
315
+ * @param span 允许负数
316
+ */
317
+ inScope4Day(date: Date, startDate: Date, span: number): boolean;
318
+ /**
319
+ * 判断日期是否在范围内
320
+ * @param date
321
+ * @param startDate
322
+ * @param span
323
+ */
324
+ inScope4Month(date: Date, startDate: Date, span: number): boolean;
325
+ };
326
+
327
+ /**
328
+ * 防抖函数(执行时间范围内的最后一次)
329
+ * @param func 函数
330
+ * @param delay 防止抖动毫秒数
331
+ * @returns
332
+ */
333
+ export declare function debounce(func: GenericFunction, delay: number): GenericFunction;
334
+
335
+ /**
336
+ * 防抖Ref
337
+ * @param value
338
+ * @param delay
339
+ */
340
+ export declare function debounceRef<T>(value: T, delay: number): Ref<T>;
341
+
342
+ /**
343
+ * 获取小数长度
344
+ * @param value
345
+ */
346
+ export declare function decimalLength(value: string | number): number;
347
+
348
+ declare const _default: FoxUIApp;
349
+ export default _default;
350
+
351
+ /**
352
+ * anyNode
353
+ * @param name
354
+ * @param callbacks
355
+ * @returns
356
+ */
357
+ export declare function defineBroadcast(name?: string, callbacks?: Record<string, BroadcastCallback>, proxy?: FoxComponentPublicInstance): Broadcast | null;
358
+
359
+ /**
360
+ * 安装config domain
361
+ * @param name 名称
362
+ * @param props 属性
363
+ * @param ignores 忽略的属性
364
+ * @returns
365
+ */
366
+ export declare function defineConfigDomain(name: string | null, props: Record<string, any>, ignores?: any[]): Domain;
367
+
368
+ /**
369
+ * 定义domain data item
370
+ * @returns
371
+ */
372
+ export declare function defineDataItem(domain: Domain, name: string, descriptor: Descriptor, parentBroadcast: Broadcast, parentValidateSchema: ValidateSchema): {
373
+ broadcast: Broadcast;
374
+ validateSchema: ValidateSchema;
375
+ };
376
+
377
+ /**
378
+ * 安装domain
379
+ * @param name 名称
380
+ * @param props 属性
381
+ * @param ignores 忽略的属性
382
+ * @param exposes 暴露的方法
383
+ * @returns
384
+ */
385
+ export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
386
+
387
+ /**
388
+ * 定义domain item
389
+ * @returns
390
+ */
391
+ export declare function defineItem(descriptor: Descriptor, name?: string, exposes?: Record<string, BroadcastCallback>): DomainItem;
392
+
393
+ /**
394
+ * 创建page state
395
+ *
396
+ * @param domain
397
+ * @param overrideProps
398
+ */
399
+ export declare function definePageState(domain: Domain, overrideProps?: Record<string, unknown>): UnwrapNestedRefs<PageState> | null;
400
+
401
+ /**
402
+ * 删除公共校验器
403
+ * @param type
404
+ */
405
+ export declare function deleteGlobalValidator(type: string): void;
406
+
407
+ /**
408
+ * 组件描述
409
+ */
410
+ export declare interface Descriptor {
411
+ componentName: string;
412
+ fieldName?: string;
413
+ valueName?: string;
414
+ valueType?: ValueType;
415
+ validate?: boolean;
416
+ pureDataValidate?: boolean;
417
+ validateHandler?: ValidateHandler;
418
+ validateCheckEvents?: string[];
419
+ validateResetEvents?: string[];
420
+ }
421
+
422
+ export declare const Dialog: {
423
+ (options: DialogOptions): DialogFunction;
424
+ install(app: any): void;
425
+ };
426
+
427
+ declare class DialogFunction {
428
+ options: DialogOptions;
429
+ instance: any;
430
+ constructor(_options: DialogOptions);
431
+ close: () => void;
432
+ setDefaultOptions: (options: DialogOptions) => void;
433
+ resetDefaultOptions: () => void;
434
+ }
435
+
436
+ declare class DialogOptions {
437
+ title?: string;
438
+ content?: string | VNode;
439
+ cancelText?: string;
440
+ confirmText?: string;
441
+ textAlign?: string;
442
+ customClass?: string;
443
+ overlayStyle?: CSSProperties;
444
+ overlayClass?: string;
445
+ popStyle?: CSSProperties;
446
+ popClass?: string;
447
+ teleport?: string | HTMLElement;
448
+ id?: string | number;
449
+ footerDirection?: string;
450
+ onUpdate?: Function;
451
+ onConfirm?: Function;
452
+ onCancel?: Function;
453
+ onOpened?: Function;
454
+ onClosed?: Function;
455
+ beforeClose?: Function;
456
+ visible?: boolean;
457
+ noFooter?: boolean;
458
+ noConfirmBtn?: boolean;
459
+ noCancelBtn?: boolean;
460
+ confrimBtnDisabled?: boolean;
461
+ closeOnPopstate?: boolean;
462
+ lockScroll?: boolean;
463
+ }
464
+
465
+ /**
466
+ * 禁用属性
467
+ * @param source
468
+ */
469
+ export declare function disabledProperty(source: Ref): Ref;
470
+
471
+ export { divide }
472
+
473
+ export declare const Divider: any;
474
+
475
+ /**
476
+ * Domain
477
+ */
478
+ export declare class Domain {
479
+ /**
480
+ * 父亲domain
481
+ */
482
+ private _parent;
483
+ get parent(): Domain | null;
484
+ set parent(val: Domain | null);
485
+ /**
486
+ * 名称
487
+ */
488
+ private _name;
489
+ get name(): string | null;
490
+ /**
491
+ * 广播器
492
+ */
493
+ private _broadcast;
494
+ get broadcast(): Broadcast | null;
495
+ set broadcast(val: Broadcast | null);
496
+ /**
497
+ * 校验器
498
+ */
499
+ private _validateSchema;
500
+ get validateSchema(): ValidateSchema | null;
501
+ set validateSchema(val: ValidateSchema | null);
502
+ /**
503
+ * 属性集合
504
+ */
505
+ private _props;
506
+ /**
507
+ * 构造函数
508
+ * @param name
509
+ */
510
+ constructor(name?: string | null);
511
+ /**
512
+ * 销毁
513
+ */
514
+ destroy(): void;
515
+ /**
516
+ * 合并属性
517
+ * @param props
518
+ */
519
+ merge(props: Record<string | number, any>, ignores?: any[]): void;
520
+ /**
521
+ * 判断是否有属性
522
+ */
523
+ has(key: string | number): boolean;
524
+ /**
525
+ * 删除属性
526
+ * @param key
527
+ */
528
+ delete(key: string | number): void;
529
+ /**
530
+ * 设置属性
531
+ * @param key
532
+ * @param value
533
+ */
534
+ set(key: string | number, value: any): void;
535
+ /**
536
+ * 获取属性
537
+ *
538
+ * @param key
539
+ * @param defaultValue
540
+ */
541
+ get(key: string | number, defaultValue?: any): any;
542
+ /**
543
+ * 获取属性
544
+ *
545
+ * @param key
546
+ * @param defaultValue
547
+ */
548
+ getForParent(key: string | number, defaultValue?: any): any;
549
+ /**
550
+ * 获取self属性
551
+ * @param key
552
+ * @returns
553
+ */
554
+ getForSelf(key: string | number): any;
555
+ /**
556
+ * 从继承关系中获取属性集合
557
+ * @param key
558
+ */
559
+ getAll(key: string | number): any[];
560
+ }
561
+
562
+ /**
563
+ * domain item
564
+ */
565
+ export declare interface DomainItem {
566
+ broadcast: Broadcast;
567
+ validateSchema: ValidateSchema;
568
+ emitEvent: {
569
+ (type: string, ...args: any[]): void;
570
+ };
571
+ onEvent: {
572
+ (type: string, listener: EventListener_2): void;
573
+ };
574
+ offEvent: {
575
+ (type: string, listener: EventListener_2): void;
576
+ };
577
+ }
578
+
579
+ /**
580
+ * domain key
581
+ */
582
+ export declare const DomainKey: unique symbol;
583
+
584
+ export declare const DomainProvider: any;
585
+
586
+ export declare const Drag: any;
587
+
588
+ export declare const Ecard: any;
589
+
590
+ export declare const Elevator: any;
591
+
592
+ export declare const Ellipsis: any;
593
+
594
+ export declare const Empty: any;
595
+
596
+ /**
597
+ * event listener
598
+ */
599
+ declare interface EventListener_2 {
600
+ (...args: any[]): void;
601
+ }
602
+
603
+ /**
604
+ * 根据排除模版,抽取属性
605
+ * @param src
606
+ * @param excludeTemplates
607
+ * @returns
608
+ */
609
+ export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
610
+
611
+ /**
612
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
613
+ *
614
+ * @returns
615
+ */
616
+ export declare function extend(...args: any[]): any;
617
+
618
+ export declare const FixedNav: any;
619
+
620
+ export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
621
+
622
+ export declare const FooterBar: any;
623
+
624
+ /**
625
+ * Fox UI App
626
+ */
627
+ declare class FoxUIApp implements FoxUI {
628
+ /**
629
+ * packages
630
+ */
631
+ private packages;
632
+ /**
633
+ * version
634
+ */
635
+ private _version;
636
+ get version(): string;
637
+ /**
638
+ * 构造函数
639
+ * @param packages
640
+ * @param version
641
+ */
642
+ constructor(packages: any[], version: string);
643
+ /**
644
+ * 安装
645
+ * @param app
646
+ * @param options
647
+ */
648
+ install(app: App, options: FoxUIOptions): any;
649
+ /**
650
+ * 初始化page Layout
651
+ *
652
+ * @param options
653
+ * @param rootDomain
654
+ */
655
+ initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
656
+ /**
657
+ * 设置scope getter
658
+ * @param getter
659
+ */
660
+ setScopeGetter(getter: ScopeGetter): void;
661
+ /**
662
+ * 设置API
663
+ * @param name
664
+ * @param api
665
+ * @param scope
666
+ */
667
+ setAPI(name: string, api: any, scope?: string): void;
668
+ /**
669
+ * 获取API
670
+ * @param proxy
671
+ * @param name
672
+ * @param scope
673
+ */
674
+ getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
675
+ /**
676
+ * 批量增加api
677
+ * @param apis
678
+ * @param scope
679
+ */
680
+ batchSetAPI(apis: Record<string, any>, scope?: string): void;
681
+ /**
682
+ * 清空scope apis
683
+ * @param scope
684
+ */
685
+ clearScopeAPI(scope: string): void;
686
+ /**
687
+ * 获取root domain
688
+ */
689
+ getRootDomain(): Domain;
690
+ }
691
+
692
+ /**
693
+ * 通用函数接口
694
+ */
695
+ export declare interface GenericFunction {
696
+ (...args: any[]): any;
697
+ }
698
+
699
+ /**
700
+ * 获取公共校验检查事件
701
+ */
702
+ export declare function getGlobalValidateCheckEvents(): string[];
703
+
704
+ /**
705
+ * 获取公共校验重置事件
706
+ */
707
+ export declare function getGlobalValidateResetEvents(): string[];
708
+
709
+ /**
710
+ * 获取page content区域高度(pageHeight - headerHeight - footerHeight - padding )
711
+ * @param domain
712
+ * @param state
713
+ * @returns
714
+ */
715
+ export declare function getPageContentAreaHeight(domain: Domain, state?: PageState): number;
716
+
717
+ /**
718
+ * 获取page content区域宽度(pageWidth - padding )
719
+ * @param domain
720
+ * @param state
721
+ * @returns
722
+ */
723
+ export declare function getPageContentAreaWidth(domain: Domain, state?: PageState): number;
724
+
725
+ /**
726
+ * 获取page footer区域高度(footerHeight + SafeAreaBottom )
727
+ * @param domain
728
+ * @param state
729
+ * @returns
730
+ */
731
+ export declare function getPageFooterAreaHeight(domain: Domain, state?: PageState): number;
732
+
733
+ /**
734
+ * 获取page header区域高度(headerHeight + SafeAreaTop )
735
+ * @param domain
736
+ * @param state
737
+ * @returns
738
+ */
739
+ export declare function getPageHeaderAreaHeight(domain: Domain, state?: PageState): number;
740
+
741
+ /**
742
+ * 获取root domain
743
+ * @returns
744
+ */
745
+ export declare function getRootDomain(): Domain;
746
+
747
+ export declare const getScrollTopRoot: () => number;
748
+
749
+ export declare const Grid: any;
750
+
751
+ export declare const GridItem: any;
752
+
753
+ export declare const Group: any;
754
+
755
+ /**
756
+ * 是否支持symbol
757
+ */
758
+ export declare const hasSymbol: boolean;
759
+
760
+ export declare const HeaderBar: any;
761
+
762
+ export declare const hinttext: any;
763
+
764
+ declare const Image_2: any;
765
+ export { Image_2 as Image }
766
+
767
+ declare interface ImageInterface {
768
+ src: string;
769
+ }
770
+
771
+ export declare const ImagePreview: {
772
+ (options: ImagePreviewOptions): ImagePreviewApp;
773
+ install(app: any): void;
774
+ };
775
+
776
+ declare class ImagePreviewApp {
777
+ options: ImagePreviewOptions;
778
+ constructor(_options: ImagePreviewOptions);
779
+ }
780
+
781
+ declare class ImagePreviewOptions {
782
+ show: boolean;
783
+ images: ImageInterface[];
784
+ videos?: [];
785
+ contentClose?: boolean;
786
+ initNo?: number;
787
+ paginationVisible?: boolean;
788
+ paginationColor?: string;
789
+ autoplay?: number | string;
790
+ isWrapTeleport?: boolean;
791
+ showIndex?: boolean;
792
+ closeable?: boolean;
793
+ closeIconPosition?: string;
794
+ beforeClose?: Interceptor;
795
+ maxZoom?: number;
796
+ minZoom?: number;
797
+ isLoop?: boolean;
798
+ onClose?(): void;
799
+ onChange?(index: number): void;
800
+ teleport?: string | HTMLElement;
801
+ }
802
+
803
+ /**
804
+ * 根据包含模版,抽取属性
805
+ * @param src
806
+ * @param includeTemplates
807
+ * @returns
808
+ */
809
+ export declare function includeProps(src: Record<string, any>, ...includeTemplates: Record<string, any>[]): Record<string, any>;
810
+
811
+ /**
812
+ * 获取对应元素的在数组中第一个匹配的索引
813
+ * @param x
814
+ * @param arr
815
+ * @returns
816
+ */
817
+ export declare function indexOf(x: unknown, arr: unknown[]): number;
818
+
819
+ export declare const Indicator: any;
820
+
821
+ export declare const InfiniteLoading: any;
822
+
823
+ export declare const InputItem: any;
824
+
825
+ export declare const InputNumber: any;
826
+
827
+ /**
828
+ * 安装校验规则
829
+ * @param proxy
830
+ */
831
+ export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
832
+
833
+ /**
834
+ * 获取整数长度
835
+ * @param value
836
+ */
837
+ export declare function integerLength(value: string | number): number;
838
+
839
+ declare type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void;
840
+
841
+ /**
842
+ * 是否数组
843
+ */
844
+ export declare const isArray: (arg: any) => arg is any[];
845
+
846
+ /**
847
+ * 是否为类数组
848
+ * @param obj
849
+ * @returns {boolean}
850
+ */
851
+ export declare function isArrayLike(obj: any): boolean;
852
+
853
+ /**
854
+ * 是否为浏览器环境
855
+ */
856
+ export declare const isBrowser: boolean;
857
+
858
+ /**
859
+ * 是否为Date
860
+ * @param val
861
+ * @returns
862
+ */
863
+ export declare const isDate: (val: unknown) => val is Date;
864
+
865
+ /**
866
+ * 是否空字符串
867
+ * @param v
868
+ * @returns
869
+ */
870
+ export declare const isEmptyString: (v: unknown) => boolean;
871
+
872
+ /**
873
+ * 判断两个对象是否一致
874
+ * @param x
875
+ * @param y
876
+ * @return
877
+ */
878
+ export declare function isEqual(x: any, y: any): boolean;
879
+
880
+ /**
881
+ * 是否为es module
882
+ * @param obj
883
+ * @returns
884
+ */
885
+ export declare function isESModule(obj: any): obj is Object;
886
+
887
+ /**
888
+ * 是否为函数
889
+ * @param val
890
+ * @returns
891
+ */
892
+ export declare const isFunction: (val: unknown) => val is Function;
893
+
894
+ /**
895
+ * 是否是隐藏element
896
+ * @param el
897
+ */
898
+ export declare function isHidden(el: any): boolean;
899
+
900
+ /**
901
+ * 是否为内嵌页面
902
+ * 内嵌页面为内嵌在容器内,如dialog,不需要设置content的高度
903
+ * @param domain
904
+ * @param proxy
905
+ * @returns
906
+ */
907
+ export declare function isInnerPage(domain: Domain, proxy: any): boolean;
908
+
909
+ /**
910
+ * 是否为Map
911
+ * @param val
912
+ * @returns
913
+ */
914
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
915
+
916
+ /**
917
+ * 是否null/undefined对象
918
+ */
919
+ export declare function isNil(v: unknown): v is null | undefined;
920
+
921
+ /**
922
+ * 是否为数字字符串
923
+ * @param value
924
+ * @returns
925
+ */
926
+ export declare function isNumberString(value: string): boolean;
927
+
928
+ /**
929
+ * 是否为object
930
+ */
931
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
932
+
933
+ /**
934
+ * 是否为plain对象
935
+ * @param val
936
+ * @returns
937
+ */
938
+ export declare const isPlainObject: (val: unknown) => val is object;
939
+
940
+ /**
941
+ * 是否为promise
942
+ * @param val
943
+ * @returns
944
+ */
945
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
946
+
947
+ /**
948
+ * 判断是否为正则表达式
949
+ * @param v
950
+ * @returns
951
+ */
952
+ export declare function isRegExp(v: unknown): v is RegExp;
953
+
954
+ /**
955
+ * 是否为Set
956
+ * @param val
957
+ * @returns
958
+ */
959
+ export declare const isSet: (val: unknown) => val is Set<any>;
960
+
961
+ /**
962
+ * 是否为字符串
963
+ * @param val
964
+ * @returns
965
+ */
966
+ export declare const isString: (val: unknown) => val is string;
967
+
968
+ /**
969
+ * 是否子页面
970
+ * @param domain
971
+ */
972
+ export declare function isSubPage(domain: Domain): boolean;
973
+
974
+ /**
975
+ * 是否为symbol
976
+ * @param val
977
+ * @returns
978
+ */
979
+ export declare const isSymbol: (val: unknown) => val is symbol;
980
+
981
+ /**
982
+ * 是否是window对象
983
+ * @param obj
984
+ */
985
+ export declare function isWindow(obj: any): boolean;
986
+
987
+ export declare const Item: any;
988
+
989
+ /**
990
+ * 获取对应元素的在数组中最后一个匹配的索引
991
+ * @param x
992
+ * @param arr
993
+ * @returns
994
+ */
995
+ export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
996
+
997
+ export declare const Layout: any;
998
+
999
+ export declare const LinkItem: any;
1000
+
1001
+ export declare const List: any;
1002
+
1003
+ /**
1004
+ * 创建数组
1005
+ * @param arr
1006
+ * @param results
1007
+ * @return
1008
+ */
1009
+ export declare function makeArray(arr: any, results?: any[]): any[];
1010
+
1011
+ /**
1012
+ * 匹配条件
1013
+ */
1014
+ export declare interface Matched {
1015
+ name?: string | RegExp | {
1016
+ (name: string): boolean;
1017
+ };
1018
+ maxLevel?: number;
1019
+ level?: number;
1020
+ }
1021
+
1022
+ export declare const Menu: any;
1023
+
1024
+ export declare const MenuItem: any;
1025
+
1026
+ /**
1027
+ * 合并数组
1028
+ * @param first
1029
+ * @param second
1030
+ * @return
1031
+ */
1032
+ export declare function merge(first: any[], second: any[]): any[];
1033
+
1034
+ export declare const MoneyItem: any;
1035
+
1036
+ export { multiply }
1037
+
1038
+ export declare const Navbar: any;
1039
+
1040
+ export { negate }
1041
+
1042
+ /**
1043
+ * 下一个事件周期中执行函数
1044
+ * @param fn
1045
+ * @param args
1046
+ */
1047
+ export declare function nextTick(fn: {
1048
+ (...args: any[]): void;
1049
+ }, ...args: any[]): void;
1050
+
1051
+ export declare const NoticeBar: any;
1052
+
1053
+ export declare const Notify: {
1054
+ text(msg: string, obj?: {}): any;
1055
+ primary(msg: string, obj?: {}): any;
1056
+ success(msg: string, obj?: {}): any;
1057
+ danger(msg: string, obj?: {}): any;
1058
+ warn(msg: string, obj?: {}): any;
1059
+ hide(): void;
1060
+ install(app: any): void;
1061
+ };
1062
+
1063
+ export { numberFormat }
1064
+
1065
+ export declare const NumberKeyboard: any;
1066
+
1067
+ /**
1068
+ * 对象类型
1069
+ */
1070
+ export declare const objectToString: () => string;
1071
+
1072
+ /**
1073
+ * 只执行一次函数
1074
+ * @param func
1075
+ * @returns
1076
+ */
1077
+ export declare function once(func: GenericFunction): GenericFunction;
1078
+
1079
+ export declare const OverLay: any;
1080
+
1081
+ /**
1082
+ * padding
1083
+ */
1084
+ export declare interface Padding {
1085
+ left: number | null;
1086
+ top: number | null;
1087
+ right: number | null;
1088
+ bottom: number | null;
1089
+ }
1090
+
1091
+ export declare const padZero: (num: number | string, length?: number) => string;
1092
+
1093
+ export declare const Page: any;
1094
+
1095
+ /**
1096
+ * page layout
1097
+ */
1098
+ export declare interface PageLayout {
1099
+ width: number | string;
1100
+ height: number | string;
1101
+ headerHeight: number | string;
1102
+ footerHeight: number | string;
1103
+ headerPadding?: Padding;
1104
+ footerPadding?: Padding;
1105
+ contentPadding?: Padding;
1106
+ }
1107
+
1108
+ export declare interface PageState {
1109
+ width: number;
1110
+ height: number;
1111
+ headerHeight: number;
1112
+ headerPadding: Padding;
1113
+ headerAllHeight?: number;
1114
+ footerHeight: number;
1115
+ footerPadding: Padding;
1116
+ footerAllHeight?: number;
1117
+ contentHeight: number | string | null;
1118
+ contentPadding: Padding;
1119
+ contentInnerHeight?: number;
1120
+ contentInnerWidth?: number;
1121
+ safeAreaTop: number;
1122
+ safeAreaBottom: number;
1123
+ safeAreaLeft: number;
1124
+ safeAreaRight: number;
1125
+ headerMounted?: boolean;
1126
+ footerMounted?: boolean;
1127
+ }
1128
+
1129
+ export declare const Pagination: any;
1130
+
1131
+ export declare const Picker: any;
1132
+
1133
+ export declare const PickerItem: any;
1134
+
1135
+ /**
1136
+ * 坐标
1137
+ */
1138
+ export declare interface Point {
1139
+ x: number;
1140
+ y: number;
1141
+ }
1142
+
1143
+ export declare const Popover: any;
1144
+
1145
+ export declare const Popup: any;
1146
+
1147
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1148
+
1149
+ export declare const Price: any;
1150
+
1151
+ /**
1152
+ * 优先策略
1153
+ */
1154
+ export declare enum PriorityPolicy {
1155
+ Parent = 0,
1156
+ Near = 1
1157
+ }
1158
+
1159
+ export declare const Progress: any;
1160
+
1161
+ /**
1162
+ * 属性
1163
+ * @param source
1164
+ * @param name
1165
+ * @param policy
1166
+ * @param filter
1167
+ */
1168
+ export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1169
+
1170
+ export declare const PullRefresh: any;
1171
+
1172
+ export declare const Radio: any;
1173
+
1174
+ export declare const RadioGroup: any;
1175
+
1176
+ export declare const RadioItem: any;
1177
+
1178
+ export declare const raf: any;
1179
+
1180
+ declare const Range_2: any;
1181
+ export { Range_2 as Range }
1182
+
1183
+ export declare const Rate: any;
1184
+
1185
+ /**
1186
+ * 只读属性
1187
+ * @param source
1188
+ */
1189
+ export declare function readonlyProperty(source: Ref): Ref;
1190
+
1191
+ export declare interface Rect {
1192
+ top: number;
1193
+ left: number;
1194
+ right: number;
1195
+ bottom: number;
1196
+ width: number;
1197
+ height: number;
1198
+ }
1199
+
1200
+ /**
1201
+ * 结果类型
1202
+ */
1203
+ export declare type Result = Promise<any> | any;
1204
+
1205
+ /**
1206
+ * 结果集合
1207
+ */
1208
+ export declare type Results = Result[];
1209
+
1210
+ export declare const RollingProvider: any;
1211
+
1212
+ export declare const Row: any;
1213
+
1214
+ export declare const RowItem: any;
1215
+
1216
+ /**
1217
+ * 安全区域
1218
+ */
1219
+ export declare interface SafeAreaInset {
1220
+ left: number | string;
1221
+ top: number | string;
1222
+ right: number | string;
1223
+ bottom: number | string;
1224
+ }
1225
+
1226
+ export declare const SearchBar: any;
1227
+
1228
+ /**
1229
+ * 设置公共校验检查事件
1230
+ * @param events
1231
+ */
1232
+ export declare function setGlobalValidateCheckEvents(events: string[]): void;
1233
+
1234
+ /**
1235
+ * 设置公共的校验处理器
1236
+ * @param validateHandler
1237
+ */
1238
+ export declare function setGlobalValidateHandler(validateHandler: ValidateHandler): void;
1239
+
1240
+ /**
1241
+ * 设置公共校验提示信息
1242
+ */
1243
+ export declare function setGlobalValidateMessages(messages: ValidateMessages): void;
1244
+
1245
+ /**
1246
+ * 设置公共校验重置事件
1247
+ * @param events
1248
+ */
1249
+ export declare function setGlobalValidateResetEvents(events: string[]): void;
1250
+
1251
+ /**
1252
+ * 设置公共校验器
1253
+ * @param type
1254
+ * @param validator
1255
+ */
1256
+ export declare function setGlobalValidator(type: string, validator: ExecuteValidator): void;
1257
+
1258
+ export declare const ShortPassword: any;
1259
+
1260
+ export declare const SideNavBar: any;
1261
+
1262
+ export declare const SideNavBarItem: any;
1263
+
1264
+ export declare const Signature: any;
1265
+
1266
+ /**
1267
+ * size
1268
+ */
1269
+ declare interface Size {
1270
+ width: number;
1271
+ height: number;
1272
+ }
1273
+
1274
+ export declare const Skeleton: any;
1275
+
1276
+ export declare const Sku: any;
1277
+
1278
+ export declare const SlotItem: any;
1279
+
1280
+ export declare const Step: any;
1281
+
1282
+ export declare const Steps: any;
1283
+
1284
+ export declare const Sticky: any;
1285
+
1286
+ export declare const SubSideNavBar: any;
1287
+
1288
+ export declare const Swipe: any;
1289
+
1290
+ export declare const Swiper: any;
1291
+
1292
+ export declare const SwiperItem: any;
1293
+
1294
+ export declare const Switch: any;
1295
+
1296
+ export declare const SwitchItem: any;
1297
+
1298
+ export declare const Tabbar: any;
1299
+
1300
+ export declare const TabbarItem: any;
1301
+
1302
+ export declare const Table: any;
1303
+
1304
+ export declare const TabPane: any;
1305
+
1306
+ export declare const Tabs: any;
1307
+
1308
+ export declare const Tag: any;
1309
+
1310
+ export declare const Textarea: any;
1311
+
1312
+ export declare const TextareaItem: any;
1313
+
1314
+ /**
1315
+ * 节流函数(执行时间范围内的第一次)
1316
+ * @param func 函数
1317
+ * @param delay 延迟执行毫秒数
1318
+ * @returns
1319
+ */
1320
+ export declare function throttle(func: GenericFunction, delay: number): GenericFunction;
1321
+
1322
+ export declare const TimeDetail: any;
1323
+
1324
+ export declare const TimePannel: any;
1325
+
1326
+ export declare const TimeSelect: any;
1327
+
1328
+ export declare const Toast: {
1329
+ text(msg: string, opts?: {}): any;
1330
+ success(msg: string, opts?: {}): any;
1331
+ fail(msg: string, opts?: {}): any;
1332
+ warn(msg: string, opts?: {}): any;
1333
+ loading(msg: string, opts?: {}): any;
1334
+ hide(id?: string): void;
1335
+ install(app: any): void;
1336
+ };
1337
+
1338
+ /**
1339
+ * 转换为boolean值
1340
+ * @param val
1341
+ * @returns
1342
+ */
1343
+ export declare function toBoolean(val: unknown): boolean;
1344
+
1345
+ /**
1346
+ * 转换为number值
1347
+ * @param val
1348
+ * @returns
1349
+ */
1350
+ export declare function toNumber(val: unknown): number;
1351
+
1352
+ /**
1353
+ * 转换为number rect
1354
+ */
1355
+ export declare function toPadding(rect: any): Padding;
1356
+
1357
+ /**
1358
+ * 转换为px number数值
1359
+ * @param value
1360
+ * @param size
1361
+ */
1362
+ export declare function toPx(value: number | string, size?: number): number;
1363
+
1364
+ /**
1365
+ * to px desc
1366
+ * @param value
1367
+ * @returns
1368
+ */
1369
+ export declare const toPxDesc: (value: string | number) => string;
1370
+
1371
+ export declare const toTypeString: (value: unknown) => string;
1372
+
1373
+ export declare const Tour: any;
1374
+
1375
+ /**
1376
+ * to model value
1377
+ * @param props
1378
+ * @param format
1379
+ * @returns
1380
+ */
1381
+ export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1382
+
1383
+ export declare const TrendArrow: any;
1384
+
1385
+ /**
1386
+ * 尝试执行多次函数
1387
+ * @param func 执行函数
1388
+ * @param milliseconds 执行间隔
1389
+ * @param maxLimit 最大尝试次数
1390
+ * @param step 间隔增加步长
1391
+ * @param immediately 是否立刻执行
1392
+ */
1393
+ export declare function tryTimes(func: TryTimesFunction, milliseconds: number, maxLimit: number, step?: number, immediately?: boolean): void;
1394
+
1395
+ /**
1396
+ * 尝试多次函数
1397
+ * 返回true,代表执行完成,不在需要重试
1398
+ */
1399
+ export declare interface TryTimesFunction {
1400
+ (): boolean;
1401
+ }
1402
+
1403
+ /**
1404
+ * 判断类型
1405
+ * @param obj
1406
+ * @returns any
1407
+ */
1408
+ export declare function typeOf(obj: any): string;
1409
+
1410
+ export declare class UniqueID {
1411
+ /**
1412
+ * seed id
1413
+ */
1414
+ private seed;
1415
+ /**
1416
+ * 种子
1417
+ * @param seed
1418
+ */
1419
+ constructor(seed?: number);
1420
+ /**
1421
+ * 获取唯一ID
1422
+ * @returns
1423
+ */
1424
+ get(): number;
1425
+ }
1426
+
1427
+ export { unNumberFormat }
1428
+
1429
+ /**
1430
+ * 更新 page state
1431
+ * @param state
1432
+ * @param pageLayout
1433
+ * @param overrideProps
1434
+ */
1435
+ export declare function updatePageState(state: PageState, pageLayout: any, overrideProps?: Record<string, unknown>, root?: boolean, rootWidth?: number, rootHeight?: number, headerBarHeight?: number, footerBarHeight?: number): void;
1436
+
1437
+ export declare const Uploader: any;
1438
+
1439
+ /**
1440
+ * 使用broadcast
1441
+ * @param proxy
1442
+ * @returns
1443
+ */
1444
+ export declare function useBroadcast(proxy?: FoxComponentPublicInstance | null): Broadcast | null;
1445
+
1446
+ /**
1447
+ * 获取当前domain
1448
+ * @returns
1449
+ */
1450
+ export declare function useDomain(proxy?: ComponentPublicInstance | null): Domain | null;
1451
+
1452
+ /**
1453
+ * use expose
1454
+ * @param apis
1455
+ */
1456
+ export declare function useExpose(apis: Record<string, any>, instance?: ComponentInternalInstance | null): void;
1457
+
1458
+ /**
1459
+ * 获取内部可用size
1460
+ * @param elementRef
1461
+ * @returns
1462
+ */
1463
+ export declare function useInnerSize(elementRef: Element | Ref<Element>): Size;
1464
+
1465
+ /**
1466
+ * 获取page state
1467
+ * @param domain
1468
+ * @returns
1469
+ */
1470
+ export declare function usePageState(domain: Domain): PageState | null;
1471
+
1472
+ /**
1473
+ * 获取element 位置
1474
+ * @param elementRef
1475
+ * @returns
1476
+ */
1477
+ export declare const usePosition: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Point;
1478
+
1479
+ export declare const useRect: (elementRef: (Element | Window) | Ref<Element | Window | undefined>) => Rect;
1480
+
1481
+ /**
1482
+ * 获取size
1483
+ * @param elementRef
1484
+ * @returns
1485
+ */
1486
+ export declare function useSize(elementRef: Element | Ref<Element>): Size;
1487
+
1488
+ export declare function useTouch(): {
1489
+ move: EventListener;
1490
+ start: EventListener;
1491
+ reset: () => void;
1492
+ startX: any;
1493
+ startY: any;
1494
+ startTime: any;
1495
+ duration: any;
1496
+ moveX: any;
1497
+ moveY: any;
1498
+ deltaX: any;
1499
+ deltaY: any;
1500
+ offsetX: any;
1501
+ offsetY: any;
1502
+ direction: any;
1503
+ isVertical: () => boolean;
1504
+ isHorizontal: () => boolean;
1505
+ };
1506
+
1507
+ /**
1508
+ * 校验条件
1509
+ */
1510
+ export declare interface ValidateCondition {
1511
+ deep?: boolean;
1512
+ include?: string[];
1513
+ exclude?: string[];
1514
+ ignoreHidden?: boolean;
1515
+ }
1516
+
1517
+ /**
1518
+ * 校验器handler
1519
+ */
1520
+ export declare interface ValidateHandler {
1521
+ /**
1522
+ * 错误处理
1523
+ * @param errorMsg
1524
+ * @param proxy
1525
+ *
1526
+ */
1527
+ error?(errorMsg: string, proxy: FoxComponentPublicInstance): void;
1528
+ /**
1529
+ * 重置处理
1530
+ * @param proxy
1531
+ *
1532
+ */
1533
+ reset?(proxy: FoxComponentPublicInstance): void;
1534
+ /**
1535
+ * 成功处理
1536
+ * @param proxy
1537
+ *
1538
+ */
1539
+ success?(proxy: FoxComponentPublicInstance): void;
1540
+ /**
1541
+ * 规则装饰处理
1542
+ * @param newRule
1543
+ * @param oldRule
1544
+ * @param proxy
1545
+ *
1546
+ */
1547
+ decorate?(newRule: Rule, oldRule: Rule, proxy: FoxComponentPublicInstance): void;
1548
+ /**
1549
+ * 获取value
1550
+ * @param proxy
1551
+ *
1552
+ */
1553
+ getValue?(proxy: FoxComponentPublicInstance): any;
1554
+ }
1555
+
1556
+ /**
1557
+ * 校验器schema
1558
+ */
1559
+ export declare class ValidateSchema {
1560
+ /**
1561
+ * parent
1562
+ */
1563
+ private parent;
1564
+ /**
1565
+ * 校验器
1566
+ */
1567
+ private validators;
1568
+ /**
1569
+ * 属性rule
1570
+ */
1571
+ private attrRules;
1572
+ /**
1573
+ * rule
1574
+ */
1575
+ private rules;
1576
+ /**
1577
+ * 描述
1578
+ */
1579
+ private descriptor;
1580
+ /**
1581
+ * 实例
1582
+ */
1583
+ private proxy;
1584
+ /**
1585
+ * effect scope
1586
+ */
1587
+ private scope;
1588
+ /**
1589
+ * 构造函数
1590
+ * @param parent
1591
+ * @param descriptor
1592
+ * @param proxy
1593
+ */
1594
+ constructor(parent: ValidateSchema | null, descriptor: Descriptor, proxy: FoxComponentPublicInstance);
1595
+ /**
1596
+ * 初始化
1597
+ */
1598
+ private init;
1599
+ /**
1600
+ * 销毁
1601
+ */
1602
+ destroy(): void;
1603
+ /**
1604
+ * 执行validate handler函数
1605
+ * @param name
1606
+ * @param args
1607
+ */
1608
+ private execHandler;
1609
+ /**
1610
+ * 调用装饰处理函数
1611
+ */
1612
+ private decorate;
1613
+ /**
1614
+ * 调用成功处理函数
1615
+ */
1616
+ private success;
1617
+ /**
1618
+ * 调用错误处理函数
1619
+ * @returns
1620
+ */
1621
+ private error;
1622
+ /**
1623
+ * 调用错误处理函数
1624
+ * @returns
1625
+ */
1626
+ private getValue;
1627
+ /**
1628
+ * 设置校验器
1629
+ * @param type
1630
+ * @param validator
1631
+ * @param global
1632
+ *
1633
+ * @returns
1634
+ */
1635
+ setValidator(type: string, validator: ExecuteValidator, global?: boolean): void;
1636
+ /**
1637
+ * 获取validator(只获取私有的validator)
1638
+ * @param type
1639
+ */
1640
+ getValidator(type: string): ExecuteValidator | null;
1641
+ /**
1642
+ * 删除校验器
1643
+ * @param type
1644
+ * @param global
1645
+ */
1646
+ deleteValidator(type: string, global?: boolean): void;
1647
+ /**
1648
+ * 判断校验器是否存在
1649
+ * @param type
1650
+ * @param global
1651
+ * @returns
1652
+ */
1653
+ hasValidator(type: string, global?: boolean): boolean;
1654
+ /**
1655
+ * 设置rule
1656
+ * @param rule
1657
+ */
1658
+ setRule(rule: Rule | null): void;
1659
+ /**
1660
+ * 清空校验错误信息
1661
+ * @params deep
1662
+ * @returns
1663
+ */
1664
+ clear(): void;
1665
+ /**
1666
+ * 执行校验
1667
+ * @returns
1668
+ */
1669
+ validate(): Promise<ValidateResult>;
1670
+ }
1671
+
1672
+ /**
1673
+ * validate schema key
1674
+ */
1675
+ export declare const ValidateSchemaKey: unique symbol;
1676
+
1677
+ /**
1678
+ * value 格式话
1679
+ */
1680
+ export declare interface ValueFormat<T, K> {
1681
+ (value: T): K;
1682
+ }
1683
+
1684
+ /**
1685
+ * 获取value长度
1686
+ * @param val
1687
+ * @returns
1688
+ */
1689
+ export declare function valueLength(val: unknown): number;
1690
+
1691
+ /**
1692
+ * value 类型
1693
+ */
1694
+ export declare type ValueType = 'string' | 'number' | 'date';
1695
+
1696
+ export declare const Video: any;
1697
+
1698
+ export declare const WaterMark: any;
1699
+
1700
+ export { }