vue3-dxui
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

安装

    npm install vue3-dxui --save

或者

    yarn add vue3-dxui

使用

全局引入

修改 vue 项目的 main.ts,并引入

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Dxui from 'vue3-dxui' // 导入
import 'vue3-dxui/dxui/dxui.css' // 全局样式导入

createApp(App).use(Dxui).use(store).use(router).mount('#app')

局部引入

当然还是要全局引入样式

<template>
  <div>
    <Button>按钮</Button>
  </div>
</template>

<script>
import { Button } from 'vue3-dxui'
export default {
  components: {
    Button
  }
}
</script>

关于 ts

打包后暂时未有类型声明,请在 shims-vue.d.ts 中进行声明

/* eslint-disable */
declare module '*.vue' {
  import type { DefineComponent } from 'vue'
  const component: DefineComponent<{}, {}, any>
  export default component
}

declare module 'vue3-dxui'

声明之后你就可以在 lang="ts"的情况下使用了

<template>
  <div>
    <Button>按钮</Button>
  </div>
</template>

<script lang="ts">
import { Button } from 'vue3-dxui'
export default {
  components: {
    Button
  }
}
</script>

组件目录

const ComponentsList = [
  'Icon',
  'AnimationIcon',
  'Carousel',
  'Button',
  'Card',
  'CardGroup',
  'Dialog',
  'Tooltip',
  'BreadCrumb',
  'Checkbox',
  'CheckboxGroup',
  'Switch',
  'Tag',
  'Slider',
  'Select',
  'Message',
  'Affix'
]

其它内容介绍

csdn 介绍 vue3-dxui 的使用 https://dengxi.blog.csdn.net/article/details/129508840
dxui 网站介绍 http://www.dxyx-together.cn/#/home/button
github https://github.com/757363985/dxui

Readme

Keywords

Package Sidebar

Install

npm i vue3-dxui

Weekly Downloads

31

Version

1.1.9

License

none

Unpacked Size

7.36 MB

Total Files

14

Last publish

Collaborators

  • dengxi123