quasar-ui-sellmate-ui-kit 1.2.0 → 1.2.2
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/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/package.json +1 -1
- package/src/components/SSelectCustom.vue +2 -0
- package/src/components/STable.vue +84 -82
package/dist/index.css
CHANGED
package/dist/index.min.css
CHANGED
package/dist/index.rtl.css
CHANGED
package/dist/index.rtl.min.css
CHANGED
package/package.json
CHANGED
|
@@ -1,88 +1,90 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</template>
|
|
30
|
-
<template #loading>
|
|
31
|
-
<q-inner-loading showing color="positive" size="72px" />
|
|
32
|
-
</template>
|
|
33
|
-
<template v-for="(column, index) in columns" :key="index" #[`body-cell-${column.name}`]="props">
|
|
34
|
-
<q-td
|
|
35
|
-
v-if="navigator"
|
|
36
|
-
:class="{
|
|
37
|
-
focused: isFocused(props),
|
|
38
|
-
'text-center': props.col.align === 'center',
|
|
39
|
-
'text-right': props.col.align === 'right',
|
|
40
|
-
[(typeof props.row.class) === 'function' ? props.row.class(props.row) : props.row.class]: true,
|
|
41
|
-
[props.col.classes]: true,
|
|
42
|
-
}"
|
|
43
|
-
:style="props.col.style"
|
|
44
|
-
@click.stop="focusCell(props)"
|
|
45
|
-
>
|
|
46
|
-
<slot :name="`body-cell-${column.name}-content`" v-bind="props">
|
|
47
|
-
<s-input
|
|
48
|
-
ref="inputRef"
|
|
49
|
-
v-model="inputData"
|
|
50
|
-
v-if="props.col.editable && editing && isFocused(props)"
|
|
51
|
-
@blur="closeInput"
|
|
52
|
-
v-bind="inputOptions"
|
|
53
|
-
></s-input>
|
|
54
|
-
<span v-else>{{ props.value }}
|
|
55
|
-
<q-icon :name="editIcon" class="q-ml-xs" v-if="props.col.editable"></q-icon>
|
|
56
|
-
</span>
|
|
2
|
+
<div>
|
|
3
|
+
<q-table
|
|
4
|
+
flat
|
|
5
|
+
bordered
|
|
6
|
+
hide-pagination
|
|
7
|
+
hide-selected-banner
|
|
8
|
+
class="s-table"
|
|
9
|
+
:class="{
|
|
10
|
+
's-select-table': useSelect,
|
|
11
|
+
'resizable-table': resizable,
|
|
12
|
+
'sticky-resizable-table': stickyResizable,
|
|
13
|
+
'sticky-header': stickyHeader,
|
|
14
|
+
'before-search': beforeSearch,
|
|
15
|
+
}"
|
|
16
|
+
:table-class="{ 'resizable-table': resizable }"
|
|
17
|
+
:columns="columns"
|
|
18
|
+
:rows="rows"
|
|
19
|
+
v-model:pagination="paginationModel"
|
|
20
|
+
:no-data-label="noDataLabel"
|
|
21
|
+
ref="sTableRef"
|
|
22
|
+
@selection="updateSelected"
|
|
23
|
+
>
|
|
24
|
+
<template #no-data="props">
|
|
25
|
+
<slot name="noData" v-bind="props">
|
|
26
|
+
<div class="full-width text-center">
|
|
27
|
+
{{ props.message }}
|
|
28
|
+
</div>
|
|
57
29
|
</slot>
|
|
58
|
-
</
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
30
|
+
</template>
|
|
31
|
+
<template #loading>
|
|
32
|
+
<q-inner-loading showing color="positive" size="72px" />
|
|
33
|
+
</template>
|
|
34
|
+
<template v-for="(column, index) in columns" :key="index" #[`body-cell-${column.name}`]="props">
|
|
35
|
+
<q-td
|
|
36
|
+
v-if="navigator"
|
|
37
|
+
:class="{
|
|
38
|
+
focused: isFocused(props),
|
|
39
|
+
'text-center': props.col.align === 'center',
|
|
40
|
+
'text-right': props.col.align === 'right',
|
|
41
|
+
[(typeof props.row.class) === 'function' ? props.row.class(props.row) : props.row.class]: true,
|
|
42
|
+
[props.col.classes]: true,
|
|
43
|
+
}"
|
|
44
|
+
:style="props.col.style"
|
|
45
|
+
@click.stop="focusCell(props)"
|
|
46
|
+
>
|
|
47
|
+
<slot :name="`body-cell-${column.name}-content`" v-bind="props">
|
|
48
|
+
<s-input
|
|
49
|
+
ref="inputRef"
|
|
50
|
+
v-model="inputData"
|
|
51
|
+
v-if="props.col.editable && editing && isFocused(props)"
|
|
52
|
+
@blur="closeInput"
|
|
53
|
+
v-bind="inputOptions"
|
|
54
|
+
></s-input>
|
|
55
|
+
<span v-else>{{ props.value }}
|
|
56
|
+
<q-icon :name="editIcon" class="q-ml-xs" v-if="props.col.editable"></q-icon>
|
|
57
|
+
</span>
|
|
58
|
+
</slot>
|
|
59
|
+
</q-td>
|
|
60
|
+
<q-td
|
|
61
|
+
v-else
|
|
62
|
+
v-bind="props"
|
|
63
|
+
:class="{
|
|
64
|
+
'text-center': props.col.align === 'center',
|
|
65
|
+
'text-right': props.col.align === 'right',
|
|
66
|
+
[(typeof props.row.class) === 'function' ? props.row.class(props.row) : props.row.class]: true,
|
|
67
|
+
[props.col.classes]: true,
|
|
68
|
+
}"
|
|
69
|
+
:style="props.col.style"
|
|
70
|
+
>
|
|
71
|
+
<slot :name="`body-cell-${column.name}-content`" v-bind="props">
|
|
72
|
+
{{ props.value }}
|
|
73
|
+
</slot>
|
|
74
|
+
</q-td>
|
|
75
|
+
</template>
|
|
76
|
+
<template v-for="(_, slotName, index) in $slots" :key="index" #[slotName]="data">
|
|
77
|
+
<slot :name="slotName" v-bind="data">
|
|
72
78
|
</slot>
|
|
73
|
-
</
|
|
74
|
-
</
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
v-model="paginationModel.page"
|
|
83
|
-
:lastPage="pagesNumber"
|
|
84
|
-
class="q-mt-md"
|
|
85
|
-
/>
|
|
79
|
+
</template>
|
|
80
|
+
</q-table>
|
|
81
|
+
<s-pagination2
|
|
82
|
+
v-if="!hideBottom"
|
|
83
|
+
v-model="paginationModel.page"
|
|
84
|
+
:lastPage="pagesNumber"
|
|
85
|
+
class="q-mt-md"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
86
88
|
</template>
|
|
87
89
|
|
|
88
90
|
<script>
|