@10yun/cv-mobile-ui 0.5.13 → 0.5.14

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": "@10yun/cv-mobile-ui",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "十云cvjs移动端ui,适用uniapp",
5
5
  "author": "10yun",
6
6
  "license": "Apache-2.0",
@@ -4,6 +4,7 @@
4
4
  <script>
5
5
  export default {
6
6
  name: 'cvBtnBase',
7
+ emits: ['click'],
7
8
  props: {
8
9
  size: {
9
10
  type: [String],
@@ -26,7 +27,9 @@ export default {
26
27
  }
27
28
  },
28
29
  data() {
29
- return {};
30
+ return {
31
+ loadingStatus: true
32
+ };
30
33
  },
31
34
  created() {},
32
35
  methods: {
@@ -36,30 +39,30 @@ export default {
36
39
  }
37
40
  },
38
41
  parentClick(evt) {
39
- this.$emit('click', evt);
40
42
  if (this.autoLoading) {
41
- this.loadingStatus = true;
43
+ if (this.loadingStatus) {
44
+ this.loadingStatus = false;
45
+ this.$emit('click', () => {
46
+ this.loadingStatus = true;
47
+ });
48
+ }
49
+ } else {
50
+ this.$emit('click', evt);
42
51
  }
43
- this.$emit('click', () => {
44
- this.loadingStatus = false;
45
- });
46
52
  }
47
53
  }
48
54
  };
49
55
  </script>
50
-
51
56
  <style>
52
57
  .cv-button-wrap {
53
58
  padding: 0 10px;
54
- /* margin-top: 10px;
55
- font-size: 14px;
56
- margin: 0px 15px; */
57
- /* line-height: 100%; */
58
- /* padding: 6px 5px; */
59
- /* margin-bottom: 5px; */
60
59
  margin: 0 10px;
60
+ margin-bottom: 10px;
61
+ font-size: 15px;
62
+ }
63
+ .cv-button-wrap:last-child {
64
+ margin-bottom: 0;
61
65
  }
62
-
63
66
  .cv-button-item2 {
64
67
  display: flex;
65
68
  justify-content: center;
@@ -77,9 +77,7 @@ export default {
77
77
  data() {
78
78
  return {};
79
79
  },
80
- created() {
81
- // console.log(this.$slots);
82
- },
80
+ created() {},
83
81
  methods: {
84
82
  bingClick() {
85
83
  this.$emit('click');
@@ -190,7 +190,6 @@ export default {
190
190
  // fix by mehaotian 修改不修改的情况,动态值不检验的问题
191
191
  this.form.formData[this.name] = this.form._getValue(this.name, '');
192
192
  }
193
- console.log(this.$slots);
194
193
  },
195
194
  mounted() {
196
195
  if (this.form) {