🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vue3-dxui

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-dxui

```javascript npm install vue3-dxui --save ```

latest
npmnpm
Version
1.1.9
Version published
Weekly downloads
22
340%
Maintainers
1
Weekly downloads
 
Created
Source

安装

    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

Keywords

dxui

FAQs

Package last updated on 08 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts