meixioacomponent 0.1.83 → 0.1.86

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": "meixioacomponent",
3
- "version": "0.1.83",
3
+ "version": "0.1.86",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -11,7 +11,7 @@
11
11
  <oa_pro_tableVue
12
12
  ref="table"
13
13
  :align="`left`"
14
- v-model="keyWords"
14
+ v-model="module"
15
15
  :height="dialogHeight"
16
16
  :pageProps="pageProps"
17
17
  :pageConfig="pageConfig"
@@ -133,8 +133,19 @@ export default {
133
133
  };
134
134
  },
135
135
  },
136
- },
137
136
 
137
+ value: {},
138
+ },
139
+ computed: {
140
+ module: {
141
+ set(val) {
142
+ this.$emit("input", val);
143
+ },
144
+ get() {
145
+ return this.$props.value;
146
+ },
147
+ },
148
+ },
138
149
  components: {
139
150
  oa_pro_tableVue,
140
151
  baseButtonHandle,
@@ -96,6 +96,7 @@ export default {
96
96
  },
97
97
  },
98
98
  methods: {
99
+ // 初始化
99
100
  init() {
100
101
  this.$nextTick(() => {
101
102
  this.maxLeft =
@@ -104,6 +105,7 @@ export default {
104
105
  this.loading = false;
105
106
  this.moveX = 0;
106
107
  this.moveLeft = 0;
108
+ this.module = false;
107
109
  });
108
110
  },
109
111
 
@@ -123,9 +125,9 @@ export default {
123
125
  }
124
126
  },
125
127
  mouseleave() {
128
+ if (!this.moveStatus) return;
126
129
  if (this.moveLeft < this.maxLeft) {
127
130
  this.moveStatus = 0;
128
- this.module = false;
129
131
  this.init();
130
132
  } else {
131
133
  this.setComplate();
@@ -138,9 +140,15 @@ export default {
138
140
 
139
141
  setComplate() {
140
142
  this.moveStatus = 2;
141
- this.module = true;
142
- this.moveLeft = this.maxLeft;
143
- this.$emit("verifiComplate");
143
+ },
144
+ },
145
+ watch: {
146
+ moveStatus(newVal, oldVal) {
147
+ if (newVal == 2) {
148
+ this.module = true;
149
+ this.moveLeft = this.maxLeft;
150
+ this.$emit("verifiComplate");
151
+ }
144
152
  },
145
153
  },
146
154
  };
@@ -72,7 +72,11 @@
72
72
  <span></span>
73
73
  </template>
74
74
 
75
- <el-table-column type="selection" width="60px"></el-table-column>
75
+ <el-table-column
76
+ type="selection"
77
+ width="60px"
78
+ :selectable="selected"
79
+ ></el-table-column>
76
80
  <el-table-column
77
81
  :key="index"
78
82
  :align="align"
@@ -346,6 +350,9 @@ export default {
346
350
  return {
347
351
  value: [],
348
352
  type: "single",
353
+ canSelected: () => {
354
+ return true;
355
+ },
349
356
  };
350
357
  },
351
358
  },
@@ -687,6 +694,13 @@ export default {
687
694
  this.tableCheckboxConfig.value = [];
688
695
  this.$refs.elTable?.clearSelection();
689
696
  },
697
+ // 判断表格的行能否点击
698
+ selected(row, index) {
699
+ let _tableCheckboxConfig = this.$props.tableCheckboxConfig;
700
+ if (_tableCheckboxConfig.canSelected) return true;
701
+
702
+ return _tableCheckboxConfig.canSelected(row, index);
703
+ },
690
704
  },
691
705
  watch: {
692
706
  fixedList(newValue, oldValue) {