@dolphinweex/weex-harmony 0.1.0

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 (48) hide show
  1. package/README.md +13 -0
  2. package/index.js +2 -0
  3. package/package.json +37 -0
  4. package/src/components/baseSameLayer.vue +101 -0
  5. package/src/components/drag-vertical-list-view.vue +86 -0
  6. package/src/components/hl-button-base.vue +66 -0
  7. package/src/components/hl-button.vue +115 -0
  8. package/src/components/hl-image-base.vue +53 -0
  9. package/src/components/hl-image.vue +151 -0
  10. package/src/components/hl-lottie-base.vue +151 -0
  11. package/src/components/hl-lottie.vue +214 -0
  12. package/src/components/hl-richtext-base.vue +40 -0
  13. package/src/components/hl-richtext.vue +118 -0
  14. package/src/components/hl-slider-base.vue +75 -0
  15. package/src/components/hl-slider.vue +126 -0
  16. package/src/components/hl-textarea-base.vue +40 -0
  17. package/src/components/hl-textarea.vue +118 -0
  18. package/src/components/hl-video-base.vue +65 -0
  19. package/src/components/hl-video.vue +148 -0
  20. package/src/components/hl-web-base.vue +85 -0
  21. package/src/components/mdiea-arc-slider.vue +75 -0
  22. package/src/components/midea-apng-view-base.vue +111 -0
  23. package/src/components/midea-barchart-view.vue +56 -0
  24. package/src/components/midea-blur-view.vue +57 -0
  25. package/src/components/midea-calendar-pave.vue +64 -0
  26. package/src/components/midea-camera-view.vue +91 -0
  27. package/src/components/midea-circle-progress.vue +56 -0
  28. package/src/components/midea-combinechart-view.vue +56 -0
  29. package/src/components/midea-common-weex-view.vue +55 -0
  30. package/src/components/midea-drag-list-view.vue +89 -0
  31. package/src/components/midea-drag-slider-base.vue +66 -0
  32. package/src/components/midea-dragging-linechart-view.vue +56 -0
  33. package/src/components/midea-gesture-password-base.vue +63 -0
  34. package/src/components/midea-ijkplayer-view.vue +93 -0
  35. package/src/components/midea-linechart-view.vue +56 -0
  36. package/src/components/midea-lottie-view.vue +69 -0
  37. package/src/components/midea-map-view.vue +74 -0
  38. package/src/components/midea-pdf-view-base.vue +75 -0
  39. package/src/components/midea-picker.vue +58 -0
  40. package/src/components/midea-piechart-view.vue +56 -0
  41. package/src/components/midea-progresscycle-view.vue +56 -0
  42. package/src/components/midea-seek-bar-base.vue +136 -0
  43. package/src/components/midea-time-pave.vue +58 -0
  44. package/src/components/midea-video.vue +91 -0
  45. package/src/components/midea-vslider-bar-base.vue +89 -0
  46. package/src/components/pick-pallet.vue +66 -0
  47. package/src/index.js +180 -0
  48. package/src/transform-loader.js +249 -0
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/midea-time-pave"
5
+ :defaultWidth="300"
6
+ :defaultHeight="300"
7
+ ></BaseSameLayer>
8
+ </template>
9
+
10
+ <script>
11
+ import BaseSameLayer from './baseSameLayer.vue'
12
+
13
+ export default {
14
+ data() {
15
+ return {
16
+ width: 0,
17
+ height: 0
18
+ }
19
+ },
20
+ name: "MideaTimePave",
21
+ components: {
22
+ BaseSameLayer
23
+ },
24
+ props: {
25
+ hosUniqueProps: {
26
+ type: Object,
27
+ default() {
28
+ return {}
29
+ }
30
+ },
31
+ value: {
32
+ type: String,
33
+ required: true
34
+ }
35
+ },
36
+ computed: {
37
+ hosSameLayerArgs() {
38
+ return {
39
+ ...this.hosUniqueProps,// 鸿蒙原生组件独有属性
40
+ width: this.width,
41
+ height: this.height,
42
+ value: this.value,
43
+ onScrollCompleted: this.onScollCompleted
44
+ }
45
+ }
46
+ },
47
+ mounted() {
48
+ this.width = this.$el.clientWidth;
49
+ this.height = this.$el.clientHeight;
50
+ },
51
+
52
+ methods: {
53
+ onScollCompleted(res) {
54
+ this.$emit("change", res)
55
+ },
56
+ },
57
+ };
58
+ </script>
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/midea-video"
5
+ :defaultWidth="300"
6
+ :defaultHeight="300"
7
+ >
8
+ </BaseSameLayer>
9
+ </template>
10
+
11
+ <script>
12
+ import BaseSameLayer from "./baseSameLayer.vue";
13
+
14
+ export default {
15
+ data() {
16
+ return {
17
+ width: 0,
18
+ height: 0,
19
+ };
20
+ },
21
+ name: "MideaVideo",
22
+ components: {
23
+ BaseSameLayer,
24
+ },
25
+ props: {
26
+ hosUniqueProps: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ },
31
+ },
32
+ autoplay: {
33
+ type: Boolean,
34
+ default: true,
35
+ },
36
+ src: {
37
+ type: String,
38
+ default: "",
39
+ },
40
+ videoCover: {
41
+ type: String,
42
+ default: "",
43
+ },
44
+ },
45
+ computed: {
46
+ hosSameLayerArgs() {
47
+ return {
48
+ ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
49
+ width: this.width,
50
+ height: this.height,
51
+ autoplay: this.autoplay,
52
+ src: this.src,
53
+ videoCover: this.videoCover,
54
+ start: this.start,
55
+ pause: this.pause,
56
+ fail: this.fail,
57
+ finish: this.finish,
58
+ };
59
+ },
60
+ },
61
+ mounted() {
62
+ this.width = this.$el.clientWidth;
63
+ this.height = this.$el.clientHeight;
64
+ },
65
+
66
+ methods: {
67
+ // 自定义拓展其它逻辑
68
+ handleOnChange(res) {
69
+ if (res.mode == 1) {
70
+ //停止滑动
71
+ this.$emit("slideEnd", res);
72
+ } else {
73
+ this.$emit("slideChange", res);
74
+ }
75
+ },
76
+ //开始
77
+ start() {
78
+ this.$emit("start");
79
+ },
80
+ pause() {
81
+ this.$emit("pause");
82
+ },
83
+ fail() {
84
+ this.$emit("fail");
85
+ },
86
+ finish() {
87
+ this.$emit("finish");
88
+ },
89
+ },
90
+ };
91
+ </script>
@@ -0,0 +1,89 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/midea-vslider-bar"
5
+ :defaultWidth="60"
6
+ :defaultHeight="300"
7
+ ></BaseSameLayer>
8
+ </template>
9
+
10
+ <script>
11
+ import BaseSameLayer from "./baseSameLayer.vue";
12
+
13
+ export default {
14
+ data() {
15
+ return {
16
+ width: 0,
17
+ height: 0
18
+ }
19
+ },
20
+ name: "MideaVsliderBar",
21
+ components: {
22
+ BaseSameLayer,
23
+ },
24
+ props: {
25
+ hosUniqueProps: {
26
+ type: Object,
27
+ default() {
28
+ return {};
29
+ },
30
+ },
31
+ min: {
32
+ type: Number,
33
+ required: true,
34
+ },
35
+ max: {
36
+ type: Number,
37
+ required: true,
38
+ },
39
+ value: {
40
+ type: Number,
41
+ required: false,
42
+ },
43
+ enable: {
44
+ type: Boolean,
45
+ required: false,
46
+ },
47
+ image: {
48
+ type: String,
49
+ required: false,
50
+ },
51
+ size: {
52
+ type: Number,
53
+ required: false,
54
+ },
55
+ },
56
+ computed: {
57
+ hosSameLayerArgs() {
58
+ return {
59
+ ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
60
+ width: this.width,
61
+ height: this.height,
62
+ min: this.min,
63
+ max: this.max,
64
+ value: this.value,
65
+ enable: this.enable,
66
+ image: this.image,
67
+ size: this.size,
68
+ handleOnChange: this.handleOnChange,
69
+ };
70
+ },
71
+ },
72
+ mounted() {
73
+ this.width = this.$el.clientWidth;
74
+ this.height = this.$el.clientHeight;
75
+ },
76
+
77
+ methods: {
78
+ // 自定义拓展其它逻辑
79
+ handleOnChange(res) {
80
+ if (res.mode == 1) { //停止滑动
81
+ this.$emit("slideEnd", res);
82
+ } else {
83
+ this.$emit("slideChange", res);
84
+ }
85
+ },
86
+ },
87
+ };
88
+ </script>
89
+
@@ -0,0 +1,66 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/pick-pallet"
5
+ :defaultWidth="100"
6
+ :defaultHeight="100"
7
+ ></BaseSameLayer>
8
+ </template>
9
+
10
+ <script>
11
+ import BaseSameLayer from './baseSameLayer.vue';
12
+
13
+ export default {
14
+ data() {
15
+ return {
16
+ width: 0,
17
+ height: 0,
18
+ };
19
+ },
20
+ name: 'PickPallet',
21
+ components: {
22
+ BaseSameLayer,
23
+ },
24
+ props: {
25
+ titleName: {
26
+ type: String,
27
+ default: '',
28
+ },
29
+ selectionCircleColor: {
30
+ type: String,
31
+ default: '#fff',
32
+ },
33
+ titleName: {
34
+ type: String,
35
+ default: '',
36
+ },
37
+ style: {
38
+ type: Object,
39
+ default: () => ({}),
40
+ },
41
+ },
42
+ computed: {
43
+ hosSameLayerArgs() {
44
+ return {
45
+ ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
46
+ width: this.width,
47
+ height: this.height,
48
+ config: this.config,
49
+ style: this.style,
50
+ titleName: this.titleName,
51
+ selectionCircleColor: this.selectionCircleColor,
52
+ handleChangeColor: this.handleChangeColor,
53
+ };
54
+ },
55
+ },
56
+ mounted() {
57
+ this.width = this.$el.clientWidth;
58
+ this.height = this.$el.clientHeight;
59
+ },
60
+ methods: {
61
+ handleChangeColor(res) {
62
+ this.$emit('changeColor', res);
63
+ },
64
+ },
65
+ };
66
+ </script>
package/src/index.js ADDED
@@ -0,0 +1,180 @@
1
+ const componentMap = [
2
+ {
3
+ componentName: 'HlRichtext',
4
+ componentAddress: 'hl-richtext-base.vue',
5
+ isInPlugin: false
6
+ },
7
+ {
8
+ componentName: 'HlVideo',
9
+ componentAddress: 'hl-video-base.vue',
10
+ isInPlugin: false
11
+ },
12
+ {
13
+ componentName: 'HlLottie',
14
+ componentAddress: 'hl-lottie-base.vue',
15
+ isInPlugin: false
16
+ },
17
+ {
18
+ componentName: 'HlTextarea',
19
+ componentAddress: 'hl-textarea-base.vue',
20
+ isInPlugin: false
21
+ },
22
+ {
23
+ componentName: 'HlImage',
24
+ componentAddress: 'hl-image-base.vue',
25
+ isInPlugin: false
26
+ },
27
+ {
28
+ componentName: 'HlButton',
29
+ componentAddress: 'hl-button-base.vue',
30
+ isInPlugin: false
31
+ },
32
+ {
33
+ componentName: 'HlSlider',
34
+ componentAddress: 'hl-slider-base.vue',
35
+ isInPlugin: false
36
+ },
37
+ {
38
+ componentName: 'Web',
39
+ componentAddress: 'hl-web-base.vue',
40
+ isInPlugin: false
41
+ },
42
+ {
43
+ componentName: 'MideaGesturePassword',
44
+ componentAddress: 'midea-gesture-password-base.vue',
45
+ isInPlugin: false
46
+ },
47
+ {
48
+ componentName: 'MideaApngView',
49
+ componentAddress: 'midea-apng-view-base.vue',
50
+ isInPlugin: false
51
+ },
52
+ {
53
+ componentName: 'MideaPdfView',
54
+ componentAddress: 'midea-pdf-view-base.vue',
55
+ isInPlugin: false
56
+ },
57
+ {
58
+ componentName: 'MideaPicker',
59
+ componentAddress: 'midea-picker.vue',
60
+ isInPlugin: false
61
+ },
62
+ {
63
+ componentName: 'MideaBlurView',
64
+ componentAddress: 'midea-blur-view.vue',
65
+ isInPlugin: false
66
+ },
67
+ {
68
+ componentName: 'MideaIjkplayerView',
69
+ componentAddress: 'midea-ijkplayer-view.vue',
70
+ isInPlugin: false
71
+ },
72
+ {
73
+ componentName: 'MideaSeekBar',
74
+ componentAddress: 'midea-seek-bar-base.vue',
75
+ isInPlugin: false
76
+ },
77
+ {
78
+ componentName: 'MideaDragSlider',
79
+ componentAddress: 'midea-drag-slider-base.vue',
80
+ isInPlugin: false
81
+ },
82
+ {
83
+ componentName: 'MideaVsliderBar',
84
+ componentAddress: 'midea-vslider-bar-base.vue',
85
+ isInPlugin: false
86
+ },
87
+ {
88
+ componentName: 'MideaCircleProgressView',
89
+ componentAddress: 'midea-circle-progress.vue',
90
+ isInPlugin: false
91
+ },
92
+ {
93
+ componentName: 'MideaTimePave',
94
+ componentAddress: 'midea-time-pave.vue',
95
+ isInPlugin: false
96
+ },
97
+ {
98
+ componentName: 'PickPallet',
99
+ componentAddress: 'pick-pallet.vue',
100
+ isInPlugin: false
101
+ },
102
+ {
103
+ componentName: 'MideaCalendarPave',
104
+ componentAddress: 'midea-calendar-pave.vue',
105
+ isInPlugin: false
106
+ },
107
+ {
108
+ componentName: 'MideaLinechartView',
109
+ componentAddress: 'midea-linechart-view.vue',
110
+ isInPlugin: false
111
+ },
112
+ {
113
+ componentName: 'MideaDraggingLinechartView',
114
+ componentAddress: 'midea-dragging-linechart-view.vue',
115
+ isInPlugin: false
116
+ },
117
+ {
118
+ componentName: 'MideaBarchartView',
119
+ componentAddress: 'midea-barchart-view.vue',
120
+ isInPlugin: false
121
+ },
122
+ {
123
+ componentName: 'MideaPiechartView',
124
+ componentAddress: 'midea-piechart-view.vue',
125
+ isInPlugin: false
126
+ },
127
+ {
128
+ componentName: 'MideaCombinechartView',
129
+ componentAddress: 'midea-combinechart-view.vue',
130
+ isInPlugin: false
131
+ },
132
+ {
133
+ componentName: 'MdieaArcSlider',
134
+ componentAddress: 'mdiea-arc-slider.vue',
135
+ isInPlugin: false,
136
+ },
137
+ {
138
+ componentName: 'MideaProgresscycleView',
139
+ componentAddress: 'midea-progresscycle-view.vue',
140
+ isInPlugin: false,
141
+ },
142
+ {
143
+ componentName: 'MideaVideo',
144
+ componentAddress: 'midea-video.vue',
145
+ isInPlugin: false,
146
+ },
147
+ {
148
+ componentName: 'MideaMapView',
149
+ componentAddress: 'midea-map-view.vue',
150
+ isInPlugin: false,
151
+ },
152
+ {
153
+ componentName: 'MideaCameraView',
154
+ componentAddress: 'midea-camera-view.vue',
155
+ isInPlugin: false,
156
+ },
157
+
158
+ {
159
+ componentName: 'MideaLottieView',
160
+ componentAddress: 'midea-lottie-view',
161
+ isInPlugin: false,
162
+ },
163
+ {
164
+ componentName: 'MideaDragListView',
165
+ componentAddress: 'midea-drag-list-view',
166
+ isInPlugin: false,
167
+ },
168
+ {
169
+ componentName: 'MideaCommonWeexView',
170
+ componentAddress: 'midea-common-weex-view.vue',
171
+ isInPlugin: false
172
+ },
173
+ {
174
+ componentName: 'DragVerticalListView',
175
+ componentAddress: 'drag-vertical-list-view.vue',
176
+ isInPlugin: false
177
+ }
178
+ ]
179
+
180
+ module.exports = componentMap