Skip to content

Latest commit

 

History

History

create-language

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

功能

antd - (语言)默认中文

API

  • CreateLanguage(options) => (WrappedComponent) => Component
属性 说明 类型 默认值
locale 语言包 - zh-CN

基础用法

import React, { Component } from 'react';
import { CreateLanguage } from '../../../main.js';
import { Modal } from 'antd';
@CreateLanguage()
class Basic extends Component {
	constructor(props, context) {
		super(props, context);
	}
	handleClick = () => { 
		Modal.confirm({});
	}
	render() {
		return (
			<div onClick={this.handleClick}>
				test
			</div>
		);
	}
}
export default Basic;