Skip to content

Commit

Permalink
docs(module:resizable): add Stackblitz config (NG-ZORRO#4657)
Browse files Browse the repository at this point in the history
* docs(module:resizable): add Stackblitz config


close NG-ZORRO#4656

* build: fix build error
  • Loading branch information
hsuanxyz authored and wenqi73 committed Jan 9, 2020
1 parent 1ec18e4 commit 72bfd7a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
6 changes: 5 additions & 1 deletion components/code-editor/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ Support monaco editor in Angular.

## When To Use

- When you want to use monaco editor in Angular.
When you want to use monaco editor in Angular.

```ts
import { NzCodeEditorModule } from 'ng-zorro-antd/code-editor';
```

## API

Expand Down
6 changes: 5 additions & 1 deletion components/code-editor/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ monaco editor 组件。

## 何时使用

- 需要在网页上渲染 monaco editor 时使用。
需要在网页上渲染 monaco editor 时使用。

```ts
import { NzCodeEditorModule } from 'ng-zorro-antd/code-editor';
```

## API

Expand Down
8 changes: 8 additions & 0 deletions components/resizable/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Resize element.
- Support Grids System
- Support for custom handles and preview styles

## When To Use

When you want to resize elements.

```ts
import { NzResizableModule } from 'ng-zorro-antd/resizable';
```

## API

### [nz-resizable]
Expand Down
8 changes: 8 additions & 0 deletions components/resizable/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ experimental: true
- 支持栅格系统
- 支持自定义调整手柄和预览样式

## 何时使用

当你想调整元素尺寸时.

```ts
import { NzResizableModule } from 'ng-zorro-antd/resizable';
```

## API

### [nz-resizable]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"marked": "^0.7.0",
"minimist": "^1.2.0",
"monaco-editor": "^0.17.1",
"ng-packagr": "^9.0.0-rc.3",
"ng-packagr": "9.0.0-rc.4",
"ngx-color": "^4.0.0",
"node-prismjs": "^0.1.2",
"parse5": "^5.1.1",
Expand Down
5 changes: 4 additions & 1 deletion scripts/site/_site/doc/app/share/nz-codebox/stack-blitz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ import { NzTreeModule } from 'ng-zorro-antd/tree';
import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';
import { NzTypographyModule } from 'ng-zorro-antd/typography';
import { NzUploadModule } from 'ng-zorro-antd/upload';
import { NzResizableModule } from 'ng-zorro-antd/resizable';
@NgModule({
exports: [
Expand Down Expand Up @@ -252,7 +253,8 @@ import { NzUploadModule } from 'ng-zorro-antd/upload';
NzTreeSelectModule,
NzTypographyModule,
NzUploadModule,
NzWaveModule
NzWaveModule,
NzResizableModule
]
})
export class DemoNgZorroAntdModule {
Expand Down Expand Up @@ -288,6 +290,7 @@ export class DemoNgZorroAntdModule {
],
"styles": [
"node_modules/ng-zorro-antd/src/ng-zorro-antd.min.css",
"node_modules/ng-zorro-antd/resizable/style/index.min.css",
"src/styles.css"
],
"scripts": []
Expand Down

0 comments on commit 72bfd7a

Please sign in to comment.