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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -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]: 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
- ? props.row.class
50
- : '']: true,
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
- ? props.row.class
86
- : '']: true,
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
- focusCell,
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
- () => props.pagination.lastPage
243
- || Math.ceil(props.rows.length / paginationModel.value.rowsPerPage),
238
+ () =>
239
+ props.pagination.lastPage ||
240
+ Math.ceil(props.rows.length / paginationModel.value.rowsPerPage),
244
241
  ),
245
242
  updatePagination,
246
243
  sort,