Socket
Socket
Sign inDemoInstall

ant-design-vue

Package Overview
Dependencies
62
Maintainers
1
Versions
232
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ant-design-vue

An enterprise-class UI design language and Vue-based implementation


Version published
Weekly downloads
114K
increased by8.43%
Maintainers
1
Created
Weekly downloads
 

Package description

What is ant-design-vue?

Ant Design Vue is a Vue.js UI library that provides a set of high-quality components and demos for building rich, interactive user interfaces. It is based on Ant Design, a popular React UI library, and offers a wide range of components that are designed to be easy to use and integrate into Vue.js applications.

What are ant-design-vue's main functionalities?

Button

The Button component is a basic UI element that can be used to trigger actions. It supports various types, such as primary, default, dashed, and danger.

<template>
  <a-button type="primary">Primary Button</a-button>
</template>
<script>
import { Button } from 'ant-design-vue';
export default {
  components: {
    'a-button': Button
  }
};
</script>

Form

The Form component is used to create and manage forms. It provides validation, layout, and submission handling features.

<template>
  <a-form :form="form" @submit="handleSubmit">
    <a-form-item label="Username">
      <a-input v-model="form.username" />
    </a-form-item>
    <a-form-item label="Password">
      <a-input type="password" v-model="form.password" />
    </a-form-item>
    <a-form-item>
      <a-button type="primary" html-type="submit">Submit</a-button>
    </a-form-item>
  </a-form>
</template>
<script>
import { Form, Input, Button } from 'ant-design-vue';
export default {
  data() {
    return {
      form: this.$form.createForm(this, { name: 'login_form' })
    };
  },
  methods: {
    handleSubmit(e) {
      e.preventDefault();
      this.form.validateFields((err, values) => {
        if (!err) {
          console.log('Received values: ', values);
        }
      });
    }
  },
  components: {
    'a-form': Form,
    'a-form-item': Form.Item,
    'a-input': Input,
    'a-button': Button
  }
};
</script>

Table

The Table component is used to display data in a tabular format. It supports features like sorting, filtering, and pagination.

<template>
  <a-table :columns="columns" :dataSource="data" />
</template>
<script>
import { Table } from 'ant-design-vue';
export default {
  data() {
    return {
      columns: [
        { title: 'Name', dataIndex: 'name', key: 'name' },
        { title: 'Age', dataIndex: 'age', key: 'age' },
        { title: 'Address', dataIndex: 'address', key: 'address' }
      ],
      data: [
        { key: '1', name: 'John Brown', age: 32, address: 'New York No. 1 Lake Park' },
        { key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park' }
      ]
    };
  },
  components: {
    'a-table': Table
  }
};
</script>

Other packages similar to ant-design-vue

Readme

Source

Ant Design Vue

An enterprise-class UI components based on Ant Design and Vue.

Travis branch codecov npm package NPM downloads Join the chat at https://gitter.im/vueComponent/ant-design-english (English) Join the chat at https://gitter.im/vueComponent/ant-design-vue(中文) backers sponsors extension-for-VSCode

English | 简体中文 | 官网国内镜像

Special thanks to the generous sponsorship by:

Features

  • An enterprise-class UI design system for desktop applications.
  • A set of high-quality Vue components out of the box.
  • Shared Ant Design of React design resources.

Using npm or yarn

We recommend using npm or yarn to install,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.

$ npm install ant-design-vue --save
$ yarn add ant-design-vue

If you are in a bad network environment,you can try other registries and tools like cnpm.

Ecosystem

ProjectDescription
vue-refYou can use the callback to get a reference like react
ant-design-vue-helperA vscode extension for ant-design-vue
vue-cli-plugin-ant-designVue-cli 3 plugin to add ant-design-vue
vue-dash-eventThe library function, implemented in the DOM template, can use the custom event of the ant-design-vue component (camelCase)

Donation

ant-design-vue is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more backers. You can support us in any of the following ways:

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Let's fund issues in this repository

Keywords

FAQs

Last updated on 17 Jan 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc