@dcloudio/uni-app-x 0.7.65 → 0.7.67
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 +2 -1
- package/types/dom2/sharedData.d.ts +27 -15
- package/types/process.d.ts +12 -3
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +0 -173
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -4
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +0 -4
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +0 -10
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-location-system/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-location-tencent/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2 -4
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -7
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +1 -8
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +0 -16
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +0 -8
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +57 -2165
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/global.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +1062 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +3 -10
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +0 -5
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +2 -4
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +0 -7
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +0 -148
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +0 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +0 -8
|
@@ -1578,8 +1578,8 @@ export type ShowToast = (options: ShowToastOptions) => void
|
|
|
1578
1578
|
},
|
|
1579
1579
|
"harmony": {
|
|
1580
1580
|
"osVer": "3.0",
|
|
1581
|
-
"uniVer": "4.
|
|
1582
|
-
"unixVer": "4.
|
|
1581
|
+
"uniVer": "4.83",
|
|
1582
|
+
"unixVer": "4.83"
|
|
1583
1583
|
}
|
|
1584
1584
|
},
|
|
1585
1585
|
"mp": {
|
|
@@ -1632,7 +1632,6 @@ export type ShowToast = (options: ShowToastOptions) => void
|
|
|
1632
1632
|
*/
|
|
1633
1633
|
export type HideToast = () => void
|
|
1634
1634
|
|
|
1635
|
-
|
|
1636
1635
|
/**
|
|
1637
1636
|
* uni.showLoading成功回调参数
|
|
1638
1637
|
*/
|
|
@@ -1646,146 +1645,14 @@ export type ShowLoadingFail = IPromptError;
|
|
|
1646
1645
|
|
|
1647
1646
|
/**
|
|
1648
1647
|
* uni.showLoading成功回调函数定义
|
|
1649
|
-
* @uniPlatform {
|
|
1650
|
-
* "mp": {
|
|
1651
|
-
* "weixin": {
|
|
1652
|
-
* "hostVer": "√",
|
|
1653
|
-
* "uniVer": "√",
|
|
1654
|
-
* "unixVer": "4.41"
|
|
1655
|
-
* },
|
|
1656
|
-
* "alipay": {
|
|
1657
|
-
* "hostVer": "-",
|
|
1658
|
-
* "uniVer": "-",
|
|
1659
|
-
* "unixVer": "-"
|
|
1660
|
-
* },
|
|
1661
|
-
* "baidu": {
|
|
1662
|
-
* "hostVer": "-",
|
|
1663
|
-
* "uniVer": "-",
|
|
1664
|
-
* "unixVer": "-"
|
|
1665
|
-
* },
|
|
1666
|
-
* "toutiao": {
|
|
1667
|
-
* "hostVer": "-",
|
|
1668
|
-
* "uniVer": "-",
|
|
1669
|
-
* "unixVer": "-"
|
|
1670
|
-
* },
|
|
1671
|
-
* "lark": {
|
|
1672
|
-
* "hostVer": "-",
|
|
1673
|
-
* "uniVer": "-",
|
|
1674
|
-
* "unixVer": "-"
|
|
1675
|
-
* },
|
|
1676
|
-
* "qq": {
|
|
1677
|
-
* "hostVer": "-",
|
|
1678
|
-
* "uniVer": "-",
|
|
1679
|
-
* "unixVer": "-"
|
|
1680
|
-
* },
|
|
1681
|
-
* "kuaishou": {
|
|
1682
|
-
* "hostVer": "-",
|
|
1683
|
-
* "uniVer": "-",
|
|
1684
|
-
* "unixVer": "-"
|
|
1685
|
-
* },
|
|
1686
|
-
* "jd": {
|
|
1687
|
-
* "hostVer": "-",
|
|
1688
|
-
* "uniVer": "-",
|
|
1689
|
-
* "unixVer": "-"
|
|
1690
|
-
* }
|
|
1691
|
-
* }
|
|
1692
|
-
* }
|
|
1693
1648
|
*/
|
|
1694
1649
|
export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
|
|
1695
1650
|
/**
|
|
1696
1651
|
* uni.showLoading失败回调函数定义
|
|
1697
|
-
* @uniPlatform {
|
|
1698
|
-
* "mp": {
|
|
1699
|
-
* "weixin": {
|
|
1700
|
-
* "hostVer": "√",
|
|
1701
|
-
* "uniVer": "√",
|
|
1702
|
-
* "unixVer": "4.41"
|
|
1703
|
-
* },
|
|
1704
|
-
* "alipay": {
|
|
1705
|
-
* "hostVer": "-",
|
|
1706
|
-
* "uniVer": "-",
|
|
1707
|
-
* "unixVer": "-"
|
|
1708
|
-
* },
|
|
1709
|
-
* "baidu": {
|
|
1710
|
-
* "hostVer": "-",
|
|
1711
|
-
* "uniVer": "-",
|
|
1712
|
-
* "unixVer": "-"
|
|
1713
|
-
* },
|
|
1714
|
-
* "toutiao": {
|
|
1715
|
-
* "hostVer": "-",
|
|
1716
|
-
* "uniVer": "-",
|
|
1717
|
-
* "unixVer": "-"
|
|
1718
|
-
* },
|
|
1719
|
-
* "lark": {
|
|
1720
|
-
* "hostVer": "-",
|
|
1721
|
-
* "uniVer": "-",
|
|
1722
|
-
* "unixVer": "-"
|
|
1723
|
-
* },
|
|
1724
|
-
* "qq": {
|
|
1725
|
-
* "hostVer": "-",
|
|
1726
|
-
* "uniVer": "-",
|
|
1727
|
-
* "unixVer": "-"
|
|
1728
|
-
* },
|
|
1729
|
-
* "kuaishou": {
|
|
1730
|
-
* "hostVer": "-",
|
|
1731
|
-
* "uniVer": "-",
|
|
1732
|
-
* "unixVer": "-"
|
|
1733
|
-
* },
|
|
1734
|
-
* "jd": {
|
|
1735
|
-
* "hostVer": "-",
|
|
1736
|
-
* "uniVer": "-",
|
|
1737
|
-
* "unixVer": "-"
|
|
1738
|
-
* }
|
|
1739
|
-
* }
|
|
1740
|
-
* }
|
|
1741
1652
|
*/
|
|
1742
1653
|
export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
|
|
1743
1654
|
/**
|
|
1744
1655
|
* uni.showLoading完成回调函数定义
|
|
1745
|
-
* @uniPlatform {
|
|
1746
|
-
* "mp": {
|
|
1747
|
-
* "weixin": {
|
|
1748
|
-
* "hostVer": "√",
|
|
1749
|
-
* "uniVer": "√",
|
|
1750
|
-
* "unixVer": "4.41"
|
|
1751
|
-
* },
|
|
1752
|
-
* "alipay": {
|
|
1753
|
-
* "hostVer": "-",
|
|
1754
|
-
* "uniVer": "-",
|
|
1755
|
-
* "unixVer": "-"
|
|
1756
|
-
* },
|
|
1757
|
-
* "baidu": {
|
|
1758
|
-
* "hostVer": "-",
|
|
1759
|
-
* "uniVer": "-",
|
|
1760
|
-
* "unixVer": "-"
|
|
1761
|
-
* },
|
|
1762
|
-
* "toutiao": {
|
|
1763
|
-
* "hostVer": "-",
|
|
1764
|
-
* "uniVer": "-",
|
|
1765
|
-
* "unixVer": "-"
|
|
1766
|
-
* },
|
|
1767
|
-
* "lark": {
|
|
1768
|
-
* "hostVer": "-",
|
|
1769
|
-
* "uniVer": "-",
|
|
1770
|
-
* "unixVer": "-"
|
|
1771
|
-
* },
|
|
1772
|
-
* "qq": {
|
|
1773
|
-
* "hostVer": "-",
|
|
1774
|
-
* "uniVer": "-",
|
|
1775
|
-
* "unixVer": "-"
|
|
1776
|
-
* },
|
|
1777
|
-
* "kuaishou": {
|
|
1778
|
-
* "hostVer": "-",
|
|
1779
|
-
* "uniVer": "-",
|
|
1780
|
-
* "unixVer": "-"
|
|
1781
|
-
* },
|
|
1782
|
-
* "jd": {
|
|
1783
|
-
* "hostVer": "-",
|
|
1784
|
-
* "uniVer": "-",
|
|
1785
|
-
* "unixVer": "-"
|
|
1786
|
-
* }
|
|
1787
|
-
* }
|
|
1788
|
-
* }
|
|
1789
1656
|
*/
|
|
1790
1657
|
export type ShowLoadingCompleteCallback = (res: any) => void
|
|
1791
1658
|
|
|
@@ -1795,242 +1662,22 @@ export type ShowLoadingCompleteCallback = (res: any) => void
|
|
|
1795
1662
|
export type ShowLoadingOptions = {
|
|
1796
1663
|
/**
|
|
1797
1664
|
* 提示的内容,长度与 icon 取值有关。
|
|
1798
|
-
|
|
1799
|
-
* "mp": {
|
|
1800
|
-
* "weixin": {
|
|
1801
|
-
* "hostVer": "√",
|
|
1802
|
-
* "uniVer": "√",
|
|
1803
|
-
* "unixVer": "4.41"
|
|
1804
|
-
* },
|
|
1805
|
-
* "alipay": {
|
|
1806
|
-
* "hostVer": "-",
|
|
1807
|
-
* "uniVer": "-",
|
|
1808
|
-
* "unixVer": "-"
|
|
1809
|
-
* },
|
|
1810
|
-
* "baidu": {
|
|
1811
|
-
* "hostVer": "-",
|
|
1812
|
-
* "uniVer": "-",
|
|
1813
|
-
* "unixVer": "-"
|
|
1814
|
-
* },
|
|
1815
|
-
* "toutiao": {
|
|
1816
|
-
* "hostVer": "-",
|
|
1817
|
-
* "uniVer": "-",
|
|
1818
|
-
* "unixVer": "-"
|
|
1819
|
-
* },
|
|
1820
|
-
* "lark": {
|
|
1821
|
-
* "hostVer": "-",
|
|
1822
|
-
* "uniVer": "-",
|
|
1823
|
-
* "unixVer": "-"
|
|
1824
|
-
* },
|
|
1825
|
-
* "qq": {
|
|
1826
|
-
* "hostVer": "-",
|
|
1827
|
-
* "uniVer": "-",
|
|
1828
|
-
* "unixVer": "-"
|
|
1829
|
-
* },
|
|
1830
|
-
* "kuaishou": {
|
|
1831
|
-
* "hostVer": "-",
|
|
1832
|
-
* "uniVer": "-",
|
|
1833
|
-
* "unixVer": "-"
|
|
1834
|
-
* },
|
|
1835
|
-
* "jd": {
|
|
1836
|
-
* "hostVer": "-",
|
|
1837
|
-
* "uniVer": "-",
|
|
1838
|
-
* "unixVer": "-"
|
|
1839
|
-
* }
|
|
1840
|
-
* }
|
|
1841
|
-
* }
|
|
1842
|
-
*/
|
|
1665
|
+
*/
|
|
1843
1666
|
title: string,
|
|
1844
1667
|
/**
|
|
1845
1668
|
* 是否显示透明蒙层,防止触摸穿透,默认:false
|
|
1846
|
-
|
|
1847
|
-
* "mp": {
|
|
1848
|
-
* "weixin": {
|
|
1849
|
-
* "hostVer": "√",
|
|
1850
|
-
* "uniVer": "√",
|
|
1851
|
-
* "unixVer": "4.41"
|
|
1852
|
-
* },
|
|
1853
|
-
* "alipay": {
|
|
1854
|
-
* "hostVer": "-",
|
|
1855
|
-
* "uniVer": "-",
|
|
1856
|
-
* "unixVer": "-"
|
|
1857
|
-
* },
|
|
1858
|
-
* "baidu": {
|
|
1859
|
-
* "hostVer": "-",
|
|
1860
|
-
* "uniVer": "-",
|
|
1861
|
-
* "unixVer": "-"
|
|
1862
|
-
* },
|
|
1863
|
-
* "toutiao": {
|
|
1864
|
-
* "hostVer": "-",
|
|
1865
|
-
* "uniVer": "-",
|
|
1866
|
-
* "unixVer": "-"
|
|
1867
|
-
* },
|
|
1868
|
-
* "lark": {
|
|
1869
|
-
* "hostVer": "-",
|
|
1870
|
-
* "uniVer": "-",
|
|
1871
|
-
* "unixVer": "-"
|
|
1872
|
-
* },
|
|
1873
|
-
* "qq": {
|
|
1874
|
-
* "hostVer": "-",
|
|
1875
|
-
* "uniVer": "-",
|
|
1876
|
-
* "unixVer": "-"
|
|
1877
|
-
* },
|
|
1878
|
-
* "kuaishou": {
|
|
1879
|
-
* "hostVer": "-",
|
|
1880
|
-
* "uniVer": "-",
|
|
1881
|
-
* "unixVer": "-"
|
|
1882
|
-
* },
|
|
1883
|
-
* "jd": {
|
|
1884
|
-
* "hostVer": "-",
|
|
1885
|
-
* "uniVer": "-",
|
|
1886
|
-
* "unixVer": "-"
|
|
1887
|
-
* }
|
|
1888
|
-
* }
|
|
1889
|
-
* }
|
|
1890
|
-
*/
|
|
1669
|
+
*/
|
|
1891
1670
|
mask?: boolean | null,
|
|
1892
1671
|
/**
|
|
1893
1672
|
* 接口调用成功的回调函数
|
|
1894
|
-
* @uniPlatform {
|
|
1895
|
-
* "mp": {
|
|
1896
|
-
* "weixin": {
|
|
1897
|
-
* "hostVer": "√",
|
|
1898
|
-
* "uniVer": "√",
|
|
1899
|
-
* "unixVer": "4.41"
|
|
1900
|
-
* },
|
|
1901
|
-
* "alipay": {
|
|
1902
|
-
* "hostVer": "-",
|
|
1903
|
-
* "uniVer": "-",
|
|
1904
|
-
* "unixVer": "-"
|
|
1905
|
-
* },
|
|
1906
|
-
* "baidu": {
|
|
1907
|
-
* "hostVer": "-",
|
|
1908
|
-
* "uniVer": "-",
|
|
1909
|
-
* "unixVer": "-"
|
|
1910
|
-
* },
|
|
1911
|
-
* "toutiao": {
|
|
1912
|
-
* "hostVer": "-",
|
|
1913
|
-
* "uniVer": "-",
|
|
1914
|
-
* "unixVer": "-"
|
|
1915
|
-
* },
|
|
1916
|
-
* "lark": {
|
|
1917
|
-
* "hostVer": "-",
|
|
1918
|
-
* "uniVer": "-",
|
|
1919
|
-
* "unixVer": "-"
|
|
1920
|
-
* },
|
|
1921
|
-
* "qq": {
|
|
1922
|
-
* "hostVer": "-",
|
|
1923
|
-
* "uniVer": "-",
|
|
1924
|
-
* "unixVer": "-"
|
|
1925
|
-
* },
|
|
1926
|
-
* "kuaishou": {
|
|
1927
|
-
* "hostVer": "-",
|
|
1928
|
-
* "uniVer": "-",
|
|
1929
|
-
* "unixVer": "-"
|
|
1930
|
-
* },
|
|
1931
|
-
* "jd": {
|
|
1932
|
-
* "hostVer": "-",
|
|
1933
|
-
* "uniVer": "-",
|
|
1934
|
-
* "unixVer": "-"
|
|
1935
|
-
* }
|
|
1936
|
-
* }
|
|
1937
|
-
* }
|
|
1938
1673
|
*/
|
|
1939
1674
|
success?: ShowLoadingSuccessCallback | null,
|
|
1940
1675
|
/**
|
|
1941
1676
|
* 接口调用失败的回调函数
|
|
1942
|
-
* @uniPlatform {
|
|
1943
|
-
* "mp": {
|
|
1944
|
-
* "weixin": {
|
|
1945
|
-
* "hostVer": "√",
|
|
1946
|
-
* "uniVer": "√",
|
|
1947
|
-
* "unixVer": "4.41"
|
|
1948
|
-
* },
|
|
1949
|
-
* "alipay": {
|
|
1950
|
-
* "hostVer": "-",
|
|
1951
|
-
* "uniVer": "-",
|
|
1952
|
-
* "unixVer": "-"
|
|
1953
|
-
* },
|
|
1954
|
-
* "baidu": {
|
|
1955
|
-
* "hostVer": "-",
|
|
1956
|
-
* "uniVer": "-",
|
|
1957
|
-
* "unixVer": "-"
|
|
1958
|
-
* },
|
|
1959
|
-
* "toutiao": {
|
|
1960
|
-
* "hostVer": "-",
|
|
1961
|
-
* "uniVer": "-",
|
|
1962
|
-
* "unixVer": "-"
|
|
1963
|
-
* },
|
|
1964
|
-
* "lark": {
|
|
1965
|
-
* "hostVer": "-",
|
|
1966
|
-
* "uniVer": "-",
|
|
1967
|
-
* "unixVer": "-"
|
|
1968
|
-
* },
|
|
1969
|
-
* "qq": {
|
|
1970
|
-
* "hostVer": "-",
|
|
1971
|
-
* "uniVer": "-",
|
|
1972
|
-
* "unixVer": "-"
|
|
1973
|
-
* },
|
|
1974
|
-
* "kuaishou": {
|
|
1975
|
-
* "hostVer": "-",
|
|
1976
|
-
* "uniVer": "-",
|
|
1977
|
-
* "unixVer": "-"
|
|
1978
|
-
* },
|
|
1979
|
-
* "jd": {
|
|
1980
|
-
* "hostVer": "-",
|
|
1981
|
-
* "uniVer": "-",
|
|
1982
|
-
* "unixVer": "-"
|
|
1983
|
-
* }
|
|
1984
|
-
* }
|
|
1985
|
-
* }
|
|
1986
1677
|
*/
|
|
1987
1678
|
fail?: ShowLoadingFailCallback | null,
|
|
1988
1679
|
/**
|
|
1989
1680
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1990
|
-
* @uniPlatform {
|
|
1991
|
-
* "mp": {
|
|
1992
|
-
* "weixin": {
|
|
1993
|
-
* "hostVer": "√",
|
|
1994
|
-
* "uniVer": "√",
|
|
1995
|
-
* "unixVer": "4.41"
|
|
1996
|
-
* },
|
|
1997
|
-
* "alipay": {
|
|
1998
|
-
* "hostVer": "-",
|
|
1999
|
-
* "uniVer": "-",
|
|
2000
|
-
* "unixVer": "-"
|
|
2001
|
-
* },
|
|
2002
|
-
* "baidu": {
|
|
2003
|
-
* "hostVer": "-",
|
|
2004
|
-
* "uniVer": "-",
|
|
2005
|
-
* "unixVer": "-"
|
|
2006
|
-
* },
|
|
2007
|
-
* "toutiao": {
|
|
2008
|
-
* "hostVer": "-",
|
|
2009
|
-
* "uniVer": "-",
|
|
2010
|
-
* "unixVer": "-"
|
|
2011
|
-
* },
|
|
2012
|
-
* "lark": {
|
|
2013
|
-
* "hostVer": "-",
|
|
2014
|
-
* "uniVer": "-",
|
|
2015
|
-
* "unixVer": "-"
|
|
2016
|
-
* },
|
|
2017
|
-
* "qq": {
|
|
2018
|
-
* "hostVer": "-",
|
|
2019
|
-
* "uniVer": "-",
|
|
2020
|
-
* "unixVer": "-"
|
|
2021
|
-
* },
|
|
2022
|
-
* "kuaishou": {
|
|
2023
|
-
* "hostVer": "-",
|
|
2024
|
-
* "uniVer": "-",
|
|
2025
|
-
* "unixVer": "-"
|
|
2026
|
-
* },
|
|
2027
|
-
* "jd": {
|
|
2028
|
-
* "hostVer": "-",
|
|
2029
|
-
* "uniVer": "-",
|
|
2030
|
-
* "unixVer": "-"
|
|
2031
|
-
* }
|
|
2032
|
-
* }
|
|
2033
|
-
* }
|
|
2034
1681
|
*/
|
|
2035
1682
|
complete?: ShowLoadingCompleteCallback | null
|
|
2036
1683
|
}
|
|
@@ -2192,153 +1839,21 @@ export type ShowLoading = (options: ShowLoadingOptions) => void
|
|
|
2192
1839
|
}
|
|
2193
1840
|
*/
|
|
2194
1841
|
export type HideLoading = () => void
|
|
2195
|
-
|
|
1842
|
+
|
|
2196
1843
|
/**
|
|
2197
1844
|
* uni.showModal 成功回调参数
|
|
2198
1845
|
*/
|
|
2199
1846
|
export type ShowModalSuccess = {
|
|
2200
1847
|
/**
|
|
2201
1848
|
* 为 true 时,表示用户点击了确定按钮
|
|
2202
|
-
|
|
2203
|
-
* "mp": {
|
|
2204
|
-
* "weixin": {
|
|
2205
|
-
* "hostVer": "√",
|
|
2206
|
-
* "uniVer": "√",
|
|
2207
|
-
* "unixVer": "4.41"
|
|
2208
|
-
* },
|
|
2209
|
-
* "alipay": {
|
|
2210
|
-
* "hostVer": "-",
|
|
2211
|
-
* "uniVer": "-",
|
|
2212
|
-
* "unixVer": "-"
|
|
2213
|
-
* },
|
|
2214
|
-
* "baidu": {
|
|
2215
|
-
* "hostVer": "-",
|
|
2216
|
-
* "uniVer": "-",
|
|
2217
|
-
* "unixVer": "-"
|
|
2218
|
-
* },
|
|
2219
|
-
* "toutiao": {
|
|
2220
|
-
* "hostVer": "-",
|
|
2221
|
-
* "uniVer": "-",
|
|
2222
|
-
* "unixVer": "-"
|
|
2223
|
-
* },
|
|
2224
|
-
* "lark": {
|
|
2225
|
-
* "hostVer": "-",
|
|
2226
|
-
* "uniVer": "-",
|
|
2227
|
-
* "unixVer": "-"
|
|
2228
|
-
* },
|
|
2229
|
-
* "qq": {
|
|
2230
|
-
* "hostVer": "-",
|
|
2231
|
-
* "uniVer": "-",
|
|
2232
|
-
* "unixVer": "-"
|
|
2233
|
-
* },
|
|
2234
|
-
* "kuaishou": {
|
|
2235
|
-
* "hostVer": "-",
|
|
2236
|
-
* "uniVer": "-",
|
|
2237
|
-
* "unixVer": "-"
|
|
2238
|
-
* },
|
|
2239
|
-
* "jd": {
|
|
2240
|
-
* "hostVer": "-",
|
|
2241
|
-
* "uniVer": "-",
|
|
2242
|
-
* "unixVer": "-"
|
|
2243
|
-
* }
|
|
2244
|
-
* }
|
|
2245
|
-
* }
|
|
2246
|
-
*/
|
|
1849
|
+
*/
|
|
2247
1850
|
confirm: boolean,
|
|
2248
1851
|
/**
|
|
2249
1852
|
* 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)
|
|
2250
|
-
|
|
2251
|
-
* "mp": {
|
|
2252
|
-
* "weixin": {
|
|
2253
|
-
* "hostVer": "√",
|
|
2254
|
-
* "uniVer": "√",
|
|
2255
|
-
* "unixVer": "4.41"
|
|
2256
|
-
* },
|
|
2257
|
-
* "alipay": {
|
|
2258
|
-
* "hostVer": "-",
|
|
2259
|
-
* "uniVer": "-",
|
|
2260
|
-
* "unixVer": "-"
|
|
2261
|
-
* },
|
|
2262
|
-
* "baidu": {
|
|
2263
|
-
* "hostVer": "-",
|
|
2264
|
-
* "uniVer": "-",
|
|
2265
|
-
* "unixVer": "-"
|
|
2266
|
-
* },
|
|
2267
|
-
* "toutiao": {
|
|
2268
|
-
* "hostVer": "-",
|
|
2269
|
-
* "uniVer": "-",
|
|
2270
|
-
* "unixVer": "-"
|
|
2271
|
-
* },
|
|
2272
|
-
* "lark": {
|
|
2273
|
-
* "hostVer": "-",
|
|
2274
|
-
* "uniVer": "-",
|
|
2275
|
-
* "unixVer": "-"
|
|
2276
|
-
* },
|
|
2277
|
-
* "qq": {
|
|
2278
|
-
* "hostVer": "-",
|
|
2279
|
-
* "uniVer": "-",
|
|
2280
|
-
* "unixVer": "-"
|
|
2281
|
-
* },
|
|
2282
|
-
* "kuaishou": {
|
|
2283
|
-
* "hostVer": "-",
|
|
2284
|
-
* "uniVer": "-",
|
|
2285
|
-
* "unixVer": "-"
|
|
2286
|
-
* },
|
|
2287
|
-
* "jd": {
|
|
2288
|
-
* "hostVer": "-",
|
|
2289
|
-
* "uniVer": "-",
|
|
2290
|
-
* "unixVer": "-"
|
|
2291
|
-
* }
|
|
2292
|
-
* }
|
|
2293
|
-
* }
|
|
2294
|
-
*/
|
|
1853
|
+
*/
|
|
2295
1854
|
cancel: boolean,
|
|
2296
1855
|
/**
|
|
2297
1856
|
* editable 为 true 时,用户输入的文本
|
|
2298
|
-
* @uniPlatform {
|
|
2299
|
-
* "mp": {
|
|
2300
|
-
* "weixin": {
|
|
2301
|
-
* "hostVer": "√",
|
|
2302
|
-
* "uniVer": "√",
|
|
2303
|
-
* "unixVer": "4.41"
|
|
2304
|
-
* },
|
|
2305
|
-
* "alipay": {
|
|
2306
|
-
* "hostVer": "-",
|
|
2307
|
-
* "uniVer": "-",
|
|
2308
|
-
* "unixVer": "-"
|
|
2309
|
-
* },
|
|
2310
|
-
* "baidu": {
|
|
2311
|
-
* "hostVer": "-",
|
|
2312
|
-
* "uniVer": "-",
|
|
2313
|
-
* "unixVer": "-"
|
|
2314
|
-
* },
|
|
2315
|
-
* "toutiao": {
|
|
2316
|
-
* "hostVer": "-",
|
|
2317
|
-
* "uniVer": "-",
|
|
2318
|
-
* "unixVer": "-"
|
|
2319
|
-
* },
|
|
2320
|
-
* "lark": {
|
|
2321
|
-
* "hostVer": "-",
|
|
2322
|
-
* "uniVer": "-",
|
|
2323
|
-
* "unixVer": "-"
|
|
2324
|
-
* },
|
|
2325
|
-
* "qq": {
|
|
2326
|
-
* "hostVer": "-",
|
|
2327
|
-
* "uniVer": "-",
|
|
2328
|
-
* "unixVer": "-"
|
|
2329
|
-
* },
|
|
2330
|
-
* "kuaishou": {
|
|
2331
|
-
* "hostVer": "-",
|
|
2332
|
-
* "uniVer": "-",
|
|
2333
|
-
* "unixVer": "-"
|
|
2334
|
-
* },
|
|
2335
|
-
* "jd": {
|
|
2336
|
-
* "hostVer": "-",
|
|
2337
|
-
* "uniVer": "-",
|
|
2338
|
-
* "unixVer": "-"
|
|
2339
|
-
* }
|
|
2340
|
-
* }
|
|
2341
|
-
* }
|
|
2342
1857
|
*/
|
|
2343
1858
|
content: string | null
|
|
2344
1859
|
}
|
|
@@ -2350,146 +1865,14 @@ export type ShowModalFail = IPromptError;
|
|
|
2350
1865
|
|
|
2351
1866
|
/**
|
|
2352
1867
|
* uni.showModal成功回调函数定义
|
|
2353
|
-
* @uniPlatform {
|
|
2354
|
-
* "mp": {
|
|
2355
|
-
* "weixin": {
|
|
2356
|
-
* "hostVer": "√",
|
|
2357
|
-
* "uniVer": "√",
|
|
2358
|
-
* "unixVer": "4.41"
|
|
2359
|
-
* },
|
|
2360
|
-
* "alipay": {
|
|
2361
|
-
* "hostVer": "-",
|
|
2362
|
-
* "uniVer": "-",
|
|
2363
|
-
* "unixVer": "-"
|
|
2364
|
-
* },
|
|
2365
|
-
* "baidu": {
|
|
2366
|
-
* "hostVer": "-",
|
|
2367
|
-
* "uniVer": "-",
|
|
2368
|
-
* "unixVer": "-"
|
|
2369
|
-
* },
|
|
2370
|
-
* "toutiao": {
|
|
2371
|
-
* "hostVer": "-",
|
|
2372
|
-
* "uniVer": "-",
|
|
2373
|
-
* "unixVer": "-"
|
|
2374
|
-
* },
|
|
2375
|
-
* "lark": {
|
|
2376
|
-
* "hostVer": "-",
|
|
2377
|
-
* "uniVer": "-",
|
|
2378
|
-
* "unixVer": "-"
|
|
2379
|
-
* },
|
|
2380
|
-
* "qq": {
|
|
2381
|
-
* "hostVer": "-",
|
|
2382
|
-
* "uniVer": "-",
|
|
2383
|
-
* "unixVer": "-"
|
|
2384
|
-
* },
|
|
2385
|
-
* "kuaishou": {
|
|
2386
|
-
* "hostVer": "-",
|
|
2387
|
-
* "uniVer": "-",
|
|
2388
|
-
* "unixVer": "-"
|
|
2389
|
-
* },
|
|
2390
|
-
* "jd": {
|
|
2391
|
-
* "hostVer": "-",
|
|
2392
|
-
* "uniVer": "-",
|
|
2393
|
-
* "unixVer": "-"
|
|
2394
|
-
* }
|
|
2395
|
-
* }
|
|
2396
|
-
* }
|
|
2397
1868
|
*/
|
|
2398
1869
|
export type ShowModalSuccessCallback = (res: ShowModalSuccess) => void
|
|
2399
1870
|
/**
|
|
2400
1871
|
* uni.showModal失败回调函数定义
|
|
2401
|
-
* @uniPlatform {
|
|
2402
|
-
* "mp": {
|
|
2403
|
-
* "weixin": {
|
|
2404
|
-
* "hostVer": "√",
|
|
2405
|
-
* "uniVer": "√",
|
|
2406
|
-
* "unixVer": "4.41"
|
|
2407
|
-
* },
|
|
2408
|
-
* "alipay": {
|
|
2409
|
-
* "hostVer": "-",
|
|
2410
|
-
* "uniVer": "-",
|
|
2411
|
-
* "unixVer": "-"
|
|
2412
|
-
* },
|
|
2413
|
-
* "baidu": {
|
|
2414
|
-
* "hostVer": "-",
|
|
2415
|
-
* "uniVer": "-",
|
|
2416
|
-
* "unixVer": "-"
|
|
2417
|
-
* },
|
|
2418
|
-
* "toutiao": {
|
|
2419
|
-
* "hostVer": "-",
|
|
2420
|
-
* "uniVer": "-",
|
|
2421
|
-
* "unixVer": "-"
|
|
2422
|
-
* },
|
|
2423
|
-
* "lark": {
|
|
2424
|
-
* "hostVer": "-",
|
|
2425
|
-
* "uniVer": "-",
|
|
2426
|
-
* "unixVer": "-"
|
|
2427
|
-
* },
|
|
2428
|
-
* "qq": {
|
|
2429
|
-
* "hostVer": "-",
|
|
2430
|
-
* "uniVer": "-",
|
|
2431
|
-
* "unixVer": "-"
|
|
2432
|
-
* },
|
|
2433
|
-
* "kuaishou": {
|
|
2434
|
-
* "hostVer": "-",
|
|
2435
|
-
* "uniVer": "-",
|
|
2436
|
-
* "unixVer": "-"
|
|
2437
|
-
* },
|
|
2438
|
-
* "jd": {
|
|
2439
|
-
* "hostVer": "-",
|
|
2440
|
-
* "uniVer": "-",
|
|
2441
|
-
* "unixVer": "-"
|
|
2442
|
-
* }
|
|
2443
|
-
* }
|
|
2444
|
-
* }
|
|
2445
1872
|
*/
|
|
2446
1873
|
export type ShowModalFailCallback = (res: ShowModalFail) => void
|
|
2447
1874
|
/**
|
|
2448
1875
|
* uni.showModal完成回调函数定义
|
|
2449
|
-
* @uniPlatform {
|
|
2450
|
-
* "mp": {
|
|
2451
|
-
* "weixin": {
|
|
2452
|
-
* "hostVer": "√",
|
|
2453
|
-
* "uniVer": "√",
|
|
2454
|
-
* "unixVer": "4.41"
|
|
2455
|
-
* },
|
|
2456
|
-
* "alipay": {
|
|
2457
|
-
* "hostVer": "-",
|
|
2458
|
-
* "uniVer": "-",
|
|
2459
|
-
* "unixVer": "-"
|
|
2460
|
-
* },
|
|
2461
|
-
* "baidu": {
|
|
2462
|
-
* "hostVer": "-",
|
|
2463
|
-
* "uniVer": "-",
|
|
2464
|
-
* "unixVer": "-"
|
|
2465
|
-
* },
|
|
2466
|
-
* "toutiao": {
|
|
2467
|
-
* "hostVer": "-",
|
|
2468
|
-
* "uniVer": "-",
|
|
2469
|
-
* "unixVer": "-"
|
|
2470
|
-
* },
|
|
2471
|
-
* "lark": {
|
|
2472
|
-
* "hostVer": "-",
|
|
2473
|
-
* "uniVer": "-",
|
|
2474
|
-
* "unixVer": "-"
|
|
2475
|
-
* },
|
|
2476
|
-
* "qq": {
|
|
2477
|
-
* "hostVer": "-",
|
|
2478
|
-
* "uniVer": "-",
|
|
2479
|
-
* "unixVer": "-"
|
|
2480
|
-
* },
|
|
2481
|
-
* "kuaishou": {
|
|
2482
|
-
* "hostVer": "-",
|
|
2483
|
-
* "uniVer": "-",
|
|
2484
|
-
* "unixVer": "-"
|
|
2485
|
-
* },
|
|
2486
|
-
* "jd": {
|
|
2487
|
-
* "hostVer": "-",
|
|
2488
|
-
* "uniVer": "-",
|
|
2489
|
-
* "unixVer": "-"
|
|
2490
|
-
* }
|
|
2491
|
-
* }
|
|
2492
|
-
* }
|
|
2493
1876
|
*/
|
|
2494
1877
|
export type ShowModalCompleteCallback = (res: any) => void
|
|
2495
1878
|
/**
|
|
@@ -2498,99 +1881,11 @@ export type ShowModalCompleteCallback = (res: any) => void
|
|
|
2498
1881
|
export type ShowModalOptions = {
|
|
2499
1882
|
/**
|
|
2500
1883
|
* 提示的标题
|
|
2501
|
-
|
|
2502
|
-
* "mp": {
|
|
2503
|
-
* "weixin": {
|
|
2504
|
-
* "hostVer": "√",
|
|
2505
|
-
* "uniVer": "√",
|
|
2506
|
-
* "unixVer": "4.41"
|
|
2507
|
-
* },
|
|
2508
|
-
* "alipay": {
|
|
2509
|
-
* "hostVer": "-",
|
|
2510
|
-
* "uniVer": "-",
|
|
2511
|
-
* "unixVer": "-"
|
|
2512
|
-
* },
|
|
2513
|
-
* "baidu": {
|
|
2514
|
-
* "hostVer": "-",
|
|
2515
|
-
* "uniVer": "-",
|
|
2516
|
-
* "unixVer": "-"
|
|
2517
|
-
* },
|
|
2518
|
-
* "toutiao": {
|
|
2519
|
-
* "hostVer": "-",
|
|
2520
|
-
* "uniVer": "-",
|
|
2521
|
-
* "unixVer": "-"
|
|
2522
|
-
* },
|
|
2523
|
-
* "lark": {
|
|
2524
|
-
* "hostVer": "-",
|
|
2525
|
-
* "uniVer": "-",
|
|
2526
|
-
* "unixVer": "-"
|
|
2527
|
-
* },
|
|
2528
|
-
* "qq": {
|
|
2529
|
-
* "hostVer": "-",
|
|
2530
|
-
* "uniVer": "-",
|
|
2531
|
-
* "unixVer": "-"
|
|
2532
|
-
* },
|
|
2533
|
-
* "kuaishou": {
|
|
2534
|
-
* "hostVer": "-",
|
|
2535
|
-
* "uniVer": "-",
|
|
2536
|
-
* "unixVer": "-"
|
|
2537
|
-
* },
|
|
2538
|
-
* "jd": {
|
|
2539
|
-
* "hostVer": "-",
|
|
2540
|
-
* "uniVer": "-",
|
|
2541
|
-
* "unixVer": "-"
|
|
2542
|
-
* }
|
|
2543
|
-
* }
|
|
2544
|
-
* }
|
|
2545
|
-
*/
|
|
1884
|
+
*/
|
|
2546
1885
|
title?: string | null,
|
|
2547
1886
|
/**
|
|
2548
1887
|
* 提示的内容
|
|
2549
|
-
|
|
2550
|
-
* "mp": {
|
|
2551
|
-
* "weixin": {
|
|
2552
|
-
* "hostVer": "√",
|
|
2553
|
-
* "uniVer": "√",
|
|
2554
|
-
* "unixVer": "4.41"
|
|
2555
|
-
* },
|
|
2556
|
-
* "alipay": {
|
|
2557
|
-
* "hostVer": "-",
|
|
2558
|
-
* "uniVer": "-",
|
|
2559
|
-
* "unixVer": "-"
|
|
2560
|
-
* },
|
|
2561
|
-
* "baidu": {
|
|
2562
|
-
* "hostVer": "-",
|
|
2563
|
-
* "uniVer": "-",
|
|
2564
|
-
* "unixVer": "-"
|
|
2565
|
-
* },
|
|
2566
|
-
* "toutiao": {
|
|
2567
|
-
* "hostVer": "-",
|
|
2568
|
-
* "uniVer": "-",
|
|
2569
|
-
* "unixVer": "-"
|
|
2570
|
-
* },
|
|
2571
|
-
* "lark": {
|
|
2572
|
-
* "hostVer": "-",
|
|
2573
|
-
* "uniVer": "-",
|
|
2574
|
-
* "unixVer": "-"
|
|
2575
|
-
* },
|
|
2576
|
-
* "qq": {
|
|
2577
|
-
* "hostVer": "-",
|
|
2578
|
-
* "uniVer": "-",
|
|
2579
|
-
* "unixVer": "-"
|
|
2580
|
-
* },
|
|
2581
|
-
* "kuaishou": {
|
|
2582
|
-
* "hostVer": "-",
|
|
2583
|
-
* "uniVer": "-",
|
|
2584
|
-
* "unixVer": "-"
|
|
2585
|
-
* },
|
|
2586
|
-
* "jd": {
|
|
2587
|
-
* "hostVer": "-",
|
|
2588
|
-
* "uniVer": "-",
|
|
2589
|
-
* "unixVer": "-"
|
|
2590
|
-
* }
|
|
2591
|
-
* }
|
|
2592
|
-
* }
|
|
2593
|
-
*/
|
|
1888
|
+
*/
|
|
2594
1889
|
content?: string | null,
|
|
2595
1890
|
/**
|
|
2596
1891
|
* @default true
|
|
@@ -2599,1100 +1894,52 @@ export type ShowModalOptions = {
|
|
|
2599
1894
|
showCancel?: boolean | null,
|
|
2600
1895
|
/**
|
|
2601
1896
|
* 取消按钮的文字,默认为"取消"
|
|
2602
|
-
* @uniPlatform {
|
|
2603
|
-
* "mp": {
|
|
2604
|
-
* "weixin": {
|
|
2605
|
-
* "hostVer": "√",
|
|
2606
|
-
* "uniVer": "√",
|
|
2607
|
-
* "unixVer": "4.41"
|
|
2608
|
-
* },
|
|
2609
|
-
* "alipay": {
|
|
2610
|
-
* "hostVer": "-",
|
|
2611
|
-
* "uniVer": "-",
|
|
2612
|
-
* "unixVer": "-"
|
|
2613
|
-
* },
|
|
2614
|
-
* "baidu": {
|
|
2615
|
-
* "hostVer": "-",
|
|
2616
|
-
* "uniVer": "-",
|
|
2617
|
-
* "unixVer": "-"
|
|
2618
|
-
* },
|
|
2619
|
-
* "toutiao": {
|
|
2620
|
-
* "hostVer": "-",
|
|
2621
|
-
* "uniVer": "-",
|
|
2622
|
-
* "unixVer": "-"
|
|
2623
|
-
* },
|
|
2624
|
-
* "lark": {
|
|
2625
|
-
* "hostVer": "-",
|
|
2626
|
-
* "uniVer": "-",
|
|
2627
|
-
* "unixVer": "-"
|
|
2628
|
-
* },
|
|
2629
|
-
* "qq": {
|
|
2630
|
-
* "hostVer": "-",
|
|
2631
|
-
* "uniVer": "-",
|
|
2632
|
-
* "unixVer": "-"
|
|
2633
|
-
* },
|
|
2634
|
-
* "kuaishou": {
|
|
2635
|
-
* "hostVer": "-",
|
|
2636
|
-
* "uniVer": "-",
|
|
2637
|
-
* "unixVer": "-"
|
|
2638
|
-
* },
|
|
2639
|
-
* "jd": {
|
|
2640
|
-
* "hostVer": "-",
|
|
2641
|
-
* "uniVer": "-",
|
|
2642
|
-
* "unixVer": "-"
|
|
2643
|
-
* }
|
|
2644
|
-
* }
|
|
2645
|
-
* }
|
|
2646
1897
|
*/
|
|
2647
1898
|
cancelText?: string | null,
|
|
2648
1899
|
/**
|
|
2649
1900
|
* 取消按钮的文字颜色,默认为"#000000"
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
* "weixin": {
|
|
2653
|
-
* "hostVer": "√",
|
|
2654
|
-
* "uniVer": "√",
|
|
2655
|
-
* "unixVer": "4.41"
|
|
2656
|
-
* },
|
|
2657
|
-
* "alipay": {
|
|
2658
|
-
* "hostVer": "-",
|
|
2659
|
-
* "uniVer": "-",
|
|
2660
|
-
* "unixVer": "-"
|
|
2661
|
-
* },
|
|
2662
|
-
* "baidu": {
|
|
2663
|
-
* "hostVer": "-",
|
|
2664
|
-
* "uniVer": "-",
|
|
2665
|
-
* "unixVer": "-"
|
|
2666
|
-
* },
|
|
2667
|
-
* "toutiao": {
|
|
2668
|
-
* "hostVer": "-",
|
|
2669
|
-
* "uniVer": "-",
|
|
2670
|
-
* "unixVer": "-"
|
|
2671
|
-
* },
|
|
2672
|
-
* "lark": {
|
|
2673
|
-
* "hostVer": "-",
|
|
2674
|
-
* "uniVer": "-",
|
|
2675
|
-
* "unixVer": "-"
|
|
2676
|
-
* },
|
|
2677
|
-
* "qq": {
|
|
2678
|
-
* "hostVer": "-",
|
|
2679
|
-
* "uniVer": "-",
|
|
2680
|
-
* "unixVer": "-"
|
|
2681
|
-
* },
|
|
2682
|
-
* "kuaishou": {
|
|
2683
|
-
* "hostVer": "-",
|
|
2684
|
-
* "uniVer": "-",
|
|
2685
|
-
* "unixVer": "-"
|
|
2686
|
-
* },
|
|
2687
|
-
* "jd": {
|
|
2688
|
-
* "hostVer": "-",
|
|
2689
|
-
* "uniVer": "-",
|
|
2690
|
-
* "unixVer": "-"
|
|
2691
|
-
* }
|
|
2692
|
-
* }
|
|
2693
|
-
* }
|
|
2694
|
-
*/
|
|
2695
|
-
cancelColor?: string.ColorString | null,
|
|
2696
|
-
/**
|
|
2697
|
-
* 确定按钮的文字,默认为"确定"
|
|
2698
|
-
* @uniPlatform {
|
|
2699
|
-
* "mp": {
|
|
2700
|
-
* "weixin": {
|
|
2701
|
-
* "hostVer": "√",
|
|
2702
|
-
* "uniVer": "√",
|
|
2703
|
-
* "unixVer": "4.41"
|
|
2704
|
-
* },
|
|
2705
|
-
* "alipay": {
|
|
2706
|
-
* "hostVer": "-",
|
|
2707
|
-
* "uniVer": "-",
|
|
2708
|
-
* "unixVer": "-"
|
|
2709
|
-
* },
|
|
2710
|
-
* "baidu": {
|
|
2711
|
-
* "hostVer": "-",
|
|
2712
|
-
* "uniVer": "-",
|
|
2713
|
-
* "unixVer": "-"
|
|
2714
|
-
* },
|
|
2715
|
-
* "toutiao": {
|
|
2716
|
-
* "hostVer": "-",
|
|
2717
|
-
* "uniVer": "-",
|
|
2718
|
-
* "unixVer": "-"
|
|
2719
|
-
* },
|
|
2720
|
-
* "lark": {
|
|
2721
|
-
* "hostVer": "-",
|
|
2722
|
-
* "uniVer": "-",
|
|
2723
|
-
* "unixVer": "-"
|
|
2724
|
-
* },
|
|
2725
|
-
* "qq": {
|
|
2726
|
-
* "hostVer": "-",
|
|
2727
|
-
* "uniVer": "-",
|
|
2728
|
-
* "unixVer": "-"
|
|
2729
|
-
* },
|
|
2730
|
-
* "kuaishou": {
|
|
2731
|
-
* "hostVer": "-",
|
|
2732
|
-
* "uniVer": "-",
|
|
2733
|
-
* "unixVer": "-"
|
|
2734
|
-
* },
|
|
2735
|
-
* "jd": {
|
|
2736
|
-
* "hostVer": "-",
|
|
2737
|
-
* "uniVer": "-",
|
|
2738
|
-
* "unixVer": "-"
|
|
2739
|
-
* }
|
|
2740
|
-
* }
|
|
2741
|
-
* }
|
|
2742
|
-
*/
|
|
2743
|
-
confirmText?: string | null,
|
|
2744
|
-
/**
|
|
2745
|
-
* 确定按钮的文字颜色
|
|
2746
|
-
* @uniPlatform {
|
|
2747
|
-
* "mp": {
|
|
2748
|
-
* "weixin": {
|
|
2749
|
-
* "hostVer": "√",
|
|
2750
|
-
* "uniVer": "√",
|
|
2751
|
-
* "unixVer": "4.41"
|
|
2752
|
-
* },
|
|
2753
|
-
* "alipay": {
|
|
2754
|
-
* "hostVer": "-",
|
|
2755
|
-
* "uniVer": "-",
|
|
2756
|
-
* "unixVer": "-"
|
|
2757
|
-
* },
|
|
2758
|
-
* "baidu": {
|
|
2759
|
-
* "hostVer": "-",
|
|
2760
|
-
* "uniVer": "-",
|
|
2761
|
-
* "unixVer": "-"
|
|
2762
|
-
* },
|
|
2763
|
-
* "toutiao": {
|
|
2764
|
-
* "hostVer": "-",
|
|
2765
|
-
* "uniVer": "-",
|
|
2766
|
-
* "unixVer": "-"
|
|
2767
|
-
* },
|
|
2768
|
-
* "lark": {
|
|
2769
|
-
* "hostVer": "-",
|
|
2770
|
-
* "uniVer": "-",
|
|
2771
|
-
* "unixVer": "-"
|
|
2772
|
-
* },
|
|
2773
|
-
* "qq": {
|
|
2774
|
-
* "hostVer": "-",
|
|
2775
|
-
* "uniVer": "-",
|
|
2776
|
-
* "unixVer": "-"
|
|
2777
|
-
* },
|
|
2778
|
-
* "kuaishou": {
|
|
2779
|
-
* "hostVer": "-",
|
|
2780
|
-
* "uniVer": "-",
|
|
2781
|
-
* "unixVer": "-"
|
|
2782
|
-
* },
|
|
2783
|
-
* "jd": {
|
|
2784
|
-
* "hostVer": "-",
|
|
2785
|
-
* "uniVer": "-",
|
|
2786
|
-
* "unixVer": "-"
|
|
2787
|
-
* }
|
|
2788
|
-
* }
|
|
2789
|
-
* }
|
|
2790
|
-
*/
|
|
2791
|
-
confirmColor?: string.ColorString | null,
|
|
2792
|
-
/**
|
|
2793
|
-
* @default false
|
|
2794
|
-
* 是否显示输入框
|
|
2795
|
-
*/
|
|
2796
|
-
editable?: boolean | null,
|
|
2797
|
-
/**
|
|
2798
|
-
* 显示输入框时的提示文本
|
|
2799
|
-
* @uniPlatform {
|
|
2800
|
-
* "mp": {
|
|
2801
|
-
* "weixin": {
|
|
2802
|
-
* "hostVer": "√",
|
|
2803
|
-
* "uniVer": "√",
|
|
2804
|
-
* "unixVer": "4.41"
|
|
2805
|
-
* },
|
|
2806
|
-
* "alipay": {
|
|
2807
|
-
* "hostVer": "-",
|
|
2808
|
-
* "uniVer": "-",
|
|
2809
|
-
* "unixVer": "-"
|
|
2810
|
-
* },
|
|
2811
|
-
* "baidu": {
|
|
2812
|
-
* "hostVer": "-",
|
|
2813
|
-
* "uniVer": "-",
|
|
2814
|
-
* "unixVer": "-"
|
|
2815
|
-
* },
|
|
2816
|
-
* "toutiao": {
|
|
2817
|
-
* "hostVer": "-",
|
|
2818
|
-
* "uniVer": "-",
|
|
2819
|
-
* "unixVer": "-"
|
|
2820
|
-
* },
|
|
2821
|
-
* "lark": {
|
|
2822
|
-
* "hostVer": "-",
|
|
2823
|
-
* "uniVer": "-",
|
|
2824
|
-
* "unixVer": "-"
|
|
2825
|
-
* },
|
|
2826
|
-
* "qq": {
|
|
2827
|
-
* "hostVer": "-",
|
|
2828
|
-
* "uniVer": "-",
|
|
2829
|
-
* "unixVer": "-"
|
|
2830
|
-
* },
|
|
2831
|
-
* "kuaishou": {
|
|
2832
|
-
* "hostVer": "-",
|
|
2833
|
-
* "uniVer": "-",
|
|
2834
|
-
* "unixVer": "-"
|
|
2835
|
-
* },
|
|
2836
|
-
* "jd": {
|
|
2837
|
-
* "hostVer": "-",
|
|
2838
|
-
* "uniVer": "-",
|
|
2839
|
-
* "unixVer": "-"
|
|
2840
|
-
* }
|
|
2841
|
-
* }
|
|
2842
|
-
* }
|
|
2843
|
-
*/
|
|
2844
|
-
placeholderText?: string | null,
|
|
2845
|
-
/**
|
|
2846
|
-
* 接口调用成功的回调函数
|
|
2847
|
-
* @uniPlatform {
|
|
2848
|
-
* "mp": {
|
|
2849
|
-
* "weixin": {
|
|
2850
|
-
* "hostVer": "√",
|
|
2851
|
-
* "uniVer": "√",
|
|
2852
|
-
* "unixVer": "4.41"
|
|
2853
|
-
* },
|
|
2854
|
-
* "alipay": {
|
|
2855
|
-
* "hostVer": "-",
|
|
2856
|
-
* "uniVer": "-",
|
|
2857
|
-
* "unixVer": "-"
|
|
2858
|
-
* },
|
|
2859
|
-
* "baidu": {
|
|
2860
|
-
* "hostVer": "-",
|
|
2861
|
-
* "uniVer": "-",
|
|
2862
|
-
* "unixVer": "-"
|
|
2863
|
-
* },
|
|
2864
|
-
* "toutiao": {
|
|
2865
|
-
* "hostVer": "-",
|
|
2866
|
-
* "uniVer": "-",
|
|
2867
|
-
* "unixVer": "-"
|
|
2868
|
-
* },
|
|
2869
|
-
* "lark": {
|
|
2870
|
-
* "hostVer": "-",
|
|
2871
|
-
* "uniVer": "-",
|
|
2872
|
-
* "unixVer": "-"
|
|
2873
|
-
* },
|
|
2874
|
-
* "qq": {
|
|
2875
|
-
* "hostVer": "-",
|
|
2876
|
-
* "uniVer": "-",
|
|
2877
|
-
* "unixVer": "-"
|
|
2878
|
-
* },
|
|
2879
|
-
* "kuaishou": {
|
|
2880
|
-
* "hostVer": "-",
|
|
2881
|
-
* "uniVer": "-",
|
|
2882
|
-
* "unixVer": "-"
|
|
2883
|
-
* },
|
|
2884
|
-
* "jd": {
|
|
2885
|
-
* "hostVer": "-",
|
|
2886
|
-
* "uniVer": "-",
|
|
2887
|
-
* "unixVer": "-"
|
|
2888
|
-
* }
|
|
2889
|
-
* }
|
|
2890
|
-
* }
|
|
2891
|
-
*/
|
|
2892
|
-
success?: ShowModalSuccessCallback | null,
|
|
2893
|
-
/**
|
|
2894
|
-
* 接口调用失败的回调函数
|
|
2895
|
-
* @uniPlatform {
|
|
2896
|
-
* "mp": {
|
|
2897
|
-
* "weixin": {
|
|
2898
|
-
* "hostVer": "√",
|
|
2899
|
-
* "uniVer": "√",
|
|
2900
|
-
* "unixVer": "4.41"
|
|
2901
|
-
* },
|
|
2902
|
-
* "alipay": {
|
|
2903
|
-
* "hostVer": "-",
|
|
2904
|
-
* "uniVer": "-",
|
|
2905
|
-
* "unixVer": "-"
|
|
2906
|
-
* },
|
|
2907
|
-
* "baidu": {
|
|
2908
|
-
* "hostVer": "-",
|
|
2909
|
-
* "uniVer": "-",
|
|
2910
|
-
* "unixVer": "-"
|
|
2911
|
-
* },
|
|
2912
|
-
* "toutiao": {
|
|
2913
|
-
* "hostVer": "-",
|
|
2914
|
-
* "uniVer": "-",
|
|
2915
|
-
* "unixVer": "-"
|
|
2916
|
-
* },
|
|
2917
|
-
* "lark": {
|
|
2918
|
-
* "hostVer": "-",
|
|
2919
|
-
* "uniVer": "-",
|
|
2920
|
-
* "unixVer": "-"
|
|
2921
|
-
* },
|
|
2922
|
-
* "qq": {
|
|
2923
|
-
* "hostVer": "-",
|
|
2924
|
-
* "uniVer": "-",
|
|
2925
|
-
* "unixVer": "-"
|
|
2926
|
-
* },
|
|
2927
|
-
* "kuaishou": {
|
|
2928
|
-
* "hostVer": "-",
|
|
2929
|
-
* "uniVer": "-",
|
|
2930
|
-
* "unixVer": "-"
|
|
2931
|
-
* },
|
|
2932
|
-
* "jd": {
|
|
2933
|
-
* "hostVer": "-",
|
|
2934
|
-
* "uniVer": "-",
|
|
2935
|
-
* "unixVer": "-"
|
|
2936
|
-
* }
|
|
2937
|
-
* }
|
|
2938
|
-
* }
|
|
2939
|
-
*/
|
|
2940
|
-
fail?: ShowModalFailCallback | null,
|
|
2941
|
-
/**
|
|
2942
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
2943
|
-
* @uniPlatform {
|
|
2944
|
-
* "mp": {
|
|
2945
|
-
* "weixin": {
|
|
2946
|
-
* "hostVer": "√",
|
|
2947
|
-
* "uniVer": "√",
|
|
2948
|
-
* "unixVer": "4.41"
|
|
2949
|
-
* },
|
|
2950
|
-
* "alipay": {
|
|
2951
|
-
* "hostVer": "-",
|
|
2952
|
-
* "uniVer": "-",
|
|
2953
|
-
* "unixVer": "-"
|
|
2954
|
-
* },
|
|
2955
|
-
* "baidu": {
|
|
2956
|
-
* "hostVer": "-",
|
|
2957
|
-
* "uniVer": "-",
|
|
2958
|
-
* "unixVer": "-"
|
|
2959
|
-
* },
|
|
2960
|
-
* "toutiao": {
|
|
2961
|
-
* "hostVer": "-",
|
|
2962
|
-
* "uniVer": "-",
|
|
2963
|
-
* "unixVer": "-"
|
|
2964
|
-
* },
|
|
2965
|
-
* "lark": {
|
|
2966
|
-
* "hostVer": "-",
|
|
2967
|
-
* "uniVer": "-",
|
|
2968
|
-
* "unixVer": "-"
|
|
2969
|
-
* },
|
|
2970
|
-
* "qq": {
|
|
2971
|
-
* "hostVer": "-",
|
|
2972
|
-
* "uniVer": "-",
|
|
2973
|
-
* "unixVer": "-"
|
|
2974
|
-
* },
|
|
2975
|
-
* "kuaishou": {
|
|
2976
|
-
* "hostVer": "-",
|
|
2977
|
-
* "uniVer": "-",
|
|
2978
|
-
* "unixVer": "-"
|
|
2979
|
-
* },
|
|
2980
|
-
* "jd": {
|
|
2981
|
-
* "hostVer": "-",
|
|
2982
|
-
* "uniVer": "-",
|
|
2983
|
-
* "unixVer": "-"
|
|
2984
|
-
* }
|
|
2985
|
-
* }
|
|
2986
|
-
* }
|
|
2987
|
-
*/
|
|
2988
|
-
complete?: ShowModalCompleteCallback | null
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
/**
|
|
2992
|
-
* uni.showModal 函数定义
|
|
2993
|
-
*
|
|
2994
|
-
* 弹出modal
|
|
2995
|
-
*
|
|
2996
|
-
* @param {ShowModalOptions} options
|
|
2997
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
2998
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
2999
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
3000
|
-
* @uniPlatform
|
|
3001
|
-
{
|
|
3002
|
-
"app": {
|
|
3003
|
-
"android": {
|
|
3004
|
-
"osVer": "5.0",
|
|
3005
|
-
"uniVer": "√",
|
|
3006
|
-
"uniUtsPlugin": "x",
|
|
3007
|
-
"unixVer": "3.91"
|
|
3008
|
-
},
|
|
3009
|
-
"ios": {
|
|
3010
|
-
"osVer": "12.0",
|
|
3011
|
-
"uniVer": "√",
|
|
3012
|
-
"uniUtsPlugin": "x",
|
|
3013
|
-
"unixVer": "4.11",
|
|
3014
|
-
"unixUtsPlugin": "4.11"
|
|
3015
|
-
},
|
|
3016
|
-
"harmony": {
|
|
3017
|
-
"osVer": "3.0",
|
|
3018
|
-
"uniVer": "4.23",
|
|
3019
|
-
"unixVer": "4.61"
|
|
3020
|
-
}
|
|
3021
|
-
},
|
|
3022
|
-
"mp": {
|
|
3023
|
-
"weixin": {
|
|
3024
|
-
"hostVer": "√",
|
|
3025
|
-
"uniVer": "√",
|
|
3026
|
-
"unixVer": "4.41"
|
|
3027
|
-
},
|
|
3028
|
-
"alipay": {
|
|
3029
|
-
"hostVer": "√",
|
|
3030
|
-
"uniVer": "√",
|
|
3031
|
-
"unixVer": "x"
|
|
3032
|
-
},
|
|
3033
|
-
"baidu": {
|
|
3034
|
-
"hostVer": "√",
|
|
3035
|
-
"uniVer": "√",
|
|
3036
|
-
"unixVer": "x"
|
|
3037
|
-
},
|
|
3038
|
-
"toutiao": {
|
|
3039
|
-
"hostVer": "√",
|
|
3040
|
-
"uniVer": "√",
|
|
3041
|
-
"unixVer": "x"
|
|
3042
|
-
},
|
|
3043
|
-
"lark": {
|
|
3044
|
-
"hostVer": "√",
|
|
3045
|
-
"uniVer": "√",
|
|
3046
|
-
"unixVer": "x"
|
|
3047
|
-
},
|
|
3048
|
-
"qq": {
|
|
3049
|
-
"hostVer": "√",
|
|
3050
|
-
"uniVer": "√",
|
|
3051
|
-
"unixVer": "x"
|
|
3052
|
-
},
|
|
3053
|
-
"kuaishou": {
|
|
3054
|
-
"hostVer": "√",
|
|
3055
|
-
"uniVer": "√",
|
|
3056
|
-
"unixVer": "x"
|
|
3057
|
-
},
|
|
3058
|
-
"jd": {
|
|
3059
|
-
"hostVer": "√",
|
|
3060
|
-
"uniVer": "√",
|
|
3061
|
-
"unixVer": "x"
|
|
3062
|
-
}
|
|
3063
|
-
},
|
|
3064
|
-
"web": {
|
|
3065
|
-
"uniVer": "√",
|
|
3066
|
-
"unixVer": "4.0"
|
|
3067
|
-
}
|
|
3068
|
-
}
|
|
3069
|
-
*/
|
|
3070
|
-
export type ShowModal = (options: ShowModalOptions) => void
|
|
3071
|
-
// #endif
|
|
3072
|
-
|
|
3073
|
-
// #ifdef !UNI-APP-X
|
|
3074
|
-
/**
|
|
3075
|
-
* uni.ShowActionSheet成功回调参数
|
|
3076
|
-
*/
|
|
3077
|
-
export type ShowActionSheetSuccess = {
|
|
3078
|
-
/**
|
|
3079
|
-
* 用户点击的按钮,从上到下的顺序,从0开始
|
|
3080
|
-
* @uniPlatform {
|
|
3081
|
-
* "mp": {
|
|
3082
|
-
* "weixin": {
|
|
3083
|
-
* "hostVer": "√",
|
|
3084
|
-
* "uniVer": "√",
|
|
3085
|
-
* "unixVer": "4.41"
|
|
3086
|
-
* },
|
|
3087
|
-
* "alipay": {
|
|
3088
|
-
* "hostVer": "-",
|
|
3089
|
-
* "uniVer": "-",
|
|
3090
|
-
* "unixVer": "-"
|
|
3091
|
-
* },
|
|
3092
|
-
* "baidu": {
|
|
3093
|
-
* "hostVer": "-",
|
|
3094
|
-
* "uniVer": "-",
|
|
3095
|
-
* "unixVer": "-"
|
|
3096
|
-
* },
|
|
3097
|
-
* "toutiao": {
|
|
3098
|
-
* "hostVer": "-",
|
|
3099
|
-
* "uniVer": "-",
|
|
3100
|
-
* "unixVer": "-"
|
|
3101
|
-
* },
|
|
3102
|
-
* "lark": {
|
|
3103
|
-
* "hostVer": "-",
|
|
3104
|
-
* "uniVer": "-",
|
|
3105
|
-
* "unixVer": "-"
|
|
3106
|
-
* },
|
|
3107
|
-
* "qq": {
|
|
3108
|
-
* "hostVer": "-",
|
|
3109
|
-
* "uniVer": "-",
|
|
3110
|
-
* "unixVer": "-"
|
|
3111
|
-
* },
|
|
3112
|
-
* "kuaishou": {
|
|
3113
|
-
* "hostVer": "-",
|
|
3114
|
-
* "uniVer": "-",
|
|
3115
|
-
* "unixVer": "-"
|
|
3116
|
-
* },
|
|
3117
|
-
* "jd": {
|
|
3118
|
-
* "hostVer": "-",
|
|
3119
|
-
* "uniVer": "-",
|
|
3120
|
-
* "unixVer": "-"
|
|
3121
|
-
* }
|
|
3122
|
-
* }
|
|
3123
|
-
* }
|
|
3124
|
-
*/
|
|
3125
|
-
tapIndex: number,
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
export type Popover = {
|
|
3129
|
-
/**
|
|
3130
|
-
* 指示区域坐标,使用原生 navigationBar 时一般需要加上 navigationBar 的高度
|
|
3131
|
-
*/
|
|
3132
|
-
top: number,
|
|
3133
|
-
/**
|
|
3134
|
-
* 指示区域坐标
|
|
3135
|
-
*/
|
|
3136
|
-
left: number,
|
|
3137
|
-
/**
|
|
3138
|
-
* 指示区域宽度
|
|
3139
|
-
*/
|
|
3140
|
-
width: number,
|
|
3141
|
-
/**
|
|
3142
|
-
* 指示区域高度
|
|
3143
|
-
*/
|
|
3144
|
-
height: number
|
|
3145
|
-
}
|
|
3146
|
-
|
|
3147
|
-
/**
|
|
3148
|
-
* uni.ShowActionSheet失败回调参数
|
|
3149
|
-
*/
|
|
3150
|
-
export type ShowActionSheetFail = IPromptError;
|
|
3151
|
-
|
|
3152
|
-
/**
|
|
3153
|
-
* uni.showActionSheet成功回调函数定义
|
|
3154
|
-
* @uniPlatform {
|
|
3155
|
-
* "mp": {
|
|
3156
|
-
* "weixin": {
|
|
3157
|
-
* "hostVer": "√",
|
|
3158
|
-
* "uniVer": "√",
|
|
3159
|
-
* "unixVer": "4.41"
|
|
3160
|
-
* },
|
|
3161
|
-
* "alipay": {
|
|
3162
|
-
* "hostVer": "-",
|
|
3163
|
-
* "uniVer": "-",
|
|
3164
|
-
* "unixVer": "-"
|
|
3165
|
-
* },
|
|
3166
|
-
* "baidu": {
|
|
3167
|
-
* "hostVer": "-",
|
|
3168
|
-
* "uniVer": "-",
|
|
3169
|
-
* "unixVer": "-"
|
|
3170
|
-
* },
|
|
3171
|
-
* "toutiao": {
|
|
3172
|
-
* "hostVer": "-",
|
|
3173
|
-
* "uniVer": "-",
|
|
3174
|
-
* "unixVer": "-"
|
|
3175
|
-
* },
|
|
3176
|
-
* "lark": {
|
|
3177
|
-
* "hostVer": "-",
|
|
3178
|
-
* "uniVer": "-",
|
|
3179
|
-
* "unixVer": "-"
|
|
3180
|
-
* },
|
|
3181
|
-
* "qq": {
|
|
3182
|
-
* "hostVer": "-",
|
|
3183
|
-
* "uniVer": "-",
|
|
3184
|
-
* "unixVer": "-"
|
|
3185
|
-
* },
|
|
3186
|
-
* "kuaishou": {
|
|
3187
|
-
* "hostVer": "-",
|
|
3188
|
-
* "uniVer": "-",
|
|
3189
|
-
* "unixVer": "-"
|
|
3190
|
-
* },
|
|
3191
|
-
* "jd": {
|
|
3192
|
-
* "hostVer": "-",
|
|
3193
|
-
* "uniVer": "-",
|
|
3194
|
-
* "unixVer": "-"
|
|
3195
|
-
* }
|
|
3196
|
-
* }
|
|
3197
|
-
* }
|
|
3198
|
-
*/
|
|
3199
|
-
export type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void
|
|
3200
|
-
/**
|
|
3201
|
-
* uni.showActionSheet成功回调函数定义
|
|
3202
|
-
* @uniPlatform {
|
|
3203
|
-
* "mp": {
|
|
3204
|
-
* "weixin": {
|
|
3205
|
-
* "hostVer": "√",
|
|
3206
|
-
* "uniVer": "√",
|
|
3207
|
-
* "unixVer": "4.41"
|
|
3208
|
-
* },
|
|
3209
|
-
* "alipay": {
|
|
3210
|
-
* "hostVer": "-",
|
|
3211
|
-
* "uniVer": "-",
|
|
3212
|
-
* "unixVer": "-"
|
|
3213
|
-
* },
|
|
3214
|
-
* "baidu": {
|
|
3215
|
-
* "hostVer": "-",
|
|
3216
|
-
* "uniVer": "-",
|
|
3217
|
-
* "unixVer": "-"
|
|
3218
|
-
* },
|
|
3219
|
-
* "toutiao": {
|
|
3220
|
-
* "hostVer": "-",
|
|
3221
|
-
* "uniVer": "-",
|
|
3222
|
-
* "unixVer": "-"
|
|
3223
|
-
* },
|
|
3224
|
-
* "lark": {
|
|
3225
|
-
* "hostVer": "-",
|
|
3226
|
-
* "uniVer": "-",
|
|
3227
|
-
* "unixVer": "-"
|
|
3228
|
-
* },
|
|
3229
|
-
* "qq": {
|
|
3230
|
-
* "hostVer": "-",
|
|
3231
|
-
* "uniVer": "-",
|
|
3232
|
-
* "unixVer": "-"
|
|
3233
|
-
* },
|
|
3234
|
-
* "kuaishou": {
|
|
3235
|
-
* "hostVer": "-",
|
|
3236
|
-
* "uniVer": "-",
|
|
3237
|
-
* "unixVer": "-"
|
|
3238
|
-
* },
|
|
3239
|
-
* "jd": {
|
|
3240
|
-
* "hostVer": "-",
|
|
3241
|
-
* "uniVer": "-",
|
|
3242
|
-
* "unixVer": "-"
|
|
3243
|
-
* }
|
|
3244
|
-
* }
|
|
3245
|
-
* }
|
|
3246
|
-
*/
|
|
3247
|
-
export type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void
|
|
3248
|
-
/**
|
|
3249
|
-
* uni.showActionSheet成功回调函数定义
|
|
3250
|
-
* @uniPlatform {
|
|
3251
|
-
* "mp": {
|
|
3252
|
-
* "weixin": {
|
|
3253
|
-
* "hostVer": "√",
|
|
3254
|
-
* "uniVer": "√",
|
|
3255
|
-
* "unixVer": "4.41"
|
|
3256
|
-
* },
|
|
3257
|
-
* "alipay": {
|
|
3258
|
-
* "hostVer": "-",
|
|
3259
|
-
* "uniVer": "-",
|
|
3260
|
-
* "unixVer": "-"
|
|
3261
|
-
* },
|
|
3262
|
-
* "baidu": {
|
|
3263
|
-
* "hostVer": "-",
|
|
3264
|
-
* "uniVer": "-",
|
|
3265
|
-
* "unixVer": "-"
|
|
3266
|
-
* },
|
|
3267
|
-
* "toutiao": {
|
|
3268
|
-
* "hostVer": "-",
|
|
3269
|
-
* "uniVer": "-",
|
|
3270
|
-
* "unixVer": "-"
|
|
3271
|
-
* },
|
|
3272
|
-
* "lark": {
|
|
3273
|
-
* "hostVer": "-",
|
|
3274
|
-
* "uniVer": "-",
|
|
3275
|
-
* "unixVer": "-"
|
|
3276
|
-
* },
|
|
3277
|
-
* "qq": {
|
|
3278
|
-
* "hostVer": "-",
|
|
3279
|
-
* "uniVer": "-",
|
|
3280
|
-
* "unixVer": "-"
|
|
3281
|
-
* },
|
|
3282
|
-
* "kuaishou": {
|
|
3283
|
-
* "hostVer": "-",
|
|
3284
|
-
* "uniVer": "-",
|
|
3285
|
-
* "unixVer": "-"
|
|
3286
|
-
* },
|
|
3287
|
-
* "jd": {
|
|
3288
|
-
* "hostVer": "-",
|
|
3289
|
-
* "uniVer": "-",
|
|
3290
|
-
* "unixVer": "-"
|
|
3291
|
-
* }
|
|
3292
|
-
* }
|
|
3293
|
-
* }
|
|
3294
|
-
*/
|
|
3295
|
-
export type ShowActionSheetCompleteCallback = (res: any) => void
|
|
3296
|
-
|
|
3297
|
-
/**
|
|
3298
|
-
* uni.showActionSheet函数参数定义
|
|
3299
|
-
*/
|
|
3300
|
-
export type ShowActionSheetOptions = {
|
|
3301
|
-
/**
|
|
3302
|
-
* 菜单标题
|
|
3303
|
-
* @uniPlatform {
|
|
3304
|
-
* "mp": {
|
|
3305
|
-
* "weixin": {
|
|
3306
|
-
* "hostVer": "√",
|
|
3307
|
-
* "uniVer": "√",
|
|
3308
|
-
* "unixVer": "4.41"
|
|
3309
|
-
* },
|
|
3310
|
-
* "alipay": {
|
|
3311
|
-
* "hostVer": "-",
|
|
3312
|
-
* "uniVer": "-",
|
|
3313
|
-
* "unixVer": "-"
|
|
3314
|
-
* },
|
|
3315
|
-
* "baidu": {
|
|
3316
|
-
* "hostVer": "-",
|
|
3317
|
-
* "uniVer": "-",
|
|
3318
|
-
* "unixVer": "-"
|
|
3319
|
-
* },
|
|
3320
|
-
* "toutiao": {
|
|
3321
|
-
* "hostVer": "-",
|
|
3322
|
-
* "uniVer": "-",
|
|
3323
|
-
* "unixVer": "-"
|
|
3324
|
-
* },
|
|
3325
|
-
* "lark": {
|
|
3326
|
-
* "hostVer": "-",
|
|
3327
|
-
* "uniVer": "-",
|
|
3328
|
-
* "unixVer": "-"
|
|
3329
|
-
* },
|
|
3330
|
-
* "qq": {
|
|
3331
|
-
* "hostVer": "-",
|
|
3332
|
-
* "uniVer": "-",
|
|
3333
|
-
* "unixVer": "-"
|
|
3334
|
-
* },
|
|
3335
|
-
* "kuaishou": {
|
|
3336
|
-
* "hostVer": "-",
|
|
3337
|
-
* "uniVer": "-",
|
|
3338
|
-
* "unixVer": "-"
|
|
3339
|
-
* },
|
|
3340
|
-
* "jd": {
|
|
3341
|
-
* "hostVer": "-",
|
|
3342
|
-
* "uniVer": "-",
|
|
3343
|
-
* "unixVer": "-"
|
|
3344
|
-
* }
|
|
3345
|
-
* }
|
|
3346
|
-
* }
|
|
3347
|
-
*/
|
|
3348
|
-
title?: string | null,
|
|
1901
|
+
*/
|
|
1902
|
+
cancelColor?: string.ColorString | null,
|
|
3349
1903
|
/**
|
|
3350
|
-
*
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
* "weixin": {
|
|
3354
|
-
* "hostVer": "√",
|
|
3355
|
-
* "uniVer": "√",
|
|
3356
|
-
* "unixVer": "4.41"
|
|
3357
|
-
* },
|
|
3358
|
-
* "alipay": {
|
|
3359
|
-
* "hostVer": "-",
|
|
3360
|
-
* "uniVer": "-",
|
|
3361
|
-
* "unixVer": "-"
|
|
3362
|
-
* },
|
|
3363
|
-
* "baidu": {
|
|
3364
|
-
* "hostVer": "-",
|
|
3365
|
-
* "uniVer": "-",
|
|
3366
|
-
* "unixVer": "-"
|
|
3367
|
-
* },
|
|
3368
|
-
* "toutiao": {
|
|
3369
|
-
* "hostVer": "-",
|
|
3370
|
-
* "uniVer": "-",
|
|
3371
|
-
* "unixVer": "-"
|
|
3372
|
-
* },
|
|
3373
|
-
* "lark": {
|
|
3374
|
-
* "hostVer": "-",
|
|
3375
|
-
* "uniVer": "-",
|
|
3376
|
-
* "unixVer": "-"
|
|
3377
|
-
* },
|
|
3378
|
-
* "qq": {
|
|
3379
|
-
* "hostVer": "-",
|
|
3380
|
-
* "uniVer": "-",
|
|
3381
|
-
* "unixVer": "-"
|
|
3382
|
-
* },
|
|
3383
|
-
* "kuaishou": {
|
|
3384
|
-
* "hostVer": "-",
|
|
3385
|
-
* "uniVer": "-",
|
|
3386
|
-
* "unixVer": "-"
|
|
3387
|
-
* },
|
|
3388
|
-
* "jd": {
|
|
3389
|
-
* "hostVer": "-",
|
|
3390
|
-
* "uniVer": "-",
|
|
3391
|
-
* "unixVer": "-"
|
|
3392
|
-
* }
|
|
3393
|
-
* }
|
|
3394
|
-
* }
|
|
3395
|
-
*/
|
|
3396
|
-
alertText?: string | null,
|
|
1904
|
+
* 确定按钮的文字,默认为"确定"
|
|
1905
|
+
*/
|
|
1906
|
+
confirmText?: string | null,
|
|
3397
1907
|
/**
|
|
3398
|
-
*
|
|
3399
|
-
* @uniPlatform {
|
|
3400
|
-
* "mp": {
|
|
3401
|
-
* "weixin": {
|
|
3402
|
-
* "hostVer": "√",
|
|
3403
|
-
* "uniVer": "√",
|
|
3404
|
-
* "unixVer": "4.41"
|
|
3405
|
-
* },
|
|
3406
|
-
* "alipay": {
|
|
3407
|
-
* "hostVer": "-",
|
|
3408
|
-
* "uniVer": "-",
|
|
3409
|
-
* "unixVer": "-"
|
|
3410
|
-
* },
|
|
3411
|
-
* "baidu": {
|
|
3412
|
-
* "hostVer": "-",
|
|
3413
|
-
* "uniVer": "-",
|
|
3414
|
-
* "unixVer": "-"
|
|
3415
|
-
* },
|
|
3416
|
-
* "toutiao": {
|
|
3417
|
-
* "hostVer": "-",
|
|
3418
|
-
* "uniVer": "-",
|
|
3419
|
-
* "unixVer": "-"
|
|
3420
|
-
* },
|
|
3421
|
-
* "lark": {
|
|
3422
|
-
* "hostVer": "-",
|
|
3423
|
-
* "uniVer": "-",
|
|
3424
|
-
* "unixVer": "-"
|
|
3425
|
-
* },
|
|
3426
|
-
* "qq": {
|
|
3427
|
-
* "hostVer": "-",
|
|
3428
|
-
* "uniVer": "-",
|
|
3429
|
-
* "unixVer": "-"
|
|
3430
|
-
* },
|
|
3431
|
-
* "kuaishou": {
|
|
3432
|
-
* "hostVer": "-",
|
|
3433
|
-
* "uniVer": "-",
|
|
3434
|
-
* "unixVer": "-"
|
|
3435
|
-
* },
|
|
3436
|
-
* "jd": {
|
|
3437
|
-
* "hostVer": "-",
|
|
3438
|
-
* "uniVer": "-",
|
|
3439
|
-
* "unixVer": "-"
|
|
3440
|
-
* }
|
|
3441
|
-
* }
|
|
3442
|
-
* }
|
|
1908
|
+
* 确定按钮的文字颜色
|
|
3443
1909
|
*/
|
|
3444
|
-
|
|
1910
|
+
confirmColor?: string.ColorString | null,
|
|
3445
1911
|
/**
|
|
3446
|
-
*
|
|
3447
|
-
*
|
|
3448
|
-
* "mp": {
|
|
3449
|
-
* "weixin": {
|
|
3450
|
-
* "hostVer": "√",
|
|
3451
|
-
* "uniVer": "√",
|
|
3452
|
-
* "unixVer": "4.41"
|
|
3453
|
-
* },
|
|
3454
|
-
* "alipay": {
|
|
3455
|
-
* "hostVer": "-",
|
|
3456
|
-
* "uniVer": "-",
|
|
3457
|
-
* "unixVer": "-"
|
|
3458
|
-
* },
|
|
3459
|
-
* "baidu": {
|
|
3460
|
-
* "hostVer": "-",
|
|
3461
|
-
* "uniVer": "-",
|
|
3462
|
-
* "unixVer": "-"
|
|
3463
|
-
* },
|
|
3464
|
-
* "toutiao": {
|
|
3465
|
-
* "hostVer": "-",
|
|
3466
|
-
* "uniVer": "-",
|
|
3467
|
-
* "unixVer": "-"
|
|
3468
|
-
* },
|
|
3469
|
-
* "lark": {
|
|
3470
|
-
* "hostVer": "-",
|
|
3471
|
-
* "uniVer": "-",
|
|
3472
|
-
* "unixVer": "-"
|
|
3473
|
-
* },
|
|
3474
|
-
* "qq": {
|
|
3475
|
-
* "hostVer": "-",
|
|
3476
|
-
* "uniVer": "-",
|
|
3477
|
-
* "unixVer": "-"
|
|
3478
|
-
* },
|
|
3479
|
-
* "kuaishou": {
|
|
3480
|
-
* "hostVer": "-",
|
|
3481
|
-
* "uniVer": "-",
|
|
3482
|
-
* "unixVer": "-"
|
|
3483
|
-
* },
|
|
3484
|
-
* "jd": {
|
|
3485
|
-
* "hostVer": "-",
|
|
3486
|
-
* "uniVer": "-",
|
|
3487
|
-
* "unixVer": "-"
|
|
3488
|
-
* }
|
|
3489
|
-
* }
|
|
3490
|
-
* }
|
|
1912
|
+
* @default false
|
|
1913
|
+
* 是否显示输入框
|
|
3491
1914
|
*/
|
|
3492
|
-
|
|
1915
|
+
editable?: boolean | null,
|
|
3493
1916
|
/**
|
|
3494
|
-
*
|
|
3495
|
-
* @uniPlatform {
|
|
3496
|
-
* "mp": {
|
|
3497
|
-
* "weixin": {
|
|
3498
|
-
* "hostVer": "√",
|
|
3499
|
-
* "uniVer": "√",
|
|
3500
|
-
* "unixVer": "4.41"
|
|
3501
|
-
* },
|
|
3502
|
-
* "alipay": {
|
|
3503
|
-
* "hostVer": "-",
|
|
3504
|
-
* "uniVer": "-",
|
|
3505
|
-
* "unixVer": "-"
|
|
3506
|
-
* },
|
|
3507
|
-
* "baidu": {
|
|
3508
|
-
* "hostVer": "-",
|
|
3509
|
-
* "uniVer": "-",
|
|
3510
|
-
* "unixVer": "-"
|
|
3511
|
-
* },
|
|
3512
|
-
* "toutiao": {
|
|
3513
|
-
* "hostVer": "-",
|
|
3514
|
-
* "uniVer": "-",
|
|
3515
|
-
* "unixVer": "-"
|
|
3516
|
-
* },
|
|
3517
|
-
* "lark": {
|
|
3518
|
-
* "hostVer": "-",
|
|
3519
|
-
* "uniVer": "-",
|
|
3520
|
-
* "unixVer": "-"
|
|
3521
|
-
* },
|
|
3522
|
-
* "qq": {
|
|
3523
|
-
* "hostVer": "-",
|
|
3524
|
-
* "uniVer": "-",
|
|
3525
|
-
* "unixVer": "-"
|
|
3526
|
-
* },
|
|
3527
|
-
* "kuaishou": {
|
|
3528
|
-
* "hostVer": "-",
|
|
3529
|
-
* "uniVer": "-",
|
|
3530
|
-
* "unixVer": "-"
|
|
3531
|
-
* },
|
|
3532
|
-
* "jd": {
|
|
3533
|
-
* "hostVer": "-",
|
|
3534
|
-
* "uniVer": "-",
|
|
3535
|
-
* "unixVer": "-"
|
|
3536
|
-
* }
|
|
3537
|
-
* }
|
|
3538
|
-
* }
|
|
1917
|
+
* 显示输入框时的提示文本
|
|
3539
1918
|
*/
|
|
3540
|
-
|
|
1919
|
+
placeholderText?: string | null,
|
|
3541
1920
|
/**
|
|
3542
1921
|
* 接口调用成功的回调函数
|
|
3543
|
-
* @uniPlatform {
|
|
3544
|
-
* "mp": {
|
|
3545
|
-
* "weixin": {
|
|
3546
|
-
* "hostVer": "√",
|
|
3547
|
-
* "uniVer": "√",
|
|
3548
|
-
* "unixVer": "4.41"
|
|
3549
|
-
* },
|
|
3550
|
-
* "alipay": {
|
|
3551
|
-
* "hostVer": "-",
|
|
3552
|
-
* "uniVer": "-",
|
|
3553
|
-
* "unixVer": "-"
|
|
3554
|
-
* },
|
|
3555
|
-
* "baidu": {
|
|
3556
|
-
* "hostVer": "-",
|
|
3557
|
-
* "uniVer": "-",
|
|
3558
|
-
* "unixVer": "-"
|
|
3559
|
-
* },
|
|
3560
|
-
* "toutiao": {
|
|
3561
|
-
* "hostVer": "-",
|
|
3562
|
-
* "uniVer": "-",
|
|
3563
|
-
* "unixVer": "-"
|
|
3564
|
-
* },
|
|
3565
|
-
* "lark": {
|
|
3566
|
-
* "hostVer": "-",
|
|
3567
|
-
* "uniVer": "-",
|
|
3568
|
-
* "unixVer": "-"
|
|
3569
|
-
* },
|
|
3570
|
-
* "qq": {
|
|
3571
|
-
* "hostVer": "-",
|
|
3572
|
-
* "uniVer": "-",
|
|
3573
|
-
* "unixVer": "-"
|
|
3574
|
-
* },
|
|
3575
|
-
* "kuaishou": {
|
|
3576
|
-
* "hostVer": "-",
|
|
3577
|
-
* "uniVer": "-",
|
|
3578
|
-
* "unixVer": "-"
|
|
3579
|
-
* },
|
|
3580
|
-
* "jd": {
|
|
3581
|
-
* "hostVer": "-",
|
|
3582
|
-
* "uniVer": "-",
|
|
3583
|
-
* "unixVer": "-"
|
|
3584
|
-
* }
|
|
3585
|
-
* }
|
|
3586
|
-
* }
|
|
3587
1922
|
*/
|
|
3588
|
-
success?:
|
|
1923
|
+
success?: ShowModalSuccessCallback | null,
|
|
3589
1924
|
/**
|
|
3590
1925
|
* 接口调用失败的回调函数
|
|
3591
|
-
* @uniPlatform {
|
|
3592
|
-
* "mp": {
|
|
3593
|
-
* "weixin": {
|
|
3594
|
-
* "hostVer": "√",
|
|
3595
|
-
* "uniVer": "√",
|
|
3596
|
-
* "unixVer": "4.41"
|
|
3597
|
-
* },
|
|
3598
|
-
* "alipay": {
|
|
3599
|
-
* "hostVer": "-",
|
|
3600
|
-
* "uniVer": "-",
|
|
3601
|
-
* "unixVer": "-"
|
|
3602
|
-
* },
|
|
3603
|
-
* "baidu": {
|
|
3604
|
-
* "hostVer": "-",
|
|
3605
|
-
* "uniVer": "-",
|
|
3606
|
-
* "unixVer": "-"
|
|
3607
|
-
* },
|
|
3608
|
-
* "toutiao": {
|
|
3609
|
-
* "hostVer": "-",
|
|
3610
|
-
* "uniVer": "-",
|
|
3611
|
-
* "unixVer": "-"
|
|
3612
|
-
* },
|
|
3613
|
-
* "lark": {
|
|
3614
|
-
* "hostVer": "-",
|
|
3615
|
-
* "uniVer": "-",
|
|
3616
|
-
* "unixVer": "-"
|
|
3617
|
-
* },
|
|
3618
|
-
* "qq": {
|
|
3619
|
-
* "hostVer": "-",
|
|
3620
|
-
* "uniVer": "-",
|
|
3621
|
-
* "unixVer": "-"
|
|
3622
|
-
* },
|
|
3623
|
-
* "kuaishou": {
|
|
3624
|
-
* "hostVer": "-",
|
|
3625
|
-
* "uniVer": "-",
|
|
3626
|
-
* "unixVer": "-"
|
|
3627
|
-
* },
|
|
3628
|
-
* "jd": {
|
|
3629
|
-
* "hostVer": "-",
|
|
3630
|
-
* "uniVer": "-",
|
|
3631
|
-
* "unixVer": "-"
|
|
3632
|
-
* }
|
|
3633
|
-
* }
|
|
3634
|
-
* }
|
|
3635
1926
|
*/
|
|
3636
|
-
fail?:
|
|
1927
|
+
fail?: ShowModalFailCallback | null,
|
|
3637
1928
|
/**
|
|
3638
1929
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
3639
|
-
* @uniPlatform {
|
|
3640
|
-
* "mp": {
|
|
3641
|
-
* "weixin": {
|
|
3642
|
-
* "hostVer": "√",
|
|
3643
|
-
* "uniVer": "√",
|
|
3644
|
-
* "unixVer": "4.41"
|
|
3645
|
-
* },
|
|
3646
|
-
* "alipay": {
|
|
3647
|
-
* "hostVer": "-",
|
|
3648
|
-
* "uniVer": "-",
|
|
3649
|
-
* "unixVer": "-"
|
|
3650
|
-
* },
|
|
3651
|
-
* "baidu": {
|
|
3652
|
-
* "hostVer": "-",
|
|
3653
|
-
* "uniVer": "-",
|
|
3654
|
-
* "unixVer": "-"
|
|
3655
|
-
* },
|
|
3656
|
-
* "toutiao": {
|
|
3657
|
-
* "hostVer": "-",
|
|
3658
|
-
* "uniVer": "-",
|
|
3659
|
-
* "unixVer": "-"
|
|
3660
|
-
* },
|
|
3661
|
-
* "lark": {
|
|
3662
|
-
* "hostVer": "-",
|
|
3663
|
-
* "uniVer": "-",
|
|
3664
|
-
* "unixVer": "-"
|
|
3665
|
-
* },
|
|
3666
|
-
* "qq": {
|
|
3667
|
-
* "hostVer": "-",
|
|
3668
|
-
* "uniVer": "-",
|
|
3669
|
-
* "unixVer": "-"
|
|
3670
|
-
* },
|
|
3671
|
-
* "kuaishou": {
|
|
3672
|
-
* "hostVer": "-",
|
|
3673
|
-
* "uniVer": "-",
|
|
3674
|
-
* "unixVer": "-"
|
|
3675
|
-
* },
|
|
3676
|
-
* "jd": {
|
|
3677
|
-
* "hostVer": "-",
|
|
3678
|
-
* "uniVer": "-",
|
|
3679
|
-
* "unixVer": "-"
|
|
3680
|
-
* }
|
|
3681
|
-
* }
|
|
3682
|
-
* }
|
|
3683
1930
|
*/
|
|
3684
|
-
complete?:
|
|
1931
|
+
complete?: ShowModalCompleteCallback | null
|
|
3685
1932
|
}
|
|
3686
1933
|
|
|
3687
1934
|
/**
|
|
3688
|
-
* uni.
|
|
1935
|
+
* uni.showModal 函数定义
|
|
3689
1936
|
*
|
|
3690
|
-
* 弹出
|
|
1937
|
+
* 弹出modal
|
|
3691
1938
|
*
|
|
3692
|
-
* @param {
|
|
3693
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#
|
|
3694
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
3695
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
1939
|
+
* @param {ShowModalOptions} options
|
|
1940
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
1941
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
1942
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
3696
1943
|
* @uniPlatform
|
|
3697
1944
|
{
|
|
3698
1945
|
"app": {
|
|
@@ -3756,200 +2003,33 @@ export type ShowActionSheetOptions = {
|
|
|
3756
2003
|
"uniVer": "√",
|
|
3757
2004
|
"unixVer": "x"
|
|
3758
2005
|
}
|
|
3759
|
-
},
|
|
3760
|
-
"web": {
|
|
3761
|
-
"uniVer": "√",
|
|
3762
|
-
"unixVer": "4.0"
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
|
-
*/
|
|
3766
|
-
export type
|
|
3767
|
-
// #endif
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
export interface Uni {
|
|
3771
|
-
/**
|
|
3772
|
-
* @description 显示消息提示框
|
|
3773
|
-
* @example
|
|
3774
|
-
```typescript
|
|
3775
|
-
uni.showToast({
|
|
3776
|
-
title: '标题',
|
|
3777
|
-
duration: 2000
|
|
3778
|
-
});
|
|
3779
|
-
```
|
|
3780
|
-
* @remark
|
|
3781
|
-
* - showLoading 和 showToast 同时只能显示一个
|
|
3782
|
-
* - showToast 应与 hideToast 配对使用
|
|
3783
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
|
|
3784
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
3785
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
3786
|
-
* @uniPlatform {
|
|
3787
|
-
* "app": {
|
|
3788
|
-
* "android": {
|
|
3789
|
-
* "osVer": "5.0",
|
|
3790
|
-
* "uniVer": "√",
|
|
3791
|
-
* "uniUtsPlugin": "3.91",
|
|
3792
|
-
* "unixVer": "3.91"
|
|
3793
|
-
* },
|
|
3794
|
-
* "ios": {
|
|
3795
|
-
* "osVer": "12.0",
|
|
3796
|
-
* "uniVer": "√",
|
|
3797
|
-
* "uniUtsPlugin": "4.11",
|
|
3798
|
-
* "unixVer": "4.11",
|
|
3799
|
-
* "unixUtsPlugin": "4.11"
|
|
3800
|
-
* },
|
|
3801
|
-
* "harmony": {
|
|
3802
|
-
* "osVer": "3.0",
|
|
3803
|
-
* "uniVer": "4.23",
|
|
3804
|
-
* "unixVer": "4.61"
|
|
3805
|
-
* }
|
|
3806
|
-
* },
|
|
3807
|
-
* "mp": {
|
|
3808
|
-
* "weixin": {
|
|
3809
|
-
* "hostVer": "1.9.6",
|
|
3810
|
-
* "uniVer": "√",
|
|
3811
|
-
* "unixVer": "4.41"
|
|
3812
|
-
* },
|
|
3813
|
-
* "alipay": {
|
|
3814
|
-
* "hostVer": "√",
|
|
3815
|
-
* "uniVer": "√",
|
|
3816
|
-
* "unixVer": "x"
|
|
3817
|
-
* },
|
|
3818
|
-
* "baidu": {
|
|
3819
|
-
* "hostVer": "√",
|
|
3820
|
-
* "uniVer": "√",
|
|
3821
|
-
* "unixVer": "x"
|
|
3822
|
-
* },
|
|
3823
|
-
* "toutiao": {
|
|
3824
|
-
* "hostVer": "√",
|
|
3825
|
-
* "uniVer": "√",
|
|
3826
|
-
* "unixVer": "x"
|
|
3827
|
-
* },
|
|
3828
|
-
* "lark": {
|
|
3829
|
-
* "hostVer": "√",
|
|
3830
|
-
* "uniVer": "√",
|
|
3831
|
-
* "unixVer": "x"
|
|
3832
|
-
* },
|
|
3833
|
-
* "qq": {
|
|
3834
|
-
* "hostVer": "√",
|
|
3835
|
-
* "uniVer": "√",
|
|
3836
|
-
* "unixVer": "x"
|
|
3837
|
-
* },
|
|
3838
|
-
* "kuaishou": {
|
|
3839
|
-
* "hostVer": "√",
|
|
3840
|
-
* "uniVer": "√",
|
|
3841
|
-
* "unixVer": "x"
|
|
3842
|
-
* },
|
|
3843
|
-
* "jd": {
|
|
3844
|
-
* "hostVer": "√",
|
|
3845
|
-
* "uniVer": "√",
|
|
3846
|
-
* "unixVer": "x"
|
|
3847
|
-
* }
|
|
3848
|
-
* },
|
|
3849
|
-
* "web": {
|
|
3850
|
-
* "uniVer": "√",
|
|
3851
|
-
* "unixVer": "4.0"
|
|
3852
|
-
* }
|
|
3853
|
-
* }
|
|
3854
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html
|
|
3855
|
-
*/
|
|
3856
|
-
showToast(options: ShowToastOptions): void,
|
|
2006
|
+
},
|
|
2007
|
+
"web": {
|
|
2008
|
+
"uniVer": "√",
|
|
2009
|
+
"unixVer": "4.0"
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
*/
|
|
2013
|
+
export type ShowModal = (options: ShowModalOptions) => void
|
|
3857
2014
|
|
|
3858
|
-
/**
|
|
3859
|
-
* @description 隐藏消息提示框。
|
|
3860
|
-
* @example
|
|
3861
|
-
```typescript
|
|
3862
|
-
uni.hideToast();
|
|
3863
|
-
```
|
|
3864
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
|
|
3865
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
3866
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
3867
|
-
* @uniPlatform {
|
|
3868
|
-
* "app": {
|
|
3869
|
-
* "android": {
|
|
3870
|
-
* "osVer": "5.0",
|
|
3871
|
-
* "uniVer": "√",
|
|
3872
|
-
* "uniUtsPlugin": "3.91",
|
|
3873
|
-
* "unixVer": "3.91"
|
|
3874
|
-
* },
|
|
3875
|
-
* "ios": {
|
|
3876
|
-
* "osVer": "12.0",
|
|
3877
|
-
* "uniVer": "√",
|
|
3878
|
-
* "uniUtsPlugin": "4.11",
|
|
3879
|
-
* "unixVer": "4.11",
|
|
3880
|
-
* "unixUtsPlugin": "4.11"
|
|
3881
|
-
* },
|
|
3882
|
-
* "harmony": {
|
|
3883
|
-
* "osVer": "3.0",
|
|
3884
|
-
* "uniVer": "4.23",
|
|
3885
|
-
* "unixVer": "4.61"
|
|
3886
|
-
* }
|
|
3887
|
-
* },
|
|
3888
|
-
* "mp": {
|
|
3889
|
-
* "weixin": {
|
|
3890
|
-
* "hostVer": "1.9.6",
|
|
3891
|
-
* "uniVer": "√",
|
|
3892
|
-
* "unixVer": "4.41"
|
|
3893
|
-
* },
|
|
3894
|
-
* "alipay": {
|
|
3895
|
-
* "hostVer": "√",
|
|
3896
|
-
* "uniVer": "√",
|
|
3897
|
-
* "unixVer": "x"
|
|
3898
|
-
* },
|
|
3899
|
-
* "baidu": {
|
|
3900
|
-
* "hostVer": "√",
|
|
3901
|
-
* "uniVer": "√",
|
|
3902
|
-
* "unixVer": "x"
|
|
3903
|
-
* },
|
|
3904
|
-
* "toutiao": {
|
|
3905
|
-
* "hostVer": "√",
|
|
3906
|
-
* "uniVer": "√",
|
|
3907
|
-
* "unixVer": "x"
|
|
3908
|
-
* },
|
|
3909
|
-
* "lark": {
|
|
3910
|
-
* "hostVer": "√",
|
|
3911
|
-
* "uniVer": "√",
|
|
3912
|
-
* "unixVer": "x"
|
|
3913
|
-
* },
|
|
3914
|
-
* "qq": {
|
|
3915
|
-
* "hostVer": "√",
|
|
3916
|
-
* "uniVer": "√",
|
|
3917
|
-
* "unixVer": "x"
|
|
3918
|
-
* },
|
|
3919
|
-
* "kuaishou": {
|
|
3920
|
-
* "hostVer": "√",
|
|
3921
|
-
* "uniVer": "√",
|
|
3922
|
-
* "unixVer": "x"
|
|
3923
|
-
* },
|
|
3924
|
-
* "jd": {
|
|
3925
|
-
* "hostVer": "√",
|
|
3926
|
-
* "uniVer": "√",
|
|
3927
|
-
* "unixVer": "x"
|
|
3928
|
-
* }
|
|
3929
|
-
* },
|
|
3930
|
-
* "web": {
|
|
3931
|
-
* "uniVer": "√",
|
|
3932
|
-
* "unixVer": "4.0"
|
|
3933
|
-
* }
|
|
3934
|
-
* }
|
|
3935
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideToast.html
|
|
3936
|
-
*/
|
|
3937
|
-
hideToast(): void,
|
|
3938
2015
|
|
|
2016
|
+
|
|
2017
|
+
export interface Uni {
|
|
3939
2018
|
/**
|
|
3940
|
-
* @description
|
|
2019
|
+
* @description 显示消息提示框
|
|
3941
2020
|
* @example
|
|
3942
2021
|
```typescript
|
|
3943
|
-
uni.
|
|
3944
|
-
title: '
|
|
2022
|
+
uni.showToast({
|
|
2023
|
+
title: '标题',
|
|
2024
|
+
duration: 2000
|
|
3945
2025
|
});
|
|
3946
2026
|
```
|
|
3947
2027
|
* @remark
|
|
3948
2028
|
* - showLoading 和 showToast 同时只能显示一个
|
|
3949
2029
|
* - showToast 应与 hideToast 配对使用
|
|
3950
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#
|
|
3951
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
3952
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
2030
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
|
|
2031
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
2032
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
|
|
3953
2033
|
* @uniPlatform {
|
|
3954
2034
|
* "app": {
|
|
3955
2035
|
* "android": {
|
|
@@ -3973,7 +2053,7 @@ export interface Uni {
|
|
|
3973
2053
|
* },
|
|
3974
2054
|
* "mp": {
|
|
3975
2055
|
* "weixin": {
|
|
3976
|
-
* "hostVer": "1.
|
|
2056
|
+
* "hostVer": "1.9.6",
|
|
3977
2057
|
* "uniVer": "√",
|
|
3978
2058
|
* "unixVer": "4.41"
|
|
3979
2059
|
* },
|
|
@@ -4018,25 +2098,19 @@ export interface Uni {
|
|
|
4018
2098
|
* "unixVer": "4.0"
|
|
4019
2099
|
* }
|
|
4020
2100
|
* }
|
|
4021
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.
|
|
2101
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html
|
|
4022
2102
|
*/
|
|
4023
|
-
|
|
2103
|
+
showToast(options: ShowToastOptions): void,
|
|
4024
2104
|
|
|
4025
2105
|
/**
|
|
4026
|
-
* @description
|
|
2106
|
+
* @description 隐藏消息提示框。
|
|
4027
2107
|
* @example
|
|
4028
2108
|
```typescript
|
|
4029
|
-
uni.
|
|
4030
|
-
title: '加载中'
|
|
4031
|
-
});
|
|
4032
|
-
|
|
4033
|
-
setTimeout(function () {
|
|
4034
|
-
uni.hideLoading();
|
|
4035
|
-
}, 2000);
|
|
2109
|
+
uni.hideToast();
|
|
4036
2110
|
```
|
|
4037
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#
|
|
4038
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
4039
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#
|
|
2111
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
|
|
2112
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
2113
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
|
|
4040
2114
|
* @uniPlatform {
|
|
4041
2115
|
* "app": {
|
|
4042
2116
|
* "android": {
|
|
@@ -4060,187 +2134,6 @@ export interface Uni {
|
|
|
4060
2134
|
* },
|
|
4061
2135
|
* "mp": {
|
|
4062
2136
|
* "weixin": {
|
|
4063
|
-
* "hostVer": "1.1.0",
|
|
4064
|
-
* "uniVer": "√",
|
|
4065
|
-
* "unixVer": "4.41"
|
|
4066
|
-
* },
|
|
4067
|
-
* "alipay": {
|
|
4068
|
-
* "hostVer": "√",
|
|
4069
|
-
* "uniVer": "√",
|
|
4070
|
-
* "unixVer": "x"
|
|
4071
|
-
* },
|
|
4072
|
-
* "baidu": {
|
|
4073
|
-
* "hostVer": "√",
|
|
4074
|
-
* "uniVer": "√",
|
|
4075
|
-
* "unixVer": "x"
|
|
4076
|
-
* },
|
|
4077
|
-
* "toutiao": {
|
|
4078
|
-
* "hostVer": "√",
|
|
4079
|
-
* "uniVer": "√",
|
|
4080
|
-
* "unixVer": "x"
|
|
4081
|
-
* },
|
|
4082
|
-
* "lark": {
|
|
4083
|
-
* "hostVer": "√",
|
|
4084
|
-
* "uniVer": "√",
|
|
4085
|
-
* "unixVer": "x"
|
|
4086
|
-
* },
|
|
4087
|
-
* "qq": {
|
|
4088
|
-
* "hostVer": "√",
|
|
4089
|
-
* "uniVer": "√",
|
|
4090
|
-
* "unixVer": "x"
|
|
4091
|
-
* },
|
|
4092
|
-
* "kuaishou": {
|
|
4093
|
-
* "hostVer": "√",
|
|
4094
|
-
* "uniVer": "√",
|
|
4095
|
-
* "unixVer": "x"
|
|
4096
|
-
* },
|
|
4097
|
-
* "jd": {
|
|
4098
|
-
* "hostVer": "√",
|
|
4099
|
-
* "uniVer": "√",
|
|
4100
|
-
* "unixVer": "x"
|
|
4101
|
-
* }
|
|
4102
|
-
* },
|
|
4103
|
-
* "web": {
|
|
4104
|
-
* "uniVer": "√",
|
|
4105
|
-
* "unixVer": "4.0"
|
|
4106
|
-
* }
|
|
4107
|
-
* }
|
|
4108
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideLoading.html
|
|
4109
|
-
*/
|
|
4110
|
-
hideLoading(): void,
|
|
4111
|
-
// #ifndef UNI-APP-X
|
|
4112
|
-
/**
|
|
4113
|
-
* @description 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
|
|
4114
|
-
* @example
|
|
4115
|
-
```typescript
|
|
4116
|
-
uni.showModal({
|
|
4117
|
-
title: '提示',
|
|
4118
|
-
content: '这是一个模态弹窗',
|
|
4119
|
-
success: function (res) {
|
|
4120
|
-
if (res.confirm) {
|
|
4121
|
-
console.log('用户点击确定');
|
|
4122
|
-
} else if (res.cancel) {
|
|
4123
|
-
console.log('用户点击取消');
|
|
4124
|
-
}
|
|
4125
|
-
}
|
|
4126
|
-
});
|
|
4127
|
-
```
|
|
4128
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
|
|
4129
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
4130
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
|
|
4131
|
-
* @uniPlatform {
|
|
4132
|
-
* "app": {
|
|
4133
|
-
* "android": {
|
|
4134
|
-
* "osVer": "5.0",
|
|
4135
|
-
* "uniVer": "√",
|
|
4136
|
-
* "uniUtsPlugin": "x",
|
|
4137
|
-
* "unixVer": "3.91"
|
|
4138
|
-
* },
|
|
4139
|
-
* "ios": {
|
|
4140
|
-
* "osVer": "12.0",
|
|
4141
|
-
* "uniVer": "√",
|
|
4142
|
-
* "uniUtsPlugin": "x",
|
|
4143
|
-
* "unixVer": "4.11",
|
|
4144
|
-
* "unixUtsPlugin": "4.11"
|
|
4145
|
-
* },
|
|
4146
|
-
* "harmony": {
|
|
4147
|
-
* "osVer": "3.0",
|
|
4148
|
-
* "uniVer": "4.23",
|
|
4149
|
-
* "unixVer": "4.61"
|
|
4150
|
-
* }
|
|
4151
|
-
* },
|
|
4152
|
-
* "mp": {
|
|
4153
|
-
* "weixin": {
|
|
4154
|
-
* "hostVer": "1.9.6",
|
|
4155
|
-
* "uniVer": "√",
|
|
4156
|
-
* "unixVer": "4.41"
|
|
4157
|
-
* },
|
|
4158
|
-
* "alipay": {
|
|
4159
|
-
* "hostVer": "√",
|
|
4160
|
-
* "uniVer": "√",
|
|
4161
|
-
* "unixVer": "x"
|
|
4162
|
-
* },
|
|
4163
|
-
* "baidu": {
|
|
4164
|
-
* "hostVer": "√",
|
|
4165
|
-
* "uniVer": "√",
|
|
4166
|
-
* "unixVer": "x"
|
|
4167
|
-
* },
|
|
4168
|
-
* "toutiao": {
|
|
4169
|
-
* "hostVer": "√",
|
|
4170
|
-
* "uniVer": "√",
|
|
4171
|
-
* "unixVer": "x"
|
|
4172
|
-
* },
|
|
4173
|
-
* "lark": {
|
|
4174
|
-
* "hostVer": "√",
|
|
4175
|
-
* "uniVer": "√",
|
|
4176
|
-
* "unixVer": "x"
|
|
4177
|
-
* },
|
|
4178
|
-
* "qq": {
|
|
4179
|
-
* "hostVer": "√",
|
|
4180
|
-
* "uniVer": "√",
|
|
4181
|
-
* "unixVer": "x"
|
|
4182
|
-
* },
|
|
4183
|
-
* "kuaishou": {
|
|
4184
|
-
* "hostVer": "√",
|
|
4185
|
-
* "uniVer": "√",
|
|
4186
|
-
* "unixVer": "x"
|
|
4187
|
-
* },
|
|
4188
|
-
* "jd": {
|
|
4189
|
-
* "hostVer": "√",
|
|
4190
|
-
* "uniVer": "√",
|
|
4191
|
-
* "unixVer": "x"
|
|
4192
|
-
* }
|
|
4193
|
-
* },
|
|
4194
|
-
* "web": {
|
|
4195
|
-
* "uniVer": "√",
|
|
4196
|
-
* "unixVer": "4.0"
|
|
4197
|
-
* }
|
|
4198
|
-
* }
|
|
4199
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showModal.html
|
|
4200
|
-
*/
|
|
4201
|
-
showModal(options: ShowModalOptions): void,
|
|
4202
|
-
// #endif
|
|
4203
|
-
// #ifndef UNI-APP-X
|
|
4204
|
-
/**
|
|
4205
|
-
* @description 从底部向上弹出操作菜单
|
|
4206
|
-
* @example
|
|
4207
|
-
```typescript
|
|
4208
|
-
uni.showActionSheet({
|
|
4209
|
-
itemList: ['A', 'B', 'C'],
|
|
4210
|
-
success: function (res) {
|
|
4211
|
-
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
|
4212
|
-
},
|
|
4213
|
-
fail: function (res) {
|
|
4214
|
-
console.log(res.errMsg);
|
|
4215
|
-
}
|
|
4216
|
-
});
|
|
4217
|
-
```
|
|
4218
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
|
|
4219
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
4220
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
|
|
4221
|
-
* @uniPlatform {
|
|
4222
|
-
* "app": {
|
|
4223
|
-
* "android": {
|
|
4224
|
-
* "osVer": "5.0",
|
|
4225
|
-
* "uniVer": "√",
|
|
4226
|
-
* "uniUtsPlugin": "x",
|
|
4227
|
-
* "unixVer": "3.91"
|
|
4228
|
-
* },
|
|
4229
|
-
* "ios": {
|
|
4230
|
-
* "osVer": "12.0",
|
|
4231
|
-
* "uniVer": "√",
|
|
4232
|
-
* "uniUtsPlugin": "x",
|
|
4233
|
-
* "unixVer": "4.11",
|
|
4234
|
-
* "unixUtsPlugin": "4.11"
|
|
4235
|
-
* },
|
|
4236
|
-
* "harmony": {
|
|
4237
|
-
* "osVer": "3.0",
|
|
4238
|
-
* "uniVer": "4.23",
|
|
4239
|
-
* "unixVer": "4.61"
|
|
4240
|
-
* }
|
|
4241
|
-
* },
|
|
4242
|
-
* "mp": {
|
|
4243
|
-
* "weixin": {
|
|
4244
2137
|
* "hostVer": "1.9.6",
|
|
4245
2138
|
* "uniVer": "√",
|
|
4246
2139
|
* "unixVer": "4.41"
|
|
@@ -4286,8 +2179,7 @@ export interface Uni {
|
|
|
4286
2179
|
* "unixVer": "4.0"
|
|
4287
2180
|
* }
|
|
4288
2181
|
* }
|
|
4289
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.
|
|
2182
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideToast.html
|
|
4290
2183
|
*/
|
|
4291
|
-
|
|
4292
|
-
// #endif
|
|
2184
|
+
hideToast(): void,
|
|
4293
2185
|
}
|