修复 src 结构
This commit is contained in:
9
src/component/line/index.ts
Normal file
9
src/component/line/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { App } from "vue";
|
||||
import Component from "./index.vue";
|
||||
import type { IDefineComponent } from "../type/index";
|
||||
|
||||
Component.install = (app: App) => {
|
||||
app.component(Component.name || "LayLine", Component);
|
||||
};
|
||||
|
||||
export default Component as IDefineComponent;
|
||||
11
src/component/line/index.vue
Normal file
11
src/component/line/index.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<hr :class="['layui-border-' + theme]" />
|
||||
</template>
|
||||
|
||||
<script setup name="LayLine" lang="ts">
|
||||
import { defineProps } from "vue";
|
||||
|
||||
const props = defineProps<{
|
||||
theme?: string;
|
||||
}>();
|
||||
</script>
|
||||
Reference in New Issue
Block a user