@tarojs/components 3.5.0-beta.5 → 3.5.0-beta.8
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.
|
@@ -41,7 +41,7 @@ export default function createFormsComponent(name, event) {
|
|
|
41
41
|
render: function render(createElement) {
|
|
42
42
|
// eslint-disable-next-line
|
|
43
43
|
var self = this;
|
|
44
|
-
var attrs = {};
|
|
44
|
+
var attrs = this.$attrs || {};
|
|
45
45
|
|
|
46
46
|
if (name === 'taro-input') {
|
|
47
47
|
attrs['auto-focus'] = self.focus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@stencil/core": "~2.13.0",
|
|
34
34
|
"@stencil/sass": "1.5.2",
|
|
35
|
-
"@tarojs/taro": "3.5.0-beta.
|
|
35
|
+
"@tarojs/taro": "3.5.0-beta.8",
|
|
36
36
|
"better-scroll": "^1.14.1",
|
|
37
37
|
"classnames": "^2.2.5",
|
|
38
38
|
"hls.js": "^1.1.5",
|
package/types/Button.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ interface ButtonProps extends StandardProps {
|
|
|
50
50
|
*/
|
|
51
51
|
hoverClass?: string
|
|
52
52
|
|
|
53
|
-
/** 由于 RN 不支持
|
|
53
|
+
/** 由于 RN 不支持 hoverClass,故 RN 端的 Button 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
54
54
|
* @default none
|
|
55
55
|
* @supported rn
|
|
56
56
|
*/
|
package/types/View.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ interface ViewProps extends StandardProps {
|
|
|
6
6
|
/** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
|
|
7
7
|
* @default none
|
|
8
8
|
* @supported weapp, swan, alipay, tt, h5
|
|
9
|
-
* @rn 由于 RN 不支持
|
|
9
|
+
* @rn 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
10
10
|
*/
|
|
11
11
|
hoverClass?: string
|
|
12
12
|
|
|
13
|
-
/** 由于 RN 不支持
|
|
13
|
+
/** 由于 RN 不支持 hoverClass,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。
|
|
14
14
|
* @default none
|
|
15
15
|
* @supported rn
|
|
16
16
|
*/
|