@mixd-id/web-scaffold 0.1.230406358 → 0.1.230406359
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
|
@@ -266,7 +266,7 @@ export default{
|
|
|
266
266
|
.datepicker {
|
|
267
267
|
@apply min-h-[var(--h-cp)];
|
|
268
268
|
@apply flex items-center rounded-lg overflow-hidden cursor-pointer relative;
|
|
269
|
-
@apply border-[1px] border-text-200;
|
|
269
|
+
@apply border-[1px] border-text-200 bg-base-500 rounded-lg;
|
|
270
270
|
@apply cursor-pointer;
|
|
271
271
|
}
|
|
272
272
|
.datepicker:not(.readonly){
|
|
@@ -290,12 +290,18 @@ export default{
|
|
|
290
290
|
.button{
|
|
291
291
|
@apply rounded-full aspect-square;
|
|
292
292
|
}
|
|
293
|
+
.button:hover{
|
|
294
|
+
@apply bg-primary-200;
|
|
295
|
+
}
|
|
296
|
+
.button.selected{
|
|
297
|
+
@apply bg-primary text-white;
|
|
298
|
+
}
|
|
293
299
|
.button.otherMonth{
|
|
294
300
|
@apply text-text-300;
|
|
295
301
|
}
|
|
296
302
|
|
|
297
303
|
.arrow{
|
|
298
|
-
@apply absolute right-0 pointer-events-none
|
|
304
|
+
@apply absolute right-0 pointer-events-none px-2;
|
|
299
305
|
top: 50%;
|
|
300
306
|
transform: translate3d(0, -50%, 0);
|
|
301
307
|
}
|
|
@@ -303,10 +309,6 @@ export default{
|
|
|
303
309
|
@apply block fill-text-300;
|
|
304
310
|
}
|
|
305
311
|
|
|
306
|
-
.selected{
|
|
307
|
-
@apply bg-primary;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
312
|
.mode-calendar{
|
|
311
313
|
@apply p-2 h-auto;
|
|
312
314
|
}
|
package/src/components/List.vue
CHANGED
|
@@ -368,7 +368,6 @@ export default{
|
|
|
368
368
|
itemsPerPage: this.data.itemsPerPage,
|
|
369
369
|
})
|
|
370
370
|
.then(data => {
|
|
371
|
-
console.log(data)
|
|
372
371
|
generatePivotColumns(this.preset, data.items)
|
|
373
372
|
generateTotalColumns(this.preset, data.items)
|
|
374
373
|
this.loadEnums(data.items)
|
|
@@ -388,8 +387,6 @@ export default{
|
|
|
388
387
|
((this.data ?? {}).hasNext !== false) &&
|
|
389
388
|
!(this.preset.pivot ?? {}).enabled) {
|
|
390
389
|
|
|
391
|
-
//console.log('last id', this.dataItems[this.dataItems.length - 1].id)
|
|
392
|
-
|
|
393
390
|
this.readyState = 4
|
|
394
391
|
this.socket.send(this.src, {
|
|
395
392
|
...this.preset,
|
|
@@ -397,7 +394,6 @@ export default{
|
|
|
397
394
|
afterItem: this.data.items[this.data.items.length - 1],
|
|
398
395
|
})
|
|
399
396
|
.then(data => {
|
|
400
|
-
//console.log('next id', data.items[0].id)
|
|
401
397
|
|
|
402
398
|
this.data.items.push(...data.items)
|
|
403
399
|
this.loadEnums(data.items)
|
|
@@ -505,10 +501,10 @@ export default{
|
|
|
505
501
|
],
|
|
506
502
|
pivot: null
|
|
507
503
|
})
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
504
|
+
.then((res) => {
|
|
505
|
+
this.data.extItems = res.items
|
|
506
|
+
})
|
|
507
|
+
.finally(_ => this.readyState = 1)
|
|
512
508
|
},
|
|
513
509
|
|
|
514
510
|
loadExtNext(){
|
|
@@ -600,12 +596,12 @@ export default{
|
|
|
600
596
|
...this.preset,
|
|
601
597
|
[key]: items.map(item => item[key])
|
|
602
598
|
})
|
|
603
|
-
|
|
604
|
-
|
|
599
|
+
.then(({ items:nextItems }) => {
|
|
600
|
+
nextItems.forEach(item => this.$util.unshift(this.data.items, item, { highlight: true }))
|
|
605
601
|
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
602
|
+
const destroyedItems = items.filter(_ => !nextItems.find(i => i[key] === _[key]))
|
|
603
|
+
this.$util.remove(this.data.items, destroyedItems)
|
|
604
|
+
})
|
|
609
605
|
break
|
|
610
606
|
}
|
|
611
607
|
|