@mixd-id/web-scaffold 0.1.240411042 → 0.1.240411043
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 +1 -1
- package/src/components/List.vue +10 -9
- package/src/components/Modal.vue +0 -1
- package/src/components/ObjectTree.vue +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/components/List.vue
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
<div class="flex flex-row gap-2 md:gap-3 items-center px-3" ref="title">
|
|
44
44
|
<div class="flex flex-col whitespace-nowrap text-ellipsis overflow-hidden">
|
|
45
|
-
<div class="cursor-pointer group
|
|
45
|
+
<div class="cursor-pointer group" @click="$refs.contextMenu.open($refs.title)">
|
|
46
46
|
<small class="text-text-400 text-xs">{{ title ?? 'Untitled' }}</small>
|
|
47
47
|
<div class="flex flex-row items-baseline gap-1">
|
|
48
48
|
<h5 class="whitespace-nowrap relative top-[-2px] text-ellipsis overflow-hidden group-hover:text-primary">
|
|
@@ -379,13 +379,13 @@ export default{
|
|
|
379
379
|
itemsPerPage: this.data.itemsPerPage,
|
|
380
380
|
})
|
|
381
381
|
.then(data => {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
.
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
382
|
+
if(data?.items){
|
|
383
|
+
generatePivotColumns(this.preset, data.items)
|
|
384
|
+
generateTotalColumns(this.preset, data.items)
|
|
385
|
+
Object.assign(this.data, data ?? {})
|
|
386
|
+
this.loadEnums(this.dataItems)
|
|
387
|
+
this.$emit('after-load')
|
|
388
|
+
}
|
|
389
389
|
})
|
|
390
390
|
.finally(_ => this.readyState = 1)
|
|
391
391
|
}
|
|
@@ -395,7 +395,8 @@ export default{
|
|
|
395
395
|
loadNext(){
|
|
396
396
|
if(this.computedSrc && this.readyState !== 4 &&
|
|
397
397
|
((this.data ?? {}).hasNext !== false) &&
|
|
398
|
-
!(this.preset.pivot ?? {}).enabled
|
|
398
|
+
!(this.preset.pivot ?? {}).enabled &&
|
|
399
|
+
this.dataItems) {
|
|
399
400
|
|
|
400
401
|
const afterItem = this.dataItems[this.dataItems.length - 1]
|
|
401
402
|
|
package/src/components/Modal.vue
CHANGED
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {defineAsyncComponent, ref} from "vue"
|
|
2
|
-
import {arrayPush, arrayRemove, arrayUnshift, invokeAfterIdle, observeInit
|
|
2
|
+
import {arrayPush, arrayRemove, arrayUnshift, downloadUrl, invokeAfterIdle, observeInit} from './utils/helpers.mjs'
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
4
|
import {useDevice} from './hooks/device.js'
|
|
5
5
|
|