quasar-ui-sellmate-ui-kit 3.3.4 → 3.4.0
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 +291 -245
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SBadge.vue +49 -0
- package/src/vue-plugin.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-badge
|
|
3
|
+
class="s-badge"
|
|
4
|
+
:label="configs[status].label"
|
|
5
|
+
:color="configs[status].color"
|
|
6
|
+
:text-color="configs[status].textColor"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { defineComponent } from 'vue';
|
|
12
|
+
import { QBadge } from 'quasar';
|
|
13
|
+
|
|
14
|
+
export default defineComponent({
|
|
15
|
+
name: 'SBadge',
|
|
16
|
+
components: { QBadge },
|
|
17
|
+
props: {
|
|
18
|
+
status: String,
|
|
19
|
+
configs: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({
|
|
22
|
+
success: {
|
|
23
|
+
label: '성공',
|
|
24
|
+
color: 'Blue_C_Lighten-6',
|
|
25
|
+
textColor: 'positive',
|
|
26
|
+
},
|
|
27
|
+
fail: {
|
|
28
|
+
label: '실패',
|
|
29
|
+
color: 'Red_Lighten-6',
|
|
30
|
+
textColor: 'Red_Lighten-1',
|
|
31
|
+
},
|
|
32
|
+
total: {
|
|
33
|
+
label: '전체',
|
|
34
|
+
color: 'Grey_Lighten-5',
|
|
35
|
+
textColor: 'Grey_Darken-1',
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped lang="scss">
|
|
44
|
+
.s-badge {
|
|
45
|
+
padding: 1px 8px;
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
package/src/vue-plugin.js
CHANGED
|
@@ -39,10 +39,12 @@ import SDateRange from './components/SDateRange.vue';
|
|
|
39
39
|
import SDate from './components/SDate.vue';
|
|
40
40
|
import SDateAutoRangePicker from './components/SDateAutoRangePicker.vue';
|
|
41
41
|
import Directive from './directives/Directive';
|
|
42
|
+
import SBadge from './components/SBadge.vue';
|
|
42
43
|
|
|
43
44
|
const version = __UI_VERSION__;
|
|
44
45
|
|
|
45
46
|
function install(app) {
|
|
47
|
+
app.component('s-badge', SBadge)
|
|
46
48
|
app.component('s-breadcrumbs', SBreadcrumbs);
|
|
47
49
|
app.component('s-button', SButton);
|
|
48
50
|
app.component('s-button-group', SButtonGroup);
|