@dcloudio/uni-app-x 0.7.29 → 0.7.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.
- package/package.json +1 -1
- package/types/app.d.ts +279 -0
- package/types/native/UniNativePage.d.ts +0 -1
- package/types/native/global.d.ts +0 -2
- package/types/page.d.ts +623 -7
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +78 -3
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +83 -31
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +12 -12
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +2 -2
package/types/page.d.ts
CHANGED
|
@@ -1604,18 +1604,633 @@ interface Page {
|
|
|
1604
1604
|
|
|
1605
1605
|
type PageOrigin = Page
|
|
1606
1606
|
|
|
1607
|
-
export interface
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1607
|
+
export interface UniBasePage {
|
|
1608
|
+
/**
|
|
1609
|
+
* 页面的路由地址
|
|
1610
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1611
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1612
|
+
* @uniPlatform {
|
|
1613
|
+
* "app": {
|
|
1614
|
+
* "android": {
|
|
1615
|
+
* "osVer": "5.0",
|
|
1616
|
+
* "uniVer": "x",
|
|
1617
|
+
* "unixVer": "4.28"
|
|
1618
|
+
* },
|
|
1619
|
+
* "ios": {
|
|
1620
|
+
* "osVer": "x",
|
|
1621
|
+
* "uniVer": "x",
|
|
1622
|
+
* "unixVer": "4.28"
|
|
1623
|
+
* },
|
|
1624
|
+
* "harmony": {
|
|
1625
|
+
* "osVer": "x",
|
|
1626
|
+
* "uniVer": "x",
|
|
1627
|
+
* "unixVer": "x"
|
|
1628
|
+
* }
|
|
1629
|
+
* },
|
|
1630
|
+
* "mp": {
|
|
1631
|
+
* "weixin": {
|
|
1632
|
+
* "hostVer": "√",
|
|
1633
|
+
* "uniVer": "x",
|
|
1634
|
+
* "unixVer": "x"
|
|
1635
|
+
* },
|
|
1636
|
+
* },
|
|
1637
|
+
* "web": {
|
|
1638
|
+
* "uniVer": "x",
|
|
1639
|
+
* "unixVer": "4.28"
|
|
1640
|
+
* }
|
|
1641
|
+
* }
|
|
1642
|
+
*/
|
|
1611
1643
|
route: string
|
|
1644
|
+
/**
|
|
1645
|
+
* 页面的路由参数信息
|
|
1646
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1647
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1648
|
+
* @uniPlatform {
|
|
1649
|
+
* "app": {
|
|
1650
|
+
* "android": {
|
|
1651
|
+
* "osVer": "5.0",
|
|
1652
|
+
* "uniVer": "x",
|
|
1653
|
+
* "unixVer": "4.28"
|
|
1654
|
+
* },
|
|
1655
|
+
* "ios": {
|
|
1656
|
+
* "osVer": "x",
|
|
1657
|
+
* "uniVer": "x",
|
|
1658
|
+
* "unixVer": "4.28"
|
|
1659
|
+
* },
|
|
1660
|
+
* "harmony": {
|
|
1661
|
+
* "osVer": "x",
|
|
1662
|
+
* "uniVer": "x",
|
|
1663
|
+
* "unixVer": "x"
|
|
1664
|
+
* }
|
|
1665
|
+
* },
|
|
1666
|
+
* "mp": {
|
|
1667
|
+
* "weixin": {
|
|
1668
|
+
* "hostVer": "√",
|
|
1669
|
+
* "uniVer": "x",
|
|
1670
|
+
* "unixVer": "x"
|
|
1671
|
+
* },
|
|
1672
|
+
* },
|
|
1673
|
+
* "web": {
|
|
1674
|
+
* "uniVer": "x",
|
|
1675
|
+
* "unixVer": "4.28"
|
|
1676
|
+
* }
|
|
1677
|
+
* }
|
|
1678
|
+
*/
|
|
1612
1679
|
options: Map<string, string | null>
|
|
1613
|
-
|
|
1614
|
-
|
|
1680
|
+
/**
|
|
1681
|
+
* 监听自定义事件。事件可以由 uni.$emit 触发。回调函数会接收 uni.$emit 传递的参数。
|
|
1682
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1683
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1684
|
+
* @uniPlatform {
|
|
1685
|
+
* "app": {
|
|
1686
|
+
* "android": {
|
|
1687
|
+
* "osVer": "5.0",
|
|
1688
|
+
* "uniVer": "x",
|
|
1689
|
+
* "unixVer": "4.28"
|
|
1690
|
+
* },
|
|
1691
|
+
* "ios": {
|
|
1692
|
+
* "osVer": "x",
|
|
1693
|
+
* "uniVer": "x",
|
|
1694
|
+
* "unixVer": "4.28"
|
|
1695
|
+
* },
|
|
1696
|
+
* "harmony": {
|
|
1697
|
+
* "osVer": "x",
|
|
1698
|
+
* "uniVer": "x",
|
|
1699
|
+
* "unixVer": "x"
|
|
1700
|
+
* }
|
|
1701
|
+
* },
|
|
1702
|
+
* "mp": {
|
|
1703
|
+
* "weixin": {
|
|
1704
|
+
* "hostVer": "√",
|
|
1705
|
+
* "uniVer": "x",
|
|
1706
|
+
* "unixVer": "x"
|
|
1707
|
+
* },
|
|
1708
|
+
* },
|
|
1709
|
+
* "web": {
|
|
1710
|
+
* "uniVer": "x",
|
|
1711
|
+
* "unixVer": "4.28"
|
|
1712
|
+
* }
|
|
1713
|
+
* }
|
|
1714
|
+
*/
|
|
1615
1715
|
on(eventName: string, callback: Function): void
|
|
1716
|
+
/**
|
|
1717
|
+
* 监听一个自定义事件。事件只触发一次,在第一次触发之后移除事件监听器
|
|
1718
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1719
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1720
|
+
* @uniPlatform {
|
|
1721
|
+
* "app": {
|
|
1722
|
+
* "android": {
|
|
1723
|
+
* "osVer": "5.0",
|
|
1724
|
+
* "uniVer": "x",
|
|
1725
|
+
* "unixVer": "4.28"
|
|
1726
|
+
* },
|
|
1727
|
+
* "ios": {
|
|
1728
|
+
* "osVer": "x",
|
|
1729
|
+
* "uniVer": "x",
|
|
1730
|
+
* "unixVer": "4.28"
|
|
1731
|
+
* },
|
|
1732
|
+
* "harmony": {
|
|
1733
|
+
* "osVer": "x",
|
|
1734
|
+
* "uniVer": "x",
|
|
1735
|
+
* "unixVer": "x"
|
|
1736
|
+
* }
|
|
1737
|
+
* },
|
|
1738
|
+
* "mp": {
|
|
1739
|
+
* "weixin": {
|
|
1740
|
+
* "hostVer": "√",
|
|
1741
|
+
* "uniVer": "x",
|
|
1742
|
+
* "unixVer": "x"
|
|
1743
|
+
* },
|
|
1744
|
+
* },
|
|
1745
|
+
* "web": {
|
|
1746
|
+
* "uniVer": "x",
|
|
1747
|
+
* "unixVer": "4.28"
|
|
1748
|
+
* }
|
|
1749
|
+
* }
|
|
1750
|
+
*/
|
|
1616
1751
|
once(eventName: string, callback: Function): void
|
|
1752
|
+
/**
|
|
1753
|
+
* 移除自定义事件监听器。如果提供了事件名和回调,则只移除这个回调的监听器。如果仅提供事件名,则移除该事件的所有监听器。
|
|
1754
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1755
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1756
|
+
* @uniPlatform {
|
|
1757
|
+
* "app": {
|
|
1758
|
+
* "android": {
|
|
1759
|
+
* "osVer": "5.0",
|
|
1760
|
+
* "uniVer": "x",
|
|
1761
|
+
* "unixVer": "4.28"
|
|
1762
|
+
* },
|
|
1763
|
+
* "ios": {
|
|
1764
|
+
* "osVer": "x",
|
|
1765
|
+
* "uniVer": "x",
|
|
1766
|
+
* "unixVer": "4.28"
|
|
1767
|
+
* },
|
|
1768
|
+
* "harmony": {
|
|
1769
|
+
* "osVer": "x",
|
|
1770
|
+
* "uniVer": "x",
|
|
1771
|
+
* "unixVer": "x"
|
|
1772
|
+
* }
|
|
1773
|
+
* },
|
|
1774
|
+
* "mp": {
|
|
1775
|
+
* "weixin": {
|
|
1776
|
+
* "hostVer": "√",
|
|
1777
|
+
* "uniVer": "x",
|
|
1778
|
+
* "unixVer": "x"
|
|
1779
|
+
* },
|
|
1780
|
+
* },
|
|
1781
|
+
* "web": {
|
|
1782
|
+
* "uniVer": "x",
|
|
1783
|
+
* "unixVer": 4.28x"
|
|
1784
|
+
* }
|
|
1785
|
+
* }
|
|
1786
|
+
*/
|
|
1617
1787
|
off(eventName: string, callback?: Function | null): void
|
|
1788
|
+
/**
|
|
1789
|
+
* 触发自定义事件,附加的参数会传递给事件监听器。
|
|
1790
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1791
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1792
|
+
* @uniPlatform {
|
|
1793
|
+
* "app": {
|
|
1794
|
+
* "android": {
|
|
1795
|
+
* "osVer": "5.0",
|
|
1796
|
+
* "uniVer": "x",
|
|
1797
|
+
* "unixVer": "4.28"
|
|
1798
|
+
* },
|
|
1799
|
+
* "ios": {
|
|
1800
|
+
* "osVer": "x",
|
|
1801
|
+
* "uniVer": "x",
|
|
1802
|
+
* "unixVer": "4.28"
|
|
1803
|
+
* },
|
|
1804
|
+
* "harmony": {
|
|
1805
|
+
* "osVer": "x",
|
|
1806
|
+
* "uniVer": "x",
|
|
1807
|
+
* "unixVer": "x"
|
|
1808
|
+
* }
|
|
1809
|
+
* },
|
|
1810
|
+
* "mp": {
|
|
1811
|
+
* "weixin": {
|
|
1812
|
+
* "hostVer": "√",
|
|
1813
|
+
* "uniVer": "x",
|
|
1814
|
+
* "unixVer": "x"
|
|
1815
|
+
* },
|
|
1816
|
+
* },
|
|
1817
|
+
* "web": {
|
|
1818
|
+
* "uniVer": "x",
|
|
1819
|
+
* "unixVer": "4.28"
|
|
1820
|
+
* }
|
|
1821
|
+
* }
|
|
1822
|
+
*/
|
|
1618
1823
|
emit(eventName: string, args: any | null): void
|
|
1824
|
+
/**
|
|
1825
|
+
* 获取所属父页面
|
|
1826
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1827
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1828
|
+
* @uniPlatform {
|
|
1829
|
+
* "app": {
|
|
1830
|
+
* "android": {
|
|
1831
|
+
* "osVer": "5.0",
|
|
1832
|
+
* "uniVer": "x",
|
|
1833
|
+
* "unixVer": "4.28"
|
|
1834
|
+
* },
|
|
1835
|
+
* "ios": {
|
|
1836
|
+
* "osVer": "x",
|
|
1837
|
+
* "uniVer": "x",
|
|
1838
|
+
* "unixVer": "4.28"
|
|
1839
|
+
* },
|
|
1840
|
+
* "harmony": {
|
|
1841
|
+
* "osVer": "x",
|
|
1842
|
+
* "uniVer": "x",
|
|
1843
|
+
* "unixVer": "x"
|
|
1844
|
+
* }
|
|
1845
|
+
* },
|
|
1846
|
+
* "mp": {
|
|
1847
|
+
* "weixin": {
|
|
1848
|
+
* "hostVer": "√",
|
|
1849
|
+
* "uniVer": "x",
|
|
1850
|
+
* "unixVer": "x"
|
|
1851
|
+
* },
|
|
1852
|
+
* },
|
|
1853
|
+
* "web": {
|
|
1854
|
+
* "uniVer": "x",
|
|
1855
|
+
* "unixVer": "4.28"
|
|
1856
|
+
* }
|
|
1857
|
+
* }
|
|
1858
|
+
*/
|
|
1859
|
+
getParentPage(): UniPage | null
|
|
1860
|
+
/**
|
|
1861
|
+
* 获取当前页面的 dialog 子页面集合
|
|
1862
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1863
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1864
|
+
* @uniPlatform {
|
|
1865
|
+
* "app": {
|
|
1866
|
+
* "android": {
|
|
1867
|
+
* "osVer": "5.0",
|
|
1868
|
+
* "uniVer": "x",
|
|
1869
|
+
* "unixVer": "4.28"
|
|
1870
|
+
* },
|
|
1871
|
+
* "ios": {
|
|
1872
|
+
* "osVer": "x",
|
|
1873
|
+
* "uniVer": "x",
|
|
1874
|
+
* "unixVer": "4.28"
|
|
1875
|
+
* },
|
|
1876
|
+
* "harmony": {
|
|
1877
|
+
* "osVer": "x",
|
|
1878
|
+
* "uniVer": "x",
|
|
1879
|
+
* "unixVer": "x"
|
|
1880
|
+
* }
|
|
1881
|
+
* },
|
|
1882
|
+
* "mp": {
|
|
1883
|
+
* "weixin": {
|
|
1884
|
+
* "hostVer": "√",
|
|
1885
|
+
* "uniVer": "x",
|
|
1886
|
+
* "unixVer": "x"
|
|
1887
|
+
* },
|
|
1888
|
+
* },
|
|
1889
|
+
* "web": {
|
|
1890
|
+
* "uniVer": "x",
|
|
1891
|
+
* "unixVer": "4.28"
|
|
1892
|
+
* }
|
|
1893
|
+
* }
|
|
1894
|
+
*/
|
|
1895
|
+
getDialogPages(): UniDialogPage[]
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export interface UniPage extends UniBasePage {
|
|
1899
|
+
/**
|
|
1900
|
+
* UniPage vue 实例对象
|
|
1901
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1902
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1903
|
+
* @uniPlatform {
|
|
1904
|
+
* "app": {
|
|
1905
|
+
* "android": {
|
|
1906
|
+
* "osVer": "5.0",
|
|
1907
|
+
* "uniVer": "x",
|
|
1908
|
+
* "unixVer": "4.28"
|
|
1909
|
+
* },
|
|
1910
|
+
* "ios": {
|
|
1911
|
+
* "osVer": "x",
|
|
1912
|
+
* "uniVer": "x",
|
|
1913
|
+
* "unixVer": "4.28"
|
|
1914
|
+
* },
|
|
1915
|
+
* "harmony": {
|
|
1916
|
+
* "osVer": "x",
|
|
1917
|
+
* "uniVer": "x",
|
|
1918
|
+
* "unixVer": "x"
|
|
1919
|
+
* }
|
|
1920
|
+
* },
|
|
1921
|
+
* "mp": {
|
|
1922
|
+
* "weixin": {
|
|
1923
|
+
* "hostVer": "√",
|
|
1924
|
+
* "uniVer": "x",
|
|
1925
|
+
* "unixVer": "x"
|
|
1926
|
+
* },
|
|
1927
|
+
* },
|
|
1928
|
+
* "web": {
|
|
1929
|
+
* "uniVer": "x",
|
|
1930
|
+
* "unixVer": "4.28"
|
|
1931
|
+
* }
|
|
1932
|
+
* }
|
|
1933
|
+
*/
|
|
1934
|
+
vm: ComponentPublicInstance | null
|
|
1935
|
+
/**
|
|
1936
|
+
* UniPage vue 实例对象
|
|
1937
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1938
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
1939
|
+
* @uniPlatform {
|
|
1940
|
+
* "app": {
|
|
1941
|
+
* "android": {
|
|
1942
|
+
* "osVer": "5.0",
|
|
1943
|
+
* "uniVer": "x",
|
|
1944
|
+
* "unixVer": "4.28"
|
|
1945
|
+
* },
|
|
1946
|
+
* "ios": {
|
|
1947
|
+
* "osVer": "x",
|
|
1948
|
+
* "uniVer": "x",
|
|
1949
|
+
* "unixVer": "4.28"
|
|
1950
|
+
* },
|
|
1951
|
+
* "harmony": {
|
|
1952
|
+
* "osVer": "x",
|
|
1953
|
+
* "uniVer": "x",
|
|
1954
|
+
* "unixVer": "x"
|
|
1955
|
+
* }
|
|
1956
|
+
* },
|
|
1957
|
+
* "mp": {
|
|
1958
|
+
* "weixin": {
|
|
1959
|
+
* "hostVer": "√",
|
|
1960
|
+
* "uniVer": "x",
|
|
1961
|
+
* "unixVer": "x"
|
|
1962
|
+
* },
|
|
1963
|
+
* },
|
|
1964
|
+
* "web": {
|
|
1965
|
+
* "uniVer": "x",
|
|
1966
|
+
* "unixVer": "4.28"
|
|
1967
|
+
* }
|
|
1968
|
+
* }
|
|
1969
|
+
*/
|
|
1970
|
+
$vm: ComponentPublicInstance | null
|
|
1971
|
+
/**
|
|
1972
|
+
* 获取当前页面样式 \
|
|
1973
|
+
* 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
1974
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getPageStyle
|
|
1975
|
+
* @uniPlatform {
|
|
1976
|
+
* "app": {
|
|
1977
|
+
* "android": {
|
|
1978
|
+
* "osVer": "5.0",
|
|
1979
|
+
* "uniVer": "x",
|
|
1980
|
+
* "unixVer": "4.28"
|
|
1981
|
+
* },
|
|
1982
|
+
* "ios": {
|
|
1983
|
+
* "osVer": "x",
|
|
1984
|
+
* "uniVer": "x",
|
|
1985
|
+
* "unixVer": "4.28"
|
|
1986
|
+
* },
|
|
1987
|
+
* "harmony": {
|
|
1988
|
+
* "osVer": "x",
|
|
1989
|
+
* "uniVer": "x",
|
|
1990
|
+
* "unixVer": "x"
|
|
1991
|
+
* }
|
|
1992
|
+
* },
|
|
1993
|
+
* "mp": {
|
|
1994
|
+
* "weixin": {
|
|
1995
|
+
* "hostVer": "√",
|
|
1996
|
+
* "uniVer": "x",
|
|
1997
|
+
* "unixVer": "x"
|
|
1998
|
+
* },
|
|
1999
|
+
* },
|
|
2000
|
+
* "web": {
|
|
2001
|
+
* "uniVer": "x",
|
|
2002
|
+
* "unixVer": "4.28"
|
|
2003
|
+
* }
|
|
2004
|
+
* }
|
|
2005
|
+
*/
|
|
2006
|
+
getPageStyle(): UTSJSONObject
|
|
2007
|
+
/**
|
|
2008
|
+
* 设置当前页面样式 \
|
|
2009
|
+
* 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
2010
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
|
|
2011
|
+
* @uniPlatform {
|
|
2012
|
+
* "app": {
|
|
2013
|
+
* "android": {
|
|
2014
|
+
* "osVer": "5.0",
|
|
2015
|
+
* "uniVer": "x",
|
|
2016
|
+
* "unixVer": "4.28"
|
|
2017
|
+
* },
|
|
2018
|
+
* "ios": {
|
|
2019
|
+
* "osVer": "x",
|
|
2020
|
+
* "uniVer": "x",
|
|
2021
|
+
* "unixVer": "4.28"
|
|
2022
|
+
* },
|
|
2023
|
+
* "harmony": {
|
|
2024
|
+
* "osVer": "x",
|
|
2025
|
+
* "uniVer": "x",
|
|
2026
|
+
* "unixVer": "x"
|
|
2027
|
+
* }
|
|
2028
|
+
* },
|
|
2029
|
+
* "mp": {
|
|
2030
|
+
* "weixin": {
|
|
2031
|
+
* "hostVer": "√",
|
|
2032
|
+
* "uniVer": "x",
|
|
2033
|
+
* "unixVer": "x"
|
|
2034
|
+
* },
|
|
2035
|
+
* },
|
|
2036
|
+
* "web": {
|
|
2037
|
+
* "uniVer": "x",
|
|
2038
|
+
* "unixVer": "4.28"
|
|
2039
|
+
* }
|
|
2040
|
+
* }
|
|
2041
|
+
*/
|
|
2042
|
+
setPageStyle(style: UTSJSONObject): void
|
|
2043
|
+
/**
|
|
2044
|
+
* 返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\
|
|
2045
|
+
* 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
|
|
2046
|
+
* ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
|
|
2047
|
+
*
|
|
2048
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2049
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2050
|
+
* @uniPlatform {
|
|
2051
|
+
* "app": {
|
|
2052
|
+
* "android": {
|
|
2053
|
+
* "osVer": "5.0",
|
|
2054
|
+
* "uniVer": "x",
|
|
2055
|
+
* "unixVer": "4.28"
|
|
2056
|
+
* },
|
|
2057
|
+
* "ios": {
|
|
2058
|
+
* "osVer": "x",
|
|
2059
|
+
* "uniVer": "x",
|
|
2060
|
+
* "unixVer": "4.28"
|
|
2061
|
+
* },
|
|
2062
|
+
* "harmony": {
|
|
2063
|
+
* "osVer": "x",
|
|
2064
|
+
* "uniVer": "x",
|
|
2065
|
+
* "unixVer": "x"
|
|
2066
|
+
* }
|
|
2067
|
+
* },
|
|
2068
|
+
* "mp": {
|
|
2069
|
+
* "weixin": {
|
|
2070
|
+
* "hostVer": "√",
|
|
2071
|
+
* "uniVer": "x",
|
|
2072
|
+
* "unixVer": "x"
|
|
2073
|
+
* },
|
|
2074
|
+
* },
|
|
2075
|
+
* "web": {
|
|
2076
|
+
* "uniVer": "x",
|
|
2077
|
+
* "unixVer": "4.28"
|
|
2078
|
+
* }
|
|
2079
|
+
* }
|
|
2080
|
+
*/
|
|
2081
|
+
getElementById(id: string.IDString | string): UniElement | null
|
|
2082
|
+
/**
|
|
2083
|
+
* 返回 android 平台页面根 view
|
|
2084
|
+
*
|
|
2085
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2086
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2087
|
+
* @uniPlatform {
|
|
2088
|
+
* "app": {
|
|
2089
|
+
* "android": {
|
|
2090
|
+
* "osVer": "5.0",
|
|
2091
|
+
* "uniVer": "x",
|
|
2092
|
+
* "unixVer": "4.28"
|
|
2093
|
+
* },
|
|
2094
|
+
* "ios": {
|
|
2095
|
+
* "osVer": "x",
|
|
2096
|
+
* "uniVer": "x",
|
|
2097
|
+
* "unixVer": "x"
|
|
2098
|
+
* },
|
|
2099
|
+
* "harmony": {
|
|
2100
|
+
* "osVer": "x",
|
|
2101
|
+
* "uniVer": "x",
|
|
2102
|
+
* "unixVer": "x"
|
|
2103
|
+
* }
|
|
2104
|
+
* },
|
|
2105
|
+
* "mp": {
|
|
2106
|
+
* "weixin": {
|
|
2107
|
+
* "hostVer": "√",
|
|
2108
|
+
* "uniVer": "x",
|
|
2109
|
+
* "unixVer": "x"
|
|
2110
|
+
* },
|
|
2111
|
+
* },
|
|
2112
|
+
* "web": {
|
|
2113
|
+
* "uniVer": "x",
|
|
2114
|
+
* "unixVer": "x"
|
|
2115
|
+
* }
|
|
2116
|
+
* }
|
|
2117
|
+
*/
|
|
2118
|
+
getAndroidView(): View | null
|
|
2119
|
+
/**
|
|
2120
|
+
* 返回页面 HTML Element 对象
|
|
2121
|
+
*
|
|
2122
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2123
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
2124
|
+
* @uniPlatform {
|
|
2125
|
+
* "app": {
|
|
2126
|
+
* "android": {
|
|
2127
|
+
* "osVer": "5.0",
|
|
2128
|
+
* "uniVer": "x",
|
|
2129
|
+
* "unixVer": "x"
|
|
2130
|
+
* },
|
|
2131
|
+
* "ios": {
|
|
2132
|
+
* "osVer": "x",
|
|
2133
|
+
* "uniVer": "x",
|
|
2134
|
+
* "unixVer": "x"
|
|
2135
|
+
* },
|
|
2136
|
+
* "harmony": {
|
|
2137
|
+
* "osVer": "x",
|
|
2138
|
+
* "uniVer": "x",
|
|
2139
|
+
* "unixVer": "x"
|
|
2140
|
+
* }
|
|
2141
|
+
* },
|
|
2142
|
+
* "mp": {
|
|
2143
|
+
* "weixin": {
|
|
2144
|
+
* "hostVer": "√",
|
|
2145
|
+
* "uniVer": "x",
|
|
2146
|
+
* "unixVer": "x"
|
|
2147
|
+
* },
|
|
2148
|
+
* },
|
|
2149
|
+
* "web": {
|
|
2150
|
+
* "uniVer": "x",
|
|
2151
|
+
* "unixVer": "4.28"
|
|
2152
|
+
* }
|
|
2153
|
+
* }
|
|
2154
|
+
*/
|
|
2155
|
+
getHTMLElement(): UniElement | null
|
|
2156
|
+
}
|
|
2157
|
+
type UniPageOrigin = UniPage
|
|
2158
|
+
|
|
2159
|
+
export interface UniDialogPage extends UniBasePage {
|
|
2160
|
+
$component: any | null
|
|
2161
|
+
$disableEscBack: boolean
|
|
2162
|
+
/**
|
|
2163
|
+
* UniDialogPage vue 实例对象
|
|
2164
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
2165
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
2166
|
+
* @uniPlatform {
|
|
2167
|
+
* "app": {
|
|
2168
|
+
* "android": {
|
|
2169
|
+
* "osVer": "5.0",
|
|
2170
|
+
* "uniVer": "x",
|
|
2171
|
+
* "unixVer": "4.28"
|
|
2172
|
+
* },
|
|
2173
|
+
* "ios": {
|
|
2174
|
+
* "osVer": "x",
|
|
2175
|
+
* "uniVer": "x",
|
|
2176
|
+
* "unixVer": "4.28"
|
|
2177
|
+
* },
|
|
2178
|
+
* "harmony": {
|
|
2179
|
+
* "osVer": "x",
|
|
2180
|
+
* "uniVer": "x",
|
|
2181
|
+
* "unixVer": "x"
|
|
2182
|
+
* }
|
|
2183
|
+
* },
|
|
2184
|
+
* "mp": {
|
|
2185
|
+
* "weixin": {
|
|
2186
|
+
* "hostVer": "√",
|
|
2187
|
+
* "uniVer": "x",
|
|
2188
|
+
* "unixVer": "x"
|
|
2189
|
+
* },
|
|
2190
|
+
* },
|
|
2191
|
+
* "web": {
|
|
2192
|
+
* "uniVer": "x",
|
|
2193
|
+
* "unixVer": "4.28"
|
|
2194
|
+
* }
|
|
2195
|
+
* }
|
|
2196
|
+
*/
|
|
2197
|
+
$vm: ComponentPublicInstance | null
|
|
2198
|
+
/**
|
|
2199
|
+
* UniDialogPage vue 实例对象
|
|
2200
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
2201
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
|
|
2202
|
+
* @uniPlatform {
|
|
2203
|
+
* "app": {
|
|
2204
|
+
* "android": {
|
|
2205
|
+
* "osVer": "5.0",
|
|
2206
|
+
* "uniVer": "x",
|
|
2207
|
+
* "unixVer": "4.28"
|
|
2208
|
+
* },
|
|
2209
|
+
* "ios": {
|
|
2210
|
+
* "osVer": "x",
|
|
2211
|
+
* "uniVer": "x",
|
|
2212
|
+
* "unixVer": "4.28"
|
|
2213
|
+
* },
|
|
2214
|
+
* "harmony": {
|
|
2215
|
+
* "osVer": "x",
|
|
2216
|
+
* "uniVer": "x",
|
|
2217
|
+
* "unixVer": "x"
|
|
2218
|
+
* }
|
|
2219
|
+
* },
|
|
2220
|
+
* "mp": {
|
|
2221
|
+
* "weixin": {
|
|
2222
|
+
* "hostVer": "√",
|
|
2223
|
+
* "uniVer": "x",
|
|
2224
|
+
* "unixVer": "x"
|
|
2225
|
+
* },
|
|
2226
|
+
* },
|
|
2227
|
+
* "web": {
|
|
2228
|
+
* "uniVer": "x",
|
|
2229
|
+
* "unixVer": "4.28"
|
|
2230
|
+
* }
|
|
2231
|
+
* }
|
|
2232
|
+
*/
|
|
2233
|
+
vm: ComponentPublicInstance | null
|
|
1619
2234
|
}
|
|
1620
2235
|
type UniDialogPageOrigin = UniDialogPage
|
|
1621
2236
|
|
|
@@ -1642,7 +2257,7 @@ declare global {
|
|
|
1642
2257
|
* }
|
|
1643
2258
|
* }
|
|
1644
2259
|
*/
|
|
1645
|
-
const getCurrentPages: () =>
|
|
2260
|
+
const getCurrentPages: () => UniPage[]
|
|
1646
2261
|
type OnLoadOptions = NativeMap<string, any>
|
|
1647
2262
|
interface OnBackPressOptions {
|
|
1648
2263
|
/**
|
|
@@ -1687,6 +2302,7 @@ declare global {
|
|
|
1687
2302
|
|
|
1688
2303
|
type Page = PageOrigin
|
|
1689
2304
|
type UniDialogPage = UniDialogPageOrigin
|
|
2305
|
+
type UniPage = UniPageOrigin
|
|
1690
2306
|
}
|
|
1691
2307
|
|
|
1692
2308
|
declare module '@vue/runtime-core' {
|