@sheinx/base 3.9.6-beta.3 → 3.9.6-beta.5

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.
@@ -69,7 +69,7 @@ var ListOption = function ListOption(props) {
69
69
  highlight = _useContext.highlight;
70
70
  var result = _hooks.util.getHighlightText({
71
71
  enable: highlight,
72
- nodeList: renderItem(data),
72
+ nodeList: renderItem(data, index),
73
73
  searchWords: filterText,
74
74
  highlightClassName: commonStyles === null || commonStyles === void 0 ? void 0 : commonStyles.highlight
75
75
  });
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list-header.d.ts","sourceRoot":"","sources":["transfer-list-header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,QAAA,MAAM,kBAAkB,sIAoHvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"transfer-list-header.d.ts","sourceRoot":"","sources":["transfer-list-header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,QAAA,MAAM,kBAAkB,sIAsHvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -30,9 +30,10 @@ var TransferListHeader = function TransferListHeader(props) {
30
30
  }
31
31
  var every = true;
32
32
  var some = false;
33
- var vaildData = listDatum.getVaildData();
34
- if (vaildData.length === 0) return false;
35
- vaildData.forEach(function (item) {
33
+ if (data.length === 0) return false;
34
+ data.forEach(function (item) {
35
+ // 跳过禁用的项,不计入复选框状态
36
+ if (listDatum.disabledCheck(item)) return;
36
37
  if (!listDatum.check(item)) {
37
38
  every = false;
38
39
  } else {
@@ -5,12 +5,12 @@ export interface UploadImageProps<T> extends Omit<UploadProps<T>, 'listType'> {
5
5
  * @en Upload image container width
6
6
  * @default 80
7
7
  */
8
- width?: number;
8
+ width?: number | string;
9
9
  /**
10
10
  * @cn 上传图片容器高度
11
11
  * @en Upload image container height
12
12
  * @default 80
13
13
  */
14
- height?: number;
14
+ height?: number | string;
15
15
  }
16
16
  //# sourceMappingURL=image.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.type.d.ts","sourceRoot":"","sources":["image.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAC3E;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"image.type.d.ts","sourceRoot":"","sources":["image.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAC3E;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
@@ -63,7 +63,7 @@ var ListOption = function ListOption(props) {
63
63
  highlight = _useContext.highlight;
64
64
  var result = util.getHighlightText({
65
65
  enable: highlight,
66
- nodeList: renderItem(data),
66
+ nodeList: renderItem(data, index),
67
67
  searchWords: filterText,
68
68
  highlightClassName: commonStyles === null || commonStyles === void 0 ? void 0 : commonStyles.highlight
69
69
  });
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list-header.d.ts","sourceRoot":"","sources":["transfer-list-header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,QAAA,MAAM,kBAAkB,sIAoHvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"transfer-list-header.d.ts","sourceRoot":"","sources":["transfer-list-header.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,QAAA,MAAM,kBAAkB,sIAsHvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -24,9 +24,10 @@ var TransferListHeader = function TransferListHeader(props) {
24
24
  }
25
25
  var every = true;
26
26
  var some = false;
27
- var vaildData = listDatum.getVaildData();
28
- if (vaildData.length === 0) return false;
29
- vaildData.forEach(function (item) {
27
+ if (data.length === 0) return false;
28
+ data.forEach(function (item) {
29
+ // 跳过禁用的项,不计入复选框状态
30
+ if (listDatum.disabledCheck(item)) return;
30
31
  if (!listDatum.check(item)) {
31
32
  every = false;
32
33
  } else {
@@ -5,12 +5,12 @@ export interface UploadImageProps<T> extends Omit<UploadProps<T>, 'listType'> {
5
5
  * @en Upload image container width
6
6
  * @default 80
7
7
  */
8
- width?: number;
8
+ width?: number | string;
9
9
  /**
10
10
  * @cn 上传图片容器高度
11
11
  * @en Upload image container height
12
12
  * @default 80
13
13
  */
14
- height?: number;
14
+ height?: number | string;
15
15
  }
16
16
  //# sourceMappingURL=image.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.type.d.ts","sourceRoot":"","sources":["image.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAC3E;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"image.type.d.ts","sourceRoot":"","sources":["image.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAC3E;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.6-beta.3",
3
+ "version": "3.9.6-beta.5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.9.6-beta.3",
13
+ "@sheinx/hooks": "3.9.6-beta.5",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"