@timus-networks/theme 2.0.16 → 2.1.3
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 +113 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +11 -0
- package/dist/module.d.ts +11 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +187 -0
- package/dist/runtime/components/development/example.alert.vue +29 -0
- package/dist/runtime/components/development/example.avatar.vue +85 -0
- package/dist/runtime/components/development/example.badge.vue +93 -0
- package/dist/runtime/components/development/example.breadcrumb.vue +54 -0
- package/dist/runtime/components/development/example.button.vue +235 -0
- package/dist/runtime/components/development/example.button.vue.d.ts +11 -0
- package/dist/runtime/components/development/example.card.vue +68 -0
- package/dist/runtime/components/development/example.checkbox.vue +176 -0
- package/dist/runtime/components/development/example.checkbox.vue.d.ts +24 -0
- package/dist/runtime/components/development/example.collapse.vue +38 -0
- package/dist/runtime/components/development/example.datepicker.vue +193 -0
- package/dist/runtime/components/development/example.description.vue +94 -0
- package/dist/runtime/components/development/example.dialog.vue +79 -0
- package/dist/runtime/components/development/example.dropdown.vue +166 -0
- package/dist/runtime/components/development/example.form.vue +488 -0
- package/dist/runtime/components/development/example.input.vue +270 -0
- package/dist/runtime/components/development/example.input.vue.d.ts +23 -0
- package/dist/runtime/components/development/example.link.vue +68 -0
- package/dist/runtime/components/development/example.message.vue +64 -0
- package/dist/runtime/components/development/example.notification.vue +75 -0
- package/dist/runtime/components/development/example.number.vue +70 -0
- package/dist/runtime/components/development/example.pagination.vue +89 -0
- package/dist/runtime/components/development/example.popover.vue +151 -0
- package/dist/runtime/components/development/example.radio.vue +163 -0
- package/dist/runtime/components/development/example.radio.vue.d.ts +25 -0
- package/dist/runtime/components/development/example.select.vue +588 -0
- package/dist/runtime/components/development/example.select.vue.d.ts +70 -0
- package/dist/runtime/components/development/example.sidebar.vue +101 -0
- package/dist/runtime/components/development/example.static.vue +50 -0
- package/dist/runtime/components/development/example.switch.vue +101 -0
- package/dist/runtime/components/development/example.table.vue +112 -0
- package/dist/runtime/components/development/example.tag.vue +255 -0
- package/dist/runtime/components/development/example.timepicker.vue +89 -0
- package/dist/runtime/components/development/example.tooltip.vue +104 -0
- package/dist/runtime/components/development/example.upload.vue +84 -0
- package/dist/runtime/components/production/html-encode.vue +96 -0
- package/dist/runtime/components/production/timus-breadcrumb.d.ts +36 -0
- package/dist/runtime/components/production/timus-breadcrumb.js +224 -0
- package/dist/runtime/components/production/timus-breadcrumb.mjs +224 -0
- package/dist/runtime/components/production/timus-breadcrumb.vue +83 -0
- package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +340 -0
- package/dist/runtime/composables/useBreadcrumb.d.ts +8 -0
- package/dist/runtime/composables/useBreadcrumb.js +53 -0
- package/dist/runtime/composables/useBreadcrumb.mjs +53 -0
- package/dist/runtime/pages/theme.vue +61 -0
- package/dist/runtime/plugins/disable-warnings-plugin.d.ts +2 -0
- package/dist/runtime/plugins/disable-warnings-plugin.js +18 -0
- package/dist/runtime/plugins/disable-warnings-plugin.mjs +18 -0
- package/dist/runtime/plugins/sample-plugin.d.ts +20 -0
- package/dist/runtime/plugins/sample-plugin.js +5 -0
- package/dist/runtime/plugins/sample-plugin.mjs +5 -0
- package/dist/runtime/plugins/theme-provider-plugin.d.ts +30 -0
- package/dist/runtime/plugins/theme-provider-plugin.js +46 -0
- package/dist/runtime/plugins/theme-provider-plugin.mjs +46 -0
- package/dist/runtime/public/scss/element-plus/affix.css +305 -0
- package/dist/runtime/public/scss/element-plus/alert.css +516 -0
- package/dist/runtime/public/scss/element-plus/anchor-link.css +332 -0
- package/dist/runtime/public/scss/element-plus/anchor.css +376 -0
- package/dist/runtime/public/scss/element-plus/aside.css +308 -0
- package/dist/runtime/public/scss/element-plus/autocomplete.css +411 -0
- package/dist/runtime/public/scss/element-plus/avatar.css +370 -0
- package/dist/runtime/public/scss/element-plus/backtop.css +326 -0
- package/dist/runtime/public/scss/element-plus/badge.css +376 -0
- package/dist/runtime/public/scss/element-plus/base.css +550 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb-item.css +0 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb.css +370 -0
- package/dist/runtime/public/scss/element-plus/button-group.css +535 -0
- package/dist/runtime/public/scss/element-plus/button.css +1089 -0
- package/dist/runtime/public/scss/element-plus/calendar.css +370 -0
- package/dist/runtime/public/scss/element-plus/card.css +347 -0
- package/dist/runtime/public/scss/element-plus/carousel-item.css +350 -0
- package/dist/runtime/public/scss/element-plus/carousel.css +475 -0
- package/dist/runtime/public/scss/element-plus/cascader-panel.css +428 -0
- package/dist/runtime/public/scss/element-plus/cascader.css +560 -0
- package/dist/runtime/public/scss/element-plus/check-tag.css +386 -0
- package/dist/runtime/public/scss/element-plus/checkbox-button.css +451 -0
- package/dist/runtime/public/scss/element-plus/checkbox-group.css +307 -0
- package/dist/runtime/public/scss/element-plus/checkbox.css +588 -0
- package/dist/runtime/public/scss/element-plus/col.css +3270 -0
- package/dist/runtime/public/scss/element-plus/collapse-item.css +0 -0
- package/dist/runtime/public/scss/element-plus/collapse-transition.css +0 -0
- package/dist/runtime/public/scss/element-plus/collapse.css +490 -0
- package/dist/runtime/public/scss/element-plus/color/index.css +0 -0
- package/dist/runtime/public/scss/element-plus/color-picker.css +650 -0
- package/dist/runtime/public/scss/element-plus/common/popup.css +338 -0
- package/dist/runtime/public/scss/element-plus/common/transition.css +420 -0
- package/dist/runtime/public/scss/element-plus/common/var.css +302 -0
- package/dist/runtime/public/scss/element-plus/config-provider.css +0 -0
- package/dist/runtime/public/scss/element-plus/container.css +313 -0
- package/dist/runtime/public/scss/element-plus/dark/css-vars.css +353 -0
- package/dist/runtime/public/scss/element-plus/dark/var.css +302 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +558 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +410 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +426 -0
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +388 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +454 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker.css +662 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +384 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +338 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +389 -0
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +384 -0
- package/dist/runtime/public/scss/element-plus/date-picker.css +1531 -0
- package/dist/runtime/public/scss/element-plus/descriptions-item.css +347 -0
- package/dist/runtime/public/scss/element-plus/descriptions.css +435 -0
- package/dist/runtime/public/scss/element-plus/dialog.css +512 -0
- package/dist/runtime/public/scss/element-plus/display.css +357 -0
- package/dist/runtime/public/scss/element-plus/divider.css +345 -0
- package/dist/runtime/public/scss/element-plus/drawer.css +419 -0
- package/dist/runtime/public/scss/element-plus/dropdown-item.css +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown-menu.css +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown.css +495 -0
- package/dist/runtime/public/scss/element-plus/empty.css +355 -0
- package/dist/runtime/public/scss/element-plus/footer.css +310 -0
- package/dist/runtime/public/scss/element-plus/form-item.css +0 -0
- package/dist/runtime/public/scss/element-plus/form.css +527 -0
- package/dist/runtime/public/scss/element-plus/header.css +310 -0
- package/dist/runtime/public/scss/element-plus/icon.css +343 -0
- package/dist/runtime/public/scss/element-plus/image-viewer.css +439 -0
- package/dist/runtime/public/scss/element-plus/image.css +343 -0
- package/dist/runtime/public/scss/element-plus/index.css +17293 -0
- package/dist/runtime/public/scss/element-plus/infinite-scroll.css +0 -0
- package/dist/runtime/public/scss/element-plus/input-number.css +494 -0
- package/dist/runtime/public/scss/element-plus/input.css +770 -0
- package/dist/runtime/public/scss/element-plus/link.css +453 -0
- package/dist/runtime/public/scss/element-plus/loading.css +391 -0
- package/dist/runtime/public/scss/element-plus/main.css +311 -0
- package/dist/runtime/public/scss/element-plus/mention.css +413 -0
- package/dist/runtime/public/scss/element-plus/menu-item-group.css +0 -0
- package/dist/runtime/public/scss/element-plus/menu-item.css +0 -0
- package/dist/runtime/public/scss/element-plus/menu.css +737 -0
- package/dist/runtime/public/scss/element-plus/message-box.css +533 -0
- package/dist/runtime/public/scss/element-plus/message.css +528 -0
- package/dist/runtime/public/scss/element-plus/mixins/config.css +0 -0
- package/dist/runtime/public/scss/element-plus/mixins/function.css +0 -0
- package/dist/runtime/public/scss/element-plus/mixins/mixins.css +302 -0
- package/dist/runtime/public/scss/element-plus/mixins/utils.css +0 -0
- package/dist/runtime/public/scss/element-plus/notification.css +413 -0
- package/dist/runtime/public/scss/element-plus/option-group.css +331 -0
- package/dist/runtime/public/scss/element-plus/option.css +354 -0
- package/dist/runtime/public/scss/element-plus/overlay.css +317 -0
- package/dist/runtime/public/scss/element-plus/page-header.css +351 -0
- package/dist/runtime/public/scss/element-plus/pagination.css +586 -0
- package/dist/runtime/public/scss/element-plus/popconfirm.css +315 -0
- package/dist/runtime/public/scss/element-plus/popover.css +352 -0
- package/dist/runtime/public/scss/element-plus/popper.css +400 -0
- package/dist/runtime/public/scss/element-plus/progress.css +449 -0
- package/dist/runtime/public/scss/element-plus/radio-button.css +436 -0
- package/dist/runtime/public/scss/element-plus/radio-group.css +308 -0
- package/dist/runtime/public/scss/element-plus/radio.css +561 -0
- package/dist/runtime/public/scss/element-plus/rate.css +384 -0
- package/dist/runtime/public/scss/element-plus/reset.css +399 -0
- package/dist/runtime/public/scss/element-plus/result.css +381 -0
- package/dist/runtime/public/scss/element-plus/row.css +339 -0
- package/dist/runtime/public/scss/element-plus/scrollbar.css +373 -0
- package/dist/runtime/public/scss/element-plus/segmented.css +460 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +351 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown.css +351 -0
- package/dist/runtime/public/scss/element-plus/select-v2.css +765 -0
- package/dist/runtime/public/scss/element-plus/select.css +765 -0
- package/dist/runtime/public/scss/element-plus/skeleton-item.css +372 -0
- package/dist/runtime/public/scss/element-plus/skeleton.css +335 -0
- package/dist/runtime/public/scss/element-plus/slider.css +480 -0
- package/dist/runtime/public/scss/element-plus/space.css +317 -0
- package/dist/runtime/public/scss/element-plus/spinner.css +342 -0
- package/dist/runtime/public/scss/element-plus/statistic.css +336 -0
- package/dist/runtime/public/scss/element-plus/step.css +586 -0
- package/dist/runtime/public/scss/element-plus/steps.css +319 -0
- package/dist/runtime/public/scss/element-plus/sub-menu.css +0 -0
- package/dist/runtime/public/scss/element-plus/switch.css +594 -0
- package/dist/runtime/public/scss/element-plus/tab-pane.css +0 -0
- package/dist/runtime/public/scss/element-plus/table-column.css +382 -0
- package/dist/runtime/public/scss/element-plus/table-v2.css +520 -0
- package/dist/runtime/public/scss/element-plus/table.css +893 -0
- package/dist/runtime/public/scss/element-plus/tabs.css +892 -0
- package/dist/runtime/public/scss/element-plus/tag.css +624 -0
- package/dist/runtime/public/scss/element-plus/text.css +378 -0
- package/dist/runtime/public/scss/element-plus/time-picker.css +1023 -0
- package/dist/runtime/public/scss/element-plus/time-select.css +946 -0
- package/dist/runtime/public/scss/element-plus/timeline-item.css +415 -0
- package/dist/runtime/public/scss/element-plus/timeline.css +334 -0
- package/dist/runtime/public/scss/element-plus/tooltip-v2.css +410 -0
- package/dist/runtime/public/scss/element-plus/tooltip.css +0 -0
- package/dist/runtime/public/scss/element-plus/tour.css +461 -0
- package/dist/runtime/public/scss/element-plus/transfer.css +497 -0
- package/dist/runtime/public/scss/element-plus/tree-select.css +325 -0
- package/dist/runtime/public/scss/element-plus/tree.css +538 -0
- package/dist/runtime/public/scss/element-plus/upload.css +862 -0
- package/dist/runtime/public/scss/element-plus/var.css +389 -0
- package/dist/runtime/public/scss/element-plus/virtual-list.css +330 -0
- package/dist/runtime/public/scss/theme.css +1268 -0
- package/dist/runtime/server/tsconfig.json +6 -0
- package/dist/runtime/types.d.ts +31 -0
- package/dist/types.d.mts +7 -0
- package/dist/types.d.ts +7 -0
- package/package.json +35 -12
- package/components/TimusIcons.vue +0 -54
- package/generate-icon.js +0 -22
- package/module.ts +0 -84
- package/pages/icons.vue +0 -37
- package/plugins/sample-plugin.ts +0 -5
- package/public/isax/fonts/iconsax.svg +0 -927
- package/public/isax/fonts/iconsax.ttf +0 -0
- package/public/isax/fonts/iconsax.woff +0 -0
- package/public/isax/icons.json +0 -899
- package/public/isax/selection.json +0 -1
- package/public/isax/style.css +0 -1
- package/public/isax/style.scss +0 -5435
- package/public/isax/variables.scss +0 -900
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
import { useRoute, useRouter } from "#app";
|
|
3
|
+
export function useBreadcrumb() {
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const router = useRouter();
|
|
6
|
+
const activeTab = ref("");
|
|
7
|
+
const breadcrumbTimeout = ref(null);
|
|
8
|
+
const tabList = ref([]);
|
|
9
|
+
onUnmounted(() => {
|
|
10
|
+
if (breadcrumbTimeout.value) {
|
|
11
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const tabChanged = (tab, _$event = null) => {
|
|
15
|
+
if (breadcrumbTimeout.value) {
|
|
16
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
17
|
+
}
|
|
18
|
+
router.push({
|
|
19
|
+
path: route.path,
|
|
20
|
+
query: {
|
|
21
|
+
...route.query,
|
|
22
|
+
...tab.paneName && { tab: tab.paneName },
|
|
23
|
+
...route.query.page && { page: route.query?.tab !== tab.paneName ? 1 : route.query.page }
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const setActiveTab = (tab, initial = false) => {
|
|
28
|
+
breadcrumbTimeout.value = setTimeout(() => {
|
|
29
|
+
const found = tabList.value.find((item) => item === (tab || route.query.tab));
|
|
30
|
+
activeTab.value = found || tabList.value[0];
|
|
31
|
+
initial && tabChanged({ paneName: activeTab.value });
|
|
32
|
+
}, 100);
|
|
33
|
+
};
|
|
34
|
+
const setupBreadcrumbs = (tabs) => {
|
|
35
|
+
tabList.value = tabs;
|
|
36
|
+
setActiveTab(tabs[0], true);
|
|
37
|
+
watch(
|
|
38
|
+
() => route.query,
|
|
39
|
+
(current, before) => {
|
|
40
|
+
if (before && current.tab && before.tab && current.tab !== before.tab) {
|
|
41
|
+
setActiveTab(current.tab);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ deep: true, immediate: true }
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
activeTab,
|
|
49
|
+
tabChanged,
|
|
50
|
+
setActiveTab,
|
|
51
|
+
setupBreadcrumbs
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref, watch } from "vue";
|
|
2
|
+
import { useRoute, useRouter } from "#app";
|
|
3
|
+
export function useBreadcrumb() {
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const router = useRouter();
|
|
6
|
+
const activeTab = ref("");
|
|
7
|
+
const breadcrumbTimeout = ref(null);
|
|
8
|
+
const tabList = ref([]);
|
|
9
|
+
onUnmounted(() => {
|
|
10
|
+
if (breadcrumbTimeout.value) {
|
|
11
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const tabChanged = (tab, _$event = null) => {
|
|
15
|
+
if (breadcrumbTimeout.value) {
|
|
16
|
+
clearTimeout(breadcrumbTimeout.value);
|
|
17
|
+
}
|
|
18
|
+
router.push({
|
|
19
|
+
path: route.path,
|
|
20
|
+
query: {
|
|
21
|
+
...route.query,
|
|
22
|
+
...tab.paneName && { tab: tab.paneName },
|
|
23
|
+
...route.query.page && { page: route.query?.tab !== tab.paneName ? 1 : route.query.page }
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const setActiveTab = (tab, initial = false) => {
|
|
28
|
+
breadcrumbTimeout.value = setTimeout(() => {
|
|
29
|
+
const found = tabList.value.find((item) => item === (tab || route.query.tab));
|
|
30
|
+
activeTab.value = found || tabList.value[0];
|
|
31
|
+
initial && tabChanged({ paneName: activeTab.value });
|
|
32
|
+
}, 100);
|
|
33
|
+
};
|
|
34
|
+
const setupBreadcrumbs = (tabs) => {
|
|
35
|
+
tabList.value = tabs;
|
|
36
|
+
setActiveTab(tabs[0], true);
|
|
37
|
+
watch(
|
|
38
|
+
() => route.query,
|
|
39
|
+
(current, before) => {
|
|
40
|
+
if (before && current.tab && before.tab && current.tab !== before.tab) {
|
|
41
|
+
setActiveTab(current.tab);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ deep: true, immediate: true }
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
activeTab,
|
|
49
|
+
tabChanged,
|
|
50
|
+
setActiveTab,
|
|
51
|
+
setupBreadcrumbs
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
3
|
+
<el-tab-pane label="Alert" name="alert" lazy><example-alert /></el-tab-pane>
|
|
4
|
+
<el-tab-pane label="Avatar" name="avatar" lazy><example-avatar /></el-tab-pane>
|
|
5
|
+
<el-tab-pane label="Badge" name="badge" lazy><example-badge /></el-tab-pane>
|
|
6
|
+
<el-tab-pane label="Breadcrumb" name="breadcrumb" lazy><example-breadcrumb /></el-tab-pane>
|
|
7
|
+
<el-tab-pane label="Button" name="button"><example-button /></el-tab-pane>
|
|
8
|
+
<el-tab-pane label="Card" name="card" lazy><example-card /></el-tab-pane>
|
|
9
|
+
<el-tab-pane label="Checkbox" name="checkbox" lazy><example-checkbox /></el-tab-pane>
|
|
10
|
+
<el-tab-pane label="Collapse" name="collapse" lazy><example-collapse /></el-tab-pane>
|
|
11
|
+
<el-tab-pane label="DatePicker" name="datepicker" lazy><example-datepicker /></el-tab-pane>
|
|
12
|
+
<el-tab-pane label="Description" name="description" lazy><example-description /></el-tab-pane>
|
|
13
|
+
<el-tab-pane label="Dialog" name="dialog" lazy><example-dialog /></el-tab-pane>
|
|
14
|
+
<el-tab-pane label="Dropdown" name="dropdown" lazy><example-dropdown /></el-tab-pane>
|
|
15
|
+
<el-tab-pane label="Form" name="form" lazy><example-form /></el-tab-pane>
|
|
16
|
+
<el-tab-pane label="Input" name="input"><example-input /></el-tab-pane>
|
|
17
|
+
<el-tab-pane label="Link" name="link" lazy><example-link /></el-tab-pane>
|
|
18
|
+
<el-tab-pane label="Message" name="message" lazy><example-message /></el-tab-pane>
|
|
19
|
+
<el-tab-pane label="Number" name="number" lazy><example-number /></el-tab-pane>
|
|
20
|
+
<el-tab-pane label="Notification" name="notification" lazy><example-notification /></el-tab-pane>
|
|
21
|
+
<el-tab-pane label="Pagination" name="pagination" lazy><example-pagination /></el-tab-pane>
|
|
22
|
+
<el-tab-pane label="Popover" name="popover" lazy><example-popover /></el-tab-pane>
|
|
23
|
+
<el-tab-pane label="Radio" name="radio" lazy><example-radio /></el-tab-pane>
|
|
24
|
+
<el-tab-pane label="Select" name="select" lazy><example-select /></el-tab-pane>
|
|
25
|
+
<el-tab-pane label="Sidebar" name="sidebar" lazy><example-sidebar /></el-tab-pane>
|
|
26
|
+
<el-tab-pane label="Static" name="static" lazy><example-static /></el-tab-pane>
|
|
27
|
+
<el-tab-pane label="Switch" name="switch" lazy><example-switch /></el-tab-pane>
|
|
28
|
+
<el-tab-pane label="Table" name="table" lazy><example-table /></el-tab-pane>
|
|
29
|
+
<el-tab-pane label="Tag" name="tag" lazy><example-tag /></el-tab-pane>
|
|
30
|
+
<el-tab-pane label="TimePicker" name="time" lazy><example-timepicker /></el-tab-pane>
|
|
31
|
+
<el-tab-pane label="Tooltip" name="tooltip" lazy><example-tooltip /></el-tab-pane>
|
|
32
|
+
<el-tab-pane label="Upload" name="upload" lazy><example-upload /></el-tab-pane>
|
|
33
|
+
</el-tabs>
|
|
34
|
+
</template>
|
|
35
|
+
<script lang="ts" setup>
|
|
36
|
+
import type { TabsPaneContext } from 'element-plus';
|
|
37
|
+
import { ref } from 'vue';
|
|
38
|
+
|
|
39
|
+
import { definePageMeta } from '#imports';
|
|
40
|
+
|
|
41
|
+
definePageMeta({
|
|
42
|
+
layout: 'modules',
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const activeName = ref('alert');
|
|
46
|
+
const handleClick = (tab: TabsPaneContext, event: Event) => {
|
|
47
|
+
console.log(tab, event);
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.comment {
|
|
53
|
+
background-color: var(--el-color-info-light-1);
|
|
54
|
+
border: 1px solid var(--el-color-info-light-2);
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
color: var(--el-color-info-light-9);
|
|
57
|
+
font-family: monospace;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding: 2px 6px;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
3
|
+
const ignoredWarnings = [
|
|
4
|
+
"Invalid prop: validation failed",
|
|
5
|
+
"Invalid prop: custom validator"
|
|
6
|
+
// Add other warnings to ignore here
|
|
7
|
+
];
|
|
8
|
+
if (process.env.NODE_ENV === "development") {
|
|
9
|
+
const originalWarn = console.warn;
|
|
10
|
+
console.warn = (...args) => {
|
|
11
|
+
if (!ignoredWarnings.some((warning) => args[0]?.includes(warning))) {
|
|
12
|
+
console.group("Vue Warning");
|
|
13
|
+
originalWarn(...args);
|
|
14
|
+
console.groupEnd();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
3
|
+
const ignoredWarnings = [
|
|
4
|
+
"Invalid prop: validation failed",
|
|
5
|
+
"Invalid prop: custom validator"
|
|
6
|
+
// Add other warnings to ignore here
|
|
7
|
+
];
|
|
8
|
+
if (process.env.NODE_ENV === "development") {
|
|
9
|
+
const originalWarn = console.warn;
|
|
10
|
+
console.warn = (...args) => {
|
|
11
|
+
if (!ignoredWarnings.some((warning) => args[0]?.includes(warning))) {
|
|
12
|
+
console.group("Vue Warning");
|
|
13
|
+
originalWarn(...args);
|
|
14
|
+
console.groupEnd();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare module '#app' {
|
|
2
|
+
interface NuxtApp {
|
|
3
|
+
'module.theme': {
|
|
4
|
+
version: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare module '@vue/runtime-core' {
|
|
11
|
+
interface ComponentCustomProperties {
|
|
12
|
+
'module.theme': {
|
|
13
|
+
version: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
import PackageJson from "../../../package.json";
|
|
3
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
|
+
nuxtApp.provide("module.theme", { version: PackageJson.version, name: PackageJson.name, description: PackageJson.description });
|
|
5
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "#app";
|
|
2
|
+
import PackageJson from "../../../package.json";
|
|
3
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
|
+
nuxtApp.provide("module.theme", { version: PackageJson.version, name: PackageJson.name, description: PackageJson.description });
|
|
5
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ThemeProvider: A Vue instance to provide theme related functionalities.
|
|
3
|
+
*
|
|
4
|
+
* Usage for OptionAPI:
|
|
5
|
+
* - Change the theme on button click:
|
|
6
|
+
* this.$theme.setDarkMode(!this.$theme.isDark);
|
|
7
|
+
*
|
|
8
|
+
* - Register the theme change listener:
|
|
9
|
+
* this.$theme.$on('darkMode', (value) => { console.log('darkMode:', value); });
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* Usage for CompositionAPI:
|
|
13
|
+
* <script>
|
|
14
|
+
* export default {
|
|
15
|
+
* created() {
|
|
16
|
+
* const { $theme } = useNuxtApp()
|
|
17
|
+
*
|
|
18
|
+
* // Theme değiştirme
|
|
19
|
+
* $theme.setDarkMode(!$theme.isDark)
|
|
20
|
+
*
|
|
21
|
+
* // Theme değişikliklerini dinleme
|
|
22
|
+
* this.$nuxt.$on('theme:darkMode', (value) => {
|
|
23
|
+
* console.log('Dark mode changed:', value)
|
|
24
|
+
* })
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* </script>
|
|
28
|
+
*/
|
|
29
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed, ref, watch } from "vue";
|
|
2
|
+
import { defineNuxtPlugin } from "#app";
|
|
3
|
+
function getDarkModeFromLocalStorage() {
|
|
4
|
+
return import.meta.client && localStorage.getItem("darkMode") === "true";
|
|
5
|
+
}
|
|
6
|
+
function setDarkModeToLocalStorage(value) {
|
|
7
|
+
if (import.meta.client) {
|
|
8
|
+
localStorage.setItem("darkMode", value.toString());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function setHtmlDarkClass(isDark) {
|
|
12
|
+
if (import.meta.client) {
|
|
13
|
+
const htmlElement = document.documentElement;
|
|
14
|
+
if (isDark) {
|
|
15
|
+
htmlElement.classList.add("dark");
|
|
16
|
+
} else {
|
|
17
|
+
htmlElement.classList.remove("dark");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
22
|
+
const isDarkMode = ref(getDarkModeFromLocalStorage());
|
|
23
|
+
const isDark = computed({
|
|
24
|
+
get() {
|
|
25
|
+
return isDarkMode.value;
|
|
26
|
+
},
|
|
27
|
+
set(value) {
|
|
28
|
+
isDarkMode.value = value;
|
|
29
|
+
setDarkModeToLocalStorage(value);
|
|
30
|
+
nuxtApp.vueApp.config.globalProperties.$emit("theme:darkMode", value);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
watch(isDark, (newVal) => {
|
|
34
|
+
setHtmlDarkClass(newVal);
|
|
35
|
+
});
|
|
36
|
+
const setDarkMode = (value) => {
|
|
37
|
+
isDark.value = value;
|
|
38
|
+
};
|
|
39
|
+
if (import.meta.client) {
|
|
40
|
+
setHtmlDarkClass(isDark.value);
|
|
41
|
+
}
|
|
42
|
+
nuxtApp.provide("theme", {
|
|
43
|
+
isDark,
|
|
44
|
+
setDarkMode
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed, ref, watch } from "vue";
|
|
2
|
+
import { defineNuxtPlugin } from "#app";
|
|
3
|
+
function getDarkModeFromLocalStorage() {
|
|
4
|
+
return import.meta.client && localStorage.getItem("darkMode") === "true";
|
|
5
|
+
}
|
|
6
|
+
function setDarkModeToLocalStorage(value) {
|
|
7
|
+
if (import.meta.client) {
|
|
8
|
+
localStorage.setItem("darkMode", value.toString());
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function setHtmlDarkClass(isDark) {
|
|
12
|
+
if (import.meta.client) {
|
|
13
|
+
const htmlElement = document.documentElement;
|
|
14
|
+
if (isDark) {
|
|
15
|
+
htmlElement.classList.add("dark");
|
|
16
|
+
} else {
|
|
17
|
+
htmlElement.classList.remove("dark");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
22
|
+
const isDarkMode = ref(getDarkModeFromLocalStorage());
|
|
23
|
+
const isDark = computed({
|
|
24
|
+
get() {
|
|
25
|
+
return isDarkMode.value;
|
|
26
|
+
},
|
|
27
|
+
set(value) {
|
|
28
|
+
isDarkMode.value = value;
|
|
29
|
+
setDarkModeToLocalStorage(value);
|
|
30
|
+
nuxtApp.vueApp.config.globalProperties.$emit("theme:darkMode", value);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
watch(isDark, (newVal) => {
|
|
34
|
+
setHtmlDarkClass(newVal);
|
|
35
|
+
});
|
|
36
|
+
const setDarkMode = (value) => {
|
|
37
|
+
isDark.value = value;
|
|
38
|
+
};
|
|
39
|
+
if (import.meta.client) {
|
|
40
|
+
setHtmlDarkClass(isDark.value);
|
|
41
|
+
}
|
|
42
|
+
nuxtApp.provide("theme", {
|
|
43
|
+
isDark,
|
|
44
|
+
setDarkMode
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* Element Chalk Variables */
|
|
3
|
+
:root {
|
|
4
|
+
--bs-white-rgb: 255, 255, 255;
|
|
5
|
+
--bs-black-rgb: 0, 0, 0;
|
|
6
|
+
--bs-bg-opacity: 1;
|
|
7
|
+
--el-color-white: white;
|
|
8
|
+
--el-color-black: black;
|
|
9
|
+
}
|
|
10
|
+
:root {
|
|
11
|
+
--el-color-light-light-1: rgba(255, 255, 255, 0.01);
|
|
12
|
+
}
|
|
13
|
+
:root {
|
|
14
|
+
--el-color-light-light-2: rgba(255, 255, 255, 0.01);
|
|
15
|
+
}
|
|
16
|
+
:root {
|
|
17
|
+
--el-color-light-light-3: rgba(255, 255, 255, 0.01);
|
|
18
|
+
}
|
|
19
|
+
:root {
|
|
20
|
+
--el-color-light-light-4: rgba(255, 255, 255, 0.01);
|
|
21
|
+
}
|
|
22
|
+
:root {
|
|
23
|
+
--el-color-light-light-5: rgba(255, 255, 255, 0.01);
|
|
24
|
+
--el-color-light: rgba(255, 255, 255, 0.01);
|
|
25
|
+
}
|
|
26
|
+
:root {
|
|
27
|
+
--el-color-light-light-6: rgba(255, 255, 255, 0.01);
|
|
28
|
+
}
|
|
29
|
+
:root {
|
|
30
|
+
--el-color-light-light-7: rgba(255, 255, 255, 0.01);
|
|
31
|
+
}
|
|
32
|
+
:root {
|
|
33
|
+
--el-color-light-light-8: rgba(255, 255, 255, 0.01);
|
|
34
|
+
}
|
|
35
|
+
:root {
|
|
36
|
+
--el-color-light-light-9: rgba(255, 255, 255, 0.01);
|
|
37
|
+
}
|
|
38
|
+
:root {
|
|
39
|
+
--el-color-default-light-1: #dee2ff;
|
|
40
|
+
}
|
|
41
|
+
:root {
|
|
42
|
+
--el-color-default-light-2: #c3c8ff;
|
|
43
|
+
}
|
|
44
|
+
:root {
|
|
45
|
+
--el-color-default-light-3: #9fa4ff;
|
|
46
|
+
}
|
|
47
|
+
:root {
|
|
48
|
+
--el-color-default-light-4: #7e79ff;
|
|
49
|
+
}
|
|
50
|
+
:root {
|
|
51
|
+
--el-color-default-light-5: #6959fb;
|
|
52
|
+
--el-color-default: #6959fb;
|
|
53
|
+
}
|
|
54
|
+
:root {
|
|
55
|
+
--el-color-default-light-6: #5c3bf0;
|
|
56
|
+
}
|
|
57
|
+
:root {
|
|
58
|
+
--el-color-default-light-7: #5737d6;
|
|
59
|
+
}
|
|
60
|
+
:root {
|
|
61
|
+
--el-color-default-light-8: #4028ab;
|
|
62
|
+
}
|
|
63
|
+
:root {
|
|
64
|
+
--el-color-default-light-9: #151517;
|
|
65
|
+
}
|
|
66
|
+
:root {
|
|
67
|
+
--el-color-primary-light-1: #dee2ff;
|
|
68
|
+
}
|
|
69
|
+
:root {
|
|
70
|
+
--el-color-primary-light-2: #c3c8ff;
|
|
71
|
+
}
|
|
72
|
+
:root {
|
|
73
|
+
--el-color-primary-light-3: #9fa4ff;
|
|
74
|
+
}
|
|
75
|
+
:root {
|
|
76
|
+
--el-color-primary-light-4: #7e79ff;
|
|
77
|
+
}
|
|
78
|
+
:root {
|
|
79
|
+
--el-color-primary-light-5: #6959fb;
|
|
80
|
+
--el-color-primary: #6959fb;
|
|
81
|
+
}
|
|
82
|
+
:root {
|
|
83
|
+
--el-color-primary-light-6: #5c3bf0;
|
|
84
|
+
}
|
|
85
|
+
:root {
|
|
86
|
+
--el-color-primary-light-7: #5737d6;
|
|
87
|
+
}
|
|
88
|
+
:root {
|
|
89
|
+
--el-color-primary-light-8: #4028ab;
|
|
90
|
+
}
|
|
91
|
+
:root {
|
|
92
|
+
--el-color-primary-light-9: #382887;
|
|
93
|
+
}
|
|
94
|
+
:root {
|
|
95
|
+
--el-color-secondary-light-1: #d5f6e8;
|
|
96
|
+
}
|
|
97
|
+
:root {
|
|
98
|
+
--el-color-secondary-light-2: #aeecd4;
|
|
99
|
+
}
|
|
100
|
+
:root {
|
|
101
|
+
--el-color-secondary-light-3: #7eddbf;
|
|
102
|
+
}
|
|
103
|
+
:root {
|
|
104
|
+
--el-color-secondary-light-4: #43c49f;
|
|
105
|
+
}
|
|
106
|
+
:root {
|
|
107
|
+
--el-color-secondary-light-5: #20a987;
|
|
108
|
+
--el-color-secondary: #20a987;
|
|
109
|
+
}
|
|
110
|
+
:root {
|
|
111
|
+
--el-color-secondary-light-6: #12896e;
|
|
112
|
+
}
|
|
113
|
+
:root {
|
|
114
|
+
--el-color-secondary-light-7: #0f6d5a;
|
|
115
|
+
}
|
|
116
|
+
:root {
|
|
117
|
+
--el-color-secondary-light-8: #0e5748;
|
|
118
|
+
}
|
|
119
|
+
:root {
|
|
120
|
+
--el-color-secondary-light-9: #0d473d;
|
|
121
|
+
}
|
|
122
|
+
:root {
|
|
123
|
+
--el-color-neutral-light-1: #f8f7f8;
|
|
124
|
+
}
|
|
125
|
+
:root {
|
|
126
|
+
--el-color-neutral-light-2: #f3f2f4;
|
|
127
|
+
}
|
|
128
|
+
:root {
|
|
129
|
+
--el-color-neutral-light-3: #dad9dd;
|
|
130
|
+
}
|
|
131
|
+
:root {
|
|
132
|
+
--el-color-neutral-light-4: #c1c0c7;
|
|
133
|
+
}
|
|
134
|
+
:root {
|
|
135
|
+
--el-color-neutral-light-5: #a8a6b1;
|
|
136
|
+
--el-color-neutral: #a8a6b1;
|
|
137
|
+
}
|
|
138
|
+
:root {
|
|
139
|
+
--el-color-neutral-light-6: #8f8d9a;
|
|
140
|
+
}
|
|
141
|
+
:root {
|
|
142
|
+
--el-color-neutral-light-7: #83818f;
|
|
143
|
+
}
|
|
144
|
+
:root {
|
|
145
|
+
--el-color-neutral-light-8: #454157;
|
|
146
|
+
}
|
|
147
|
+
:root {
|
|
148
|
+
--el-color-neutral-light-9: #07021f;
|
|
149
|
+
}
|
|
150
|
+
:root {
|
|
151
|
+
--el-color-info-light-1: #e3f1fb;
|
|
152
|
+
}
|
|
153
|
+
:root {
|
|
154
|
+
--el-color-info-light-2: #c0e5f7;
|
|
155
|
+
}
|
|
156
|
+
:root {
|
|
157
|
+
--el-color-info-light-3: #88d1f1;
|
|
158
|
+
}
|
|
159
|
+
:root {
|
|
160
|
+
--el-color-info-light-4: #3cb5e6;
|
|
161
|
+
}
|
|
162
|
+
:root {
|
|
163
|
+
--el-color-info-light-5: #21a1d6;
|
|
164
|
+
--el-color-info: #21a1d6;
|
|
165
|
+
}
|
|
166
|
+
:root {
|
|
167
|
+
--el-color-info-light-6: #1382b6;
|
|
168
|
+
}
|
|
169
|
+
:root {
|
|
170
|
+
--el-color-info-light-7: #116793;
|
|
171
|
+
}
|
|
172
|
+
:root {
|
|
173
|
+
--el-color-info-light-8: #12587a;
|
|
174
|
+
}
|
|
175
|
+
:root {
|
|
176
|
+
--el-color-info-light-9: #144a66;
|
|
177
|
+
}
|
|
178
|
+
:root {
|
|
179
|
+
--el-color-danger-light-1: #fde3e3;
|
|
180
|
+
}
|
|
181
|
+
:root {
|
|
182
|
+
--el-color-danger-light-2: #fdcbcb;
|
|
183
|
+
}
|
|
184
|
+
:root {
|
|
185
|
+
--el-color-danger-light-3: #faa7a7;
|
|
186
|
+
}
|
|
187
|
+
:root {
|
|
188
|
+
--el-color-danger-light-4: #f35c5c;
|
|
189
|
+
}
|
|
190
|
+
:root {
|
|
191
|
+
--el-color-danger-light-5: #eb4848;
|
|
192
|
+
--el-color-danger: #eb4848;
|
|
193
|
+
}
|
|
194
|
+
:root {
|
|
195
|
+
--el-color-danger-light-6: #d82a2a;
|
|
196
|
+
}
|
|
197
|
+
:root {
|
|
198
|
+
--el-color-danger-light-7: #b52020;
|
|
199
|
+
}
|
|
200
|
+
:root {
|
|
201
|
+
--el-color-danger-light-8: #961e1e;
|
|
202
|
+
}
|
|
203
|
+
:root {
|
|
204
|
+
--el-color-danger-light-9: #7d1f1f;
|
|
205
|
+
}
|
|
206
|
+
:root {
|
|
207
|
+
--el-color-error-light-1: #fde3e3;
|
|
208
|
+
}
|
|
209
|
+
:root {
|
|
210
|
+
--el-color-error-light-2: #fdcbcb;
|
|
211
|
+
}
|
|
212
|
+
:root {
|
|
213
|
+
--el-color-error-light-3: #faa7a7;
|
|
214
|
+
}
|
|
215
|
+
:root {
|
|
216
|
+
--el-color-error-light-4: #f35c5c;
|
|
217
|
+
}
|
|
218
|
+
:root {
|
|
219
|
+
--el-color-error-light-5: #eb4848;
|
|
220
|
+
--el-color-error: #eb4848;
|
|
221
|
+
}
|
|
222
|
+
:root {
|
|
223
|
+
--el-color-error-light-6: #d82a2a;
|
|
224
|
+
}
|
|
225
|
+
:root {
|
|
226
|
+
--el-color-error-light-7: #b52020;
|
|
227
|
+
}
|
|
228
|
+
:root {
|
|
229
|
+
--el-color-error-light-8: #961e1e;
|
|
230
|
+
}
|
|
231
|
+
:root {
|
|
232
|
+
--el-color-error-light-9: #7d1f1f;
|
|
233
|
+
}
|
|
234
|
+
:root {
|
|
235
|
+
--el-color-success-light-1: #f0f8ed;
|
|
236
|
+
}
|
|
237
|
+
:root {
|
|
238
|
+
--el-color-success-light-2: #d9edd3;
|
|
239
|
+
}
|
|
240
|
+
:root {
|
|
241
|
+
--el-color-success-light-3: #b4daa7;
|
|
242
|
+
}
|
|
243
|
+
:root {
|
|
244
|
+
--el-color-success-light-4: #8ec87b;
|
|
245
|
+
}
|
|
246
|
+
:root {
|
|
247
|
+
--el-color-success-light-5: #69b64f;
|
|
248
|
+
--el-color-success: #69b64f;
|
|
249
|
+
}
|
|
250
|
+
:root {
|
|
251
|
+
--el-color-success-light-6: #488633;
|
|
252
|
+
}
|
|
253
|
+
:root {
|
|
254
|
+
--el-color-success-light-7: #3a6a2b;
|
|
255
|
+
}
|
|
256
|
+
:root {
|
|
257
|
+
--el-color-success-light-8: #315526;
|
|
258
|
+
}
|
|
259
|
+
:root {
|
|
260
|
+
--el-color-success-light-9: #294621;
|
|
261
|
+
}
|
|
262
|
+
:root {
|
|
263
|
+
--el-color-warning-light-1: #fff5c6;
|
|
264
|
+
}
|
|
265
|
+
:root {
|
|
266
|
+
--el-color-warning-light-2: #ffe988;
|
|
267
|
+
}
|
|
268
|
+
:root {
|
|
269
|
+
--el-color-warning-light-3: #ffd643;
|
|
270
|
+
}
|
|
271
|
+
:root {
|
|
272
|
+
--el-color-warning-light-4: #ffc520;
|
|
273
|
+
}
|
|
274
|
+
:root {
|
|
275
|
+
--el-color-warning-light-5: #f9a307;
|
|
276
|
+
--el-color-warning: #f9a307;
|
|
277
|
+
}
|
|
278
|
+
:root {
|
|
279
|
+
--el-color-warning-light-6: #dd7b02;
|
|
280
|
+
}
|
|
281
|
+
:root {
|
|
282
|
+
--el-color-warning-light-7: #b75606;
|
|
283
|
+
}
|
|
284
|
+
:root {
|
|
285
|
+
--el-color-warning-light-8: #94410c;
|
|
286
|
+
}
|
|
287
|
+
:root {
|
|
288
|
+
--el-color-warning-light-9: #7a370d;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
292
|
+
.selector{
|
|
293
|
+
// --el-button-text-color: var(--el-color-primary); -> bu eklenir
|
|
294
|
+
@include css-var-from-global(('button-text-color'), ('color-primary'));
|
|
295
|
+
|
|
296
|
+
// bununla property'ye değer atayabilirsin (hiyerarşik alıyor)
|
|
297
|
+
color: getCssVar('colors-neutral-light-2');
|
|
298
|
+
|
|
299
|
+
// bununla da property alınabililyor
|
|
300
|
+
font-size: map.get($select, 'font-size');
|
|
301
|
+
}
|
|
302
|
+
**/
|
|
303
|
+
.el-affix--fixed {
|
|
304
|
+
position: fixed;
|
|
305
|
+
}
|