@dcloudio/uni-app-x 0.7.32 → 0.7.34
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 +182 -146
- package/types/native/CSSStyleDeclaration.d.ts +72 -0
- package/types/native/DOMRect.d.ts +180 -0
- package/types/native/DrawableContext.d.ts +471 -4
- package/types/native/SnapshotOptions.d.ts +0 -1
- package/types/native/UniEvent.d.ts +23 -1
- package/types/page.d.ts +99 -84
- package/types/uni/uts-plugin-api/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
- package/types/uni-cloud/interface.d.ts +1 -1
package/types/page.d.ts
CHANGED
|
@@ -1604,11 +1604,11 @@ interface Page {
|
|
|
1604
1604
|
|
|
1605
1605
|
type PageOrigin = Page
|
|
1606
1606
|
|
|
1607
|
-
export interface
|
|
1607
|
+
export interface UniPage {
|
|
1608
1608
|
/**
|
|
1609
1609
|
* 页面的路由地址
|
|
1610
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1611
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1610
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1611
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1612
1612
|
* @uniPlatform {
|
|
1613
1613
|
* "app": {
|
|
1614
1614
|
* "android": {
|
|
@@ -1619,7 +1619,8 @@ export interface UniBasePage {
|
|
|
1619
1619
|
* "ios": {
|
|
1620
1620
|
* "osVer": "x",
|
|
1621
1621
|
* "uniVer": "x",
|
|
1622
|
-
* "unixVer": "4.31"
|
|
1622
|
+
* "unixVer": "4.31",
|
|
1623
|
+
* "unixUtsPlugin": "4.31"
|
|
1623
1624
|
* },
|
|
1624
1625
|
* "harmony": {
|
|
1625
1626
|
* "osVer": "x",
|
|
@@ -1643,8 +1644,8 @@ export interface UniBasePage {
|
|
|
1643
1644
|
route: string
|
|
1644
1645
|
/**
|
|
1645
1646
|
* 页面的路由参数信息
|
|
1646
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1647
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1647
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1648
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1648
1649
|
* @uniPlatform {
|
|
1649
1650
|
* "app": {
|
|
1650
1651
|
* "android": {
|
|
@@ -1655,7 +1656,8 @@ export interface UniBasePage {
|
|
|
1655
1656
|
* "ios": {
|
|
1656
1657
|
* "osVer": "x",
|
|
1657
1658
|
* "uniVer": "x",
|
|
1658
|
-
* "unixVer": "4.31"
|
|
1659
|
+
* "unixVer": "4.31",
|
|
1660
|
+
* "unixUtsPlugin": "4.31"
|
|
1659
1661
|
* },
|
|
1660
1662
|
* "harmony": {
|
|
1661
1663
|
* "osVer": "x",
|
|
@@ -1678,9 +1680,9 @@ export interface UniBasePage {
|
|
|
1678
1680
|
*/
|
|
1679
1681
|
options: UTSJSONObject
|
|
1680
1682
|
/**
|
|
1681
|
-
*
|
|
1682
|
-
* @tutorial
|
|
1683
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1683
|
+
* UniPage vue 实例对象
|
|
1684
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1685
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1684
1686
|
* @uniPlatform {
|
|
1685
1687
|
* "app": {
|
|
1686
1688
|
* "android": {
|
|
@@ -1712,11 +1714,11 @@ export interface UniBasePage {
|
|
|
1712
1714
|
* }
|
|
1713
1715
|
* }
|
|
1714
1716
|
*/
|
|
1715
|
-
|
|
1717
|
+
vm: ComponentPublicInstance | null
|
|
1716
1718
|
/**
|
|
1717
|
-
*
|
|
1718
|
-
* @tutorial
|
|
1719
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1719
|
+
* UniPage vue 实例对象
|
|
1720
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1721
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html
|
|
1720
1722
|
* @uniPlatform {
|
|
1721
1723
|
* "app": {
|
|
1722
1724
|
* "android": {
|
|
@@ -1748,14 +1750,11 @@ export interface UniBasePage {
|
|
|
1748
1750
|
* }
|
|
1749
1751
|
* }
|
|
1750
1752
|
*/
|
|
1751
|
-
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
export interface UniPage extends UniBasePage {
|
|
1753
|
+
$vm: ComponentPublicInstance | null
|
|
1755
1754
|
/**
|
|
1756
|
-
*
|
|
1757
|
-
*
|
|
1758
|
-
* @tutorial
|
|
1755
|
+
* 获取当前页面样式 \
|
|
1756
|
+
* 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
1757
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle
|
|
1759
1758
|
* @uniPlatform {
|
|
1760
1759
|
* "app": {
|
|
1761
1760
|
* "android": {
|
|
@@ -1766,7 +1765,8 @@ export interface UniPage extends UniBasePage {
|
|
|
1766
1765
|
* "ios": {
|
|
1767
1766
|
* "osVer": "x",
|
|
1768
1767
|
* "uniVer": "x",
|
|
1769
|
-
* "unixVer": "4.31"
|
|
1768
|
+
* "unixVer": "4.31",
|
|
1769
|
+
* "unixUtsPlugin": "4.31"
|
|
1770
1770
|
* },
|
|
1771
1771
|
* "harmony": {
|
|
1772
1772
|
* "osVer": "x",
|
|
@@ -1787,22 +1787,23 @@ export interface UniPage extends UniBasePage {
|
|
|
1787
1787
|
* }
|
|
1788
1788
|
* }
|
|
1789
1789
|
*/
|
|
1790
|
-
|
|
1790
|
+
getPageStyle(): UTSJSONObject
|
|
1791
1791
|
/**
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
* @
|
|
1792
|
+
* 获取当前页面样式 \
|
|
1793
|
+
* 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
1794
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
1795
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getpagestyle-2
|
|
1795
1796
|
* @uniPlatform {
|
|
1796
1797
|
* "app": {
|
|
1797
1798
|
* "android": {
|
|
1798
1799
|
* "osVer": "5.0",
|
|
1799
1800
|
* "uniVer": "x",
|
|
1800
|
-
* "unixVer": "4.
|
|
1801
|
+
* "unixVer": "4.13"
|
|
1801
1802
|
* },
|
|
1802
1803
|
* "ios": {
|
|
1803
1804
|
* "osVer": "x",
|
|
1804
1805
|
* "uniVer": "x",
|
|
1805
|
-
* "unixVer": "4.
|
|
1806
|
+
* "unixVer": "4.13"
|
|
1806
1807
|
* },
|
|
1807
1808
|
* "harmony": {
|
|
1808
1809
|
* "osVer": "x",
|
|
@@ -1819,15 +1820,15 @@ export interface UniPage extends UniBasePage {
|
|
|
1819
1820
|
* },
|
|
1820
1821
|
* "web": {
|
|
1821
1822
|
* "uniVer": "x",
|
|
1822
|
-
* "unixVer": "4.
|
|
1823
|
+
* "unixVer": "4.13"
|
|
1823
1824
|
* }
|
|
1824
1825
|
* }
|
|
1825
1826
|
*/
|
|
1826
|
-
$
|
|
1827
|
+
$getPageStyle(): UTSJSONObject
|
|
1827
1828
|
/**
|
|
1828
|
-
*
|
|
1829
|
-
*
|
|
1830
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#
|
|
1829
|
+
* 设置当前页面样式 \
|
|
1830
|
+
* 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
1831
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle
|
|
1831
1832
|
* @uniPlatform {
|
|
1832
1833
|
* "app": {
|
|
1833
1834
|
* "android": {
|
|
@@ -1838,7 +1839,8 @@ export interface UniPage extends UniBasePage {
|
|
|
1838
1839
|
* "ios": {
|
|
1839
1840
|
* "osVer": "x",
|
|
1840
1841
|
* "uniVer": "x",
|
|
1841
|
-
* "unixVer": "4.31"
|
|
1842
|
+
* "unixVer": "4.31",
|
|
1843
|
+
* "unixUtsPlugin": "4.31"
|
|
1842
1844
|
* },
|
|
1843
1845
|
* "harmony": {
|
|
1844
1846
|
* "osVer": "x",
|
|
@@ -1859,22 +1861,23 @@ export interface UniPage extends UniBasePage {
|
|
|
1859
1861
|
* }
|
|
1860
1862
|
* }
|
|
1861
1863
|
*/
|
|
1862
|
-
|
|
1864
|
+
setPageStyle(style: UTSJSONObject): void
|
|
1863
1865
|
/**
|
|
1864
1866
|
* 设置当前页面样式 \
|
|
1865
1867
|
* 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
|
|
1866
|
-
* @
|
|
1868
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
1869
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setpagestyle-2
|
|
1867
1870
|
* @uniPlatform {
|
|
1868
1871
|
* "app": {
|
|
1869
1872
|
* "android": {
|
|
1870
1873
|
* "osVer": "5.0",
|
|
1871
1874
|
* "uniVer": "x",
|
|
1872
|
-
* "unixVer": "4.
|
|
1875
|
+
* "unixVer": "4.13"
|
|
1873
1876
|
* },
|
|
1874
1877
|
* "ios": {
|
|
1875
1878
|
* "osVer": "x",
|
|
1876
1879
|
* "uniVer": "x",
|
|
1877
|
-
* "unixVer": "4.
|
|
1880
|
+
* "unixVer": "4.13"
|
|
1878
1881
|
* },
|
|
1879
1882
|
* "harmony": {
|
|
1880
1883
|
* "osVer": "x",
|
|
@@ -1891,18 +1894,15 @@ export interface UniPage extends UniBasePage {
|
|
|
1891
1894
|
* },
|
|
1892
1895
|
* "web": {
|
|
1893
1896
|
* "uniVer": "x",
|
|
1894
|
-
* "unixVer": "4.
|
|
1897
|
+
* "unixVer": "4.13"
|
|
1895
1898
|
* }
|
|
1896
1899
|
* }
|
|
1897
1900
|
*/
|
|
1898
|
-
setPageStyle(style: UTSJSONObject): void
|
|
1901
|
+
$setPageStyle(style: UTSJSONObject): void
|
|
1899
1902
|
/**
|
|
1900
|
-
*
|
|
1901
|
-
*
|
|
1902
|
-
*
|
|
1903
|
-
*
|
|
1904
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
1905
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
1903
|
+
* 获取所属父页面
|
|
1904
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1905
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1906
1906
|
* @uniPlatform {
|
|
1907
1907
|
* "app": {
|
|
1908
1908
|
* "android": {
|
|
@@ -1913,7 +1913,8 @@ export interface UniPage extends UniBasePage {
|
|
|
1913
1913
|
* "ios": {
|
|
1914
1914
|
* "osVer": "x",
|
|
1915
1915
|
* "uniVer": "x",
|
|
1916
|
-
* "unixVer": "4.31"
|
|
1916
|
+
* "unixVer": "4.31",
|
|
1917
|
+
* "unixUtsPlugin": "4.31"
|
|
1917
1918
|
* },
|
|
1918
1919
|
* "harmony": {
|
|
1919
1920
|
* "osVer": "x",
|
|
@@ -1934,12 +1935,11 @@ export interface UniPage extends UniBasePage {
|
|
|
1934
1935
|
* }
|
|
1935
1936
|
* }
|
|
1936
1937
|
*/
|
|
1937
|
-
|
|
1938
|
+
getParentPage(): UniPage | null
|
|
1938
1939
|
/**
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1941
|
-
* @tutorial
|
|
1942
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-element.html
|
|
1940
|
+
* 获取当前页面的 dialog 子页面集合
|
|
1941
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1942
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#emit
|
|
1943
1943
|
* @uniPlatform {
|
|
1944
1944
|
* "app": {
|
|
1945
1945
|
* "android": {
|
|
@@ -1950,7 +1950,8 @@ export interface UniPage extends UniBasePage {
|
|
|
1950
1950
|
* "ios": {
|
|
1951
1951
|
* "osVer": "x",
|
|
1952
1952
|
* "uniVer": "x",
|
|
1953
|
-
* "unixVer": "
|
|
1953
|
+
* "unixVer": "4.31",
|
|
1954
|
+
* "unixUtsPlugin": "4.31"
|
|
1954
1955
|
* },
|
|
1955
1956
|
* "harmony": {
|
|
1956
1957
|
* "osVer": "x",
|
|
@@ -1967,27 +1968,29 @@ export interface UniPage extends UniBasePage {
|
|
|
1967
1968
|
* },
|
|
1968
1969
|
* "web": {
|
|
1969
1970
|
* "uniVer": "x",
|
|
1970
|
-
* "unixVer": "
|
|
1971
|
+
* "unixVer": "4.31"
|
|
1971
1972
|
* }
|
|
1972
1973
|
* }
|
|
1973
1974
|
*/
|
|
1974
|
-
|
|
1975
|
+
getDialogPages(): UniDialogPage[]
|
|
1975
1976
|
/**
|
|
1976
|
-
*
|
|
1977
|
+
* 返回一个匹配特定 ID 的元素, 如果不存在,返回 null。\
|
|
1978
|
+
* 如果需要获取指定的节点类型,需要使用 as 进行类型转换。\
|
|
1979
|
+
* ID 区分大小写,且应该是唯一的。如果存在多个匹配的元素,则返回第一个匹配的元素。
|
|
1977
1980
|
*
|
|
1978
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-
|
|
1979
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-
|
|
1981
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getelementbyid
|
|
1982
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getelementbyid
|
|
1980
1983
|
* @uniPlatform {
|
|
1981
1984
|
* "app": {
|
|
1982
1985
|
* "android": {
|
|
1983
1986
|
* "osVer": "5.0",
|
|
1984
1987
|
* "uniVer": "x",
|
|
1985
|
-
* "unixVer": "
|
|
1988
|
+
* "unixVer": "4.31"
|
|
1986
1989
|
* },
|
|
1987
1990
|
* "ios": {
|
|
1988
1991
|
* "osVer": "x",
|
|
1989
1992
|
* "uniVer": "x",
|
|
1990
|
-
* "unixVer": "
|
|
1993
|
+
* "unixVer": "4.31"
|
|
1991
1994
|
* },
|
|
1992
1995
|
* "harmony": {
|
|
1993
1996
|
* "osVer": "x",
|
|
@@ -2008,17 +2011,12 @@ export interface UniPage extends UniBasePage {
|
|
|
2008
2011
|
* }
|
|
2009
2012
|
* }
|
|
2010
2013
|
*/
|
|
2011
|
-
|
|
2012
|
-
}
|
|
2013
|
-
type UniPageOrigin = UniPage
|
|
2014
|
-
|
|
2015
|
-
export interface UniDialogPage extends UniBasePage {
|
|
2016
|
-
$component: any | null
|
|
2017
|
-
$disableEscBack: boolean
|
|
2014
|
+
getElementById(id: string.IDString | string): UniElement | null
|
|
2018
2015
|
/**
|
|
2019
|
-
*
|
|
2020
|
-
*
|
|
2021
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/
|
|
2016
|
+
* 返回 android 平台页面根 view
|
|
2017
|
+
*
|
|
2018
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getandroidview
|
|
2019
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getandroidview
|
|
2022
2020
|
* @uniPlatform {
|
|
2023
2021
|
* "app": {
|
|
2024
2022
|
* "android": {
|
|
@@ -2029,7 +2027,7 @@ export interface UniDialogPage extends UniBasePage {
|
|
|
2029
2027
|
* "ios": {
|
|
2030
2028
|
* "osVer": "x",
|
|
2031
2029
|
* "uniVer": "x",
|
|
2032
|
-
* "unixVer": "
|
|
2030
|
+
* "unixVer": "x"
|
|
2033
2031
|
* },
|
|
2034
2032
|
* "harmony": {
|
|
2035
2033
|
* "osVer": "x",
|
|
@@ -2046,26 +2044,27 @@ export interface UniDialogPage extends UniBasePage {
|
|
|
2046
2044
|
* },
|
|
2047
2045
|
* "web": {
|
|
2048
2046
|
* "uniVer": "x",
|
|
2049
|
-
* "unixVer": "
|
|
2047
|
+
* "unixVer": "x"
|
|
2050
2048
|
* }
|
|
2051
2049
|
* }
|
|
2052
2050
|
*/
|
|
2053
|
-
|
|
2051
|
+
getAndroidView(): View | null
|
|
2054
2052
|
/**
|
|
2055
|
-
*
|
|
2056
|
-
*
|
|
2057
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/
|
|
2053
|
+
* 返回页面 HTML Element 对象
|
|
2054
|
+
*
|
|
2055
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#gethtmlelement
|
|
2056
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#gethtmlelement
|
|
2058
2057
|
* @uniPlatform {
|
|
2059
2058
|
* "app": {
|
|
2060
2059
|
* "android": {
|
|
2061
2060
|
* "osVer": "5.0",
|
|
2062
2061
|
* "uniVer": "x",
|
|
2063
|
-
* "unixVer": "
|
|
2062
|
+
* "unixVer": "x"
|
|
2064
2063
|
* },
|
|
2065
2064
|
* "ios": {
|
|
2066
2065
|
* "osVer": "x",
|
|
2067
2066
|
* "uniVer": "x",
|
|
2068
|
-
* "unixVer": "
|
|
2067
|
+
* "unixVer": "x"
|
|
2069
2068
|
* },
|
|
2070
2069
|
* "harmony": {
|
|
2071
2070
|
* "osVer": "x",
|
|
@@ -2086,9 +2085,22 @@ export interface UniDialogPage extends UniBasePage {
|
|
|
2086
2085
|
* }
|
|
2087
2086
|
* }
|
|
2088
2087
|
*/
|
|
2089
|
-
|
|
2088
|
+
getHTMLElement(): UniElement | null
|
|
2089
|
+
}
|
|
2090
|
+
type UniPageOrigin = UniPage
|
|
2091
|
+
|
|
2092
|
+
export interface UniNormalPage extends UniPage {}
|
|
2093
|
+
|
|
2094
|
+
export interface UniDialogPage extends UniPage {
|
|
2095
|
+
/**
|
|
2096
|
+
* @internal
|
|
2097
|
+
*/
|
|
2098
|
+
$component: any | null
|
|
2099
|
+
/**
|
|
2100
|
+
* @internal
|
|
2101
|
+
*/
|
|
2102
|
+
$disableEscBack: boolean
|
|
2090
2103
|
}
|
|
2091
|
-
type UniDialogPageOrigin = UniDialogPage
|
|
2092
2104
|
|
|
2093
2105
|
declare global {
|
|
2094
2106
|
/**
|
|
@@ -2099,7 +2111,8 @@ declare global {
|
|
|
2099
2111
|
* "android": {
|
|
2100
2112
|
* "osVer": "5.0",
|
|
2101
2113
|
* "uniVer": "√",
|
|
2102
|
-
* "unixVer": "3.9"
|
|
2114
|
+
* "unixVer": "3.9",
|
|
2115
|
+
* "unixUtsPlugin": "4.31"
|
|
2103
2116
|
* },
|
|
2104
2117
|
* "ios": {
|
|
2105
2118
|
* "osVer": "12.0",
|
|
@@ -2113,8 +2126,10 @@ declare global {
|
|
|
2113
2126
|
* }
|
|
2114
2127
|
* }
|
|
2115
2128
|
*/
|
|
2116
|
-
const getCurrentPages: () => UniPage[]
|
|
2117
|
-
|
|
2129
|
+
const getCurrentPages: () => UniPage[];
|
|
2130
|
+
interface OnLoadOptions {
|
|
2131
|
+
[key: string]: string | null;
|
|
2132
|
+
}
|
|
2118
2133
|
interface OnBackPressOptions {
|
|
2119
2134
|
/**
|
|
2120
2135
|
* - backbutton 顶部导航栏左边的返回按钮或 Android 实体返回键
|
|
@@ -2157,7 +2172,6 @@ declare global {
|
|
|
2157
2172
|
}
|
|
2158
2173
|
|
|
2159
2174
|
type Page = PageOrigin
|
|
2160
|
-
type UniDialogPage = UniDialogPageOrigin
|
|
2161
2175
|
type UniPage = UniPageOrigin
|
|
2162
2176
|
}
|
|
2163
2177
|
|
|
@@ -2167,4 +2181,5 @@ declare module '@vue/runtime-core' {
|
|
|
2167
2181
|
}
|
|
2168
2182
|
}
|
|
2169
2183
|
|
|
2184
|
+
|
|
2170
2185
|
export {}
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
/// <reference path='./lib/uni-getProvider/utssdk/global.d.ts' />
|
|
33
33
|
/// <reference path='./lib/uni-getPerformance/utssdk/global.d.ts' />
|
|
34
34
|
/// <reference path='./lib/uni-getNetworkType/utssdk/global.d.ts' />
|
|
35
|
+
/// <reference path='./lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts' />
|
|
35
36
|
/// <reference path='./lib/uni-getLocation-tencent/utssdk/global.d.ts' />
|
|
36
37
|
/// <reference path='./lib/uni-getLocation-system/utssdk/global.d.ts' />
|
|
37
38
|
/// <reference path='./lib/uni-getLocation/utssdk/global.d.ts' />
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
/// <reference path='./lib/uni-createRequestPermissionListener/utssdk/global.d.ts' />
|
|
54
55
|
/// <reference path='./lib/uni-createIntersectionObserver/utssdk/global.d.ts' />
|
|
55
56
|
/// <reference path='./lib/uni-createInnerAudioContext/utssdk/global.d.ts' />
|
|
57
|
+
/// <reference path='./lib/uni-crash/utssdk/global.d.ts' />
|
|
56
58
|
/// <reference path='./lib/uni-clipboard/utssdk/global.d.ts' />
|
|
57
59
|
/// <reference path='./lib/uni-canvas/utssdk/global.d.ts' />
|
|
58
60
|
/// <reference path='./lib/uni-base64ToArrayBuffer/utssdk/global.d.ts' />
|
|
@@ -32,6 +32,7 @@ export * from './lib/uni-getRecorderManager/utssdk'
|
|
|
32
32
|
export * from './lib/uni-getProvider/utssdk'
|
|
33
33
|
export * from './lib/uni-getPerformance/utssdk'
|
|
34
34
|
export * from './lib/uni-getNetworkType/utssdk'
|
|
35
|
+
export * from './lib/uni-getLocation-tencent-uni1/utssdk'
|
|
35
36
|
export * from './lib/uni-getLocation-tencent/utssdk'
|
|
36
37
|
export * from './lib/uni-getLocation-system/utssdk'
|
|
37
38
|
export * from './lib/uni-getLocation/utssdk'
|
|
@@ -53,6 +54,7 @@ export * from './lib/uni-createSelectorQuery/utssdk'
|
|
|
53
54
|
export * from './lib/uni-createRequestPermissionListener/utssdk'
|
|
54
55
|
export * from './lib/uni-createIntersectionObserver/utssdk'
|
|
55
56
|
export * from './lib/uni-createInnerAudioContext/utssdk'
|
|
57
|
+
export * from './lib/uni-crash/utssdk'
|
|
56
58
|
export * from './lib/uni-clipboard/utssdk'
|
|
57
59
|
export * from './lib/uni-canvas/utssdk'
|
|
58
60
|
export * from './lib/uni-base64ToArrayBuffer/utssdk'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
OnAppCrashCallback as OnAppCrashCallbackOrigin,
|
|
4
|
+
OnAppCrash as OnAppCrashOrigin,
|
|
5
|
+
OffAppCrash as OffAppCrashOrigin,
|
|
6
|
+
AppCrashInfo as AppCrashInfoOrigin,
|
|
7
|
+
GetAppCrashInfo as GetAppCrashInfoOrigin,
|
|
8
|
+
DeleteAppCrashInfo as DeleteAppCrashInfoOrigin,
|
|
9
|
+
Uni as UniOrigin
|
|
10
|
+
} from './interface'
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
type OnAppCrashCallback = OnAppCrashCallbackOrigin
|
|
14
|
+
type OnAppCrash = OnAppCrashOrigin
|
|
15
|
+
type OffAppCrash = OffAppCrashOrigin
|
|
16
|
+
type AppCrashInfo = AppCrashInfoOrigin
|
|
17
|
+
type GetAppCrashInfo = GetAppCrashInfoOrigin
|
|
18
|
+
type DeleteAppCrashInfo = DeleteAppCrashInfoOrigin
|
|
19
|
+
interface Uni extends UniOrigin { }
|
|
20
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
export type OnAppCrashCallback = () => void
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 监听应用崩溃
|
|
8
|
+
*/
|
|
9
|
+
export type OnAppCrash = (callback : OnAppCrashCallback) => void
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 取消监听应用崩溃
|
|
13
|
+
*/
|
|
14
|
+
export type OffAppCrash = () => void
|
|
15
|
+
|
|
16
|
+
export type AppCrashInfo = {
|
|
17
|
+
/**
|
|
18
|
+
* 唯一标识符
|
|
19
|
+
*/
|
|
20
|
+
id : string,
|
|
21
|
+
/**
|
|
22
|
+
* 崩溃的堆栈信息
|
|
23
|
+
*/
|
|
24
|
+
file : string,
|
|
25
|
+
/**
|
|
26
|
+
* 崩溃发生的时间
|
|
27
|
+
*/
|
|
28
|
+
time : string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 获取所有的崩溃信息
|
|
33
|
+
*/
|
|
34
|
+
export type GetAppCrashInfo = () => Array<AppCrashInfo>
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 删除指定的崩溃信息,id为空则删除所有的崩溃信息
|
|
38
|
+
*/
|
|
39
|
+
export type DeleteAppCrashInfo = (id : string | null) => void
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export interface Uni {
|
|
43
|
+
__onAppCrash(callback : OnAppCrashCallback | null) : void,
|
|
44
|
+
__offAppCrash() : void,
|
|
45
|
+
__getAppCrashInfo() : Array<AppCrashInfo> | null,
|
|
46
|
+
__deleteAppCrashInfo(id : string | null) : void,
|
|
47
|
+
__creatAppCrash() : void
|
|
48
|
+
}
|
|
@@ -760,7 +760,7 @@ export type CloseDialogPageOptions = {
|
|
|
760
760
|
* }
|
|
761
761
|
* }
|
|
762
762
|
*/
|
|
763
|
-
dialogPage
|
|
763
|
+
dialogPage?: UniPage | null
|
|
764
764
|
/**
|
|
765
765
|
* 窗口关闭的动画类型
|
|
766
766
|
* - auto: 自动选择动画效果
|
|
@@ -1226,8 +1226,8 @@ export type CloseDialogPageOptions = {
|
|
|
1226
1226
|
export interface Uni {
|
|
1227
1227
|
/**
|
|
1228
1228
|
* 打开模态弹窗页面
|
|
1229
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1230
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1229
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/dialog-page.html
|
|
1230
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/dialog-page.html
|
|
1231
1231
|
* @uniPlatform {
|
|
1232
1232
|
* "app": {
|
|
1233
1233
|
* "android": {
|
|
@@ -1294,12 +1294,12 @@ export interface Uni {
|
|
|
1294
1294
|
* }
|
|
1295
1295
|
* }
|
|
1296
1296
|
*/
|
|
1297
|
-
openDialogPage(options
|
|
1297
|
+
openDialogPage(options: OpenDialogPageOptions): UniPage | null
|
|
1298
1298
|
/**
|
|
1299
1299
|
* 关闭模态弹窗页面
|
|
1300
1300
|
*
|
|
1301
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1302
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/
|
|
1301
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/dialog-page.html
|
|
1302
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/dialog-page.html
|
|
1303
1303
|
* @uniPlatform {
|
|
1304
1304
|
* "app": {
|
|
1305
1305
|
* "android": {
|