👌 我就是面试造飞机,工作造歼20,转行做前端的前端练习生。喜欢开源,喜欢分享,公众号:前端黑洞, 定期更新, 欢迎关注;
文章 ---------------------------------------------更多 | 最近在做 ---------------------------------------------- |
|
antd后台项目前端组件封装和方法库
Home Page: http://doc.closertb.site
👌 我就是面试造飞机,工作造歼20,转行做前端的前端练习生。喜欢开源,喜欢分享,公众号:前端黑洞, 定期更新, 欢迎关注;
文章 ---------------------------------------------更多 | 最近在做 ---------------------------------------------- |
|
你好,朋友
使用时,是不是还得引入 antd 的全部样式,像这样
// global.js
import 'antd/dist/antd.css'
下面的组件引用可以做到按需加载
自动引入 antd table 样式吗?
import { EnhanceTable } from "antd-doddle";
你源码里已经有了按需加载的条件了:
antd-doddle/packages/EnhanceTable/index.js
import { Table } from 'antd';
RT
在gulp打包的时候,在babelConfig中 加入
[ "import", { "libraryName": "antd", "style": true } ]。
import { formRender } from 'ffe-basic';
ffe-basic和项目名字antd-doddle (npm i antd-doddle)不一致是如何做到的?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.