shared-ritm 1.1.39 → 1.1.40
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 +60995 -51514
- package/dist/shared-ritm.umd.js +113 -108
- package/package.json +1 -1
- package/src/common/app-layout/AppLayout.vue +63 -62
- package/src/common/app-loader/index.vue +43 -43
package/package.json
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-layout :class="$style.layout" view="lHh LpR fFf">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<slot name="drawer"></slot>
|
|
8
|
-
<slot name="header"></slot>
|
|
9
|
-
<q-page-container :class="{ container: container }" @wheel="mouseMove">
|
|
10
|
-
<q-page>
|
|
11
|
-
<slot></slot>
|
|
12
|
-
|
|
13
|
-
<slot name="page-bottom"></slot>
|
|
14
|
-
</q-page>
|
|
15
|
-
</q-page-container>
|
|
16
|
-
|
|
17
|
-
<slot name="footer"></slot>
|
|
18
|
-
</q-layout>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script lang="ts" setup>
|
|
22
|
-
import { defineProps } from 'vue'
|
|
23
|
-
import AppLoader from '@/common/app-loader/index.vue'
|
|
24
|
-
interface LayoutProps {
|
|
25
|
-
logged: boolean
|
|
26
|
-
console?: boolean
|
|
27
|
-
container?: boolean
|
|
28
|
-
padding?: string
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const props = defineProps<LayoutProps>()
|
|
32
|
-
|
|
33
|
-
function mouseMove(e: any) {
|
|
34
|
-
const content = document.getElementById('content')
|
|
35
|
-
const scrollable = e.target
|
|
36
|
-
if (content && !scrollable.closest('#content')) {
|
|
37
|
-
content.scrollBy({ top: e.deltaY })
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style lang="scss" module>
|
|
43
|
-
.layout {
|
|
44
|
-
position: relative;
|
|
45
|
-
background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<q-layout :class="$style.layout" view="lHh LpR fFf">
|
|
3
|
+
<div v-if="true" :class="$style['loader-backdrop']">
|
|
4
|
+
<app-loader :loading="true" size="md" :thickness="3" :backdrop="true" />
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<slot name="drawer"></slot>
|
|
8
|
+
<slot name="header"></slot>
|
|
9
|
+
<q-page-container :class="{ container: container }" @wheel="mouseMove">
|
|
10
|
+
<q-page>
|
|
11
|
+
<slot></slot>
|
|
12
|
+
|
|
13
|
+
<slot name="page-bottom"></slot>
|
|
14
|
+
</q-page>
|
|
15
|
+
</q-page-container>
|
|
16
|
+
|
|
17
|
+
<slot name="footer"></slot>
|
|
18
|
+
</q-layout>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script lang="ts" setup>
|
|
22
|
+
import { defineProps } from 'vue'
|
|
23
|
+
import AppLoader from '@/common/app-loader/index.vue'
|
|
24
|
+
interface LayoutProps {
|
|
25
|
+
logged: boolean
|
|
26
|
+
console?: boolean
|
|
27
|
+
container?: boolean
|
|
28
|
+
padding?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const props = defineProps<LayoutProps>()
|
|
32
|
+
|
|
33
|
+
function mouseMove(e: any) {
|
|
34
|
+
const content = document.getElementById('content')
|
|
35
|
+
const scrollable = e.target
|
|
36
|
+
if (content && !scrollable.closest('#content')) {
|
|
37
|
+
content.scrollBy({ top: e.deltaY })
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style lang="scss" module>
|
|
43
|
+
.layout {
|
|
44
|
+
position: relative;
|
|
45
|
+
background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
|
|
46
|
+
}
|
|
47
|
+
.loader {
|
|
48
|
+
&-backdrop {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 0;
|
|
54
|
+
z-index: 9999;
|
|
55
|
+
}
|
|
56
|
+
&-spinner {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 50%;
|
|
59
|
+
left: 50%;
|
|
60
|
+
z-index: 2;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="{ 'loader-backdrop': backdrop && loading }">
|
|
3
|
-
<q-spinner v-if="loading" :size="size" class="loader-spinner" :thickness="thickness" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
interface Props {
|
|
9
|
-
backdrop: boolean
|
|
10
|
-
loading: boolean
|
|
11
|
-
thickness: number
|
|
12
|
-
size: string
|
|
13
|
-
}
|
|
14
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
-
backdrop: false,
|
|
16
|
-
loading: false,
|
|
17
|
-
thickness: 2,
|
|
18
|
-
size: 'md',
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
// <app-loader :loading="logged" :backdrop="true" />
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style scoped lang="scss">
|
|
25
|
-
.loader {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
&-spinner {
|
|
36
|
-
position: absolute;
|
|
37
|
-
color: #
|
|
38
|
-
top: 44%;
|
|
39
|
-
left: 48%;
|
|
40
|
-
z-index: 9999;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="{ 'loader-backdrop': backdrop && loading }">
|
|
3
|
+
<q-spinner v-if="loading" :size="size" class="loader-spinner" :thickness="thickness" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
interface Props {
|
|
9
|
+
backdrop: boolean
|
|
10
|
+
loading: boolean
|
|
11
|
+
thickness: number
|
|
12
|
+
size: string
|
|
13
|
+
}
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
backdrop: false,
|
|
16
|
+
loading: false,
|
|
17
|
+
thickness: 2,
|
|
18
|
+
size: 'md',
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
// <app-loader :loading="logged" :backdrop="true" />
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="scss">
|
|
25
|
+
.loader {
|
|
26
|
+
//&-backdrop {
|
|
27
|
+
// top: 0;
|
|
28
|
+
// bottom: 0;
|
|
29
|
+
// left: 0;
|
|
30
|
+
// right: 0;
|
|
31
|
+
// background-color: rgba(255, 255, 255, 0.1);
|
|
32
|
+
// position: absolute;
|
|
33
|
+
// z-index: 9999;
|
|
34
|
+
//}
|
|
35
|
+
&-spinner {
|
|
36
|
+
position: absolute;
|
|
37
|
+
color: #eff1fd;
|
|
38
|
+
top: 44%;
|
|
39
|
+
left: 48%;
|
|
40
|
+
z-index: 9999;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</style>
|