shared-ritm 1.2.88 → 1.2.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/index.css +1 -1
- package/dist/shared-ritm.es.js +471 -477
- package/dist/shared-ritm.umd.js +3 -3
- package/package.json +1 -1
- package/src/common/app-sheet-new/AppSheetNew.vue +6 -15
- package/src/common/app-table/AppTable.vue +5 -1
- package/src/common/app-table/controllers/useBaseTable.ts +4 -1
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-dialog
|
|
3
|
-
|
|
4
|
-
:model-value="true"
|
|
3
|
+
:model-value="modelValue"
|
|
5
4
|
:position="'right'"
|
|
6
5
|
:class="$style['sheet-dialog']"
|
|
7
6
|
:persistent="persistent"
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
no-esc-dismiss
|
|
10
9
|
full-height
|
|
11
10
|
full-width
|
|
12
|
-
@
|
|
11
|
+
@update:model-value="emit('update:modelValue', $event)"
|
|
13
12
|
>
|
|
14
13
|
<div v-if="loading" class="custom-wrapper">
|
|
15
14
|
<div class="loader">
|
|
@@ -57,11 +56,11 @@
|
|
|
57
56
|
</template>
|
|
58
57
|
|
|
59
58
|
<script setup lang="ts">
|
|
60
|
-
import { computed, defineEmits, defineProps,
|
|
59
|
+
import { computed, defineEmits, defineProps, useSlots, withDefaults } from 'vue'
|
|
61
60
|
import { QDialog } from 'quasar'
|
|
62
61
|
|
|
63
62
|
interface DialogProps {
|
|
64
|
-
|
|
63
|
+
modelValue: boolean
|
|
65
64
|
loading?: boolean
|
|
66
65
|
title?: string
|
|
67
66
|
tabsTitle?: string
|
|
@@ -74,6 +73,7 @@ interface DialogProps {
|
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
const props = withDefaults(defineProps<DialogProps>(), {
|
|
76
|
+
modelValue: false,
|
|
77
77
|
title: '',
|
|
78
78
|
tabsTitle: '',
|
|
79
79
|
width: '1200px',
|
|
@@ -85,19 +85,10 @@ const props = withDefaults(defineProps<DialogProps>(), {
|
|
|
85
85
|
persistent: false,
|
|
86
86
|
})
|
|
87
87
|
|
|
88
|
-
const emit = defineEmits(['update:
|
|
88
|
+
const emit = defineEmits(['update:modelValue', 'update:tabId', 'close', 'before-hide'])
|
|
89
89
|
|
|
90
90
|
const slots = useSlots()
|
|
91
91
|
|
|
92
|
-
const DialogRef = computed({
|
|
93
|
-
get() {
|
|
94
|
-
return props.dialogRef
|
|
95
|
-
},
|
|
96
|
-
set(value) {
|
|
97
|
-
emit('update:dialogRef', value)
|
|
98
|
-
},
|
|
99
|
-
})
|
|
100
|
-
|
|
101
92
|
const currTabId = computed({
|
|
102
93
|
get() {
|
|
103
94
|
return props.tabs?.find(t => t.id === props.tabId)?.title
|
|
@@ -29,7 +29,11 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<template v-for="col in resCols" :key="col.name" #[`header-cell-${col.name}`]="propsSlot">
|
|
32
|
-
<q-th
|
|
32
|
+
<q-th
|
|
33
|
+
:props="propsSlot"
|
|
34
|
+
:class="{ 'cursor-pointer': col.filterType, actions: col.name === 'actions' }"
|
|
35
|
+
:style="col.style"
|
|
36
|
+
>
|
|
33
37
|
<div
|
|
34
38
|
v-if="col.filterType"
|
|
35
39
|
class="row items-center no-wrap"
|
|
@@ -25,7 +25,10 @@ export function useBaseTable(model: {
|
|
|
25
25
|
|
|
26
26
|
watch(
|
|
27
27
|
() => model.columnFilters.value,
|
|
28
|
-
() =>
|
|
28
|
+
async () => {
|
|
29
|
+
currentPage.value = 1
|
|
30
|
+
await loadTable(search.value, currentPage.value)
|
|
31
|
+
},
|
|
29
32
|
{ deep: true },
|
|
30
33
|
)
|
|
31
34
|
|