当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
6 Star 13 Fork 2

tg / freeng
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

FreeNG

Angular 4的UI 组件。

实例

HomePage查看所有的组件

安装

npm install freeng --save

如何使用?

一旦FreeNG被下载和配置,我们就可以导入需要的模块。

在“AppModule”导入所有组件:

import {FreengModule} from 'freeng/freeng'; //accordion

@NgModule({
  declarations: [AppComponent],
  imports: [FreengModule.forRoot()],  
  bootstrap: [AppComponent]
})
export class AppModule {}

导入一个组件模块:

import {AccordionModule} from 'freeng/freeng'; //accordion

@NgModule({
  declarations: [AppComponent],
  imports: [AccordionModule],  
  bootstrap: [AppComponent]
})
export class AppModule {}

从freeng/freeng导入将加载所有其他组件,只导入特定的组件可以导入较小bundle。

//import {ComponentModule} from 'freeng/component/componentname/componentname.component';

import {AccordionModule} from 'freeng/component/accordion/accordion.component'; 

//import {DirectiveModule} from 'freeng/component/directivename/directivename.directive'; 

import {ButtonModule} from 'freeng/component/button/button.directive';

依赖

FreeNG具有一些第三方依赖关系(像Chart.js一样)。 此外,组件需要字体 - 图标的字体。

css依赖关系如下,请注意,在FreeNG css之前应该加载font-awesome。

<link rel="stylesheet" href="<YOUR_PATH>/font-awesome.min.css" />
<link rel="stylesheet" href="/node_modules/freeng/resources/freeng.min.css" /> 
<link rel="stylesheet" href="/node_modules/freeng/resources/themes/blue.css" />

Angular CLI

Angular CLI是Angular的官方CLI工具。 我们强烈建议在启动Angular项目时使用Angular CLI。

依赖

添加FreeNG和FontAwesome作为依赖:

"dependencies": {
    "freeng": "^0.4.0",
    "font-awesome": "^4.7.0"
}

样式配置

配置所需的样式:

"styles": [
    "styles.css"
]

styles.css

@import "../node_modules/font-awesome/css/font-awesome.min.css";
@import '../node_modules/freeng/resources/freeng.min.css';
@import '../node_modules/freeng/resources/themes/blue.css';

有什么变化?

查看Changelog.

帮助

Licence

MIT License

MIT License Copyright (c) 2017 TG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

FreeNG是一款完全响应式的前端UI框架,它采用了主流的左右两栏式布局,使用了Html5+CSS3+Angular2(+4)等流行的前端技术,同时提供了诸多强大的可以重新组合的UI组件,门槛极低,拿来即用。 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mini-cloud/freeng.git
git@gitee.com:mini-cloud/freeng.git
mini-cloud
freeng
freeng
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891