- js编译 yarn compile && npm run compile
- css编译 yarn dist && npm run dist
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));
}
}
},
- components\vc-tabs\src\TabBarRootNode.jsx
onKeyDown() {
this.__emit('keydown', e);
},
- components\button\button.jsx event.target.blur(); 每次点击后,让button点击后失去焦点
handleClick(event) {
const { sLoading } = this.$data;
if (sLoading) {
return;
}
event.target.blur();
this.$emit('click', event);
},
- 修改人:陈桦
- 修改时间: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.
English | 简体中文
Special thanks to the generous sponsorship by:
- 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
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 |
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.
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) |
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:
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Support us with a monthly donation and help us continue our activities. [Become a backer]
Support us with a monthly donation and help us continue our activities. [Become a backer]