quasar-factory-lib 0.0.69 → 0.0.70

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
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.69",
100
+ "version": "0.0.70",
101
101
  "author": ""
102
102
  }
@@ -177,23 +177,14 @@ export default {
177
177
  return !(col.showBasicCheckbox || col.showCustomizedCheckBox || col.showCustomizedIcon || col.showColumButton || col.showBadge || col.showIconWithToolTip)
178
178
  },
179
179
  getBtnDisabled(tablePropsData, col) {
180
- const disableFieldMap = {
181
- btnStartDisabled: 'btnStartDisabled',
182
- btnPauseDisabled: 'btnPauseDisabled',
183
- btnFinishDisabled: 'btnFinishDisabled'
180
+ if (col.field === 'btnStart') {
181
+ return tablePropsData.row.btnStartDisabled
182
+ } else if (col.field === 'btnPause') {
183
+ return tablePropsData.row.btnPauseDisabled
184
+ } else {
185
+ return false
184
186
  }
185
- const field = disableFieldMap[col.field]
186
- return field ? tablePropsData.row[field] : false
187
187
  }
188
- // getBtnDisabled(tablePropsData, col) {
189
- // const disableFieldMap = {
190
- // fat: 'btnDisable',
191
- // fat2: 'btnDisable2'
192
- // }
193
-
194
- // const field = disableFieldMap[col.field]
195
- // return field ? tablePropsData.row[field] : false
196
- // }
197
188
  }
198
189
  }
199
190
  </script>
@@ -222,13 +222,13 @@ export default {
222
222
  return !(col.showBasicCheckbox || col.showCustomizedCheckBox || col.showCustomizedIcon || col.showColumButton || col.showBadge || col.showIconWithToolTip || col.showCustomizedButton)
223
223
  },
224
224
  getBtnDisabled(tablePropsData, col) {
225
- const disableFieldMap = {
226
- btnStartDisabled: 'btnStartDisabled',
227
- btnPauseDisabled: 'btnPauseDisabled',
228
- btnFinishDisabled: 'btnFinishDisabled'
225
+ if (col.field === 'btnStart') {
226
+ return tablePropsData.row.btnStartDisabled
227
+ } else if (col.field === 'btnPause') {
228
+ return tablePropsData.row.btnPauseDisabled
229
+ } else {
230
+ return false
229
231
  }
230
- const field = disableFieldMap[col.field]
231
- return field ? tablePropsData.row[field] : false
232
232
  }
233
233
  }
234
234
  }
@@ -112,7 +112,7 @@ export default {
112
112
  {
113
113
  name: 'fat',
114
114
  label: 'Fat (g)',
115
- field: 'fat',
115
+ field: 'btnPause',
116
116
  sortable: true,
117
117
  align: 'left',
118
118
  showCustomizedButton: true,
@@ -124,7 +124,7 @@ export default {
124
124
  {
125
125
  name: 'fat2',
126
126
  label: 'Fat 2',
127
- field: 'fat2',
127
+ field: 'btnStart',
128
128
  sortable: true,
129
129
  align: 'left',
130
130
  showCustomizedButton: true,
@@ -392,8 +392,8 @@ export default {
392
392
  toolTipText: this.getBadgeText(lista[i].carbs),
393
393
  iconWithToolTipColor: this.getBadgeColor(lista[i].carbs),
394
394
  iconWithToolTipName: this.getIconWithToolTipName(lista[i].carbs),
395
- btnDisable: this.getBtnDisable(lista[i]),
396
- btnDisable2: this.getBtnDisable2(lista[i]),
395
+ btnStartDisabled: this.getBtnDisable2(lista[i]),
396
+ btnPauseDisabled: this.getBtnDisable(lista[i])
397
397
  }
398
398
 
399
399
  this.rows.push(rows)