quasar-ui-sellmate-ui-kit 3.10.2 → 3.10.3
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/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 +244 -276
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SRouteTab.vue +49 -49
- package/src/components/STab.vue +108 -55
- package/src/vue-plugin.js +0 -2
- package/src/components/STabSub.vue +0 -72
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-route-tab :name="name" :label="label" :to="to" :ripple="false" exact class="s-tab" />
|
|
2
|
+
<q-route-tab :name="name" :label="label" :to="to" :ripple="false" exact class="s-route-tab" />
|
|
3
3
|
<div class="s-tab-space"></div>
|
|
4
4
|
</template>
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
|
-
import { defineComponent } from 'vue';
|
|
8
|
-
import { QRouteTab } from 'quasar';
|
|
7
|
+
import { defineComponent } from 'vue';
|
|
8
|
+
import { QRouteTab } from 'quasar';
|
|
9
9
|
|
|
10
|
-
export default defineComponent({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
props: {
|
|
16
|
-
name: String,
|
|
17
|
-
label: String,
|
|
18
|
-
to: [String, Object],
|
|
19
|
-
exact: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true,
|
|
10
|
+
export default defineComponent({
|
|
11
|
+
name: 'STab',
|
|
12
|
+
components: {
|
|
13
|
+
QRouteTab,
|
|
22
14
|
},
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
props: {
|
|
16
|
+
name: String,
|
|
17
|
+
label: String,
|
|
18
|
+
to: [String, Object],
|
|
19
|
+
exact: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<style lang="scss">
|
|
28
|
-
@import
|
|
28
|
+
@import '../css/quasar.variables.scss';
|
|
29
29
|
|
|
30
|
-
.s-route-tab {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
height: $default-content-height;
|
|
41
|
-
min-width: 0;
|
|
42
|
-
.q-tab__label {
|
|
30
|
+
.s-route-tab {
|
|
31
|
+
padding: $tab-padding;
|
|
32
|
+
border-radius: $button-border-radius $button-border-radius 0 0;
|
|
33
|
+
border: 1px solid $Grey_Lighten-2;
|
|
34
|
+
border-bottom: 1px solid $positive;
|
|
35
|
+
background: $Grey_Lighten-5;
|
|
36
|
+
color: $Grey_Default;
|
|
37
|
+
min-height: 0;
|
|
38
|
+
.q-tab__content {
|
|
39
|
+
padding: 0;
|
|
43
40
|
height: $default-content-height;
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
min-width: 0;
|
|
42
|
+
.q-tab__label {
|
|
43
|
+
height: $default-content-height;
|
|
44
|
+
line-height: $default-line-height;
|
|
45
|
+
font-weight: $default-font-weight;
|
|
46
|
+
}
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
.s-route-tab.q-tab--active {
|
|
50
|
+
border: 1px solid $positive;
|
|
51
|
+
background: white;
|
|
52
|
+
.q-tab__content {
|
|
53
|
+
.q-tab__label {
|
|
54
|
+
font-weight: $font-weight-lg;
|
|
55
|
+
}
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
.s-tab-space {
|
|
59
|
+
width: 4px;
|
|
60
|
+
min-width: 4px;
|
|
61
|
+
height: 100%;
|
|
62
|
+
border-bottom: 1px solid $positive;
|
|
63
|
+
&:last-of-type {
|
|
64
|
+
width: 100%;
|
|
65
|
+
}
|
|
65
66
|
}
|
|
66
|
-
}
|
|
67
67
|
</style>
|
package/src/components/STab.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-tab :name="name" :ripple="false" :class="$attrs.class" class="s-tab">
|
|
2
|
+
<q-tab :name="name" :ripple="false" :class="[$attrs.class, `s-tab__${type}`]" class="s-tab">
|
|
3
3
|
<template #default>
|
|
4
4
|
{{ label }}
|
|
5
5
|
<span class="q-ml-xs badge" v-if="badge">
|
|
@@ -7,71 +7,124 @@
|
|
|
7
7
|
</span>
|
|
8
8
|
</template>
|
|
9
9
|
</q-tab>
|
|
10
|
-
<div class="s-tab-space"></div>
|
|
10
|
+
<div class="s-tab-space" :class="`s-tab-${type}-space`"></div>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
-
import { defineComponent } from 'vue';
|
|
15
|
-
import { QTab } from 'quasar';
|
|
14
|
+
import { defineComponent } from 'vue';
|
|
15
|
+
import { QTab } from 'quasar';
|
|
16
16
|
|
|
17
|
-
export default defineComponent({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
export default defineComponent({
|
|
18
|
+
name: 'STab',
|
|
19
|
+
components: {
|
|
20
|
+
QTab,
|
|
21
|
+
},
|
|
22
|
+
props: {
|
|
23
|
+
name: String,
|
|
24
|
+
label: String,
|
|
25
|
+
badge: String,
|
|
26
|
+
type: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: 'main',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
});
|
|
28
32
|
</script>
|
|
29
33
|
|
|
30
34
|
<style lang="scss">
|
|
31
|
-
@import
|
|
35
|
+
@import '../css/quasar.variables.scss';
|
|
32
36
|
|
|
33
|
-
.s-tab {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
.s-tab {
|
|
38
|
+
&.s-tab__main {
|
|
39
|
+
padding: $tab-padding;
|
|
40
|
+
background: $Grey_Lighten-5;
|
|
41
|
+
color: $Grey_Default;
|
|
42
|
+
min-height: 0;
|
|
43
|
+
border: 1px solid $Grey_Lighten-2;
|
|
44
|
+
border: {
|
|
45
|
+
bottom: 1px solid $positive;
|
|
46
|
+
radius: $button-border-radius $button-border-radius 0 0;
|
|
47
|
+
}
|
|
48
|
+
.q-tab__content {
|
|
49
|
+
padding: 0;
|
|
50
|
+
height: $default-content-height;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
flex: {
|
|
55
|
+
wrap: nowrap;
|
|
56
|
+
direction: row;
|
|
57
|
+
}
|
|
58
|
+
height: $default-content-height;
|
|
59
|
+
line-height: $default-line-height;
|
|
60
|
+
font: {
|
|
61
|
+
weight: $default-font-weight;
|
|
62
|
+
size: $default-font;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
52
65
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
&.s-tab__sub {
|
|
67
|
+
padding: 0;
|
|
68
|
+
color: $Grey_Darken-5;
|
|
69
|
+
min-height: 20px !important;
|
|
70
|
+
& + .s-tab-sub-space {
|
|
71
|
+
width: 32px;
|
|
72
|
+
}
|
|
73
|
+
.q-tab__content {
|
|
74
|
+
padding: 0;
|
|
75
|
+
padding-bottom: 4px;
|
|
76
|
+
height: $default-content-height;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
flex: {
|
|
81
|
+
wrap: nowrap;
|
|
82
|
+
direction: row;
|
|
83
|
+
}
|
|
84
|
+
height: $default-content-height;
|
|
85
|
+
line-height: $default-line-height;
|
|
86
|
+
font: {
|
|
87
|
+
weight: $default-font-weight;
|
|
88
|
+
size: $default-font;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.q-focus-helper {
|
|
92
|
+
display: none !important;
|
|
93
|
+
}
|
|
58
94
|
}
|
|
59
95
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
96
|
+
.s-tab.q-tab--active {
|
|
97
|
+
&.s-tab-main {
|
|
98
|
+
border: 1px solid $positive;
|
|
99
|
+
background: white;
|
|
100
|
+
.q-tab__content {
|
|
101
|
+
font-weight: $font-weight-lg;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
&.s-tab-sub {
|
|
105
|
+
.q-tab__content {
|
|
106
|
+
font-weight: $font-weight-lg;
|
|
107
|
+
border-bottom: 1px solid $positive;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
66
110
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
111
|
+
.s-tab-space {
|
|
112
|
+
&.s-tab-main-space {
|
|
113
|
+
width: 4px;
|
|
114
|
+
min-width: 4px;
|
|
115
|
+
height: 100%;
|
|
116
|
+
border-bottom: 1px solid $positive;
|
|
117
|
+
&:last-of-type {
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
&.s-tab-sub-space {
|
|
122
|
+
width: 0px;
|
|
123
|
+
height: 100%;
|
|
124
|
+
border: none;
|
|
125
|
+
&:last-of-type {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
75
129
|
}
|
|
76
|
-
}
|
|
77
130
|
</style>
|
package/src/vue-plugin.js
CHANGED
|
@@ -28,7 +28,6 @@ import SSelectGroupCheckbox from './components/SSelectGroupCheckbox.vue';
|
|
|
28
28
|
import SSelectCustom from './components/SSelectCustom.vue';
|
|
29
29
|
import SSelectSearchAutoComplete from './components/SSelectSearchAutoComplete.vue';
|
|
30
30
|
import STab from './components/STab.vue';
|
|
31
|
-
import SSubTab from './components/STabSub.vue';
|
|
32
31
|
import STable from './components/STable.vue';
|
|
33
32
|
import STabs from './components/STabs.vue';
|
|
34
33
|
import STimePicker from './components/STimePicker.vue';
|
|
@@ -74,7 +73,6 @@ function install(app) {
|
|
|
74
73
|
app.component('s-select-group-checkbox', SSelectGroupCheckbox);
|
|
75
74
|
app.component('s-select-search-auto-complete', SSelectSearchAutoComplete);
|
|
76
75
|
app.component('s-tab', STab);
|
|
77
|
-
app.component('s-sub-tab', SSubTab);
|
|
78
76
|
app.component('s-route-tab', SRouteTab);
|
|
79
77
|
app.component('s-tabs', STabs);
|
|
80
78
|
app.component('s-table', STable);
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-tab :name="name" :ripple="false" :class="$attrs.class" class="s-sub-tab">
|
|
3
|
-
<template #default>
|
|
4
|
-
{{ label }}
|
|
5
|
-
</template>
|
|
6
|
-
</q-tab>
|
|
7
|
-
<div class="s-sub-tab-space"></div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { defineComponent } from 'vue';
|
|
12
|
-
import { QTab } from 'quasar';
|
|
13
|
-
|
|
14
|
-
export default defineComponent({
|
|
15
|
-
name: 'SSubTab',
|
|
16
|
-
components: {
|
|
17
|
-
QTab,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
name: String,
|
|
21
|
-
label: String,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style lang="scss">
|
|
27
|
-
@import '../css/quasar.variables.scss';
|
|
28
|
-
|
|
29
|
-
.s-sub-tab {
|
|
30
|
-
& + .s-sub-tab-space {
|
|
31
|
-
width: 32px;
|
|
32
|
-
}
|
|
33
|
-
padding: 0;
|
|
34
|
-
color: $Grey_Darken-5;
|
|
35
|
-
min-height: 20px !important;
|
|
36
|
-
.q-tab__content {
|
|
37
|
-
padding: 0;
|
|
38
|
-
padding-bottom: 4px;
|
|
39
|
-
height: $default-content-height;
|
|
40
|
-
min-width: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
flex: {
|
|
44
|
-
wrap: nowrap;
|
|
45
|
-
direction: row;
|
|
46
|
-
}
|
|
47
|
-
height: $default-content-height;
|
|
48
|
-
line-height: $default-line-height;
|
|
49
|
-
font: {
|
|
50
|
-
weight: $default-font-weight;
|
|
51
|
-
size: $default-font;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.q-focus-helper {
|
|
55
|
-
display: none !important;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.s-sub-tab.q-tab--active {
|
|
59
|
-
.q-tab__content {
|
|
60
|
-
font-weight: $font-weight-lg;
|
|
61
|
-
border-bottom: 1px solid $positive;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.s-sub-tab-space {
|
|
65
|
-
width: 0px;
|
|
66
|
-
height: 100%;
|
|
67
|
-
border: none;
|
|
68
|
-
&:last-of-type {
|
|
69
|
-
width: 100%;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
</style>
|