@aks-dev/easyui 1.1.2 → 1.1.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.
Files changed (72) hide show
  1. package/dist/components/Badge/Badge.d.ts +8 -0
  2. package/dist/components/Badge/Badge.d.ts.map +1 -0
  3. package/dist/components/Badge/Badge.js +35 -0
  4. package/dist/components/MutiPictureView/MutiPictureView.js +40 -36
  5. package/{types → dist}/index.d.ts +1 -0
  6. package/{types → dist}/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/package.json +3 -5
  9. /package/{types → dist}/components/AnimationModal/AnimationModal.d.ts +0 -0
  10. /package/{types → dist}/components/AnimationModal/AnimationModal.d.ts.map +0 -0
  11. /package/{types → dist}/components/DottedLine/DottedLine.d.ts +0 -0
  12. /package/{types → dist}/components/DottedLine/DottedLine.d.ts.map +0 -0
  13. /package/{types → dist}/components/EchartsView/EchartsView.d.ts +0 -0
  14. /package/{types → dist}/components/EchartsView/EchartsView.d.ts.map +0 -0
  15. /package/{types → dist}/components/EchartsView/helper.d.ts +0 -0
  16. /package/{types → dist}/components/EchartsView/helper.d.ts.map +0 -0
  17. /package/{types → dist}/components/Hud/AlertBottomView/AlertBottomView.d.ts +0 -0
  18. /package/{types → dist}/components/Hud/AlertBottomView/AlertBottomView.d.ts.map +0 -0
  19. /package/{types → dist}/components/Hud/AlertSheetView/AlertSheetView.d.ts +0 -0
  20. /package/{types → dist}/components/Hud/AlertSheetView/AlertSheetView.d.ts.map +0 -0
  21. /package/{types → dist}/components/Hud/AlertView/AlertView.d.ts +0 -0
  22. /package/{types → dist}/components/Hud/AlertView/AlertView.d.ts.map +0 -0
  23. /package/{types → dist}/components/Hud/Hud.d.ts +0 -0
  24. /package/{types → dist}/components/Hud/Hud.d.ts.map +0 -0
  25. /package/{types → dist}/components/Hud/Loading/Loading.d.ts +0 -0
  26. /package/{types → dist}/components/Hud/Loading/Loading.d.ts.map +0 -0
  27. /package/{types → dist}/components/Hud/PopoverView/PopoverView.d.ts +0 -0
  28. /package/{types → dist}/components/Hud/PopoverView/PopoverView.d.ts.map +0 -0
  29. /package/{types → dist}/components/Hud/Scanner/Scanner.d.ts +0 -0
  30. /package/{types → dist}/components/Hud/Scanner/Scanner.d.ts.map +0 -0
  31. /package/{types → dist}/components/Hud/Toast/Toast.d.ts +0 -0
  32. /package/{types → dist}/components/Hud/Toast/Toast.d.ts.map +0 -0
  33. /package/{types → dist}/components/MenuView/MenuView.d.ts +0 -0
  34. /package/{types → dist}/components/MenuView/MenuView.d.ts.map +0 -0
  35. /package/{types → dist}/components/Modal/Modal.d.ts +0 -0
  36. /package/{types → dist}/components/Modal/Modal.d.ts.map +0 -0
  37. /package/{types → dist}/components/MutiPictureView/MutiPictureView.d.ts +0 -0
  38. /package/{types → dist}/components/MutiPictureView/MutiPictureView.d.ts.map +0 -0
  39. /package/{types → dist}/components/PictureViewer/PictureViewer.d.ts +0 -0
  40. /package/{types → dist}/components/PictureViewer/PictureViewer.d.ts.map +0 -0
  41. /package/{types → dist}/components/RefreshList/RefreshList.d.ts +0 -0
  42. /package/{types → dist}/components/RefreshList/RefreshList.d.ts.map +0 -0
  43. /package/{types → dist}/components/RichText/RichText.d.ts +0 -0
  44. /package/{types → dist}/components/RichText/RichText.d.ts.map +0 -0
  45. /package/{types → dist}/components/StickHeaderView/StickHeaderView.d.ts +0 -0
  46. /package/{types → dist}/components/StickHeaderView/StickHeaderView.d.ts.map +0 -0
  47. /package/{types → dist}/components/TableCell/TableCell.d.ts +0 -0
  48. /package/{types → dist}/components/TableCell/TableCell.d.ts.map +0 -0
  49. /package/{types → dist}/components/TextInputArea/TextInputArea.d.ts +0 -0
  50. /package/{types → dist}/components/TextInputArea/TextInputArea.d.ts.map +0 -0
  51. /package/{types → dist}/components/WithLoadingContainer/WithLoadingContainer.d.ts +0 -0
  52. /package/{types → dist}/components/WithLoadingContainer/WithLoadingContainer.d.ts.map +0 -0
  53. /package/{types → dist}/jsbridge/RNEasyui.d.ts +0 -0
  54. /package/{types → dist}/jsbridge/RNEasyui.d.ts.map +0 -0
  55. /package/{types → dist}/jsbridge/UpgradeModule.d.ts +0 -0
  56. /package/{types → dist}/jsbridge/UpgradeModule.d.ts.map +0 -0
  57. /package/{types → dist}/jsbridge/index.d.ts +0 -0
  58. /package/{types → dist}/jsbridge/index.d.ts.map +0 -0
  59. /package/{types → dist}/screen/index.d.ts +0 -0
  60. /package/{types → dist}/screen/index.d.ts.map +0 -0
  61. /package/{types → dist}/screen/px2dp.d.ts +0 -0
  62. /package/{types → dist}/screen/px2dp.d.ts.map +0 -0
  63. /package/{types → dist}/screen/px2sp.d.ts +0 -0
  64. /package/{types → dist}/screen/px2sp.d.ts.map +0 -0
  65. /package/{types → dist}/screen/text-fit.d.ts +0 -0
  66. /package/{types → dist}/screen/text-fit.d.ts.map +0 -0
  67. /package/{types → dist}/utils/index.d.ts +0 -0
  68. /package/{types → dist}/utils/index.d.ts.map +0 -0
  69. /package/{types → dist}/utils/lazy.d.ts +0 -0
  70. /package/{types → dist}/utils/lazy.d.ts.map +0 -0
  71. /package/{types → dist}/utils/mode.d.ts +0 -0
  72. /package/{types → dist}/utils/mode.d.ts.map +0 -0
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { StyleProp, ViewStyle } from "react-native";
3
+ export type BadgeProps = {
4
+ count: number | string;
5
+ style?: StyleProp<ViewStyle>;
6
+ };
7
+ export declare const Badge: React.FC<BadgeProps>;
8
+ //# sourceMappingURL=Badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhE,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA4BtC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-21 14:40:29
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-07-08 15:40:21
6
+ * @FilePath: /@aks-dev/easyui/lib/Badge/Badge.tsx
7
+ */
8
+ import React from "react";
9
+ import { View, Text } from "react-native";
10
+ import { px2dp } from "../../screen/px2dp";
11
+ import { px2sp } from "../../screen/px2sp";
12
+ export const Badge = (props) => {
13
+ if (isNaN(+props.count) || Number(props.count) == 0)
14
+ return <View />;
15
+ return (<View style={[
16
+ {
17
+ flexGrow: 0,
18
+ flexShrink: 1,
19
+ zIndex: 1,
20
+ // paddingHorizontal: px2dp(0),
21
+ height: px2dp(16),
22
+ minWidth: px2dp(16),
23
+ borderRadius: px2dp(8),
24
+ justifyContent: "center",
25
+ alignItems: "center",
26
+ backgroundColor: "red",
27
+ },
28
+ props.style,
29
+ ]}>
30
+ <Text style={{ fontSize: px2sp(12), color: "white", textAlign: "center" }}>
31
+ {" "}
32
+ {Number(props.count) > 99 ? "+99" : props.count}{" "}
33
+ </Text>
34
+ </View>);
35
+ };
@@ -9,7 +9,6 @@ import * as React from "react";
9
9
  import { Image, View, StyleSheet, Keyboard, TouchableOpacity, Text, } from "react-native";
