@hostlink/nuxt-light 0.0.112 → 0.0.113

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.112"
4
+ "version": "0.0.113"
5
5
  }
@@ -14,4 +14,17 @@ body {
14
14
 
15
15
  .q-card__actions .q-btn--rectangle {
16
16
  padding: 4px 16px;
17
+ }
18
+
19
+
20
+ .q-table--dense .q-table td, .q-table--dense .q-table th{
21
+ padding: 2px 4px;
22
+ }
23
+
24
+ .q-table--dense .q-table td:first-child, .q-table--dense .q-table th:first-child{
25
+ padding: 2px 4px;
26
+ }
27
+
28
+ .q-tab-panel{
29
+ padding: 8px;
17
30
  }
@@ -67,7 +67,7 @@ if (!props.range) {
67
67
  const attrs = {
68
68
  ...{
69
69
  filled: light.getStyle("inputFilled", false),
70
- outlined: light.getStyle("inputOutlined", false),
70
+ outlined: light.getStyle("inputOutlined", true),
71
71
  standout: light.getStyle("inputStandout", false),
72
72
  rounded: light.getStyle("inputRounded", false),
73
73
  dense: light.getStyle("inputDense", false),
@@ -155,12 +155,12 @@ const onClickTc2Sc = () => {
155
155
  const attrs = {
156
156
  ...{
157
157
  filled: light.getStyle("inputFilled", false),
158
- outlined: light.getStyle("inputOutlined", false),
158
+ outlined: light.getStyle("inputOutlined", true),
159
159
  standout: light.getStyle("inputStandout", false),
160
160
  rounded: light.getStyle("inputRounded", false),
161
161
  dense: light.getStyle("inputDense", false),
162
162
  square: light.getStyle("inputSquare", false),
163
- stackLabel: light.getStyle("inputStackLabel", false)
163
+ stackLabel: light.getStyle("inputStackLabel", true)
164
164
  },
165
165
  ...useAttrs(),
166
166
  }
@@ -29,7 +29,7 @@ function getTo(field) {
29
29
 
30
30
  </script>
31
31
  <template>
32
- <q-list bordered separator>
32
+ <q-list bordered separator dense >
33
33
  <template v-if="fields">
34
34
  <l-item v-for="field in fields" :label="field.getRaw().label" :to="getTo(field)">
35
35
  {{ field.getFormattedValue(props.modelValue) }}
@@ -62,7 +62,7 @@ const clearable = computed(() => {
62
62
  const attrs = {
63
63
  ...{
64
64
  filled: light.getStyle("inputFilled", false),
65
- outlined: light.getStyle("inputOutlined", false),
65
+ outlined: light.getStyle("inputOutlined", true),
66
66
  standout: light.getStyle("inputStandout", false),
67
67
  rounded: light.getStyle("inputRounded", false),
68
68
  dense: light.getStyle("inputDense", false),
@@ -523,11 +523,13 @@ const getCellClass = (col: any, row: any) => {
523
523
  rows:{{ props.rows }}
524
524
  </template>
525
525
 
526
-
527
- <q-table v-bind="attrs" :row-key="rowKey" :loading="loading" :rows="rows" ref="table" @request="onRequest"
528
- :rows-per-page-label="$t(props.rowsPerPageLabel)" :columns="columns" :rows-per-page-options="rowsPerPageOptions"
529
- :selection="selection" v-model:pagination="pagination" :filter="filter" :no-data-label="$t('No data available')"
530
- :loading-label="$t('Loading...')">
526
+ <q-table
527
+
528
+
529
+ v-bind="attrs" :row-key="rowKey" :loading="loading" :rows="rows" ref="table" @request="onRequest"
530
+ separator="cell" :rows-per-page-label="$t(props.rowsPerPageLabel)" :columns="columns"
531
+ :rows-per-page-options="rowsPerPageOptions" :selection="selection" v-model:pagination="pagination" :filter="filter"
532
+ :no-data-label="$t('No data available')" :loading-label="$t('Loading...')">
531
533
 
532
534
 
533
535
  <!-- template v-for="s in ss" v-slot:[s]="props">
@@ -73,6 +73,7 @@ const app = reactive({
73
73
  init(styles2) {
74
74
  app.color = styles2.color || "primary";
75
75
  app.theme = styles2.theme || "semi-dark";
76
+ app.setStyles(styles2);
76
77
  watch(() => app.color, async () => {
77
78
  await app.setStyle("color", app.color);
78
79
  });
@@ -5,7 +5,7 @@ let my = await q("my", ["styles"]);
5
5
 
6
6
  const styles = reactive({
7
7
 
8
- tableDense: my.styles.tableDense === undefined ? false : my.styles.tableDense,
8
+ tableDense: my.styles.tableDense === undefined ? true : my.styles.tableDense,
9
9
  tableFlat: my.styles.tableFlat === undefined ? true : my.styles.tableFlat,
10
10
  tableBorder: my.styles.tableBorder === undefined ? true : my.styles.tableBorder,
11
11
 
@@ -19,10 +19,10 @@ const styles = reactive({
19
19
  buttonDense: my.styles.buttonDense === undefined ? false : my.styles.buttonDense,
20
20
 
21
21
  inputFilled: my.styles.inputFilled === undefined ? false : my.styles.inputFilled,
22
- inputOutlined: my.styles.inputOutlined === undefined ? false : my.styles.inputOutlined,
22
+ inputOutlined: my.styles.inputOutlined === undefined ? true : my.styles.inputOutlined,
23
23
  inputStandout: my.styles.inputStandout === undefined ? false : my.styles.inputStandout,
24
24
  inputRounded: my.styles.inputRounded === undefined ? false : my.styles.inputRounded,
25
- inputDense: my.styles.inputDense === undefined ? false : my.styles.inputDense,
25
+ inputDense: my.styles.inputDense === undefined ? true : my.styles.inputDense,
26
26
  inputSquare: my.styles.inputSquare === undefined ? false : my.styles.inputSquare,
27
27
  inputStackLabel: my.styles.inputStackLabel === undefined ? false : my.styles.inputStackLabel,
28
28
 
@@ -39,7 +39,7 @@ const onSave = async () => {
39
39
 
40
40
  const setDefault = async () => {
41
41
 
42
- styles.tableDense = false;
42
+ styles.tableDense = true;
43
43
  styles.tableFlat = true;
44
44
  styles.tableBorder = true;
45
45
 
@@ -53,12 +53,12 @@ const setDefault = async () => {
53
53
  styles.buttonDense = false;
54
54
 
55
55
  styles.inputFilled = false;
56
- styles.inputOutlined = false;
56
+ styles.inputOutlined = true;
57
57
  styles.inputStandout = false;
58
58
  styles.inputRounded = false;
59
59
  styles.inputDense = false;
60
60
  styles.inputSquare = false;
61
- styles.inputStackLabel = false;
61
+ styles.inputStackLabel = true;
62
62
 
63
63
 
64
64
 
@@ -71,6 +71,13 @@ const setDefault = async () => {
71
71
  <q-checkbox v-model="styles.tableFlat" label="Table flat" />
72
72
  <q-checkbox v-model="styles.tableBorder" label="Table bordered" />
73
73
 
74
+ <q-option-group v-model="styles.tableSeparator" inline class="q-mb-md" :options="[
75
+ { label: 'Horizontal', value: 'horizontal' },
76
+ { label: 'Vertical', value: 'vertical' },
77
+ { label: 'Cell', value: 'cell' },
78
+ { label: 'None', value: 'none' },
79
+ ]" />
80
+
74
81
  </div>
75
82
 
76
83
  <div>
@@ -119,6 +126,13 @@ const setDefault = async () => {
119
126
  ></q-input>
120
127
 
121
128
 
129
+ <q-table :rows="[
130
+ { name: 'A', phone: '123' },
131
+ { name: 'B', phone: '456' },
132
+ { name: 'C', phone: '789' },
133
+ ]" :flat="styles.tableFlat" :bordered="styles.tableBorder" :dense="styles.tableDense"
134
+ :separator="styles.tableSeparator"></q-table>
135
+
122
136
  </div>
123
137
 
124
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.112",
3
+ "version": "0.0.113",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",