st-comp 0.0.118 → 0.0.119

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,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.118",
4
+ "version": "0.0.119",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -208,14 +208,28 @@ watch(
208
208
  <el-button
209
209
  type="danger"
210
210
  :plain="ruleForm.factorType !== 1"
211
- @click="ruleForm.factorType = 1"
211
+ @click="
212
+ () => {
213
+ if (ruleForm.factorType === -1) {
214
+ ruleForm.factorSelectedList = [];
215
+ }
216
+ ruleForm.factorType = 1;
217
+ }
218
+ "
212
219
  >
213
220
 
214
221
  </el-button>
215
222
  <el-button
216
223
  type="success"
217
224
  :plain="ruleForm.factorType !== -1"
218
- @click="ruleForm.factorType = -1"
225
+ @click="
226
+ () => {
227
+ if (ruleForm.factorType === 1) {
228
+ ruleForm.factorSelectedList = [];
229
+ }
230
+ ruleForm.factorType = -1;
231
+ }
232
+ "
219
233
  >
220
234
 
221
235
  </el-button>
@@ -486,14 +500,28 @@ watch(
486
500
  <el-button
487
501
  type="danger"
488
502
  :plain="shortcut_ruleForm.factorType !== 1"
489
- @click="shortcut_ruleForm.factorType = 1"
503
+ @click="
504
+ () => {
505
+ if (shortcut_ruleForm.factorType === -1) {
506
+ shortcut_ruleForm.factorSelectedList = [];
507
+ }
508
+ shortcut_ruleForm.factorType = 1;
509
+ }
510
+ "
490
511
  >
491
512
 
492
513
  </el-button>
493
514
  <el-button
494
515
  type="success"
495
516
  :plain="shortcut_ruleForm.factorType !== -1"
496
- @click="shortcut_ruleForm.factorType = -1"
517
+ @click="
518
+ () => {
519
+ if (shortcut_ruleForm.factorType === 1) {
520
+ shortcut_ruleForm.factorSelectedList = [];
521
+ }
522
+ shortcut_ruleForm.factorType = -1;
523
+ }
524
+ "
497
525
  >
498
526
 
499
527
  </el-button>