# @egjs/ngx-flicking 中文文档

规范地址：https://npmcn.com/package/%40egjs/ngx-flicking/

版本：4\.15\.0
npm 元数据更新时间：2025-11-25T05:07:03.113Z
中文译文更新时间：2026-11-13T09:10:31.849Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40egjs/ngx-flicking
原文对照：https://npmcn.com/package/%40egjs/ngx-flicking/?lang=original
项目主页：https://naver.github.io/egjs-flicking/
源码仓库：https://github.com/naver/egjs-flicking#master

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：164 kB，24 个文件
- 模块格式：ES Module
- TypeScript 类型：包内自带
- 运行依赖：3 个
- 首次发布：2019-06-12T09:18:37.782Z
- 最新版本发布：2025-11-25T05:07:02.835Z
- 近 30 天下载量：8423（2026-10-13 至 2026-11-11，npm 官方下载统计）
- 已发布版本数：92（近 12 个月 1 个）

## 中文简介

每天有3000万人经历. 它是可靠,灵活和可扩展的旋转木马.

## 安装

```sh
npm install @egjs/ngx-flicking
```

也可以使用：`pnpm add @egjs/ngx-flicking`、`yarn add @egjs/ngx-flicking`、`bun add @egjs/ngx-flicking`

## README

# ![Flicking Logo](https://naver.github.io/egjs-flicking/images/flicking.svg)  
![Angular](https://naver.github.io/egjs-flicking/images/angular.svg) @egjs/ngx-flicking (英语)

 [![](https://img.shields.io/npm/v/@egjs/ngx-flicking.svg?style=flat-square&color=dd0031&label=version&logo=NPM)](https://www.npmjs.com/package/@egjs/ngx-flicking)[![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@egjs/ngx-flicking.svg?style=flat-square&label=%F0%9F%92%BE%20gzipped&color=007acc) ](https://www.npmjs.com/package/@egjs/ngx-flicking)[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/naver/egjs-flicking.svg?style=flat-square&label=%E2%AC%86%20commits&color=08CE5D) ](https://github.com/naver/egjs-flicking/graphs/commit-activity)[![npm downloads per month](https://img.shields.io/npm/dm/@egjs/ngx-flicking.svg?style=flat-square&label=%E2%AC%87%20downloads&color=08CE5D) ](https://www.npmjs.com/package/@egjs/ngx-flicking)[![GitHub contributors](https://img.shields.io/github/contributors/naver/egjs-flicking.svg?label=%F0%9F%91%A5%20contributors&style=flat-square&color=08CE5D)](https://github.com/naver/egjs-flicking/graphs/contributors) [![GitHub](https://img.shields.io/github/license/naver/egjs-flicking.svg?style=flat-square&label=%F0%9F%93%9C%20license&color=08CE5D)](https://github.com/naver/egjs-flicking/blob/master/LICENSE)

![Angular](https://naver.github.io/egjs-flicking/images/angular.svg) 角包装 [@egjs/闪烁](https://github.com/naver/egjs-flicking)

[演示](https://codesandbox.io/s/egjsngx-flicking-examples-czb2g) 编号 : [文档](https://naver.github.io/egjs-flicking/docs/api/Flicking) 编号 : [其他构成部分](https://naver.github.io/egjs/)

## \* 安装

```sh
npm install @egjs/ngx-flicking
# Or if you're using yarn
yarn add @egjs/ngx-flicking
# Or if you're using pnpm
pnpm install @egjs/ngx-flicking
```

## QQ 快速启动

### 模块定义

```diff
+import { NgxFlickingModule } from '@egjs/ngx-flicking';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
+   NgxFlickingModule /* Add in imports */
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { } /* Your app */
```

然后我们再捆绑 `flicking.css`文件可以导入到 `styles.scss` 或定义 `angular.json` 配置在 `options.build.styles` 列表 :

```scss
// styles.scss
@import '@egjs/flicking/dist/flicking.css';
```

### 模板脚本( S)

```ts
import { Plugin } from '@egjs/ngx-flicking';
import { Fade, AutoPlay } from '@egjs/flicking-plugins';

@Component({
  selector: 'flicking-demo',
  template: `
    <ngx-flicking
      [options]="{ circular: true, duration: 500 }"
      [plugins]="plugins"
      (needPanel)="onNeedPanel($event)"
    >
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg01.jpg" />
      </div>
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg02.jpg" />
      </div>
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg03.jpg" />
      </div>
    </ngx-flicking>
  `,
})
export class FlickingDemo implements OnInit {
  plugins: Plugin[] = [
    new Fade(),
    new AutoPlay({
      duration: 2000,
      direction: 'NEXT',
    }),
  ];

  onNeedPanel(e) {
    // ADD PANELS
  }
}
```

## 指南

-   \[v3.4+\] (中文(简体) ) [对 ngx 闪烁应用 Question 选项](https://github.com/naver/egjs-flicking/wiki/Applying-renderOnlyVisible-option-on-ngx-flicking) (业绩)

## • 软件包

您可以像本地的 @ egjs/ flicking 一样使用所有插件 .

检查 [**@egjs/flicking-plugins (英语)**](https://github.com/naver/egjs-flicking-plugins) 为了我们提供的现成效果.

## +++ 更多选项和实例

[选项](https://naver.github.io/egjs-flicking/Options) 编号 : [演示文稿](https://naver.github.io/egjs-flicking/Demos)

## 捐款

见 [捐款额](https://github.com/naver/egjs-flicking/blob/master/CONTRIBUTING.md)

## \* 反馈

请存档 [问题](https://github.com/naver/egjs-flicking/issues) 带有"Angular"标签.

## 地方发展

### 项目设置

```
npm install
```

### 编译和热重装演示

```sh
npm run start
```

### 编制和修改用于生产

```
npm run build
```

### 运行您的测试

```
npm run test
```

### 林特和修正文件

```
npm run lint
```

## 许可证

egjs-flicking 发布在下面 [麻省理工学院许可证](http://naver.github.io/egjs/license.txt)。 。 。 .

```
Copyright (c) 2015-present NAVER Corp.
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.
```

[![](https://naver.github.io/egjs/img/logotype1_black.svg)](https://naver.github.io/egjs/)      [![](https://naver.github.io/OpenSourceGuide/book/assets/naver_logo.png)](https://github.com/naver)

## 常见问题

### @egjs/ngx-flicking 是什么？

每天有3000万人经历\. 它是可靠,灵活和可扩展的旋转木马\.

### 如何安装 @egjs/ngx-flicking？

在项目目录运行 npm install @egjs/ngx-flicking，或使用 pnpm add / yarn add / bun add。

### @egjs/ngx-flicking 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @egjs/ngx-flicking 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @egjs/ngx-flicking 可以商用吗？

@egjs/ngx-flicking 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @egjs/ngx-flicking 的下载量有多少？

根据 npm 官方下载统计，@egjs/ngx-flicking 在 2026/10/13 – 2026/11/11 这 30 天内被下载 8,423 次，日均约 281 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @egjs/ngx-flicking 还在维护吗？

最新版本 4\.15\.0 发布于 2025/11/25（11 个月前）；至今共发布 92 个版本，其中过去 12 个月发布了 1 个；首次发布于 2019/06/12。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

