@dolphinweex/weex-harmony 0.1.35 → 0.1.37

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolphinweex/weex-harmony",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/midea-build-loading-view"
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: 'mideaBuildLoadingView',
21
+ components: {
22
+ BaseSameLayer,
23
+ },
24
+ props: {
25
+ hosUniqueProps: {
26
+ type: Object,
27
+ default() {
28
+ return {};
29
+ },
30
+ },
31
+ data: {
32
+ type: Object,
33
+ default() {
34
+ return {};
35
+ },
36
+ },
37
+
38
+ },
39
+ computed: {
40
+ hosSameLayerArgs() {
41
+ return {
42
+ ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
43
+ width: this.width,
44
+ height: this.height,
45
+ data: this.data,
46
+ // loadComplete: this.loadComplete,
47
+ };
48
+ },
49
+ },
50
+ mounted() {
51
+ this.width = this.$el.clientWidth;
52
+ this.height = this.$el.clientHeight;
53
+ },
54
+ methods: {
55
+ loadComplete(res) {
56
+ this.$emit("loadComplete", res)
57
+ },
58
+ },
59
+ };
60
+ </script>
@@ -720,12 +720,14 @@ export default {
720
720
  console.log('拖拽克隆已创建');
721
721
  }
722
722
  }
723
+ if(!this.data.isEditing){
724
+ setTimeout(()=>{
725
+ this.selectIconClick(null, this.data.list[index], index)
726
+ },100)
727
+ }
723
728
  this.data.isEditing = true;
724
729
  this.$emit('onEditStateChanged', true);
725
730
  this.longPressTimer = null;
726
- setTimeout(()=>{
727
- this.selectIconClick(null, this.data.list[index], index)
728
- },100)
729
731
  },
730
732
 
731
733
  // 取消长按计时器
package/src/index.js CHANGED
@@ -200,6 +200,11 @@ const componentMap = [
200
200
  componentAddress: 'midea-device-card-list-view.vue',
201
201
  isInPlugin: false
202
202
  },
203
+ {
204
+ componentName: 'mideaBuildLoadingView',
205
+ componentAddress: 'midea-build-loading-view.vue',
206
+ isInPlugin: false
207
+ },
203
208
  ]
204
209
 
205
210
  module.exports = componentMap