smart-xs-utils

0.0.19 • Public • Published

smart-xs-utils

目前名字是smart-xs-utils。太长了,要改。可能叫ng-soarway。

此schematics提供了一些常用的业务模板生成命令

创建api文件

ng g smart-xs-utils:api api名称

例:
ng g smart-xs-utils:api users
即可在src/app/restful下生成 users.ts,内有接口常用方法

创建常规页面

生成列表 新增 编辑三件套

命令
ng g smart-xs-utils:piece3 组件名 模块名

例:
ng g ng-alain:module users // 生成users module
ng g smart-xs-utils:piece3 users-list users

即可新增三个组件:users-list、users-list-new和user-list-edit

另参数 -o 参数值为modal和drawer,可生成modal或者drawer

创建modal/drawer

ng g smart-xs-utils:创建modal 组件名称 模块名

例:
ng g smart-xs-utils:创建modal users-audit users

即可在src/app/shared/components/users下增加一个名为users-audit的创建modal组件。drawer同理。

Readme

Keywords

Package Sidebar

Install

npm i smart-xs-utils

Weekly Downloads

20

Version

0.0.19

License

MIT

Unpacked Size

7.63 MB

Total Files

96

Last publish

Collaborators

  • pcq