ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.54k stars 1.16k forks source link

基于ng-alain写一个增强库,希望能够获得作者一些帮助。 #2341

Closed xingkoo closed 1 year ago

xingkoo commented 1 year ago

What problem does this feature solve?

已经写了一些基础功能:https://github.com/future-cube/fc-ng-lib 目前实现了一个简单的功能,从通过服务,从后端获取表格列配置及数据文件【全局注入时指定请求接口地址】。

后续会处理一些通过前端来管理列配置、表单结构生成等功能。

What does the proposed API look like?

想类似@delon,分不同的包来实现,以供其他项目分别使用。

由于技术能力有限,对第三方包的开发理解有限,

所以作者能否提供一个base 类库,加简单的开发说明,以供有类似想法的朋友快速开始, 如时间有限,不方便提供的话,能否提供一些参考资料。 感谢!

alain-bot[bot] commented 1 year ago

Translation of this issue:

Writing a enhanced library based on NG-Alain, hoping to get some help in the author.

What PROBLEM DOES This Feature Solve?

Some basic functions have At present, a simple function is implemented. From the service, the form configuration and data file from the back end are obtained from the back end [Specify the request interface address when the global injection].

Subsequently handle some functions such as pre -management column configuration and form structure generation.

What does the proposed api look like?

-Drive some sf components -On customized some ST column templates -In other Ng-Alain enhancement implementation

I want to be similar to @Delon. Different packages are implemented for other items to use separately.

Due to the limited technical ability, the development and understanding of the third -party package is limited.

Therefore, can the author provide a base class library to add simple development instructions to start quickly for friends with similar ideas. If time is limited and inconvenient to provide, can you provide some reference materials. grateful!

cipchk commented 1 year ago

可以试一下 Angular Libraries ,本身就有提供一个工程项目内使用多个类库,并可以将这些类库发布到 NPM 等上面。而且非常简单。事实上,@delon/* 系列想要换成 Angular Libraries 也是可以的。

xingkoo commented 1 year ago

现在就是直接在ng-alain的基础上,通过这种方式,使用ng g library lib-name生成的类库。 但似乎要想做成类似@delon/*这样的多个类库,还是差很多工作量。 个人觉得应该是在script上的差别。 我先尝试着使用目前的框架,先把需要的功能做出来试试。

cipchk commented 1 year ago

一样的,只不过 @delon 直接使用的是 https://github.com/ng-packagr/ng-packagr 来打包,本质还是一样的。

devcui commented 1 year ago

直接发你自己写的包,然后peerDependence上加上@delon/xxx @delon/xxx ng-alain这种信息

cipchk commented 1 year ago

peerDependence 是表明依赖的情况,这的确是需要的。