From e2727a7b83e4fd270a078914e6b6982b112c186b Mon Sep 17 00:00:00 2001 From: Arina Yakovenko Date: Mon, 8 Jul 2024 13:58:03 +0200 Subject: [PATCH] --- --- app.vue | 18 +++++++++--------- modules/module.ts | 45 +++++++++++++++++++++++++++++++++++++++------ 2 files changed, 48 insertions(+), 15 deletions(-) diff --git a/app.vue b/app.vue index 2dba4ed..732f492 100644 --- a/app.vue +++ b/app.vue @@ -6,7 +6,9 @@ - @@ -44,12 +45,11 @@ title="Dropdown" :title="''" :pt="{ - root: { class: 'w-10 h-10 text-left absolute left-0 z-0' }, + root: { class: 'w-[100px] h-10 text-left relative' }, dropdown: { - class: - 'w-[150px] right-[-50px] absolute mt-4 shadow-custom-lrb dark:shadow-custom-drb block', + class: 'w-[150px] right-[-50px] absolute mt-4 block', }, - title: { class: 'w-[30px] h-10' }, + title: { class: 'w-[100px] h-10 bg-white shadow-2xl' }, arrow: { class: 'hidden' }, }" > diff --git a/modules/module.ts b/modules/module.ts index 54a0a78..934e873 100644 --- a/modules/module.ts +++ b/modules/module.ts @@ -25,6 +25,37 @@ const components = [ name: "MlDropDownItem", path: "../src/components/Ml/DropDown/MlDropDownItem.vue", }, + { + name: "MlDropDownItem", + path: "../src/components/Ml/DropDown/MlDropDownItem.vue", + }, + { + name: "MlSlider", + path: "../src/components/Ml/Slider/MlSlider.vue", + }, + { + name: "MlSliderPoint", + path: "../src/components/Ml/MlSliderPoint/MlSliderPoint.vue", + }, +]; + +const composables = [ + { + name: "useRipple", + path: "../src/composables/useRipple.ts", + }, + { + name: "useMergeClasses", + path: "../src/composables/useMergeClasses.ts", + }, + { + name: "useBounce", + path: "../src/composables/useBounce.ts", + }, + { + name: "useTailwindConf", + path: "../src/composables/useTailwindConf.ts", + }, ]; export default defineNuxtModule({ meta: { @@ -42,11 +73,13 @@ export default defineNuxtModule({ }); } - addImports([ - { - name: "useRipple", - from: resolver.resolve("../src/composables/useRipple.ts"), - }, - ]); + for (let item of composables) { + addImports([ + { + name: item.name, + from: resolver.resolve(item.path), + }, + ]); + } }, });