@aks-dev/easyui 1.0.192 → 1.0.194

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.

Potentially problematic release.


This version of @aks-dev/easyui might be problematic. Click here for more details.

Files changed (73) hide show
  1. package/dist/components/AnimationModal/AnimationModal.js +36 -15
  2. package/dist/components/Badge/Badge.js +16 -7
  3. package/dist/components/DottedLine/DottedLine.js +13 -14
  4. package/dist/components/Echarts/EchartsView.js +73 -30
  5. package/dist/components/Echarts/helper.js +16 -1
  6. package/dist/components/Hud/AlertBottomView/AlertBottomView.js +60 -43
  7. package/dist/components/Hud/AlertSheetView/AlertSheetView.js +30 -23
  8. package/dist/components/Hud/AlertView/AlertView.js +62 -46
  9. package/dist/components/Hud/Hud.js +19 -8
  10. package/dist/components/Hud/Loading/Loading.js +16 -4
  11. package/dist/components/Hud/PopoverView/PopoverView.js +13 -2
  12. package/dist/components/Hud/Scanner/Scanner.js +86 -55
  13. package/dist/components/Hud/Toast/Toast.js +15 -5
  14. package/dist/components/MenuView/MenuView.js +61 -33
  15. package/dist/components/Modal/Modal.js +7 -0
  16. package/dist/components/MutiPictureView/MutiPictureView.js +47 -27
  17. package/dist/components/PictureViewer/PictureViewer.js +24 -8
  18. package/dist/components/RefreshList/RefreshList.js +52 -41
  19. package/dist/components/RichText/RichText.js +22 -21
  20. package/dist/components/StickHeaderView/StickHeaderView.js +12 -2
  21. package/dist/components/TableCell/TableCell.js +51 -37
  22. package/dist/components/TextInputArea/TextInputArea.js +28 -21
  23. package/dist/components/WithLoadingContainer/WithLoadingContainer.js +31 -14
  24. package/dist/index.js +11 -0
  25. package/dist/jsbridge/RNEasyui.js +25 -0
  26. package/dist/jsbridge/UpgradeModule.js +19 -9
  27. package/dist/jsbridge/index.js +7 -0
  28. package/dist/screen/index.js +8 -0
  29. package/dist/screen/px2dp.js +25 -2
  30. package/dist/screen/px2sp.js +35 -5
  31. package/dist/screen/text-fit.js +13 -2
  32. package/dist/utils/index.js +7 -0
  33. package/dist/utils/lazy.js +67 -12
  34. package/dist/utils/mode.js +21 -0
  35. package/package.json +16 -8
  36. package/types/components/AnimationModal/AnimationModal.d.ts +8 -0
  37. package/types/components/AnimationModal/AnimationModal.d.ts.map +1 -1
  38. package/types/components/Echarts/helper.d.ts +5 -0
  39. package/types/components/Echarts/helper.d.ts.map +1 -1
  40. package/types/components/MutiPictureView/MutiPictureView.d.ts +9 -0
  41. package/types/components/MutiPictureView/MutiPictureView.d.ts.map +1 -1
  42. package/types/components/StickHeaderView/StickHeaderView.d.ts +6 -0
  43. package/types/components/StickHeaderView/StickHeaderView.d.ts.map +1 -1
  44. package/types/components/TextInputArea/TextInputArea.d.ts +1 -0
  45. package/types/components/TextInputArea/TextInputArea.d.ts.map +1 -1
  46. package/types/jsbridge/RNEasyui.d.ts +18 -0
  47. package/types/jsbridge/RNEasyui.d.ts.map +1 -1
  48. package/types/jsbridge/UpgradeModule.d.ts +15 -0
  49. package/types/jsbridge/UpgradeModule.d.ts.map +1 -1
  50. package/types/screen/px2dp.d.ts +11 -0
  51. package/types/screen/px2dp.d.ts.map +1 -1
  52. package/types/screen/text-fit.d.ts +3 -0
  53. package/types/screen/text-fit.d.ts.map +1 -1
  54. package/types/utils/lazy.d.ts +33 -0
  55. package/types/utils/lazy.d.ts.map +1 -1
  56. package/types/utils/mode.d.ts +14 -0
  57. package/types/utils/mode.d.ts.map +1 -1
  58. package/dist/components/Echarts/demo.js +0 -201
  59. package/dist/components/RefreshList/demo.js +0 -9
  60. package/dist/components/RefreshList/demo1.js +0 -27
  61. package/dist/components/RefreshList/demo2.js +0 -9
  62. package/dist/components/StickHeaderView/demo.js +0 -37
  63. package/i.sh +0 -25
  64. package/types/components/Echarts/demo.d.ts +0 -4
  65. package/types/components/Echarts/demo.d.ts.map +0 -1
  66. package/types/components/RefreshList/demo.d.ts +0 -2
  67. package/types/components/RefreshList/demo.d.ts.map +0 -1
  68. package/types/components/RefreshList/demo1.d.ts +0 -2
  69. package/types/components/RefreshList/demo1.d.ts.map +0 -1
  70. package/types/components/RefreshList/demo2.d.ts +0 -2
  71. package/types/components/RefreshList/demo2.d.ts.map +0 -1
  72. package/types/components/StickHeaderView/demo.d.ts +0 -4
  73. package/types/components/StickHeaderView/demo.d.ts.map +0 -1
