acud 1.0.6 → 1.0.9

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.
@@ -87,7 +87,8 @@ var Pagination = function Pagination(_a) {
87
87
  mini: isSmall
88
88
  }, 'rtl', direction === 'rtl'), className);
89
89
  return /*#__PURE__*/React.createElement(RcPagination, _extends({
90
- showSizeChanger: showSizeChanger
90
+ showSizeChanger: showSizeChanger,
91
+ locale: LOCALE
91
92
  }, restProps, {
92
93
  prefixCls: prefixCls,
93
94
  selectPrefixCls: selectPrefixCls
@@ -95,8 +96,7 @@ var Pagination = function Pagination(_a) {
95
96
  className: extendedClassName,
96
97
  selectComponentClass: showSizeChanger ? Select : undefined,
97
98
  Option: Option,
98
- showQuickJumper: showQuickJumper,
99
- locale: LOCALE
99
+ showQuickJumper: showQuickJumper
100
100
  }));
101
101
  };
102
102
 
@@ -24,7 +24,7 @@ var Options = function Options(_ref) {
24
24
  }, []);
25
25
  buildOptionText = React.useCallback(function (value) {
26
26
  return "".concat(value, " ").concat(locale.items_per_page);
27
- }, []);
27
+ }, [locale]);
28
28
  var handleChangeSize = React.useCallback(function (value) {
29
29
  changeSize(Number(value));
30
30
  }, [changeSize]);
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
 
82
- .acud-toast-wrap {
82
+ .@{acud-prefix}-toast-wrap {
83
83
  display: flex;
84
84
  &-left {
85
85
  flex: 1;
@@ -111,7 +111,8 @@ var Pagination = function Pagination(_a) {
111
111
  mini: isSmall
112
112
  }, 'rtl', direction === 'rtl'), className);
113
113
  return /*#__PURE__*/React.createElement(_rcPagination["default"], (0, _extends2["default"])({
114
- showSizeChanger: showSizeChanger
114
+ showSizeChanger: showSizeChanger,
115
+ locale: _zh_CN["default"]
115
116
  }, restProps, {
116
117
  prefixCls: prefixCls,
117
118
  selectPrefixCls: selectPrefixCls
@@ -119,8 +120,7 @@ var Pagination = function Pagination(_a) {
119
120
  className: extendedClassName,
120
121
  selectComponentClass: showSizeChanger ? _select["default"] : undefined,
121
122
  Option: Option,
122
- showQuickJumper: showQuickJumper,
123
- locale: _zh_CN["default"]
123
+ showQuickJumper: showQuickJumper
124
124
  }));
125
125
  };
126
126
 
@@ -36,7 +36,7 @@ var Options = function Options(_ref) {
36
36
 
37
37
  buildOptionText = _react["default"].useCallback(function (value) {
38
38
  return "".concat(value, " ").concat(locale.items_per_page);
39
- }, []);
39
+ }, [locale]);
40
40
 
41
41
  var handleChangeSize = _react["default"].useCallback(function (value) {
42
42
  changeSize(Number(value));
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
 
82
- .acud-toast-wrap {
82
+ .@{acud-prefix}-toast-wrap {
83
83
  display: flex;
84
84
  &-left {
85
85
  flex: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acud",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "description": "acg react 组件库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",