@flyanra/vue-core 0.4.0 → 0.4.2
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/README.md +176 -176
- package/package.json +137 -138
- package/src/components/basic/fly-button/FlyButton.element.scss +3 -3
- package/src/components/basic/fly-button/FlyButton.mixins.scss +58 -58
- package/src/components/basic/fly-button/FlyButton.types.ts +29 -29
- package/src/components/basic/fly-button/FlyButton.vue +180 -180
- package/src/components/basic/fly-button/index.ts +11 -11
- package/src/components/basic/index.ts +2 -2
- package/src/components/basic/typography/FlyCollapseTitleRenderer.vue +46 -46
- package/src/components/feedback/index.ts +2 -2
- package/src/components/feedback/tooltip/FlyInfoTooltip.vue +48 -48
- package/src/components/feedback/tooltip/FlyTooltip.element.scss +4 -4
- package/src/components/feedback/tooltip/FlyTooltip.types.ts +5 -5
- package/src/components/feedback/tooltip/FlyTooltip.vue +60 -60
- package/src/components/feedback/tooltip/index.ts +6 -6
- package/src/components/form/form.utils.ts +57 -57
- package/src/components/form/input-renderers/boolean/FlyBoolean.scss +1 -1
- package/src/components/form/input-renderers/boolean/FlyBoolean.types.ts +16 -16
- package/src/components/form/input-renderers/boolean/FlyBoolean.vue +35 -35
- package/src/components/form/input-renderers/date-time/FlyDateTime.scss +1 -1
- package/src/components/form/input-renderers/date-time/FlyDateTime.types.ts +21 -21
- package/src/components/form/input-renderers/date-time/FlyDateTime.vue +85 -85
- package/src/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.scss +4 -4
- package/src/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.vue +48 -48
- package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.types.ts +3 -3
- package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.utils.ts +246 -246
- package/src/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.vue +75 -75
- package/src/components/form/input-renderers/form-schema-renderer/UseFormSchemaRenderer.ts +97 -97
- package/src/components/form/input-renderers/form-schema.types.ts +95 -95
- package/src/components/form/input-renderers/input-renderer/FlyInputRenderer.vue +49 -49
- package/src/components/form/input-renderers/input-renderer.types.ts +49 -49
- package/src/components/form/input-renderers/input-renderer.utils.ts +18 -18
- package/src/components/form/input-renderers/number/FlyNumber.scss +1 -1
- package/src/components/form/input-renderers/number/FlyNumber.types.ts +13 -13
- package/src/components/form/input-renderers/number/FlyNumber.utils.ts +6 -6
- package/src/components/form/input-renderers/number/FlyNumber.vue +48 -48
- package/src/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.types.ts +15 -15
- package/src/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.vue +99 -99
- package/src/components/form/input-renderers/select/FlySelect.scss +1 -1
- package/src/components/form/input-renderers/select/FlySelect.types.ts +25 -25
- package/src/components/form/input-renderers/select/FlySelect.utils.ts +37 -37
- package/src/components/form/input-renderers/select/FlySelect.vue +48 -48
- package/src/components/form/input-renderers/text/FlyText.scss +1 -1
- package/src/components/form/input-renderers/text/FlyText.types.ts +20 -20
- package/src/components/form/input-renderers/text/FlyText.vue +56 -56
- package/src/components/form/input-renderers/value-unit/FlyValueUnit.scss +2 -2
- package/src/components/form/input-renderers/value-unit/FlyValueUnit.types.ts +28 -28
- package/src/components/form/input-renderers/value-unit/FlyValueUnit.vue +101 -101
- package/src/components/form/input-validators.ts +121 -121
- package/src/components/general/fly-icon/FlyIcon.types.ts +12 -12
- package/src/components/general/fly-icon/FlyIcon.vue +24 -24
- package/src/components/general/fly-icon/index.ts +6 -6
- package/src/components/general/index.ts +2 -2
- package/src/components/index.ts +5 -5
- package/src/components/navigation/fly-steps/FlySteps.element.scss +100 -100
- package/src/components/navigation/fly-steps/FlySteps.types.ts +10 -10
- package/src/components/navigation/fly-steps/FlySteps.vue +30 -30
- package/src/components/navigation/fly-steps/index.ts +6 -6
- package/src/components/navigation/index.ts +2 -2
- package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.element.scss +2 -2
- package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.types.ts +8 -8
- package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.vue +46 -46
- package/src/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebarItem.vue +55 -55
- package/src/components/navigation/menu/fly-mini-sidebar/index.ts +6 -6
- package/src/components/navigation/menu/fly-sidebar/FlySidebar.element.scss +9 -9
- package/src/components/navigation/menu/fly-sidebar/FlySidebar.types.ts +36 -36
- package/src/components/navigation/menu/fly-sidebar/FlySidebar.vue +150 -150
- package/src/components/navigation/menu/fly-sidebar/FlySidebarNode.vue +47 -47
- package/src/components/navigation/menu/fly-sidebar/index.ts +12 -12
- package/src/components/navigation/menu/index.ts +5 -5
- package/src/index.ts +1 -1
- package/src/styles/_scss-tokens.scss +76 -76
- package/src/styles/core/animations.scss +40 -40
- package/src/styles/core/index.scss +36 -36
- package/src/styles/core/scrollbar.scss +36 -36
- package/src/styles/core/typography-utils.scss +9 -9
- package/src/styles/element/common.scss +56 -56
- package/src/styles/element/dark.scss +38 -38
- package/src/styles/element/mixins/collapse.scss +61 -61
- package/src/styles/element/mixins/dialog.scss +101 -101
- package/src/styles/element/overrides/alerts.scss +28 -28
- package/src/styles/element/overrides/badge.scss +6 -6
- package/src/styles/element/overrides/cascader.scss +2 -2
- package/src/styles/element/overrides/collapse.scss +2 -2
- package/src/styles/element/overrides/date-time.scss +11 -11
- package/src/styles/element/overrides/dialog.scss +2 -2
- package/src/styles/element/overrides/dropdown.scss +11 -11
- package/src/styles/element/overrides/form.scss +105 -105
- package/src/styles/element/overrides/message-box.scss +2 -2
- package/src/styles/element/overrides/message.scss +39 -39
- package/src/styles/element/overrides/notification.scss +46 -46
- package/src/styles/element/overrides/radio.scss +2 -2
- package/src/styles/element/overrides/segmented.scss +17 -17
- package/src/styles/element/overrides/select.scss +9 -9
- package/src/styles/element/overrides/table.scss +2 -2
- package/src/styles/element/overrides/tag.scss +19 -19
- package/src/styles/index.d.ts +1 -1
- package/src/styles/index.scss +5 -5
- package/src/styles/mixins/shadows.scss +15 -15
- package/src/styles/tokens.scss +84 -83
- package/dist/types/components/basic/fly-button/FlyButton.types.d.ts +0 -25
- package/dist/types/components/basic/fly-button/FlyButton.vue.d.ts +0 -26
- package/dist/types/components/basic/fly-button/index.d.ts +0 -4
- package/dist/types/components/basic/index.d.ts +0 -2
- package/dist/types/components/basic/typography/FlyCollapseTitleRenderer.vue.d.ts +0 -16
- package/dist/types/components/feedback/index.d.ts +0 -2
- package/dist/types/components/feedback/tooltip/FlyInfoTooltip.vue.d.ts +0 -36
- package/dist/types/components/feedback/tooltip/FlyTooltip.types.d.ts +0 -4
- package/dist/types/components/feedback/tooltip/FlyTooltip.vue.d.ts +0 -17
- package/dist/types/components/feedback/tooltip/index.d.ts +0 -4
- package/dist/types/components/form/form.utils.d.ts +0 -10
- package/dist/types/components/form/index.d.ts +0 -1
- package/dist/types/components/form/input-renderers/boolean/FlyBoolean.types.d.ts +0 -14
- package/dist/types/components/form/input-renderers/boolean/FlyBoolean.vue.d.ts +0 -15
- package/dist/types/components/form/input-renderers/date-time/FlyDateTime.types.d.ts +0 -20
- package/dist/types/components/form/input-renderers/date-time/FlyDateTime.vue.d.ts +0 -19
- package/dist/types/components/form/input-renderers/form-item-renderer/FlyFormItemRenderer.vue.d.ts +0 -19
- package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.types.d.ts +0 -2
- package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.utils.d.ts +0 -23
- package/dist/types/components/form/input-renderers/form-schema-renderer/FlyFormSchemaRenderer.vue.d.ts +0 -17
- package/dist/types/components/form/input-renderers/form-schema-renderer/UseFormSchemaRenderer.d.ts +0 -25
- package/dist/types/components/form/input-renderers/form-schema.types.d.ts +0 -77
- package/dist/types/components/form/input-renderers/input-renderer/FlyInputRenderer.vue.d.ts +0 -18
- package/dist/types/components/form/input-renderers/input-renderer.types.d.ts +0 -30
- package/dist/types/components/form/input-renderers/input-renderer.utils.d.ts +0 -2
- package/dist/types/components/form/input-renderers/number/FlyNumber.types.d.ts +0 -13
- package/dist/types/components/form/input-renderers/number/FlyNumber.utils.d.ts +0 -1
- package/dist/types/components/form/input-renderers/number/FlyNumber.vue.d.ts +0 -19
- package/dist/types/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.types.d.ts +0 -13
- package/dist/types/components/form/input-renderers/regional-tenant-form-renderer/FlyRegionalTenantFormRenderer.vue.d.ts +0 -20
- package/dist/types/components/form/input-renderers/select/FlySelect.types.d.ts +0 -22
- package/dist/types/components/form/input-renderers/select/FlySelect.utils.d.ts +0 -2
- package/dist/types/components/form/input-renderers/select/FlySelect.vue.d.ts +0 -19
- package/dist/types/components/form/input-renderers/text/FlyText.types.d.ts +0 -18
- package/dist/types/components/form/input-renderers/text/FlyText.vue.d.ts +0 -19
- package/dist/types/components/form/input-renderers/value-unit/FlyValueUnit.types.d.ts +0 -23
- package/dist/types/components/form/input-renderers/value-unit/FlyValueUnit.vue.d.ts +0 -19
- package/dist/types/components/form/input-validators.d.ts +0 -13
- package/dist/types/components/general/fly-icon/FlyIcon.types.d.ts +0 -7
- package/dist/types/components/general/fly-icon/FlyIcon.vue.d.ts +0 -6
- package/dist/types/components/general/fly-icon/index.d.ts +0 -4
- package/dist/types/components/general/index.d.ts +0 -2
- package/dist/types/components/index.d.ts +0 -4
- package/dist/types/components/navigation/fly-steps/FlySteps.types.d.ts +0 -9
- package/dist/types/components/navigation/fly-steps/FlySteps.vue.d.ts +0 -9
- package/dist/types/components/navigation/fly-steps/index.d.ts +0 -4
- package/dist/types/components/navigation/index.d.ts +0 -2
- package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.types.d.ts +0 -7
- package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebar.vue.d.ts +0 -8
- package/dist/types/components/navigation/menu/fly-mini-sidebar/FlyMiniSidebarItem.vue.d.ts +0 -7
- package/dist/types/components/navigation/menu/fly-mini-sidebar/index.d.ts +0 -4
- package/dist/types/components/navigation/menu/fly-sidebar/FlySidebar.types.d.ts +0 -29
- package/dist/types/components/navigation/menu/fly-sidebar/FlySidebar.vue.d.ts +0 -8
- package/dist/types/components/navigation/menu/fly-sidebar/FlySidebarNode.vue.d.ts +0 -7
- package/dist/types/components/navigation/menu/fly-sidebar/index.d.ts +0 -4
- package/dist/types/components/navigation/menu/index.d.ts +0 -4
- package/dist/types/composables/UseLocaleInjector.d.ts +0 -6
- package/dist/types/index.d.ts +0 -1
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/utils/pure-functions.d.ts +0 -1
- package/dist/types/utils/validators.d.ts +0 -9
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<i class="fly-icon">
|
|
3
|
-
<svg-icon v-if="iconType === 'mdi'" :type="iconType" :path="icon as string" />
|
|
4
|
-
<component :is="icon" v-else-if="iconType === 'ri'" />
|
|
5
|
-
</i>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script setup lang="ts">
|
|
9
|
-
import { computed } from 'vue'
|
|
10
|
-
|
|
11
|
-
import SvgIcon from '@jamescoyle/vue-icon'
|
|
12
|
-
|
|
13
|
-
import type { T_FlyIconProps } from './FlyIcon.types.ts'
|
|
14
|
-
|
|
15
|
-
type Props = T_FlyIconProps
|
|
16
|
-
|
|
17
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
18
|
-
type: 'mdi'
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const iconType = computed(() => props.type || 'mdi')
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss" scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<i class="fly-icon">
|
|
3
|
+
<svg-icon v-if="iconType === 'mdi'" :type="iconType" :path="icon as string" />
|
|
4
|
+
<component :is="icon" v-else-if="iconType === 'ri'" />
|
|
5
|
+
</i>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { computed } from 'vue'
|
|
10
|
+
|
|
11
|
+
import SvgIcon from '@jamescoyle/vue-icon'
|
|
12
|
+
|
|
13
|
+
import type { T_FlyIconProps } from './FlyIcon.types.ts'
|
|
14
|
+
|
|
15
|
+
type Props = T_FlyIconProps
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
18
|
+
type: 'mdi'
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const iconType = computed(() => props.type || 'mdi')
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FlyIcon from './FlyIcon.vue'
|
|
2
|
-
|
|
3
|
-
export default FlyIcon
|
|
4
|
-
export { FlyIcon }
|
|
5
|
-
|
|
6
|
-
export type { T_FlyIconProps } from './FlyIcon.types.ts'
|
|
1
|
+
import FlyIcon from './FlyIcon.vue'
|
|
2
|
+
|
|
3
|
+
export default FlyIcon
|
|
4
|
+
export { FlyIcon }
|
|
5
|
+
|
|
6
|
+
export type { T_FlyIconProps } from './FlyIcon.types.ts'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as FlyIcon } from './fly-icon'
|
|
2
|
-
export type * from './fly-icon'
|
|
1
|
+
export { default as FlyIcon } from './fly-icon'
|
|
2
|
+
export type * from './fly-icon'
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './navigation'
|
|
2
|
-
|
|
3
|
-
export * from './basic'
|
|
4
|
-
export * from './feedback'
|
|
5
|
-
export * from './general'
|
|
1
|
+
export * from './navigation'
|
|
2
|
+
|
|
3
|
+
export * from './basic'
|
|
4
|
+
export * from './feedback'
|
|
5
|
+
export * from './general'
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
@use 'element-plus/theme-chalk/src/steps.scss' as *;
|
|
2
|
-
@use 'element-plus/theme-chalk/src/step.scss' as *;
|
|
3
|
-
|
|
4
|
-
.el-steps {
|
|
5
|
-
&.el-steps--horizontal {
|
|
6
|
-
.el-step__head {
|
|
7
|
-
.el-step__line {
|
|
8
|
-
height: 1px;
|
|
9
|
-
top: 15px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.el-step__icon {
|
|
13
|
-
width: 30px;
|
|
14
|
-
height: 30px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.is-process {
|
|
18
|
-
border-color: var(--primary);
|
|
19
|
-
|
|
20
|
-
.el-step__icon {
|
|
21
|
-
&.is-text {
|
|
22
|
-
background-color: var(--anra-primary);
|
|
23
|
-
color: var(--anra-black);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.is-success {
|
|
29
|
-
border-color: var(--anra-primary-accent);
|
|
30
|
-
|
|
31
|
-
.el-step__icon {
|
|
32
|
-
&.is-text {
|
|
33
|
-
background-color: var(--anra-primary-accent);
|
|
34
|
-
color: var(--anra-black);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.el-step__main {
|
|
41
|
-
.el-step__title {
|
|
42
|
-
font-size: 13px;
|
|
43
|
-
line-height: normal;
|
|
44
|
-
padding-top: 0.25rem;
|
|
45
|
-
|
|
46
|
-
.clickable {
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
text-decoration: underline;
|
|
49
|
-
border-bottom: 1px solid transparent;
|
|
50
|
-
|
|
51
|
-
&:hover {
|
|
52
|
-
color: var(--anra-primary);
|
|
53
|
-
border-color: transparent;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.is-process,
|
|
58
|
-
&.is-success {
|
|
59
|
-
color: var(--default-text-color);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.is-process {
|
|
63
|
-
text-decoration: none;
|
|
64
|
-
font-weight: 500;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.el-step {
|
|
71
|
-
&.is-center {
|
|
72
|
-
&:first-child {
|
|
73
|
-
.el-step__head {
|
|
74
|
-
text-align: start;
|
|
75
|
-
.el-step__line {
|
|
76
|
-
inset-inline-start: 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
.el-step__main {
|
|
80
|
-
text-align: start;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
&:last-child {
|
|
84
|
-
.el-step__head {
|
|
85
|
-
text-align: end;
|
|
86
|
-
}
|
|
87
|
-
.el-step__main {
|
|
88
|
-
text-align: end;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
&:nth-last-child(2) {
|
|
92
|
-
.el-step__head {
|
|
93
|
-
.el-step__line {
|
|
94
|
-
inset-inline-end: -100%;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
@use 'element-plus/theme-chalk/src/steps.scss' as *;
|
|
2
|
+
@use 'element-plus/theme-chalk/src/step.scss' as *;
|
|
3
|
+
|
|
4
|
+
.el-steps {
|
|
5
|
+
&.el-steps--horizontal {
|
|
6
|
+
.el-step__head {
|
|
7
|
+
.el-step__line {
|
|
8
|
+
height: 1px;
|
|
9
|
+
top: 15px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.el-step__icon {
|
|
13
|
+
width: 30px;
|
|
14
|
+
height: 30px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.is-process {
|
|
18
|
+
border-color: var(--primary);
|
|
19
|
+
|
|
20
|
+
.el-step__icon {
|
|
21
|
+
&.is-text {
|
|
22
|
+
background-color: var(--anra-primary);
|
|
23
|
+
color: var(--anra-black);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.is-success {
|
|
29
|
+
border-color: var(--anra-primary-accent);
|
|
30
|
+
|
|
31
|
+
.el-step__icon {
|
|
32
|
+
&.is-text {
|
|
33
|
+
background-color: var(--anra-primary-accent);
|
|
34
|
+
color: var(--anra-black);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.el-step__main {
|
|
41
|
+
.el-step__title {
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
line-height: normal;
|
|
44
|
+
padding-top: 0.25rem;
|
|
45
|
+
|
|
46
|
+
.clickable {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
text-decoration: underline;
|
|
49
|
+
border-bottom: 1px solid transparent;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
color: var(--anra-primary);
|
|
53
|
+
border-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-process,
|
|
58
|
+
&.is-success {
|
|
59
|
+
color: var(--default-text-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.is-process {
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.el-step {
|
|
71
|
+
&.is-center {
|
|
72
|
+
&:first-child {
|
|
73
|
+
.el-step__head {
|
|
74
|
+
text-align: start;
|
|
75
|
+
.el-step__line {
|
|
76
|
+
inset-inline-start: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.el-step__main {
|
|
80
|
+
text-align: start;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&:last-child {
|
|
84
|
+
.el-step__head {
|
|
85
|
+
text-align: end;
|
|
86
|
+
}
|
|
87
|
+
.el-step__main {
|
|
88
|
+
text-align: end;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&:nth-last-child(2) {
|
|
92
|
+
.el-step__head {
|
|
93
|
+
.el-step__line {
|
|
94
|
+
inset-inline-end: -100%;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type T_FlyStepItem = {
|
|
2
|
-
label: string
|
|
3
|
-
id: number
|
|
4
|
-
clickable?: boolean
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type T_FlyStepProps = {
|
|
8
|
-
steps: T_FlyStepItem[]
|
|
9
|
-
activeIndex: number
|
|
10
|
-
}
|
|
1
|
+
export type T_FlyStepItem = {
|
|
2
|
+
label: string
|
|
3
|
+
id: number
|
|
4
|
+
clickable?: boolean
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type T_FlyStepProps = {
|
|
8
|
+
steps: T_FlyStepItem[]
|
|
9
|
+
activeIndex: number
|
|
10
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="anra-steps">
|
|
3
|
-
<el-steps :active="activeIndex" align-center finish-status="success">
|
|
4
|
-
<el-step v-for="step in steps" :key="step.id" :title="step.label">
|
|
5
|
-
<template #title>
|
|
6
|
-
<div
|
|
7
|
-
:role="step.clickable ? 'button' : ''"
|
|
8
|
-
class="tw-text-sm tw-leading-normal tw-pt-px"
|
|
9
|
-
:class="step.clickable ? 'clickable' : ''"
|
|
10
|
-
@click="step.clickable ? emit('change-step', step.id) : null"
|
|
11
|
-
>
|
|
12
|
-
{{ step.label }}
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
</el-step>
|
|
16
|
-
</el-steps>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup lang="ts">
|
|
21
|
-
import { ElStep, ElSteps } from 'element-plus'
|
|
22
|
-
|
|
23
|
-
import './FlySteps.element.scss'
|
|
24
|
-
import type { T_FlyStepProps } from './FlySteps.types'
|
|
25
|
-
|
|
26
|
-
const emit = defineEmits<{
|
|
27
|
-
(e: 'change-step', data: number): void
|
|
28
|
-
}>()
|
|
29
|
-
defineProps<T_FlyStepProps>()
|
|
30
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="anra-steps">
|
|
3
|
+
<el-steps :active="activeIndex" align-center finish-status="success">
|
|
4
|
+
<el-step v-for="step in steps" :key="step.id" :title="step.label">
|
|
5
|
+
<template #title>
|
|
6
|
+
<div
|
|
7
|
+
:role="step.clickable ? 'button' : ''"
|
|
8
|
+
class="tw-text-sm tw-leading-normal tw-pt-px"
|
|
9
|
+
:class="step.clickable ? 'clickable' : ''"
|
|
10
|
+
@click="step.clickable ? emit('change-step', step.id) : null"
|
|
11
|
+
>
|
|
12
|
+
{{ step.label }}
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
</el-step>
|
|
16
|
+
</el-steps>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { ElStep, ElSteps } from 'element-plus'
|
|
22
|
+
|
|
23
|
+
import './FlySteps.element.scss'
|
|
24
|
+
import type { T_FlyStepProps } from './FlySteps.types'
|
|
25
|
+
|
|
26
|
+
const emit = defineEmits<{
|
|
27
|
+
(e: 'change-step', data: number): void
|
|
28
|
+
}>()
|
|
29
|
+
defineProps<T_FlyStepProps>()
|
|
30
|
+
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FlySteps from './FlySteps.vue'
|
|
2
|
-
|
|
3
|
-
export default FlySteps
|
|
4
|
-
export { FlySteps }
|
|
5
|
-
|
|
6
|
-
export type { T_FlyStepProps, T_FlyStepItem } from './FlySteps.types'
|
|
1
|
+
import FlySteps from './FlySteps.vue'
|
|
2
|
+
|
|
3
|
+
export default FlySteps
|
|
4
|
+
export { FlySteps }
|
|
5
|
+
|
|
6
|
+
export type { T_FlyStepProps, T_FlyStepItem } from './FlySteps.types'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './menu'
|
|
2
|
-
export * from './fly-steps'
|
|
1
|
+
export * from './menu'
|
|
2
|
+
export * from './fly-steps'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@use '../../../../styles/element/common.scss' as *;
|
|
2
|
-
@use 'element-plus/theme-chalk/src/scrollbar.scss' as *;
|
|
1
|
+
@use '../../../../styles/element/common.scss' as *;
|
|
2
|
+
@use 'element-plus/theme-chalk/src/scrollbar.scss' as *;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { T_FlyIconProps } from '../../../general/fly-icon'
|
|
2
|
-
|
|
3
|
-
export type T_FlyMiniSidebarItem = {
|
|
4
|
-
key: string | number
|
|
5
|
-
label: string
|
|
6
|
-
path: string
|
|
7
|
-
icon: T_FlyIconProps
|
|
8
|
-
}
|
|
1
|
+
import type { T_FlyIconProps } from '../../../general/fly-icon'
|
|
2
|
+
|
|
3
|
+
export type T_FlyMiniSidebarItem = {
|
|
4
|
+
key: string | number
|
|
5
|
+
label: string
|
|
6
|
+
path: string
|
|
7
|
+
icon: T_FlyIconProps
|
|
8
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<aside class="anra-mini-sidebar">
|
|
3
|
-
<el-scrollbar>
|
|
4
|
-
<div class="anra-mini-sidebar__menu">
|
|
5
|
-
<FlyMiniSidebarItem v-for="item in menu" :key="item.key" :menu="item" />
|
|
6
|
-
</div>
|
|
7
|
-
</el-scrollbar>
|
|
8
|
-
</aside>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
import { ElScrollbar } from 'element-plus'
|
|
13
|
-
|
|
14
|
-
import './FlyMiniSidebar.element.scss'
|
|
15
|
-
import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
16
|
-
import FlyMiniSidebarItem from './FlyMiniSidebarItem.vue'
|
|
17
|
-
|
|
18
|
-
defineProps<{
|
|
19
|
-
menu: T_FlyMiniSidebarItem[]
|
|
20
|
-
}>()
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style lang="scss">
|
|
24
|
-
.anra-mini-sidebar {
|
|
25
|
-
background-color: var(--anra-bg-20);
|
|
26
|
-
width: 5rem;
|
|
27
|
-
border-inline-end: 1px solid var(--anra-border-color);
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
height: 100%;
|
|
30
|
-
padding-top: 0.5rem;
|
|
31
|
-
padding-bottom: 0.5rem;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
|
|
34
|
-
&wrapper {
|
|
35
|
-
flex-grow: 1;
|
|
36
|
-
padding-top: 0.5rem;
|
|
37
|
-
overflow-y: auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__menu {
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
gap: 0.5rem;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<aside class="anra-mini-sidebar">
|
|
3
|
+
<el-scrollbar>
|
|
4
|
+
<div class="anra-mini-sidebar__menu">
|
|
5
|
+
<FlyMiniSidebarItem v-for="item in menu" :key="item.key" :menu="item" />
|
|
6
|
+
</div>
|
|
7
|
+
</el-scrollbar>
|
|
8
|
+
</aside>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import { ElScrollbar } from 'element-plus'
|
|
13
|
+
|
|
14
|
+
import './FlyMiniSidebar.element.scss'
|
|
15
|
+
import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
16
|
+
import FlyMiniSidebarItem from './FlyMiniSidebarItem.vue'
|
|
17
|
+
|
|
18
|
+
defineProps<{
|
|
19
|
+
menu: T_FlyMiniSidebarItem[]
|
|
20
|
+
}>()
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="scss">
|
|
24
|
+
.anra-mini-sidebar {
|
|
25
|
+
background-color: var(--anra-bg-20);
|
|
26
|
+
width: 5rem;
|
|
27
|
+
border-inline-end: 1px solid var(--anra-border-color);
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
height: 100%;
|
|
30
|
+
padding-top: 0.5rem;
|
|
31
|
+
padding-bottom: 0.5rem;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
|
|
34
|
+
&wrapper {
|
|
35
|
+
flex-grow: 1;
|
|
36
|
+
padding-top: 0.5rem;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__menu {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<router-link :to="menu.path" class="anra-sidebar-item" active-class="anra-sidebar-item--active">
|
|
3
|
-
<span class="anra-sidebar-item__icon">
|
|
4
|
-
<FlyIcon :icon="menu.icon.icon" :type="menu.icon.type" />
|
|
5
|
-
</span>
|
|
6
|
-
|
|
7
|
-
<span class="anra-sidebar-item__label">{{ menu.label }}</span>
|
|
8
|
-
</router-link>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
import FlyIcon from '../../../general/fly-icon/FlyIcon.vue'
|
|
13
|
-
|
|
14
|
-
import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
15
|
-
|
|
16
|
-
defineProps<{
|
|
17
|
-
menu: T_FlyMiniSidebarItem
|
|
18
|
-
}>()
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="scss">
|
|
22
|
-
.anra-sidebar-item {
|
|
23
|
-
text-align: center;
|
|
24
|
-
padding-left: 0.5rem;
|
|
25
|
-
padding-right: 0.5rem;
|
|
26
|
-
padding-top: 0.25rem;
|
|
27
|
-
padding-bottom: 0.25rem;
|
|
28
|
-
transition: all 0.2s ease;
|
|
29
|
-
color: var(--anra-text-subtle);
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
|
|
33
|
-
&--active {
|
|
34
|
-
background-color: var(--anra-primary);
|
|
35
|
-
color: var(--anra-text-on-primary);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__icon {
|
|
39
|
-
display: flex;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
|
|
43
|
-
svg {
|
|
44
|
-
width: 1em;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&__label {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
font-size: 0.75rem;
|
|
51
|
-
letter-spacing: 0;
|
|
52
|
-
line-height: 1.5;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<router-link :to="menu.path" class="anra-sidebar-item" active-class="anra-sidebar-item--active">
|
|
3
|
+
<span class="anra-sidebar-item__icon">
|
|
4
|
+
<FlyIcon :icon="menu.icon.icon" :type="menu.icon.type" />
|
|
5
|
+
</span>
|
|
6
|
+
|
|
7
|
+
<span class="anra-sidebar-item__label">{{ menu.label }}</span>
|
|
8
|
+
</router-link>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import FlyIcon from '../../../general/fly-icon/FlyIcon.vue'
|
|
13
|
+
|
|
14
|
+
import type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
15
|
+
|
|
16
|
+
defineProps<{
|
|
17
|
+
menu: T_FlyMiniSidebarItem
|
|
18
|
+
}>()
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style lang="scss">
|
|
22
|
+
.anra-sidebar-item {
|
|
23
|
+
text-align: center;
|
|
24
|
+
padding-left: 0.5rem;
|
|
25
|
+
padding-right: 0.5rem;
|
|
26
|
+
padding-top: 0.25rem;
|
|
27
|
+
padding-bottom: 0.25rem;
|
|
28
|
+
transition: all 0.2s ease;
|
|
29
|
+
color: var(--anra-text-subtle);
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
|
|
33
|
+
&--active {
|
|
34
|
+
background-color: var(--anra-primary);
|
|
35
|
+
color: var(--anra-text-on-primary);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__icon {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
|
|
43
|
+
svg {
|
|
44
|
+
width: 1em;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__label {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
font-size: 0.75rem;
|
|
51
|
+
letter-spacing: 0;
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FlyMiniSidebar from './FlyMiniSidebar.vue'
|
|
2
|
-
|
|
3
|
-
export default FlyMiniSidebar
|
|
4
|
-
export { FlyMiniSidebar }
|
|
5
|
-
|
|
6
|
-
export type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
1
|
+
import FlyMiniSidebar from './FlyMiniSidebar.vue'
|
|
2
|
+
|
|
3
|
+
export default FlyMiniSidebar
|
|
4
|
+
export { FlyMiniSidebar }
|
|
5
|
+
|
|
6
|
+
export type { T_FlyMiniSidebarItem } from './FlyMiniSidebar.types'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use '../../../../styles/element/common.scss' as *;
|
|
2
|
-
@use 'element-plus/theme-chalk/src/menu.scss' as *;
|
|
3
|
-
@use 'element-plus/theme-chalk/src/sub-menu.scss' as *;
|
|
4
|
-
@use 'element-plus/theme-chalk/src/menu-item.scss' as *;
|
|
5
|
-
@use 'element-plus/theme-chalk/src/menu-item-group.scss' as *;
|
|
6
|
-
@use 'element-plus/theme-chalk/src/popper.scss' as *;
|
|
7
|
-
@use 'element-plus/theme-chalk/src/tooltip.scss' as *;
|
|
8
|
-
@use 'element-plus/theme-chalk/src/icon.scss' as *;
|
|
9
|
-
@use 'element-plus/theme-chalk/src/scrollbar.scss' as *;
|
|
1
|
+
@use '../../../../styles/element/common.scss' as *;
|
|
2
|
+
@use 'element-plus/theme-chalk/src/menu.scss' as *;
|
|
3
|
+
@use 'element-plus/theme-chalk/src/sub-menu.scss' as *;
|
|
4
|
+
@use 'element-plus/theme-chalk/src/menu-item.scss' as *;
|
|
5
|
+
@use 'element-plus/theme-chalk/src/menu-item-group.scss' as *;
|
|
6
|
+
@use 'element-plus/theme-chalk/src/popper.scss' as *;
|
|
7
|
+
@use 'element-plus/theme-chalk/src/tooltip.scss' as *;
|
|
8
|
+
@use 'element-plus/theme-chalk/src/icon.scss' as *;
|
|
9
|
+
@use 'element-plus/theme-chalk/src/scrollbar.scss' as *;
|