@nutui/nutui-react-taro 3.0.3 → 3.0.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.
|
@@ -136,7 +136,7 @@ var SideBar = function SideBar(props) {
|
|
|
136
136
|
});
|
|
137
137
|
index = index < 0 ? 0 : index;
|
|
138
138
|
return {
|
|
139
|
-
transform: "
|
|
139
|
+
transform: "translateY(-".concat(index * 100, "%)"),
|
|
140
140
|
transitionDuration: "".concat(contentDuration, "ms")
|
|
141
141
|
};
|
|
142
142
|
};
|
|
@@ -169,7 +169,6 @@ var SideBar = function SideBar(props) {
|
|
|
169
169
|
className: "".concat(classPrefix, "-list"),
|
|
170
170
|
ref: navRef
|
|
171
171
|
}, titles.current.map(function(item, index) {
|
|
172
|
-
var _obj;
|
|
173
172
|
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
174
173
|
ref: function ref(ref) {
|
|
175
174
|
return titleItemsRef.current.push(ref);
|
|
@@ -178,10 +177,10 @@ var SideBar = function SideBar(props) {
|
|
|
178
177
|
onClick: function onClick(e) {
|
|
179
178
|
tabChange(item, index);
|
|
180
179
|
},
|
|
181
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-titles-item"), (
|
|
180
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-titles-item"), (0, _define_property._)({}, "".concat(classPrefix, "-titles-item-active"), !item.disabled && String(item.value) === String(value))),
|
|
182
181
|
key: item.value
|
|
183
182
|
}, /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
184
|
-
className: (0, _classnames.default)("".concat(classPrefix, "-ellipsis"), "".concat(classPrefix, "-titles-item-text"))
|
|
183
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-ellipsis"), "".concat(classPrefix, "-titles-item-text"), (0, _define_property._)({}, "".concat(classPrefix, "-titles-item-disabled"), item.disabled))
|
|
185
184
|
}, item.title));
|
|
186
185
|
}))), /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
187
186
|
className: "".concat(classPrefix, "-content-wrap")
|
|
@@ -124,7 +124,7 @@ export var SideBar = function(props) {
|
|
|
124
124
|
});
|
|
125
125
|
index = index < 0 ? 0 : index;
|
|
126
126
|
return {
|
|
127
|
-
transform: "
|
|
127
|
+
transform: "translateY(-".concat(index * 100, "%)"),
|
|
128
128
|
transitionDuration: "".concat(contentDuration, "ms")
|
|
129
129
|
};
|
|
130
130
|
};
|
|
@@ -157,7 +157,6 @@ export var SideBar = function(props) {
|
|
|
157
157
|
className: "".concat(classPrefix, "-list"),
|
|
158
158
|
ref: navRef
|
|
159
159
|
}, titles.current.map(function(item, index) {
|
|
160
|
-
var _obj;
|
|
161
160
|
return /*#__PURE__*/ React.createElement(View, {
|
|
162
161
|
ref: function(ref) {
|
|
163
162
|
return titleItemsRef.current.push(ref);
|
|
@@ -166,10 +165,10 @@ export var SideBar = function(props) {
|
|
|
166
165
|
onClick: function(e) {
|
|
167
166
|
tabChange(item, index);
|
|
168
167
|
},
|
|
169
|
-
className: classNames("".concat(classPrefix, "-titles-item"), (
|
|
168
|
+
className: classNames("".concat(classPrefix, "-titles-item"), _define_property({}, "".concat(classPrefix, "-titles-item-active"), !item.disabled && String(item.value) === String(value))),
|
|
170
169
|
key: item.value
|
|
171
170
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
172
|
-
className: classNames("".concat(classPrefix, "-ellipsis"), "".concat(classPrefix, "-titles-item-text"))
|
|
171
|
+
className: classNames("".concat(classPrefix, "-ellipsis"), "".concat(classPrefix, "-titles-item-text"), _define_property({}, "".concat(classPrefix, "-titles-item-disabled"), item.disabled))
|
|
173
172
|
}, item.title));
|
|
174
173
|
}))), /*#__PURE__*/ React.createElement(View, {
|
|
175
174
|
className: "".concat(classPrefix, "-content-wrap")
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -4830,7 +4830,7 @@
|
|
|
4830
4830
|
});
|
|
4831
4831
|
index2 = index2 < 0 ? 0 : index2;
|
|
4832
4832
|
return {
|
|
4833
|
-
transform: "
|
|
4833
|
+
transform: "translateY(-".concat(index2 * 100, "%)"),
|
|
4834
4834
|
transitionDuration: "".concat(contentDuration, "ms")
|
|
4835
4835
|
};
|
|
4836
4836
|
};
|
|
@@ -4863,7 +4863,6 @@
|
|
|
4863
4863
|
className: "".concat(classPrefix$l, "-list"),
|
|
4864
4864
|
ref: navRef
|
|
4865
4865
|
}, titles.current.map(function(item, index2) {
|
|
4866
|
-
var _obj;
|
|
4867
4866
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
4868
4867
|
ref: function(ref) {
|
|
4869
4868
|
return titleItemsRef.current.push(ref);
|
|
@@ -4872,10 +4871,10 @@
|
|
|
4872
4871
|
onClick: function(e) {
|
|
4873
4872
|
tabChange(item);
|
|
4874
4873
|
},
|
|
4875
|
-
className: classNames("".concat(classPrefix$l, "-titles-item"), (
|
|
4874
|
+
className: classNames("".concat(classPrefix$l, "-titles-item"), _define_property({}, "".concat(classPrefix$l, "-titles-item-active"), !item.disabled && String(item.value) === String(value2))),
|
|
4876
4875
|
key: item.value
|
|
4877
4876
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
4878
|
-
className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"))
|
|
4877
|
+
className: classNames("".concat(classPrefix$l, "-ellipsis"), "".concat(classPrefix$l, "-titles-item-text"), _define_property({}, "".concat(classPrefix$l, "-titles-item-disabled"), item.disabled))
|
|
4879
4878
|
}, item.title));
|
|
4880
4879
|
}))), /* @__PURE__ */ React.createElement(components.View, {
|
|
4881
4880
|
className: "".concat(classPrefix$l, "-content-wrap")
|