Skip to content

Commit

Permalink
feat(abc:qr): will be removed in 18.0.0
Browse files Browse the repository at this point in the history
Please use [nz-qrcode](https://ng.ant.design/components/qr-code) instead.
  • Loading branch information
cipchk committed Oct 21, 2023
1 parent de138d5 commit d9cf7f1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/abc/qr/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ title: qr
subtitle: QR
cols: 1
module: import { QRModule } from '@delon/abc/qr';
deprecated: true
---

# Will be removed in 18.0.0, please use [nz-qrcode](https://ng.ant.design/components/qr-code) instead.

Generate a QR code based on [qrious](https://github.com/neocotic/qrious).


Expand Down
3 changes: 3 additions & 0 deletions packages/abc/qr/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ title: qr
subtitle: 二维码
cols: 1
module: import { QRModule } from '@delon/abc/qr';
deprecated: true
---

# 将在 18.0.0 中移除,请使用 [nz-qrcode](https://ng.ant.design/components/qr-code) 替代

基于 [qrious](https://github.com/neocotic/qrious) 生成二维码。

默认二维码的操作并不是刚需的原因,因此采用一种延迟加载脚本的形式,可以通过[全局配置](/docs/global-config)配置来改变默认 CDN 路径,默认情况下使用 `https://cdn.jsdelivr.net/npm/qrious/dist/qrious.min.js`。或安装 `npm i --save qrious` 依赖包并在 `angular.json``scripts` 引用 `"node_modules/qrious/dist/qrious.min.js"`
Expand Down
4 changes: 4 additions & 0 deletions packages/abc/qr/qr.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import type { NzSafeAny } from 'ng-zorro-antd/core/types';
import { QR_DEFULAT_CONFIG } from './qr.config';
import { QROptions } from './qr.types';

/**
* Will be removed in 18.0.0, please use [nz-qrcode](https://ng.ant.design/components/qr-code) instead.
* @deprecated
*/
@Component({
selector: 'qr',
exportAs: 'qr',
Expand Down
4 changes: 4 additions & 0 deletions packages/abc/qr/qr.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { QRComponent } from './qr.component';

const COMPONENTS = [QRComponent];

/**
* Will be removed in 18.0.0, please use [nz-qrcode](https://ng.ant.design/components/qr-code) instead.
* @deprecated
*/
@NgModule({
imports: [CommonModule],
declarations: COMPONENTS,
Expand Down

0 comments on commit d9cf7f1

Please sign in to comment.