quasar-ui-danx 0.3.4 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.cjs +37 -0
- package/dist/danx.es.js +5670 -5597
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +5 -5
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -2
- package/src/components/Navigation/NavigationMenu.vue +34 -19
- package/src/styles/index.scss +2 -1
- package/src/styles/transitions.scss +15 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "quasar-ui-danx",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.8",
|
4
4
|
"author": "Dan <dan@flytedesk.com>",
|
5
5
|
"description": "DanX Vue / Quasar component library",
|
6
6
|
"license": "MIT",
|
@@ -10,7 +10,8 @@
|
|
10
10
|
"scripts": {
|
11
11
|
"dev": "cd dev && quasar dev && cd ..",
|
12
12
|
"build": "vite build",
|
13
|
-
"preview": "vite preview"
|
13
|
+
"preview": "vite preview",
|
14
|
+
"postversion": "yarn build && npm publish && cd .. && git add ui && git commit -m \"v$npm_package_version\" && git tag \"v$npm_package_version\" && git push"
|
14
15
|
},
|
15
16
|
"repository": {
|
16
17
|
"type": "git",
|
@@ -27,6 +28,7 @@
|
|
27
28
|
"core-js": "^3.0.0",
|
28
29
|
"cssnano": "^4.1.10",
|
29
30
|
"eslint": "^8.5.0",
|
31
|
+
"eslint-plugin-import": "^2.29.1",
|
30
32
|
"eslint-plugin-vue": "^9.24.1",
|
31
33
|
"fs-extra": "^8.1.0",
|
32
34
|
"postcss": "^8.4.38",
|
@@ -1,29 +1,46 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
|
-
|
4
|
-
|
3
|
+
class="p-4"
|
4
|
+
:class="{ 'is-collapsed': collapsed }"
|
5
5
|
>
|
6
6
|
<div
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
:class="item.class || itemClass"
|
7
|
+
v-for="item in allowedItems"
|
8
|
+
:key="'nav-item-' + item.label"
|
9
|
+
class="nav-menu-item-box"
|
11
10
|
>
|
12
|
-
<div
|
13
|
-
|
11
|
+
<div
|
12
|
+
class="nav-menu-item flex flex-nowrap"
|
13
|
+
:class="item.class || itemClass"
|
14
|
+
@click="item.onClick"
|
15
|
+
>
|
16
|
+
<div
|
17
|
+
v-if="item.icon"
|
18
|
+
class="flex-shrink-0"
|
19
|
+
>
|
14
20
|
<component
|
15
|
-
|
16
|
-
|
17
|
-
|
21
|
+
:is="item.icon"
|
22
|
+
class="nav-icon"
|
23
|
+
:class="item.iconClass"
|
18
24
|
/>
|
19
25
|
</div>
|
20
|
-
<div
|
21
|
-
|
26
|
+
<div
|
27
|
+
v-if="!collapsed"
|
28
|
+
class="label ml-2"
|
29
|
+
:class="item.labelClass"
|
30
|
+
>
|
31
|
+
{{ item.label }}
|
32
|
+
</div>
|
33
|
+
<QTooltip
|
34
|
+
v-if="collapsed"
|
35
|
+
v-bind="item.tooltip"
|
36
|
+
>
|
37
|
+
{{ item.tooltip?.text || item.label }}
|
38
|
+
</QTooltip>
|
22
39
|
</div>
|
23
40
|
<QSeparator
|
24
|
-
|
25
|
-
|
26
|
-
|
41
|
+
v-if="item.separator"
|
42
|
+
:key="'separator-' + item.label"
|
43
|
+
class="my-2"
|
27
44
|
/>
|
28
45
|
</div>
|
29
46
|
</div>
|
@@ -52,12 +69,10 @@ const allowedItems = computed(() => props.items.filter((item) => !item.hidden));
|
|
52
69
|
|
53
70
|
<style lang="scss">
|
54
71
|
.nav-menu-item {
|
55
|
-
padding:
|
72
|
+
padding: 1em;
|
56
73
|
border-radius: 0.5em;
|
57
74
|
font-weight: bold;
|
58
75
|
font-size: 14px;
|
59
|
-
height: 3.8em;
|
60
|
-
width: 13em;
|
61
76
|
transition: all 150ms, color 0ms;
|
62
77
|
cursor: pointer;
|
63
78
|
|
package/src/styles/index.scss
CHANGED