quasar-ui-danx 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div class="overflow-hidden">
2
+ <div class="overflow-hidden w-full">
3
3
  <ActionVnode />
4
- <q-table
4
+ <QTable
5
5
  ref="actionTable"
6
6
  :selected="selectedRows"
7
7
  :pagination="quasarPagination"
@@ -10,7 +10,7 @@
10
10
  :rows="pagedItems?.data || []"
11
11
  selection="multiple"
12
12
  :rows-per-page-options="rowsPerPageOptions"
13
- class="sticky-column sticky-header w-full !border-0"
13
+ class="sticky-column sticky-header w-full h-full !border-0"
14
14
  color="blue-base"
15
15
  @update:selected="$emit('update:selected-rows', $event)"
16
16
  @update:pagination="() => {}"
@@ -33,7 +33,7 @@
33
33
  />
34
34
  </template>
35
35
  <template #header-cell="rowProps">
36
- <q-th
36
+ <QTh
37
37
  :key="rowProps.key"
38
38
  :props="rowProps"
39
39
  :data-drop-zone="`resize-column-` + rowProps.col.name"
@@ -47,7 +47,7 @@
47
47
  >
48
48
  <RowResizeIcon class="w-4 text-neutral-base" />
49
49
  </HandleDraggable>
50
- </q-th>
50
+ </QTh>
51
51
  </template>
52
52
  <template #body-cell="rowProps">
53
53
  <ActionTableColumn
@@ -58,11 +58,12 @@
58
58
  <slot :column-name="rowProps.col.name" :row="rowProps.row" :value="rowProps.value" />
59
59
  </ActionTableColumn>
60
60
  </template>
61
- </q-table>
61
+ </QTable>
62
62
  </div>
63
63
  </template>
64
64
 
65
65
  <script setup>
66
+ import { QTable, QTh } from 'quasar';
66
67
  import { ref } from 'vue';
67
68
  import { getItem, setItem } from '../../helpers';
68
69
  import { DragHandleIcon as RowResizeIcon } from '../../svg';
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <q-td :key="rowProps.key" :props="rowProps">
2
+ <q-td :key="rowProps.key" :props="rowProps" :style="columnStyle">
3
3
  <div :style="columnStyle">
4
4
  <div
5
5
  class="flex items-center flex-nowrap"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="flex items-center" :class="{'w-72': showFilters}">
2
+ <div class="flex items-center transition-all" :class="{'w-72': showFilters, 'w-[6.5rem]': !showFilters}">
3
3
  <div class="flex-grow">
4
4
  <q-btn
5
5
  class="btn-blue-highlight"
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div class="w-full flex justify-end items-center flex-nowrap border-b">
3
3
  <FilterListToggle
4
- :show-filters="showFilters"
5
- :filter="filter"
6
- class="border-r p-4 flex-shrink-0"
7
- @update:show-filters="$emit('update:show-filters', $event)"
8
- @update:filter="$emit('update:filter', $event)"
4
+ :show-filters="showFilters"
5
+ :filter="filter"
6
+ class="border-r p-4 flex-shrink-0"
7
+ @update:show-filters="$emit('update:show-filters', $event)"
8
+ @update:filter="$emit('update:filter', $event)"
9
9
  />
10
10
 
11
11
  <div class="flex-grow">
@@ -20,9 +20,10 @@
20
20
  </div>
21
21
  </template>
22
22
  <script setup>
23
- import { FilterListToggle } from "quasar-ui-danx";
23
+ import { QSeparator } from 'quasar';
24
+ import { FilterListToggle } from '../Filters';
24
25
 
25
- defineEmits(["update:show-filters", "update:filter"]);
26
+ defineEmits(['update:show-filters', 'update:filter']);
26
27
  defineProps({
27
28
  filter: {
28
29
  type: Object,