1.1.9 • Published 2 years ago

vue3-dxui v1.1.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

安装

    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

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago