npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

djl-ant-design-vue

v1.7.9

Published

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

Downloads

13

Readme

antd 组件库

  1. js编译 yarn compile && npm run compile
  2. css编译 yarn dist && npm run dist

兼容低版本需要的配置

npm install --save-dev babel-polyfill

来源:https://blog.csdn.net/gwdgwd123/article/details/95368444

全局键盘监听

components_util\BaseMixin.js : 按键监听混入地层方法

 __emit() {
      // 直接调用listeners,底层组件不需要vueTool记录events
      const args = [].slice.call(arguments, 0);
      const eventName = args[0];
      const event = this.$listeners[eventName];
      if (args.length && event) {
        if (Array.isArray(event)) {
          for (let i = 0, l = event.length; i < l; i++) {
            event[i](...args.slice(1));
          }
        } else {
          event(...args.slice(1));
        }
      }
    },

Tabs 组件按键监听方法位置

  1. components\vc-tabs\src\TabBarRootNode.jsx
onKeyDown() {
    this.__emit('keydown', e);
},

Button 组件按键事件取消位置

  1. components\button\button.jsx event.target.blur(); 每次点击后,让button点击后失去焦点
  handleClick(event) {
      const { sLoading } = this.$data;
      if (sLoading) {
        return;
      }
      event.target.blur();
      this.$emit('click', event);
    },

Tree组件修改

  • 修改人:陈桦
  • 修改时间:2022-02-10 16:44
  • 修改问题:双击节点时收起子节点
  • 文件:TreeNode.jsx
  • 路径:components\vc-tree\src\TreeNode.jsx
  • 代码块
onSelectorDoubleClick(e) {
      this.onExpand();  
      const {
        vcTree: { onNodeDoubleClick },
      } = this;
      onNodeDoubleClick(e, this);
    },

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

test 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 | 简体中文

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.
  • Support Vue 3 from 2.x

Environment Support

  • Modern browsers and Internet Explorer 9+ (with polyfills)
  • Server-side Rendering
  • Electron

| IE / Edge | Firefox | Chrome | Safari | Opera | Electron | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | IE9, IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

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.

Links

Ecosystem

| Project | Description | | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | | vue-ref | You can use the callback to get a reference like react | | ant-design-vue-helper | A vscode extension for ant-design-vue | | vue-cli-plugin-ant-design | Vue-cli 3 plugin to add ant-design-vue | | vue-dash-event | The 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:

Sponsors

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

Backers

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

Patreon

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

More Sponsor (From Patreon、alipay、wechat、paypal...)

Let's fund issues in this repository