push
This commit is contained in:
17
lib/component/form/button/button.vue
Normal file
17
lib/component/form/button/button.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<a-button>
|
||||
<slot></slot>
|
||||
<template #icon>
|
||||
<slot name="icon"></slot>
|
||||
</template>
|
||||
</a-button>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'NsButton',
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped></style>
|
||||
4
lib/component/form/button/index.ts
Normal file
4
lib/component/form/button/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import button from './button.vue';
|
||||
import { withInstall } from '/nerv-lib/util';
|
||||
|
||||
export const NsButton = withInstall(button);
|
||||
Reference in New Issue
Block a user