mdui 2.1.3 → 2.1.4
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/components/button-icon/style.js +1 -1
- package/components/collapse/collapse-item.js +1 -0
- package/components/icon/index.js +1 -1
- package/components/list/list-item.js +5 -4
- package/components/navigation-drawer/style.js +1 -1
- package/components/select/index.js +1 -1
- package/components/text-field/index.js +2 -6
- package/components/text-field/style.js +1 -1
- package/components/tooltip/index.d.ts +1 -1
- package/components/tooltip/index.js +5 -5
- package/components/top-app-bar/top-app-bar.d.ts +1 -0
- package/components/top-app-bar/top-app-bar.js +6 -0
- package/custom-elements.json +73 -67
- package/functions/alert.js +6 -1
- package/functions/confirm.js +6 -1
- package/functions/prompt.js +6 -1
- package/html-data.en.json +11 -11
- package/html-data.zh-cn.json +1 -1
- package/jsx.en.d.ts +2079 -2077
- package/jsx.zh-cn.d.ts +2062 -2060
- package/locales/ar-eg.js +0 -2
- package/locales/az-az.js +0 -2
- package/locales/be-by.js +0 -2
- package/locales/bg-bg.js +0 -2
- package/locales/bn-bd.js +0 -2
- package/locales/ca-es.js +0 -2
- package/locales/cs-cz.js +0 -2
- package/locales/da-dk.js +0 -2
- package/locales/de-de.js +0 -2
- package/locales/el-gr.js +0 -2
- package/locales/en-gb.js +0 -2
- package/locales/es-es.js +0 -2
- package/locales/et-ee.js +0 -2
- package/locales/fa-ir.js +0 -2
- package/locales/fi-fi.js +0 -2
- package/locales/fr-be.js +0 -2
- package/locales/fr-ca.js +0 -2
- package/locales/fr-fr.js +0 -2
- package/locales/ga-ie.js +0 -2
- package/locales/gl-es.js +0 -2
- package/locales/he-il.js +0 -2
- package/locales/hi-in.js +0 -2
- package/locales/hr-hr.js +0 -2
- package/locales/hu-hu.js +0 -2
- package/locales/hy-am.js +0 -2
- package/locales/id-id.js +0 -2
- package/locales/is-is.js +0 -2
- package/locales/it-it.js +0 -2
- package/locales/ja-jp.js +0 -2
- package/locales/ka-ge.js +0 -2
- package/locales/kk-kz.js +0 -2
- package/locales/km-kh.js +0 -2
- package/locales/kmr-iq.js +0 -2
- package/locales/kn-in.js +0 -2
- package/locales/ko-kr.js +0 -2
- package/locales/lt-lt.js +0 -2
- package/locales/lv-lv.js +0 -2
- package/locales/mk-mk.js +0 -2
- package/locales/ml-in.js +0 -2
- package/locales/mn-mn.js +0 -2
- package/locales/ms-my.js +0 -2
- package/locales/nb-no.js +0 -2
- package/locales/ne-np.js +0 -2
- package/locales/nl-be.js +0 -2
- package/locales/nl-nl.js +0 -2
- package/locales/pl-pl.js +0 -2
- package/locales/pt-br.js +0 -2
- package/locales/pt-pt.js +0 -2
- package/locales/ro-ro.js +0 -2
- package/locales/ru-ru.js +0 -2
- package/locales/sk-sk.js +0 -2
- package/locales/sl-si.js +0 -2
- package/locales/sr-rs.js +0 -2
- package/locales/sv-se.js +0 -2
- package/locales/ta-in.js +0 -2
- package/locales/th-th.js +0 -2
- package/locales/tr-tr.js +0 -2
- package/locales/uk-ua.js +0 -2
- package/locales/ur-pk.js +0 -2
- package/locales/vi-vn.js +0 -2
- package/locales/zh-cn.js +0 -2
- package/locales/zh-hk.js +0 -2
- package/locales/zh-tw.js +0 -2
- package/mdui.css +1 -1
- package/mdui.esm.js +9 -9
- package/mdui.global.js +9 -9
- package/package.json +9 -9
- package/web-types.en.json +13 -13
- package/web-types.zh-cn.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -748,14 +748,14 @@
|
|
|
748
748
|
"privacy": "protected",
|
|
749
749
|
"parameters": [
|
|
750
750
|
{
|
|
751
|
-
"name": "
|
|
751
|
+
"name": "_isScrollingUp",
|
|
752
752
|
"type": {
|
|
753
753
|
"text": "boolean"
|
|
754
754
|
},
|
|
755
755
|
"description": "是否向上滚动"
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
|
-
"name": "
|
|
758
|
+
"name": "_scrollTop",
|
|
759
759
|
"type": {
|
|
760
760
|
"text": "number"
|
|
761
761
|
},
|
|
@@ -770,14 +770,14 @@
|
|
|
770
770
|
"privacy": "protected",
|
|
771
771
|
"parameters": [
|
|
772
772
|
{
|
|
773
|
-
"name": "
|
|
773
|
+
"name": "_isScrollingUp",
|
|
774
774
|
"type": {
|
|
775
775
|
"text": "boolean"
|
|
776
776
|
},
|
|
777
777
|
"description": "是否向上滚动"
|
|
778
778
|
},
|
|
779
779
|
{
|
|
780
|
-
"name": "
|
|
780
|
+
"name": "_scrollTop",
|
|
781
781
|
"type": {
|
|
782
782
|
"text": "number"
|
|
783
783
|
},
|
|
@@ -1424,14 +1424,14 @@
|
|
|
1424
1424
|
"privacy": "protected",
|
|
1425
1425
|
"parameters": [
|
|
1426
1426
|
{
|
|
1427
|
-
"name": "
|
|
1427
|
+
"name": "_isScrollingUp",
|
|
1428
1428
|
"type": {
|
|
1429
1429
|
"text": "boolean"
|
|
1430
1430
|
},
|
|
1431
1431
|
"description": "是否向上滚动"
|
|
1432
1432
|
},
|
|
1433
1433
|
{
|
|
1434
|
-
"name": "
|
|
1434
|
+
"name": "_scrollTop",
|
|
1435
1435
|
"type": {
|
|
1436
1436
|
"text": "number"
|
|
1437
1437
|
},
|
|
@@ -1885,8 +1885,8 @@
|
|
|
1885
1885
|
"attribute": "href",
|
|
1886
1886
|
"reflects": true,
|
|
1887
1887
|
"inheritedFrom": {
|
|
1888
|
-
"name": "
|
|
1889
|
-
"module": "
|
|
1888
|
+
"name": "AnchorMixin",
|
|
1889
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
1890
1890
|
}
|
|
1891
1891
|
},
|
|
1892
1892
|
{
|
|
@@ -1900,8 +1900,8 @@
|
|
|
1900
1900
|
"attribute": "download",
|
|
1901
1901
|
"reflects": true,
|
|
1902
1902
|
"inheritedFrom": {
|
|
1903
|
-
"name": "
|
|
1904
|
-
"module": "
|
|
1903
|
+
"name": "AnchorMixin",
|
|
1904
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
1905
1905
|
}
|
|
1906
1906
|
},
|
|
1907
1907
|
{
|
|
@@ -1915,8 +1915,8 @@
|
|
|
1915
1915
|
"attribute": "target",
|
|
1916
1916
|
"reflects": true,
|
|
1917
1917
|
"inheritedFrom": {
|
|
1918
|
-
"name": "
|
|
1919
|
-
"module": "
|
|
1918
|
+
"name": "AnchorMixin",
|
|
1919
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
1920
1920
|
}
|
|
1921
1921
|
},
|
|
1922
1922
|
{
|
|
@@ -1930,8 +1930,8 @@
|
|
|
1930
1930
|
"attribute": "rel",
|
|
1931
1931
|
"reflects": true,
|
|
1932
1932
|
"inheritedFrom": {
|
|
1933
|
-
"name": "
|
|
1934
|
-
"module": "
|
|
1933
|
+
"name": "AnchorMixin",
|
|
1934
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
1935
1935
|
}
|
|
1936
1936
|
},
|
|
1937
1937
|
{
|
|
@@ -1952,8 +1952,8 @@
|
|
|
1952
1952
|
}
|
|
1953
1953
|
],
|
|
1954
1954
|
"inheritedFrom": {
|
|
1955
|
-
"name": "
|
|
1956
|
-
"module": "
|
|
1955
|
+
"name": "AnchorMixin",
|
|
1956
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
1957
1957
|
}
|
|
1958
1958
|
},
|
|
1959
1959
|
{
|
|
@@ -1968,8 +1968,8 @@
|
|
|
1968
1968
|
"attribute": "autofocus",
|
|
1969
1969
|
"reflects": true,
|
|
1970
1970
|
"inheritedFrom": {
|
|
1971
|
-
"name": "
|
|
1972
|
-
"module": "
|
|
1971
|
+
"name": "FocusableMixin",
|
|
1972
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
1973
1973
|
}
|
|
1974
1974
|
},
|
|
1975
1975
|
{
|
|
@@ -1984,8 +1984,8 @@
|
|
|
1984
1984
|
"attribute": "focused",
|
|
1985
1985
|
"reflects": true,
|
|
1986
1986
|
"inheritedFrom": {
|
|
1987
|
-
"name": "
|
|
1988
|
-
"module": "
|
|
1987
|
+
"name": "FocusableMixin",
|
|
1988
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
1989
1989
|
}
|
|
1990
1990
|
},
|
|
1991
1991
|
{
|
|
@@ -2000,8 +2000,8 @@
|
|
|
2000
2000
|
"attribute": "focus-visible",
|
|
2001
2001
|
"reflects": true,
|
|
2002
2002
|
"inheritedFrom": {
|
|
2003
|
-
"name": "
|
|
2004
|
-
"module": "
|
|
2003
|
+
"name": "FocusableMixin",
|
|
2004
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2005
2005
|
}
|
|
2006
2006
|
},
|
|
2007
2007
|
{
|
|
@@ -2013,8 +2013,8 @@
|
|
|
2013
2013
|
"privacy": "protected",
|
|
2014
2014
|
"default": "new DefinedController(this, { relatedElements: [''] })",
|
|
2015
2015
|
"inheritedFrom": {
|
|
2016
|
-
"name": "
|
|
2017
|
-
"module": "
|
|
2016
|
+
"name": "FocusableMixin",
|
|
2017
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2018
2018
|
}
|
|
2019
2019
|
},
|
|
2020
2020
|
{
|
|
@@ -2026,8 +2026,8 @@
|
|
|
2026
2026
|
"privacy": "private",
|
|
2027
2027
|
"default": "false",
|
|
2028
2028
|
"inheritedFrom": {
|
|
2029
|
-
"name": "
|
|
2030
|
-
"module": "
|
|
2029
|
+
"name": "FocusableMixin",
|
|
2030
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2031
2031
|
}
|
|
2032
2032
|
},
|
|
2033
2033
|
{
|
|
@@ -2039,8 +2039,8 @@
|
|
|
2039
2039
|
"privacy": "private",
|
|
2040
2040
|
"default": "0",
|
|
2041
2041
|
"inheritedFrom": {
|
|
2042
|
-
"name": "
|
|
2043
|
-
"module": "
|
|
2042
|
+
"name": "FocusableMixin",
|
|
2043
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2044
2044
|
}
|
|
2045
2045
|
},
|
|
2046
2046
|
{
|
|
@@ -2051,8 +2051,8 @@
|
|
|
2051
2051
|
},
|
|
2052
2052
|
"privacy": "private",
|
|
2053
2053
|
"inheritedFrom": {
|
|
2054
|
-
"name": "
|
|
2055
|
-
"module": "
|
|
2054
|
+
"name": "FocusableMixin",
|
|
2055
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2056
2056
|
}
|
|
2057
2057
|
},
|
|
2058
2058
|
{
|
|
@@ -2065,8 +2065,8 @@
|
|
|
2065
2065
|
"description": "元素在使用 Tab 键切换焦点时的顺序",
|
|
2066
2066
|
"attribute": "tabindex",
|
|
2067
2067
|
"inheritedFrom": {
|
|
2068
|
-
"name": "
|
|
2069
|
-
"module": "
|
|
2068
|
+
"name": "FocusableMixin",
|
|
2069
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2070
2070
|
}
|
|
2071
2071
|
},
|
|
2072
2072
|
{
|
|
@@ -2076,8 +2076,8 @@
|
|
|
2076
2076
|
"text": "boolean"
|
|
2077
2077
|
},
|
|
2078
2078
|
"privacy": "protected",
|
|
2079
|
-
"description": "父类要实现该属性,表示是否禁用 focus 状态",
|
|
2080
2079
|
"readonly": true,
|
|
2080
|
+
"description": "父类要实现该属性,表示是否禁用 focus 状态",
|
|
2081
2081
|
"inheritedFrom": {
|
|
2082
2082
|
"name": "ButtonBase",
|
|
2083
2083
|
"module": "components/button/button-base.js"
|
|
@@ -2087,11 +2087,11 @@
|
|
|
2087
2087
|
"kind": "field",
|
|
2088
2088
|
"name": "focusElement",
|
|
2089
2089
|
"type": {
|
|
2090
|
-
"text": "HTMLElement | null
|
|
2090
|
+
"text": "HTMLElement | null"
|
|
2091
2091
|
},
|
|
2092
2092
|
"privacy": "protected",
|
|
2093
|
-
"description": "最终获得焦点的元素",
|
|
2094
2093
|
"readonly": true,
|
|
2094
|
+
"description": "最终获得焦点的元素",
|
|
2095
2095
|
"inheritedFrom": {
|
|
2096
2096
|
"name": "ButtonBase",
|
|
2097
2097
|
"module": "components/button/button-base.js"
|
|
@@ -2108,8 +2108,8 @@
|
|
|
2108
2108
|
},
|
|
2109
2109
|
"description": "模拟鼠标点击元素",
|
|
2110
2110
|
"inheritedFrom": {
|
|
2111
|
-
"name": "
|
|
2112
|
-
"module": "
|
|
2111
|
+
"name": "FocusableMixin",
|
|
2112
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2113
2113
|
}
|
|
2114
2114
|
},
|
|
2115
2115
|
{
|
|
@@ -2132,8 +2132,8 @@
|
|
|
2132
2132
|
],
|
|
2133
2133
|
"description": "将焦点设置到当前元素。\n\n可以传入一个对象作为参数,该对象的属性包括:\n\n* `preventScroll`:默认情况下,元素获取焦点后,页面会滚动以将该元素滚动到视图中。如果不希望页面滚动,可以将此属性设置为 `true`。",
|
|
2134
2134
|
"inheritedFrom": {
|
|
2135
|
-
"name": "
|
|
2136
|
-
"module": "
|
|
2135
|
+
"name": "FocusableMixin",
|
|
2136
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2137
2137
|
}
|
|
2138
2138
|
},
|
|
2139
2139
|
{
|
|
@@ -2147,8 +2147,8 @@
|
|
|
2147
2147
|
},
|
|
2148
2148
|
"description": "移除当前元素的焦点",
|
|
2149
2149
|
"inheritedFrom": {
|
|
2150
|
-
"name": "
|
|
2151
|
-
"module": "
|
|
2150
|
+
"name": "FocusableMixin",
|
|
2151
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2152
2152
|
}
|
|
2153
2153
|
},
|
|
2154
2154
|
{
|
|
@@ -2169,8 +2169,8 @@
|
|
|
2169
2169
|
}
|
|
2170
2170
|
],
|
|
2171
2171
|
"inheritedFrom": {
|
|
2172
|
-
"name": "
|
|
2173
|
-
"module": "
|
|
2172
|
+
"name": "FocusableMixin",
|
|
2173
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2174
2174
|
}
|
|
2175
2175
|
},
|
|
2176
2176
|
{
|
|
@@ -2183,8 +2183,8 @@
|
|
|
2183
2183
|
}
|
|
2184
2184
|
},
|
|
2185
2185
|
"inheritedFrom": {
|
|
2186
|
-
"name": "
|
|
2187
|
-
"module": "
|
|
2186
|
+
"name": "FocusableMixin",
|
|
2187
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2188
2188
|
}
|
|
2189
2189
|
},
|
|
2190
2190
|
{
|
|
@@ -2538,8 +2538,8 @@
|
|
|
2538
2538
|
"text": "KeyboardEvent"
|
|
2539
2539
|
},
|
|
2540
2540
|
"inheritedFrom": {
|
|
2541
|
-
"name": "
|
|
2542
|
-
"module": "
|
|
2541
|
+
"name": "FocusableMixin",
|
|
2542
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
2545
|
],
|
|
@@ -2595,8 +2595,8 @@
|
|
|
2595
2595
|
"description": "链接的目标 URL。\n\n如果设置了此属性,组件内部将渲染为 `<a>` 元素,并可以使用链接相关的属性。",
|
|
2596
2596
|
"fieldName": "href",
|
|
2597
2597
|
"inheritedFrom": {
|
|
2598
|
-
"name": "
|
|
2599
|
-
"module": "
|
|
2598
|
+
"name": "AnchorMixin",
|
|
2599
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
2600
2600
|
}
|
|
2601
2601
|
},
|
|
2602
2602
|
{
|
|
@@ -2607,8 +2607,8 @@
|
|
|
2607
2607
|
"description": "下载链接的目标。\n\n**Note**:仅在设置了 `href` 属性时,此属性才有效。",
|
|
2608
2608
|
"fieldName": "download",
|
|
2609
2609
|
"inheritedFrom": {
|
|
2610
|
-
"name": "
|
|
2611
|
-
"module": "
|
|
2610
|
+
"name": "AnchorMixin",
|
|
2611
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
2612
2612
|
}
|
|
2613
2613
|
},
|
|
2614
2614
|
{
|
|
@@ -2619,8 +2619,8 @@
|
|
|
2619
2619
|
"description": "链接的打开方式。可选值包括:\n\n* `_blank`:在新窗口中打开链接\n* `_parent`:在父框架中打开链接\n* `_self`:默认。在当前框架中打开链接\n* `_top`:在整个窗口中打开链接\n\n**Note**:仅在设置了 `href` 属性时,此属性才有效。",
|
|
2620
2620
|
"fieldName": "target",
|
|
2621
2621
|
"inheritedFrom": {
|
|
2622
|
-
"name": "
|
|
2623
|
-
"module": "
|
|
2622
|
+
"name": "AnchorMixin",
|
|
2623
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
2624
2624
|
}
|
|
2625
2625
|
},
|
|
2626
2626
|
{
|
|
@@ -2631,8 +2631,8 @@
|
|
|
2631
2631
|
"description": "当前文档与被链接文档之间的关系。可选值包括:\n\n* `alternate`:当前文档的替代版本\n* `author`:当前文档或文章的作者\n* `bookmark`:永久链接到最近的祖先章节\n* `external`:引用的文档与当前文档不在同一站点\n* `help`:链接到相关的帮助文档\n* `license`:当前文档的主要内容由被引用文件的版权许可覆盖\n* `me`:当前文档代表链接内容的所有者\n* `next`:当前文档是系列中的一部分,被引用的文档是系列的下一个文档\n* `nofollow`:当前文档的作者或发布者不认可被引用的文件\n* `noreferrer`:不包含 `Referer` 头。类似于 `noopener` 的效果\n* `opener`:如果超链接会创建一个顶级浏览上下文(即 `target` 属性值为 `_blank`),则创建一个辅助浏览上下文\n* `prev`:当前文档是系列的一部分,被引用的文档是系列的上一个文档\n* `search`:提供一个资源链接,可用于搜索当前文件及其相关页面\n* `tag`:提供一个适用于当前文档的标签(由给定地址识别)\n\n**Note**:仅在指定了 `href` 属性时可用。",
|
|
2632
2632
|
"fieldName": "rel",
|
|
2633
2633
|
"inheritedFrom": {
|
|
2634
|
-
"name": "
|
|
2635
|
-
"module": "
|
|
2634
|
+
"name": "AnchorMixin",
|
|
2635
|
+
"module": "@mdui/shared/mixins/anchor.js"
|
|
2636
2636
|
}
|
|
2637
2637
|
},
|
|
2638
2638
|
{
|
|
@@ -2644,8 +2644,8 @@
|
|
|
2644
2644
|
"description": "是否在页面加载完成后自动获取焦点",
|
|
2645
2645
|
"fieldName": "autofocus",
|
|
2646
2646
|
"inheritedFrom": {
|
|
2647
|
-
"name": "
|
|
2648
|
-
"module": "
|
|
2647
|
+
"name": "FocusableMixin",
|
|
2648
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2649
2649
|
}
|
|
2650
2650
|
},
|
|
2651
2651
|
{
|
|
@@ -2657,8 +2657,8 @@
|
|
|
2657
2657
|
"description": "是否获得了焦点,不管是鼠标点击,还是键盘切换获得的焦点,都会添加该属性\n添加到 :host 元素上,供 CSS 选择器添加样式",
|
|
2658
2658
|
"fieldName": "focused",
|
|
2659
2659
|
"inheritedFrom": {
|
|
2660
|
-
"name": "
|
|
2661
|
-
"module": "
|
|
2660
|
+
"name": "FocusableMixin",
|
|
2661
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2662
2662
|
}
|
|
2663
2663
|
},
|
|
2664
2664
|
{
|
|
@@ -2670,8 +2670,8 @@
|
|
|
2670
2670
|
"description": "是否通过键盘切换获得了焦点\n添加到 :host 元素上,供 CSS 选择器添加样式",
|
|
2671
2671
|
"fieldName": "focusVisible",
|
|
2672
2672
|
"inheritedFrom": {
|
|
2673
|
-
"name": "
|
|
2674
|
-
"module": "
|
|
2673
|
+
"name": "FocusableMixin",
|
|
2674
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2675
2675
|
}
|
|
2676
2676
|
},
|
|
2677
2677
|
{
|
|
@@ -2682,8 +2682,8 @@
|
|
|
2682
2682
|
"description": "元素在使用 Tab 键切换焦点时的顺序",
|
|
2683
2683
|
"fieldName": "tabIndex",
|
|
2684
2684
|
"inheritedFrom": {
|
|
2685
|
-
"name": "
|
|
2686
|
-
"module": "
|
|
2685
|
+
"name": "FocusableMixin",
|
|
2686
|
+
"module": "@mdui/shared/mixins/focusable.js"
|
|
2687
2687
|
}
|
|
2688
2688
|
},
|
|
2689
2689
|
{
|
|
@@ -14187,14 +14187,14 @@
|
|
|
14187
14187
|
"privacy": "protected",
|
|
14188
14188
|
"parameters": [
|
|
14189
14189
|
{
|
|
14190
|
-
"name": "
|
|
14190
|
+
"name": "_isScrollingUp",
|
|
14191
14191
|
"type": {
|
|
14192
14192
|
"text": "boolean"
|
|
14193
14193
|
},
|
|
14194
14194
|
"description": "是否向上滚动"
|
|
14195
14195
|
},
|
|
14196
14196
|
{
|
|
14197
|
-
"name": "
|
|
14197
|
+
"name": "_scrollTop",
|
|
14198
14198
|
"type": {
|
|
14199
14199
|
"text": "number"
|
|
14200
14200
|
},
|
|
@@ -26105,7 +26105,7 @@
|
|
|
26105
26105
|
},
|
|
26106
26106
|
"privacy": "public",
|
|
26107
26107
|
"default": "'auto'",
|
|
26108
|
-
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"
|
|
26108
|
+
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plain\"` 时,优先使用 `top`;`variant=\"rich\"` 时,优先使用 `bottom-right`\n* `top-left`:位于左上方\n* `top-start`:位于上方,左对齐\n* `top`:位于上方,居中对齐\n* `top-end`:位于上方,右对齐\n* `top-right`:位于右上方\n* `bottom-left`:位于左下方\n* `bottom-start`:位于下方,左对齐\n* `bottom`:位于下方,居中对齐\n* `bottom-end`:位于下方,右对齐\n* `bottom-right`:位于右下方\n* `left-start`:位于左侧,顶部对齐\n* `left`:位于左侧,居中对齐\n* `left-end`:位于左侧,底部对齐\n* `right-start`:位于右侧,顶部对齐\n* `right`:位于右侧,居中对齐\n* `right-end`:位于右侧,底部对齐",
|
|
26109
26109
|
"attribute": "placement",
|
|
26110
26110
|
"reflects": true
|
|
26111
26111
|
},
|
|
@@ -26409,7 +26409,7 @@
|
|
|
26409
26409
|
"text": "| /*自动判断位置*/ 'auto'\n | /*位于左上方*/ 'top-left'\n | /*位于上方,左对齐*/ 'top-start'\n | /*位于上方,居中对齐*/ 'top'\n | /*位于上方,右对齐*/ 'top-end'\n | /*位于右上方*/ 'top-right'\n | /*位于左下方*/ 'bottom-left'\n | /*位于下方,左对齐*/ 'bottom-start'\n | /*位于下方,居中对齐*/ 'bottom'\n | /*位于下方,右对齐*/ 'bottom-end'\n | /*位于右下方*/ 'bottom-right'\n | /*位于左侧,顶部对齐*/ 'left-start'\n | /*位于左侧,居中对齐*/ 'left'\n | /*位于左侧,底部对齐*/ 'left-end'\n | /*位于右侧,顶部对齐*/ 'right-start'\n | /*位于右侧,居中对齐*/ 'right'\n | /*位于右侧,底部对齐*/ 'right-end'"
|
|
26410
26410
|
},
|
|
26411
26411
|
"default": "'auto'",
|
|
26412
|
-
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"
|
|
26412
|
+
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plain\"` 时,优先使用 `top`;`variant=\"rich\"` 时,优先使用 `bottom-right`\n* `top-left`:位于左上方\n* `top-start`:位于上方,左对齐\n* `top`:位于上方,居中对齐\n* `top-end`:位于上方,右对齐\n* `top-right`:位于右上方\n* `bottom-left`:位于左下方\n* `bottom-start`:位于下方,左对齐\n* `bottom`:位于下方,居中对齐\n* `bottom-end`:位于下方,右对齐\n* `bottom-right`:位于右下方\n* `left-start`:位于左侧,顶部对齐\n* `left`:位于左侧,居中对齐\n* `left-end`:位于左侧,底部对齐\n* `right-start`:位于右侧,顶部对齐\n* `right`:位于右侧,居中对齐\n* `right-end`:位于右侧,底部对齐",
|
|
26413
26413
|
"fieldName": "placement"
|
|
26414
26414
|
},
|
|
26415
26415
|
{
|
|
@@ -26716,6 +26716,12 @@
|
|
|
26716
26716
|
"privacy": "private",
|
|
26717
26717
|
"readonly": true
|
|
26718
26718
|
},
|
|
26719
|
+
{
|
|
26720
|
+
"kind": "field",
|
|
26721
|
+
"name": "definedController",
|
|
26722
|
+
"privacy": "private",
|
|
26723
|
+
"default": "new DefinedController(this, { relatedElements: ['mdui-top-app-bar-title'], })"
|
|
26724
|
+
},
|
|
26719
26725
|
{
|
|
26720
26726
|
"kind": "field",
|
|
26721
26727
|
"name": "scrollPaddingPosition",
|
package/functions/alert.js
CHANGED
package/functions/confirm.js
CHANGED
|
@@ -89,7 +89,12 @@ export const confirm = (options) => {
|
|
|
89
89
|
}
|
|
90
90
|
$(dialog).on('close', (e) => {
|
|
91
91
|
if (e.target === dialog) {
|
|
92
|
-
|
|
92
|
+
if (isResolve) {
|
|
93
|
+
resolve();
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
reject();
|
|
97
|
+
}
|
|
93
98
|
offLocaleReady(dialog);
|
|
94
99
|
}
|
|
95
100
|
});
|
package/functions/prompt.js
CHANGED
|
@@ -124,7 +124,12 @@ export const prompt = (options) => {
|
|
|
124
124
|
}
|
|
125
125
|
$(dialog).on('close', (e) => {
|
|
126
126
|
if (e.target === dialog) {
|
|
127
|
-
|
|
127
|
+
if (isResolve) {
|
|
128
|
+
resolve(textField.value);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
reject();
|
|
132
|
+
}
|
|
128
133
|
offLocaleReady(dialog);
|
|
129
134
|
}
|
|
130
135
|
});
|
package/html-data.en.json
CHANGED
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"name": "href",
|
|
279
|
-
"description": "The URL for the hyperlink. If
|
|
279
|
+
"description": "The URL for the hyperlink. If specified, the component renders as an `<a>` element and can use link-related attributes.",
|
|
280
280
|
"references": [
|
|
281
281
|
{
|
|
282
282
|
"name": "Docs",
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"name": "download",
|
|
289
|
-
"description": "Instructs the browser to
|
|
289
|
+
"description": "Instructs the browser to treat the linked URL as a download.\n\n**Note**: This is only available when `href` is specified.",
|
|
290
290
|
"references": [
|
|
291
291
|
{
|
|
292
292
|
"name": "Docs",
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
"name": "target",
|
|
299
|
-
"description": "Defines where to
|
|
299
|
+
"description": "Defines where to display the linked URL. Possible values:\n\n* `_blank`: Opens in a new tab or window.\n* `_parent`: Opens in the parent browsing context or `_self` if no parent exists.\n* `_self`: Opens in the current browsing context. (Default).\n* `_top`: Opens in the topmost browsing context or `_self` if no ancestors exist.\n\n**Note**: This is only available when `href` is specified.",
|
|
300
300
|
"values": [
|
|
301
301
|
{
|
|
302
302
|
"name": "_blank",
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
"name": "_parent",
|
|
307
|
-
"description": "Opens in the parent browsing context or `_self` if no parent."
|
|
307
|
+
"description": "Opens in the parent browsing context or `_self` if no parent exists."
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"name": "_self",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"name": "_top",
|
|
315
|
-
"description": "Opens in the topmost browsing context or `_self` if no ancestors."
|
|
315
|
+
"description": "Opens in the topmost browsing context or `_self` if no ancestors exist."
|
|
316
316
|
}
|
|
317
317
|
],
|
|
318
318
|
"references": [
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"name": "rel",
|
|
327
|
-
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`:
|
|
327
|
+
"description": "Specifies the relationship of the linked URL as space-separated link types. Possible values:\n\n* `alternate`: Alternate versions of the current document.\n* `author`: Author of the current document or article.\n* `bookmark`: Permanent link for the nearest ancestor section.\n* `external`: The referenced document is not part of the same site as the current document.\n* `help`: Link to context-sensitive help.\n* `license`: Indicates that the main content of the current document is covered by the copyright license described by the referenced document.\n* `me`: Indicates that the current document represents the person who owns the linked content.\n* `next`: Indicates that the current document is part of a series and the next document in the series is the referenced document.\n* `nofollow`: Indicates that the current document's original author or publisher does not endorse the referenced document.\n* `noreferrer`: No `Referer` header will be included. Also has the same effect as `noopener`.\n* `opener`: Creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context that is not an auxiliary browsing context (i.e., has \"`_blank`\" as `target` attribute value).\n* `prev`: Indicates that the current document is part of a series and the previous document in the series is the referenced document.\n* `search`: Links to a resource that can be used to search through the current document and its related pages.\n* `tag`: Gives a tag (identified by the given address) that applies to the current document.\n\n**Note**: This is only available when `href` is specified.",
|
|
328
328
|
"values": [
|
|
329
329
|
{
|
|
330
330
|
"name": "alternate",
|
|
@@ -332,11 +332,11 @@
|
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
334
|
"name": "author",
|
|
335
|
-
"description": "
|
|
335
|
+
"description": "Author of the current document or article."
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"name": "bookmark",
|
|
339
|
-
"description": "
|
|
339
|
+
"description": "Permanent link for the nearest ancestor section."
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"name": "external",
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"name": "help",
|
|
347
|
-
"description": "
|
|
347
|
+
"description": "Link to context-sensitive help."
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"name": "license",
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
"name": "autofocus",
|
|
395
|
-
"description": "
|
|
395
|
+
"description": "Determines if the element should be focused when the page loads.",
|
|
396
396
|
"references": [
|
|
397
397
|
{
|
|
398
398
|
"name": "Docs",
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
"name": "tabindex",
|
|
405
|
-
"description": "
|
|
405
|
+
"description": "Specifies the order in which the element receives focus when navigating with the Tab key.",
|
|
406
406
|
"references": [
|
|
407
407
|
{
|
|
408
408
|
"name": "Docs",
|
package/html-data.zh-cn.json
CHANGED
|
@@ -6242,7 +6242,7 @@
|
|
|
6242
6242
|
},
|
|
6243
6243
|
{
|
|
6244
6244
|
"name": "placement",
|
|
6245
|
-
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"
|
|
6245
|
+
"description": "tooltip 的位置。默认为 `auto`。可选值包括:\n\n* `auto`:自动判断位置。`variant=\"plain\"` 时,优先使用 `top`;`variant=\"rich\"` 时,优先使用 `bottom-right`\n* `top-left`:位于左上方\n* `top-start`:位于上方,左对齐\n* `top`:位于上方,居中对齐\n* `top-end`:位于上方,右对齐\n* `top-right`:位于右上方\n* `bottom-left`:位于左下方\n* `bottom-start`:位于下方,左对齐\n* `bottom`:位于下方,居中对齐\n* `bottom-end`:位于下方,右对齐\n* `bottom-right`:位于右下方\n* `left-start`:位于左侧,顶部对齐\n* `left`:位于左侧,居中对齐\n* `left-end`:位于左侧,底部对齐\n* `right-start`:位于右侧,顶部对齐\n* `right`:位于右侧,居中对齐\n* `right-end`:位于右侧,底部对齐",
|
|
6246
6246
|
"values": [
|
|
6247
6247
|
{
|
|
6248
6248
|
"name": "auto",
|