quasar-ui-sellmate-ui-kit 3.2.6 → 3.2.7
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.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +13 -10
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/STable.vue +13 -16
package/package.json
CHANGED
|
@@ -42,12 +42,15 @@
|
|
|
42
42
|
focused: isFocused(props),
|
|
43
43
|
'text-center': props.col.align === 'center',
|
|
44
44
|
'text-right': props.col.align === 'right',
|
|
45
|
-
[props.col.classes]:
|
|
45
|
+
[props.col.classes]:
|
|
46
|
+
typeof props.col.classes === 'string'
|
|
47
|
+
? props.col.classes
|
|
48
|
+
: props.col.classes(props.row),
|
|
46
49
|
[typeof props.row.class === 'function'
|
|
47
50
|
? props.row.class(props.row)
|
|
48
51
|
: typeof props.row.class === 'string'
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
? props.row.class
|
|
53
|
+
: '']: true,
|
|
51
54
|
}"
|
|
52
55
|
:style="props.col.style"
|
|
53
56
|
@click.stop="focusCell(props)"
|
|
@@ -82,8 +85,8 @@
|
|
|
82
85
|
[typeof props.row.class === 'function'
|
|
83
86
|
? props.row.class(props.row)
|
|
84
87
|
: typeof props.row.class === 'string'
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
? props.row.class
|
|
89
|
+
: '']: true,
|
|
87
90
|
}"
|
|
88
91
|
:style="props.col.style"
|
|
89
92
|
>
|
|
@@ -193,15 +196,8 @@
|
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
const sTableRef = ref(null);
|
|
196
|
-
const {
|
|
197
|
-
|
|
198
|
-
isFocused,
|
|
199
|
-
editing,
|
|
200
|
-
inputRef,
|
|
201
|
-
inputData,
|
|
202
|
-
closeInput,
|
|
203
|
-
editIcon,
|
|
204
|
-
} = useNavigator(props, attrs, emit);
|
|
199
|
+
const { focusCell, isFocused, editing, inputRef, inputData, closeInput, editIcon } =
|
|
200
|
+
useNavigator(props, attrs, emit);
|
|
205
201
|
function updateSelected(details) {
|
|
206
202
|
if (details.added && details.evt && details.evt.shiftKey) {
|
|
207
203
|
const idx = props.rows.findIndex(r => r === details.rows[0]);
|
|
@@ -239,8 +235,9 @@
|
|
|
239
235
|
tablePagination,
|
|
240
236
|
paginationModel,
|
|
241
237
|
pagesNumber: computed(
|
|
242
|
-
() =>
|
|
243
|
-
|
|
238
|
+
() =>
|
|
239
|
+
props.pagination.lastPage ||
|
|
240
|
+
Math.ceil(props.rows.length / paginationModel.value.rowsPerPage),
|
|
244
241
|
),
|
|
245
242
|
updatePagination,
|
|
246
243
|
sort,
|