shared-ritm 1.0.76 → 1.0.77
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.css +1 -1
- package/dist/shared-ritm.es.js +1168 -1195
- package/dist/shared-ritm.umd.js +7 -11
- package/package.json +2 -3
- package/src/common/app-sidebar/components/SidebarMenu.vue +1 -15
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +7 -1
- package/src/main.ts +0 -2
- package/src/router/index.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shared-ritm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.77",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
"@vueuse/core": "^10.1.2",
|
|
32
32
|
"axios": "^1.7.7",
|
|
33
33
|
"quasar": "^2.17.1",
|
|
34
|
-
"vue": "^3.5.12"
|
|
35
|
-
"vue-router": "^4.0.3"
|
|
34
|
+
"vue": "^3.5.12"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@quasar/vite-plugin": "^1.8.0",
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="$style.wrapper">
|
|
3
|
-
<sidebar-menu-item
|
|
4
|
-
v-for="(item, index) in menuItems"
|
|
5
|
-
:key="index"
|
|
6
|
-
:item="item"
|
|
7
|
-
:minify="minify"
|
|
8
|
-
@go-to-route="goToRoute"
|
|
9
|
-
/>
|
|
3
|
+
<sidebar-menu-item v-for="(item, index) in menuItems" :key="index" :item="item" :minify="minify" />
|
|
10
4
|
</div>
|
|
11
5
|
</template>
|
|
12
6
|
|
|
13
7
|
<script lang="ts" setup>
|
|
14
8
|
import { defineProps } from 'vue'
|
|
15
9
|
import SidebarMenuItem from './SidebarMenuItem.vue'
|
|
16
|
-
import { useRouter } from 'vue-router'
|
|
17
10
|
|
|
18
11
|
interface Props {
|
|
19
12
|
menuItems?: any[]
|
|
@@ -21,13 +14,6 @@ interface Props {
|
|
|
21
14
|
main: boolean
|
|
22
15
|
}
|
|
23
16
|
|
|
24
|
-
const router = useRouter()
|
|
25
|
-
|
|
26
|
-
const goToRoute = (to: string) => {
|
|
27
|
-
if (!props.main) window.location.href = to
|
|
28
|
-
router.push({ path: to })
|
|
29
|
-
}
|
|
30
|
-
|
|
31
17
|
const props = defineProps<Props>()
|
|
32
18
|
</script>
|
|
33
19
|
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
:active="isRouteActive(item)"
|
|
34
34
|
active-class="menu-active"
|
|
35
35
|
clickable
|
|
36
|
-
|
|
36
|
+
:to="!main ? item.to : ''"
|
|
37
|
+
@click="goToRoute(item.to)"
|
|
37
38
|
>
|
|
38
39
|
<q-tooltip
|
|
39
40
|
v-if="minify"
|
|
@@ -60,6 +61,7 @@ import AppIcon from '@/common/app-icon/AppIcon.vue'
|
|
|
60
61
|
|
|
61
62
|
interface Props {
|
|
62
63
|
minify?: boolean
|
|
64
|
+
main: boolean
|
|
63
65
|
item: {
|
|
64
66
|
name: string
|
|
65
67
|
label: string
|
|
@@ -77,6 +79,10 @@ const test = reactive({
|
|
|
77
79
|
'repairs-icon': true,
|
|
78
80
|
})
|
|
79
81
|
|
|
82
|
+
const goToRoute = (to: string) => {
|
|
83
|
+
if (!props.main) window.location.href = to
|
|
84
|
+
}
|
|
85
|
+
|
|
80
86
|
const isRouteActive = (item: any) => {
|
|
81
87
|
return (item.to === '' && item.items.find((x: any) => x.to === '/repairs/')) || item.to === '/repairs/'
|
|
82
88
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createApp } from 'vue'
|
|
2
2
|
import { Quasar } from 'quasar'
|
|
3
|
-
import router from './router'
|
|
4
3
|
import '@quasar/extras/material-icons/material-icons.css'
|
|
5
4
|
import 'quasar/src/css/index.sass'
|
|
6
5
|
|
|
@@ -12,5 +11,4 @@ const app = createApp(App)
|
|
|
12
11
|
|
|
13
12
|
//@ts-ignore
|
|
14
13
|
app.use(Quasar, { plugins: [] })
|
|
15
|
-
app.use(router)
|
|
16
14
|
app.mount('#app')
|