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
|
@@ -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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
}
|
package/src/pages/TablePage.vue
CHANGED
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
{
|
|
113
113
|
name: 'fat',
|
|
114
114
|
label: 'Fat (g)',
|
|
115
|
-
field: '
|
|
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: '
|
|
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
|
-
|
|
396
|
-
|
|
395
|
+
btnStartDisabled: this.getBtnDisable2(lista[i]),
|
|
396
|
+
btnPauseDisabled: this.getBtnDisable(lista[i])
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
this.rows.push(rows)
|