@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 +1 -1
- package/dist/runtime/assets/main.css +13 -0
- package/dist/runtime/components/l-date-picker.vue +1 -1
- package/dist/runtime/components/l-input.vue +2 -2
- package/dist/runtime/components/l-list.vue +1 -1
- package/dist/runtime/components/l-select.vue +1 -1
- package/dist/runtime/components/l-table.vue +7 -5
- package/dist/runtime/index.mjs +1 -0
- package/dist/runtime/pages/User/setting/style.vue +20 -6
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -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",
|
|
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",
|
|
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",
|
|
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",
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
:
|
|
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">
|
package/dist/runtime/index.mjs
CHANGED
|
@@ -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 ?
|
|
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 ?
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|