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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -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
- name: 'STab',
12
- components: {
13
- QRouteTab,
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 "../css/quasar.variables.scss";
28
+ @import '../css/quasar.variables.scss';
29
29
 
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;
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
- line-height: $default-line-height;
45
- font-weight: $default-font-weight;
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
- .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;
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
- .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%;
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>
@@ -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
- name: 'STab',
19
- components: {
20
- QTab,
21
- },
22
- props: {
23
- name: String,
24
- label: String,
25
- badge: String,
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 "../css/quasar.variables.scss";
35
+ @import '../css/quasar.variables.scss';
32
36
 
33
- .s-tab {
34
- padding: $tab-padding;
35
- background: $Grey_Lighten-5;
36
- color: $Grey_Default;
37
- min-height: 0;
38
- border: 1px solid $Grey_Lighten-2;
39
- border: {
40
- bottom: 1px solid $positive;
41
- radius: $button-border-radius $button-border-radius 0 0;
42
- }
43
- .q-tab__content {
44
- padding: 0;
45
- height: $default-content-height;
46
- min-width: 0;
47
- display: flex;
48
- align-items: center;
49
- flex: {
50
- wrap: nowrap;
51
- direction: row;
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
- height: $default-content-height;
54
- line-height: $default-line-height;
55
- font: {
56
- weight: $default-font-weight;
57
- size: $default-font;
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
- .s-tab.q-tab--active {
62
- border: 1px solid $positive;
63
- background: white;
64
- .q-tab__content {
65
- font-weight: $font-weight-lg;
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
- .s-tab-space {
69
- width: 4px;
70
- min-width: 4px;
71
- height: 100%;
72
- border-bottom: 1px solid $positive;
73
- &:last-of-type {
74
- width: 100%;
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>