quasar-ui-sellmate-ui-kit 3.0.3 → 3.0.5
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/.prettierrc +25 -25
- package/README.md +156 -156
- package/dist/index.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +3829 -3829
- package/dist/index.umd.min.js +2 -2
- package/package.json +83 -83
- package/src/assets/icons.js +28 -28
- package/src/components/SBreadcrumbs.vue +55 -55
- package/src/components/SButton.vue +206 -206
- package/src/components/SButtonGroup.vue +41 -41
- package/src/components/SButtonToggle.vue +200 -200
- package/src/components/SCaution.vue +102 -102
- package/src/components/SCheckbox.vue +123 -123
- package/src/components/SChip.vue +99 -99
- package/src/components/SDate.vue +717 -717
- package/src/components/SDateAutoRangePicker.vue +341 -341
- package/src/components/SDatePicker.vue +472 -472
- package/src/components/SDateRange.vue +470 -470
- package/src/components/SDateRangePicker.vue +660 -660
- package/src/components/SDateTimePicker.vue +349 -349
- package/src/components/SDialog.vue +250 -250
- package/src/components/SDropdown.vue +216 -216
- package/src/components/SEditor.vue +490 -490
- package/src/components/SFilePicker.vue +207 -207
- package/src/components/SHelp.vue +146 -146
- package/src/components/SInput.vue +343 -343
- package/src/components/SInputCounter.vue +46 -46
- package/src/components/SInputNumber.vue +179 -179
- package/src/components/SList.vue +29 -29
- package/src/components/SMarkupTable.vue +141 -141
- package/src/components/SPagination.vue +266 -266
- package/src/components/SRadio.vue +78 -78
- package/src/components/SRouteTab.vue +67 -67
- package/src/components/SSelect.vue +294 -294
- package/src/components/SSelectCheckbox.vue +222 -222
- package/src/components/SSelectCustom.vue +189 -189
- package/src/components/SSelectGroupCheckbox.vue +235 -235
- package/src/components/SSelectSearch.vue +261 -261
- package/src/components/SSelectSearchAutoComplete.vue +172 -172
- package/src/components/SSelectSearchCheckbox.vue +356 -356
- package/src/components/SStringToInput.vue +66 -66
- package/src/components/STab.vue +77 -77
- package/src/components/STable.vue +425 -425
- package/src/components/STableTree.vue +210 -210
- package/src/components/STabs.vue +32 -32
- package/src/components/STimePicker.vue +159 -159
- package/src/components/SToggle.vue +68 -68
- package/src/components/STooltip.vue +209 -209
- package/src/components/SelelctItem.vue +21 -21
- package/src/components/TimePickerCard.vue +352 -352
- package/src/composables/date.js +11 -11
- package/src/composables/modelBinder.js +13 -13
- package/src/composables/table/use-navigator.js +110 -110
- package/src/composables/table/use-resizable.js +80 -80
- package/src/css/app.scss +90 -90
- package/src/css/default.scss +875 -875
- package/src/css/extends.scss +154 -154
- package/src/css/quasar.variables.scss +189 -189
- package/src/directives/Directive.js +7 -7
- package/src/index.scss +3 -3
- package/src/vue-plugin.js +91 -91
- package/tsconfig.json +35 -35
|
@@ -1,200 +1,200 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-btn-toggle
|
|
3
|
-
v-model="btnValue"
|
|
4
|
-
@update:modelValue="
|
|
5
|
-
val => {
|
|
6
|
-
$emit('update:model-value', val);
|
|
7
|
-
}
|
|
8
|
-
"
|
|
9
|
-
no-caps
|
|
10
|
-
no-wrap
|
|
11
|
-
outline
|
|
12
|
-
unelevated
|
|
13
|
-
:ripple="false"
|
|
14
|
-
color="Grey_Lighten-2"
|
|
15
|
-
text-color="Grey_Lighten-2"
|
|
16
|
-
toggle-color="positive"
|
|
17
|
-
toggle-text-color="positive"
|
|
18
|
-
padding="8px 24px"
|
|
19
|
-
class="s-btn-toggle"
|
|
20
|
-
:class="size === 'md' ? 's-btn-toggle-md' : 's-btn-toggle-sm'"
|
|
21
|
-
/>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
import { ref, defineComponent, watch } from 'vue';
|
|
26
|
-
import { QBtnToggle } from 'quasar';
|
|
27
|
-
|
|
28
|
-
export default defineComponent({
|
|
29
|
-
name: 'SButtonToggle',
|
|
30
|
-
components: {
|
|
31
|
-
QBtnToggle,
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
modelValue: [Number, String, Object],
|
|
35
|
-
size: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: 'sm',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
setup(props) {
|
|
41
|
-
const btnValue = ref(props.modelValue);
|
|
42
|
-
watch(
|
|
43
|
-
() => props.modelValue,
|
|
44
|
-
newVal => {
|
|
45
|
-
btnValue.value = newVal;
|
|
46
|
-
},
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
return {
|
|
50
|
-
btnValue,
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style lang="scss">
|
|
57
|
-
@import '../css/quasar.variables.scss';
|
|
58
|
-
|
|
59
|
-
.s-btn-toggle {
|
|
60
|
-
.q-btn {
|
|
61
|
-
&:first-of-type {
|
|
62
|
-
border-radius: 4px 0 0 4px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:last-of-type {
|
|
66
|
-
border-radius: 0 4px 4px 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:before {
|
|
70
|
-
border-left: 1px solid $Grey_Lighten-2 !important;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:hover {
|
|
74
|
-
> .q-focus-helper {
|
|
75
|
-
background-color: $positive !important;
|
|
76
|
-
opacity: 1 !important;
|
|
77
|
-
|
|
78
|
-
&:before,
|
|
79
|
-
&:after {
|
|
80
|
-
background-color: $positive !important;
|
|
81
|
-
opacity: 1;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.q-btn__content {
|
|
86
|
-
> span {
|
|
87
|
-
color: white !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
+ .q-btn:not(.text-positive):before {
|
|
92
|
-
border-left: none !important;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:not(:last-child) {
|
|
97
|
-
&:hover {
|
|
98
|
-
box-shadow: 1px 0 0 $positive !important;
|
|
99
|
-
transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
100
|
-
z-index: 1;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.q-btn--active {
|
|
105
|
-
background: $positive !important;
|
|
106
|
-
color: white !important;
|
|
107
|
-
|
|
108
|
-
&:before {
|
|
109
|
-
border: 1px solid $positive !important;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.q-btn__content {
|
|
113
|
-
> span {
|
|
114
|
-
color: white !important;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.text-positive {
|
|
121
|
-
&:before {
|
|
122
|
-
border: 1px solid $positive !important;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:not(:last-child) {
|
|
126
|
-
&:before {
|
|
127
|
-
border-right: none !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.q-btn {
|
|
131
|
-
box-shadow: 1px 0 0 $positive !important;
|
|
132
|
-
z-index: 2;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
& + .q-btn {
|
|
137
|
-
&:before {
|
|
138
|
-
border-left: none !important;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.q-btn--active {
|
|
143
|
-
&:hover {
|
|
144
|
-
.q-btn__content {
|
|
145
|
-
> span {
|
|
146
|
-
color: white !important;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&:hover {
|
|
153
|
-
> .q-focus-helper {
|
|
154
|
-
background-color: $positive !important;
|
|
155
|
-
opacity: 1 !important;
|
|
156
|
-
|
|
157
|
-
&:before,
|
|
158
|
-
&:after {
|
|
159
|
-
background-color: $positive !important;
|
|
160
|
-
opacity: 1;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.q-btn__content {
|
|
165
|
-
> span {
|
|
166
|
-
color: white !important;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.s-btn-toggle-sm {
|
|
174
|
-
.q-btn {
|
|
175
|
-
padding: $button-padding-sm !important;
|
|
176
|
-
|
|
177
|
-
.q-btn__content {
|
|
178
|
-
> span {
|
|
179
|
-
line-height: $default-line-height;
|
|
180
|
-
font-size: $default-font !important;
|
|
181
|
-
font-weight: $default-font-weight;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.s-btn-toggle-md {
|
|
188
|
-
.q-btn {
|
|
189
|
-
padding: $button-padding-md !important;
|
|
190
|
-
|
|
191
|
-
.q-btn__content {
|
|
192
|
-
> span {
|
|
193
|
-
line-height: $line-height-md !important;
|
|
194
|
-
font-size: $font-md !important;
|
|
195
|
-
font-weight: $font-weight-md !important;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-btn-toggle
|
|
3
|
+
v-model="btnValue"
|
|
4
|
+
@update:modelValue="
|
|
5
|
+
val => {
|
|
6
|
+
$emit('update:model-value', val);
|
|
7
|
+
}
|
|
8
|
+
"
|
|
9
|
+
no-caps
|
|
10
|
+
no-wrap
|
|
11
|
+
outline
|
|
12
|
+
unelevated
|
|
13
|
+
:ripple="false"
|
|
14
|
+
color="Grey_Lighten-2"
|
|
15
|
+
text-color="Grey_Lighten-2"
|
|
16
|
+
toggle-color="positive"
|
|
17
|
+
toggle-text-color="positive"
|
|
18
|
+
padding="8px 24px"
|
|
19
|
+
class="s-btn-toggle"
|
|
20
|
+
:class="size === 'md' ? 's-btn-toggle-md' : 's-btn-toggle-sm'"
|
|
21
|
+
/>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import { ref, defineComponent, watch } from 'vue';
|
|
26
|
+
import { QBtnToggle } from 'quasar';
|
|
27
|
+
|
|
28
|
+
export default defineComponent({
|
|
29
|
+
name: 'SButtonToggle',
|
|
30
|
+
components: {
|
|
31
|
+
QBtnToggle,
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
modelValue: [Number, String, Object],
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'sm',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
setup(props) {
|
|
41
|
+
const btnValue = ref(props.modelValue);
|
|
42
|
+
watch(
|
|
43
|
+
() => props.modelValue,
|
|
44
|
+
newVal => {
|
|
45
|
+
btnValue.value = newVal;
|
|
46
|
+
},
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
btnValue,
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style lang="scss">
|
|
57
|
+
@import '../css/quasar.variables.scss';
|
|
58
|
+
|
|
59
|
+
.s-btn-toggle {
|
|
60
|
+
.q-btn {
|
|
61
|
+
&:first-of-type {
|
|
62
|
+
border-radius: 4px 0 0 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:last-of-type {
|
|
66
|
+
border-radius: 0 4px 4px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:before {
|
|
70
|
+
border-left: 1px solid $Grey_Lighten-2 !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
> .q-focus-helper {
|
|
75
|
+
background-color: $positive !important;
|
|
76
|
+
opacity: 1 !important;
|
|
77
|
+
|
|
78
|
+
&:before,
|
|
79
|
+
&:after {
|
|
80
|
+
background-color: $positive !important;
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.q-btn__content {
|
|
86
|
+
> span {
|
|
87
|
+
color: white !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
+ .q-btn:not(.text-positive):before {
|
|
92
|
+
border-left: none !important;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:not(:last-child) {
|
|
97
|
+
&:hover {
|
|
98
|
+
box-shadow: 1px 0 0 $positive !important;
|
|
99
|
+
transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
100
|
+
z-index: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.q-btn--active {
|
|
105
|
+
background: $positive !important;
|
|
106
|
+
color: white !important;
|
|
107
|
+
|
|
108
|
+
&:before {
|
|
109
|
+
border: 1px solid $positive !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.q-btn__content {
|
|
113
|
+
> span {
|
|
114
|
+
color: white !important;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.text-positive {
|
|
121
|
+
&:before {
|
|
122
|
+
border: 1px solid $positive !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:not(:last-child) {
|
|
126
|
+
&:before {
|
|
127
|
+
border-right: none !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.q-btn {
|
|
131
|
+
box-shadow: 1px 0 0 $positive !important;
|
|
132
|
+
z-index: 2;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& + .q-btn {
|
|
137
|
+
&:before {
|
|
138
|
+
border-left: none !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.q-btn--active {
|
|
143
|
+
&:hover {
|
|
144
|
+
.q-btn__content {
|
|
145
|
+
> span {
|
|
146
|
+
color: white !important;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&:hover {
|
|
153
|
+
> .q-focus-helper {
|
|
154
|
+
background-color: $positive !important;
|
|
155
|
+
opacity: 1 !important;
|
|
156
|
+
|
|
157
|
+
&:before,
|
|
158
|
+
&:after {
|
|
159
|
+
background-color: $positive !important;
|
|
160
|
+
opacity: 1;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.q-btn__content {
|
|
165
|
+
> span {
|
|
166
|
+
color: white !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.s-btn-toggle-sm {
|
|
174
|
+
.q-btn {
|
|
175
|
+
padding: $button-padding-sm !important;
|
|
176
|
+
|
|
177
|
+
.q-btn__content {
|
|
178
|
+
> span {
|
|
179
|
+
line-height: $default-line-height;
|
|
180
|
+
font-size: $default-font !important;
|
|
181
|
+
font-weight: $default-font-weight;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.s-btn-toggle-md {
|
|
188
|
+
.q-btn {
|
|
189
|
+
padding: $button-padding-md !important;
|
|
190
|
+
|
|
191
|
+
.q-btn__content {
|
|
192
|
+
> span {
|
|
193
|
+
line-height: $line-height-md !important;
|
|
194
|
+
font-size: $font-md !important;
|
|
195
|
+
font-weight: $font-weight-md !important;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
</style>
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-banner
|
|
3
|
-
dense
|
|
4
|
-
rounded
|
|
5
|
-
class="text-Grey_Darken-4 col relative-position s-caution"
|
|
6
|
-
:class="{
|
|
7
|
-
's-caution__title': title,
|
|
8
|
-
's-caution__page bg-Caution_Bg': !useModal,
|
|
9
|
-
'bg-Red_Lighten-5': useModal,
|
|
10
|
-
}"
|
|
11
|
-
>
|
|
12
|
-
<div v-if="title" class="s-caution-title">{{ title }}</div>
|
|
13
|
-
<ul>
|
|
14
|
-
<slot />
|
|
15
|
-
</ul>
|
|
16
|
-
<q-icon
|
|
17
|
-
v-if="!useModal"
|
|
18
|
-
class="s-caution-icon"
|
|
19
|
-
size="240px"
|
|
20
|
-
:name="cautionOutlineIcon"
|
|
21
|
-
/>
|
|
22
|
-
</q-banner>
|
|
23
|
-
</template>
|
|
24
|
-
<script>
|
|
25
|
-
import { defineComponent } from 'vue';
|
|
26
|
-
import { QBanner, QIcon } from 'quasar';
|
|
27
|
-
import { cautionOutlineIcon } from '../assets/icons.js';
|
|
28
|
-
|
|
29
|
-
export default defineComponent({
|
|
30
|
-
name: 'SCaution',
|
|
31
|
-
components: {
|
|
32
|
-
QBanner,
|
|
33
|
-
QIcon,
|
|
34
|
-
},
|
|
35
|
-
props: {
|
|
36
|
-
title: { type: String, default: '' },
|
|
37
|
-
useModal: { type: Boolean, default: false },
|
|
38
|
-
},
|
|
39
|
-
setup() {
|
|
40
|
-
return {
|
|
41
|
-
cautionOutlineIcon,
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style lang="scss">
|
|
48
|
-
@import "../css/quasar.variables.scss";
|
|
49
|
-
|
|
50
|
-
.s-caution {
|
|
51
|
-
padding: 20px 0;
|
|
52
|
-
border-radius: 4px;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
max: {
|
|
55
|
-
height: 100%;
|
|
56
|
-
width: 100%;
|
|
57
|
-
}
|
|
58
|
-
ul {
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 0;
|
|
61
|
-
margin-left: $caution-margin-left;
|
|
62
|
-
li {
|
|
63
|
-
list-style: none;
|
|
64
|
-
font-size: $default-font;
|
|
65
|
-
line-height: $double-line-height;
|
|
66
|
-
&:before {
|
|
67
|
-
content: "-";
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
line-height: 20px;
|
|
70
|
-
margin-right: 12px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.s-caution-icon {
|
|
75
|
-
position: absolute;
|
|
76
|
-
right: -41px;
|
|
77
|
-
bottom: -34px;
|
|
78
|
-
color: $Caution_Icon;
|
|
79
|
-
opacity: 0.24;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.s-caution__page {
|
|
83
|
-
border: 1px solid $Red_Lighten-3;
|
|
84
|
-
}
|
|
85
|
-
.s-caution__title {
|
|
86
|
-
border-left: 8px solid $Red_Lighten-1;
|
|
87
|
-
.s-caution-title {
|
|
88
|
-
width: 100%;
|
|
89
|
-
height: 30px;
|
|
90
|
-
line-height: 30px;
|
|
91
|
-
color: $Red_Default;
|
|
92
|
-
font: {
|
|
93
|
-
size: 18px;
|
|
94
|
-
weight: 700;
|
|
95
|
-
}
|
|
96
|
-
margin: {
|
|
97
|
-
left: $caution-margin-left;
|
|
98
|
-
bottom: 16px;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<q-banner
|
|
3
|
+
dense
|
|
4
|
+
rounded
|
|
5
|
+
class="text-Grey_Darken-4 col relative-position s-caution"
|
|
6
|
+
:class="{
|
|
7
|
+
's-caution__title': title,
|
|
8
|
+
's-caution__page bg-Caution_Bg': !useModal,
|
|
9
|
+
'bg-Red_Lighten-5': useModal,
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<div v-if="title" class="s-caution-title">{{ title }}</div>
|
|
13
|
+
<ul>
|
|
14
|
+
<slot />
|
|
15
|
+
</ul>
|
|
16
|
+
<q-icon
|
|
17
|
+
v-if="!useModal"
|
|
18
|
+
class="s-caution-icon"
|
|
19
|
+
size="240px"
|
|
20
|
+
:name="cautionOutlineIcon"
|
|
21
|
+
/>
|
|
22
|
+
</q-banner>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import { defineComponent } from 'vue';
|
|
26
|
+
import { QBanner, QIcon } from 'quasar';
|
|
27
|
+
import { cautionOutlineIcon } from '../assets/icons.js';
|
|
28
|
+
|
|
29
|
+
export default defineComponent({
|
|
30
|
+
name: 'SCaution',
|
|
31
|
+
components: {
|
|
32
|
+
QBanner,
|
|
33
|
+
QIcon,
|
|
34
|
+
},
|
|
35
|
+
props: {
|
|
36
|
+
title: { type: String, default: '' },
|
|
37
|
+
useModal: { type: Boolean, default: false },
|
|
38
|
+
},
|
|
39
|
+
setup() {
|
|
40
|
+
return {
|
|
41
|
+
cautionOutlineIcon,
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style lang="scss">
|
|
48
|
+
@import "../css/quasar.variables.scss";
|
|
49
|
+
|
|
50
|
+
.s-caution {
|
|
51
|
+
padding: 20px 0;
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
max: {
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
ul {
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
margin-left: $caution-margin-left;
|
|
62
|
+
li {
|
|
63
|
+
list-style: none;
|
|
64
|
+
font-size: $default-font;
|
|
65
|
+
line-height: $double-line-height;
|
|
66
|
+
&:before {
|
|
67
|
+
content: "-";
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
line-height: 20px;
|
|
70
|
+
margin-right: 12px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.s-caution-icon {
|
|
75
|
+
position: absolute;
|
|
76
|
+
right: -41px;
|
|
77
|
+
bottom: -34px;
|
|
78
|
+
color: $Caution_Icon;
|
|
79
|
+
opacity: 0.24;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.s-caution__page {
|
|
83
|
+
border: 1px solid $Red_Lighten-3;
|
|
84
|
+
}
|
|
85
|
+
.s-caution__title {
|
|
86
|
+
border-left: 8px solid $Red_Lighten-1;
|
|
87
|
+
.s-caution-title {
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 30px;
|
|
90
|
+
line-height: 30px;
|
|
91
|
+
color: $Red_Default;
|
|
92
|
+
font: {
|
|
93
|
+
size: 18px;
|
|
94
|
+
weight: 700;
|
|
95
|
+
}
|
|
96
|
+
margin: {
|
|
97
|
+
left: $caution-margin-left;
|
|
98
|
+
bottom: 16px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
</style>
|