@hostlink/nuxt-light 0.0.47 → 0.0.49

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "0.0.47"
4
+ "version": "0.0.49"
5
5
  }
@@ -0,0 +1,37 @@
1
+ <script setup>
2
+
3
+ import { computed } from 'vue'
4
+
5
+ const props = defineProps({
6
+ type: {
7
+ type: String,
8
+ default: 'info' //info, warning, negative, positive
9
+ }
10
+ })
11
+
12
+
13
+ const icon = computed(() => {
14
+ switch (props.type) {
15
+ case 'info':
16
+ return 'sym_o_info'
17
+ case 'warning':
18
+ return 'sym_o_warning'
19
+ case 'negative':
20
+ return 'sym_o_error'
21
+ case 'positive':
22
+ return 'sym_o_check_circle_outline'
23
+ }
24
+ })
25
+
26
+ </script>
27
+
28
+ <template>
29
+ <q-item :class="`bg-${type}`">
30
+ <q-item-section avatar>
31
+ <q-icon :name="icon" class="text-white" />
32
+ </q-item-section>
33
+ <q-item-section class="text-white">
34
+ <slot></slot>
35
+ </q-item-section>
36
+ </q-item>
37
+ </template>
@@ -18,6 +18,7 @@ const props = defineProps({
18
18
  sortable?: boolean,
19
19
  searchable?: boolean,
20
20
  searchType?: string,
21
+ searchOptions?: Array<any>,
21
22
  field?: string | Object,
22
23
  }>
23
24
  },
@@ -25,10 +26,6 @@ const props = defineProps({
25
26
  type: Array,
26
27
  default: () => []
27
28
  },
28
- selection: {
29
- type: String,
30
- default: "none"
31
- },
32
29
  sortBy: {
33
30
  type: String,
34
31
  default: null
@@ -377,17 +374,10 @@ const attrs = {
377
374
  </div>
378
375
  </template>
379
376
 
380
-
381
- {{ attrs }}
382
-
383
- <q-table v-bind="$attrs"
384
- :flat="attrs.flat"
385
- :dense="attrs.dense"
386
- :bordered="attrs.bordered"
387
-
388
- :loading="loading" :hide-bottom="hideBottom" v-model:pagination="pagination" ref="table"
389
- @request="onRequest" :selection="selection" :rows="rows" :rows-per-page-label="t(props.rowsPerPageLabel)"
390
- :columns="renderColumns" :rows-per-page-options="rowsPerPageOptions">
377
+ <q-table v-bind="$attrs" :flat="attrs.flat" :dense="attrs.dense" :bordered="attrs.bordered" :row-key="rowKey"
378
+ :loading="loading" :hide-bottom="hideBottom" v-model:pagination="pagination" ref="table" @request="onRequest"
379
+ :rows="rows" :rows-per-page-label="t(props.rowsPerPageLabel)" :columns="renderColumns"
380
+ :rows-per-page-options="rowsPerPageOptions">
391
381
 
392
382
  <template v-for="s in ss" v-slot:[s]="props">
393
383
  <slot :name="s" v-bind="props"></slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",