10
10
  import { px2dp } from "../../screen/px2dp";
11
11
  import { px2sp } from "../../screen/px2sp";
12
- import SYImagePicker from "@aks-dev/react-native-syan-image-picker";
13
12
  let icon_add_image = require("./assets/icon_add_image.png");
14
13
  let icon_del_image = require("./assets/icon_del_image.png");
15
14
  const MutiPictureView = (props) => {
@@ -23,41 +22,46 @@ const MutiPictureView = (props) => {
23
22
  if (!images) {
24
23
  throw new Error("viewModel没有定义photos字段");
25
24
  }
26
- if (type == "showImagePicker") {
27
- SYImagePicker.showImagePicker({
28
- imageCount: maxCount - (viewModel.photos?.length || 0),
29
- isCrop: false,
30
- isRecordSelected: false,
31
- quality: 20,
32
- }, (err, photos) => {
33
- if (!err) {
34
- let imgs = photos.map((it) => {
35
- return { uri: it.uri };
36
- });
37
- images = images.concat(imgs);
38
- setViewModel({ photos: images });
39
- }
40
- });
41
- }
42
- if (type == "openCamera") {
43
- SYImagePicker.openCamera({
44
- imageCount: maxCount - (viewModel.photos?.length || 0),
45
- isCrop: false,
46
- isRecordSelected: false,
47
- quality: 20,
48
- }, (err, photos) => {
49
- if (!err) {
50
- let imgs = photos.map((it) => {
51
- return { uri: it.uri };
52
- });
53
- images = images.concat(imgs);
54
- setViewModel({ photos: images });
55
- }
56
- else {
57
- console.log("打开相机失败");
58
- }
59
- });
60
- }
25
+ // if (type == "showImagePicker") {
26
+ // SYImagePicker.showImagePicker(
27
+ // {
28
+ // imageCount: maxCount - (viewModel.photos?.length || 0),
29
+ // isCrop: false,
30
+ // isRecordSelected: false,
31
+ // quality: 20,
32
+ // },
33
+ // (err, photos) => {
34
+ // if (!err) {
35
+ // let imgs = photos.map((it) => {
36
+ // return { uri: it.uri };
37
+ // });
38
+ // images = images.concat(imgs);
39
+ // setViewModel({ photos: images });
40
+ // }
41
+ // },
42
+ // );
43
+ // }
44
+ // if (type == "openCamera") {
45
+ // SYImagePicker.openCamera(
46
+ // {
47
+ // imageCount: maxCount - (viewModel.photos?.length || 0),
48
+ // isCrop: false,
49
+ // isRecordSelected: false,
50
+ // quality: 20,
51
+ // },
52
+ // (err, photos) => {
53
+ // if (!err) {
54
+ // let imgs = photos.map((it) => {
55
+ // return { uri: it.uri };
56
+ // });
57
+ // images = images.concat(imgs);
58
+ // setViewModel({ photos: images });
59
+ // } else {
60
+ // console.log("打开相机失败");
61
+ // }
62
+ // },
63
+ // );
64
+ // }
61
65
  };
62
66
  const deletePhoto = (index) => {
63
67
  Keyboard.dismiss();
@@ -12,6 +12,7 @@ export { default as RichText } from "./components/RichText/RichText";
12
12
  export { default as DottedLine } from "./components/DottedLine/DottedLine";
13
13
  export { default as MenuView } from "./components/MenuView/MenuView";
14
14
  export { AnimationModal } from "./components/AnimationModal/AnimationModal";
15
+ export { Badge } from "./components/Badge/Badge";
15
16
  /**全局适配 */
16
17
  export * from "./screen";
17
18
  /**工具 */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,GAAG,EACH,WAAW,EACX,WAAW,EACX,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,YAAY,EACZ,WAAW,GACZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EACL,OAAO,IAAI,oBAAoB,EAC/B,MAAM,GACP,MAAM,wDAAwD,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,E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AAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,UAAU;AACV,cAAc,UAAU,CAAC;AACzB,QAAQ;AACR,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,QAAQ;AACR,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -22,6 +22,7 @@ export { default as RichText } from "./components/RichText/RichText";
22
22
  export { default as DottedLine } from "./components/DottedLine/DottedLine";
23
23
  export { default as MenuView } from "./components/MenuView/MenuView";
24
24
  export { AnimationModal } from "./components/AnimationModal/AnimationModal";
25
+ export { Badge } from "./components/Badge/Badge";
25
26
  /**全局适配 */
26
27
  export * from "./screen";
27
28
  /**工具 */
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
4
4
  "description": "工具箱",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./dist/index.js",
8
- "types": "./types/index.d.ts"
8
+ "types": "./dist/index.d.ts"
9
9
  }
10
10
  },
11
11
  "scripts": {
@@ -46,7 +46,6 @@
46
46
  "author": "shiguo",
47
47
  "license": "MIT",
48
48
  "peerDependencies": {
49
- "@aks-dev/react-native-syan-image-picker": "*",
50
49
  "react": "*",
51
50
  "react-native": "*",
52
51
  "react-native-permissions": "*",
@@ -56,12 +55,11 @@
56
55
  "dependencies": {
57
56
  "echarts": "^6.0.0",
58
57
  "react-native-image-zoom-viewer": "^3.0.1",
59
- "react-native-modal": "^13.0.1",
58
+ "react-native-modal": "^14.0.0-rc.1",
60
59
  "react-native-smart-refresh": "^1.1.6",
61
60
  "react-native-swipe-list-view": "^3.2.9"
62
61
  },
63
62
  "devDependencies": {
64
- "@aks-dev/react-native-syan-image-picker": "^0.5.58",
65
63
  "@tsconfig/node22": "^22.0.5",
66
64
  "@types/react": "^19.2.14",
67
65
  "react-native": "^0.84.1",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes