quasar-factory-lib 0.0.88 → 0.0.89
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/dist/components/Table/Table.vue.d.ts +8 -3
- package/dist/components/Table/components/TableSlotBody.vue.d.ts +2 -1
- package/dist/components/Table/components/TableSlotGrid.vue.d.ts +2 -1
- package/dist/layouts/PdaLayout.vue.d.ts +8 -3
- package/dist/pages/TablePage.vue.d.ts +8 -3
- package/dist/quasar-factory-lib.js +13 -9
- package/dist/quasar-factory-lib.umd.cjs +2 -2
- package/package.json +1 -1
- package/src/components/Table/Table.vue +11 -5
- package/src/components/Table/components/CustomizedBadge.vue +1 -1
- package/src/components/Table/components/TableSlotBody.vue +2 -1
- package/src/components/Table/components/TableSlotGrid.vue +2 -1
- package/src/layouts/PdaLayout.vue +9 -0
package/package.json
CHANGED
|
@@ -231,7 +231,10 @@ export default defineComponent({
|
|
|
231
231
|
'setLineRemainingQty',
|
|
232
232
|
'setLineNoStock',
|
|
233
233
|
'onDoneLineMaintenanceTasks',
|
|
234
|
-
'reprintSULabel'
|
|
234
|
+
'reprintSULabel',
|
|
235
|
+
'onDragStart',
|
|
236
|
+
'onDragUpdate',
|
|
237
|
+
'onDragEnd'
|
|
235
238
|
],
|
|
236
239
|
data () {
|
|
237
240
|
return {
|
|
@@ -322,17 +325,20 @@ export default defineComponent({
|
|
|
322
325
|
animation: 100,
|
|
323
326
|
delay: self.dragAndDropDelay,
|
|
324
327
|
|
|
325
|
-
onStart () {
|
|
326
|
-
|
|
328
|
+
onStart (e) {
|
|
329
|
+
// console.log('start')
|
|
330
|
+
self.$emit('onDragStart', e)
|
|
327
331
|
},
|
|
328
332
|
onUpdate (e) {
|
|
329
|
-
console.log(e, 'onUpdate')
|
|
333
|
+
// console.log(e, 'onUpdate')
|
|
330
334
|
const {oldIndex, newIndex} = e
|
|
331
335
|
console.log(oldIndex, newIndex, self.rows)
|
|
332
336
|
self.rowsData = [...self.rows]
|
|
337
|
+
self.$emit('onDragUpdate', e)
|
|
333
338
|
},
|
|
334
339
|
onEnd(e) {
|
|
335
|
-
console.log(e, 'end drag')
|
|
340
|
+
// console.log(e, 'end drag')
|
|
341
|
+
self.$emit('onDragEnd', e)
|
|
336
342
|
}
|
|
337
343
|
})
|
|
338
344
|
}
|
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
@on-update-basic-checkbox-value="onUpdateBasicCheckboxValue"
|
|
51
51
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
52
52
|
@on-click-button="setItemNotFound"
|
|
53
|
+
@on-drag-start="(args) => {
|
|
54
|
+
console.log(args, 'start')
|
|
55
|
+
}"
|
|
56
|
+
@on-drag-update="(args) => {
|
|
57
|
+
console.log(args, 'update')
|
|
58
|
+
}"
|
|
59
|
+
@on-drag-end="(args) => {
|
|
60
|
+
console.log(args, 'end')
|
|
61
|
+
}"
|
|
53
62
|
/>
|
|
54
63
|
<q-page-sticky
|
|
55
64
|
v-if="smallDevice"
|