@@ -1,201 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import EchartsView from "./EchartsView";
4
- import { echarts } from "./EchartsView";
5
- export default () => {
6
- let option = {
7
- color: ["#80FFA5", "#00DDFF", "#37A2FF", "#FF0087", "#FFBF00"],
8
- title: {
9
- text: "Gradient Stacked Area Chart",
10
- },
11
- tooltip: {
12
- trigger: "axis",
13
- axisPointer: {
14
- type: "cross",
15
- label: {
16
- backgroundColor: "#6a7985",
17
- },
18
- },
19
- },
20
- legend: {
21
- data: ["Line 1", "Line 2", "Line 3", "Line 4", "Line 5"],
22
- },
23
- toolbox: {
24
- feature: {
25
- saveAsImage: {},
26
- },
27
- },
28
- grid: {
29
- left: "3%",
30
- right: "4%",
31
- bottom: "3%",
32
- containLabel: true,
33
- },
34
- xAxis: [
35
- {
36
- type: "category",
37
- boundaryGap: false,
38
- data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
39
- },
40
- ],
41
- yAxis: [
42
- {
43
- type: "value",
44
- },
45
- ],
46
- series: [
47
- {
48
- name: "Line 1",
49
- type: "line",
50
- stack: "Total",
51
- smooth: true,
52
- lineStyle: {
53
- width: 0,
54
- },
55
- showSymbol: false,
56
- areaStyle: {
57
- opacity: 0.8,
58
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
59
- {
60
- offset: 0,
61
- color: "rgb(128, 255, 165)",
62
- },
63
- {
64
- offset: 1,
65
- color: "rgb(1, 191, 236)",
66
- },
67
- ]),
68
- },
69
- emphasis: {
70
- focus: "series",
71
- },
72
- data: [140, 232, 101, 264, 90, 340, 250],
73
- },
74
- {
75
- name: "Line 2",
76
- type: "line",
77
- stack: "Total",
78
- smooth: true,
79
- lineStyle: {
80
- width: 0,
81
- },
82
- showSymbol: false,
83
- areaStyle: {
84
- opacity: 0.8,
85
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
86
- {
87
- offset: 0,
88
- color: "rgb(0, 221, 255)",
89
- },
90
- {
91
- offset: 1,
92
- color: "rgb(77, 119, 255)",
93
- },
94
- ]),
95
- },
96
- emphasis: {
97
- focus: "series",
98
- },
99
- data: [120, 282, 111, 234, 220, 340, 310],
100
- },
101
- {
102
- name: "Line 3",
103
- type: "line",
104
- stack: "Total",
105
- smooth: true,
106
- lineStyle: {
107
- width: 0,
108
- },
109
- showSymbol: false,
110
- areaStyle: {
111
- opacity: 0.8,
112
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
113
- {
114
- offset: 0,
115
- color: "rgb(55, 162, 255)",
116
- },
117
- {
118
- offset: 1,
119
- color: "rgb(116, 21, 219)",
120
- },
121
- ]),
122
- },
123
- emphasis: {
124
- focus: "series",
125
- },
126
- data: [320, 132, 201, 334, 190, 130, 220],
127
- },
128
- {
129
- name: "Line 4",
130
- type: "line",
131
- stack: "Total",
132
- smooth: true,
133
- lineStyle: {
134
- width: 0,
135
- },
136
- showSymbol: false,
137
- areaStyle: {
138
- opacity: 0.8,
139
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
140
- {
141
- offset: 0,
142
- color: "rgb(255, 0, 135)",
143
- },
144
- {
145
- offset: 1,
146
- color: "rgb(135, 0, 157)",
147
- },
148
- ]),
149
- },
150
- emphasis: {
151
- focus: "series",
152
- },
153
- data: [220, 402, 231, 134, 190, 230, 120],
154
- },
155
- {
156
- name: "Line 5",
157
- type: "line",
158
- stack: "Total",
159
- smooth: true,
160
- lineStyle: {
161
- width: 0,
162
- },
163
- showSymbol: false,
164
- label: {
165
- show: true,
166
- position: "top",
167
- },
168
- areaStyle: {
169
- opacity: 0.8,
170
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
171
- {
172
- offset: 0,
173
- color: "rgb(255, 191, 0)",
174
- },
175
- {
176
- offset: 1,
177
- color: "rgb(224, 62, 76)",
178
- },
179
- ]),
180
- },
181
- emphasis: {
182
- focus: "series",
183
- },
184
- data: [220, 302, 181, 234, 210, 290, 150],
185
- },
186
- ],
187
- };
188
- return (React.createElement(View, { style: styles.container },
189
- React.createElement(View, { style: { width: 100, height: 100, backgroundColor: "pink" } }),
190
- React.createElement(EchartsView, { option: option, style: {
191
- marginTop: 100,
192
- marginHorizontal: 20,
193
- height: 200,
194
- } })));
195
- };
196
- const styles = StyleSheet.create({
197
- container: {
198
- flexGrow: 1,
199
- display: "flex",
200
- },
201
- });
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { View } from "react-native";
3
- import { default as RefreshList, RefreshState } from "./RefreshList";
4
- const App = () => {
5
- const [refreshState, setRefreshState] = React.useState(RefreshState.Idle);
6
- return (React.createElement(RefreshList, { data: ["a", "b"], renderItem: ({ item, index }) => {
7
- return React.createElement(View, null, item);
8
- }, refreshState: refreshState, onHeaderRefresh: () => { }, onFooterRefresh: () => { } }));
9
- };
@@ -1,27 +0,0 @@
1
- import * as React from "react";
2
- import { View } from "react-native";
3
- import { default as RefreshList, RefreshState } from "./RefreshList";
4
- const App = () => {
5
- const [refreshState, setRefreshState] = React.useState(RefreshState.Idle);
6
- const listRef = React.useRef(null);
7
- return (React.createElement(RefreshList, { mode: "SectionList", sections: [
8
- {
9
- title: "Main dishes",
10
- data: ["Pizza", "Burger", "Risotto"],
11
- },
12
- {
13
- title: "Sides",
14
- data: ["French Fries", "Onion Rings", "Fried Shrimps"],
15
- },
16
- {
17
- title: "Drinks",
18
- data: ["Water", "Coke", "Beer"],
19
- },
20
- {
21
- title: "Desserts",
22
- data: ["Cheese Cake", "Ice Cream"],
23
- },
24
- ], renderItem: ({ item, section }) => {
25
- return React.createElement(View, null, item);
26
- }, refreshState: refreshState, onHeaderRefresh: () => { }, onFooterRefresh: () => { }, renderSectionHeader: ({ section: { letter } }) => (React.createElement(View, { style: { backgroundColor: "red" } })) }));
27
- };
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- import { RefreshState } from "./RefreshList";
3
- const App = () => {
4
- const [refreshState, setRefreshState] = React.useState(RefreshState.Idle);
5
- const listRef = React.useRef(null);
6
- const dataList = Array(20)
7
- .fill("")
8
- .map((_, i) => ({ key: `${i}`, text: `item #${i}` }));
9
- };
@@ -1,37 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet, TouchableOpacity, Text, Animated, } from "react-native";
3
- import { px2dp } from "../../screen/px2dp";
4
- import { px2sp } from "../../screen/px2sp";
5
- import StickHeaderView from "./StickHeaderView";
6
- import WithLoadingContainer from "../WithLoadingContainer/WithLoadingContainer";
7
- import { Status } from "../WithLoadingContainer/WithLoadingContainer";
8
- export default ({}) => {
9
- var _a;
10
- const scrollY = React.useRef(new Animated.Value(0)).current;
11
- const headHeight = React.useRef(-1);
12
- return (React.createElement(View, { style: styles.container },
13
- React.createElement(Animated.ScrollView, { style: { flex: 1 }, onScroll: Animated.event([
14
- {
15
- nativeEvent: { contentOffset: { y: scrollY } },
16
- },
17
- ]), scrollEventThrottle: 1 },
18
- React.createElement(View, { onLayout: (e) => {
19
- let { height } = e.nativeEvent.layout;
20
- headHeight.current = height;
21
- } }),
22
- React.createElement(StickHeaderView, { stickyHeaderY: headHeight.current, stickyScrollY: scrollY },
23
- React.createElement(View, null,
24
- React.createElement(Text, { style: {
25
- fontSize: px2sp(16),
26
- color: "#333",
27
- marginLeft: px2dp(30),
28
- } }, "\u5F53\u65E5\u8BA1\u5212"))),
29
- React.createElement(WithLoadingContainer, { status: Status.SUCCESS, emptyText: "今日无需巡检" }, (_a = Array(30)
30
- .fill("")) === null || _a === void 0 ? void 0 : _a.map((i, index) => (React.createElement(Item, { key: `sg-item-${index}`, item: i, index: index })))))));
31
- };
32
- const Item = (props) => {
33
- return React.createElement(TouchableOpacity, null);
34
- };
35
- const styles = StyleSheet.create({
36
- container: {},
37
- });
package/i.sh DELETED
@@ -1,25 +0,0 @@
1
-
2
- ###
3
- # @Author: shiguo
4
- # @Date: 2022-09-26 17:09:38
5
- # @LastEditors: shiguo
6
- # @LastEditTime: 2023-09-15 17:15:13
7
- # @FilePath: /@aks-dev/easyui/i.sh
8
- ###
9
- # echo "Shell 传递参数实例!";
10
- # echo "执行的文件名:$0";
11
- # echo "第一个参数为:$1";
12
- # echo "第二个参数为:$2";
13
- # echo "第三个参数为:$3";
14
- # ./i.sh 测试更新注视
15
-
16
-
17
- #chmod u+x *.sh
18
- # git add .
19
- # git commit -m $1 feat:修复已知问题
20
- # # git push origin master
21
- # git push --force origin master
22
- echo "请输入验证码"
23
- npm version patch --registry=https://registry.npmjs.org
24
- npm publish --registry=https://registry.npmjs.org --otp=$1
25
-
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- declare const _default: () => React.JSX.Element;
3
- export default _default;
4
- //# sourceMappingURL=demo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/Echarts/demo.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;AAM/B,wBAsME"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=demo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo.tsx"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=demo1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"demo1.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo1.tsx"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=demo2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"demo2.d.ts","sourceRoot":"","sources":["../../../src/components/RefreshList/demo2.tsx"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const _default: ({}: {}) => React.JSX.Element;
3
- export default _default;
4
- //# sourceMappingURL=demo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"demo.d.ts","sourceRoot":"","sources":["../../../src/components/StickHeaderView/demo.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;yBAcV,MAAE;AAAlB,wBAoEE"}