Skip to content

Commit db9646c

Browse files
committed
release: 21.0.3
1 parent 9dd29c3 commit db9646c

4 files changed

Lines changed: 50 additions & 21 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ng-zorro-vscode",
33
"displayName": "NG-ZORRO Snippets",
44
"description": "Snippets based on NG-ZORRO",
5-
"version": "21.0.2",
5+
"version": "21.0.3",
66
"icon": "ng-zorro.png",
77
"publisher": "cipchk",
88
"license": "MIT",

src/magic/resources/data.ts

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,8 +1986,7 @@ export const DATA: Directive[] = [
19861986
"description": "nz-cascader.nzOpen.description",
19871987
"type": "boolean",
19881988
"typeRaw": "`boolean`",
1989-
"default": "`false`",
1990-
"pureDefault": "false"
1989+
"default": ""
19911990
},
19921991
{
19931992
"name": "nzPlaceHolder",
@@ -2013,6 +2012,14 @@ export const DATA: Directive[] = [
20132012
],
20142013
"pureDefault": "bottomLeft"
20152014
},
2015+
{
2016+
"name": "nzPopupRender",
2017+
"inputType": 0,
2018+
"description": "nz-cascader.nzPopupRender.description",
2019+
"type": "TemplateRef",
2020+
"typeRaw": "`TemplateRef<{ $implicit: TemplateRef<void> }>`",
2021+
"default": ""
2022+
},
20162023
{
20172024
"name": "nzShowArrow",
20182025
"inputType": 0,
@@ -2122,14 +2129,6 @@ export const DATA: Directive[] = [
21222129
"typeRaw": "`EventEmitter<void>`",
21232130
"default": ""
21242131
},
2125-
{
2126-
"name": "nzVisibleChange",
2127-
"inputType": 1,
2128-
"description": "nz-cascader.nzVisibleChange.description",
2129-
"type": "EventEmitter",
2130-
"typeRaw": "`EventEmitter<boolean>`",
2131-
"default": ""
2132-
},
21332132
{
21342133
"name": "nzRemoved",
21352134
"inputType": 1,
@@ -2146,6 +2145,22 @@ export const DATA: Directive[] = [
21462145
"typeRaw": "`EventEmitter<NzCascaderOption[]>`",
21472146
"default": ""
21482147
},
2148+
{
2149+
"name": "nzOpenChange",
2150+
"inputType": 1,
2151+
"description": "nz-cascader.nzOpenChange.description",
2152+
"type": "EventEmitter",
2153+
"typeRaw": "`EventEmitter<boolean>`",
2154+
"default": ""
2155+
},
2156+
{
2157+
"name": "nzVisibleChange",
2158+
"inputType": 1,
2159+
"description": "nz-cascader.nzVisibleChange.description",
2160+
"type": "EventEmitter",
2161+
"typeRaw": "`EventEmitter<boolean>`",
2162+
"default": ""
2163+
},
21492164
{
21502165
"name": "formControlName",
21512166
"inputType": 0,
@@ -4561,6 +4576,14 @@ export const DATA: Directive[] = [
45614576
"typeRaw": "`boolean`",
45624577
"default": ""
45634578
},
4579+
{
4580+
"name": "nzOpenChange",
4581+
"inputType": 1,
4582+
"description": "nz-float-button-group.nzOpenChange.description",
4583+
"type": "EventEmitter",
4584+
"typeRaw": "`EventEmitter<boolean>`",
4585+
"default": ""
4586+
},
45644587
{
45654588
"name": "nzOnOpenChange",
45664589
"inputType": 1,

src/magic/resources/lang-en-US.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const enUS: Record<string, string> = {
147147
"nz-breadcrumb.nzRouteFn.description": "Format breadcrumb item route, normally used in international app to bind current params or query strings to avoid losing them while navigate using breadcrumb. It should be used when `nzAutoGenerate` is `true`",
148148
"nz-button.title": "Button",
149149
"nz-button.whenToUse": "A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic.",
150-
"nz-button.description": "Notenz-button is a Directive, it accepts all props which are supported by [native button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button).",
150+
"nz-button.description": "Note: nz-button is a Directive, it accepts all props which are supported by [native button](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button).",
151151
"nz-button.disabled.description": "prevents a user from interacting with the button",
152152
"nz-button.nzGhost.description": "make background transparent and invert text and border colors",
153153
"nz-button.nzLoading.description": "set the loading status of button",
@@ -237,6 +237,7 @@ export const enUS: Record<string, string> = {
237237
"nz-cascader.nzOpen.description": "Set visible of cascader popup",
238238
"nz-cascader.nzPlaceHolder.description": "input placeholder",
239239
"nz-cascader.nzPlacement.description": "popup placement",
240+
"nz-cascader.nzPopupRender.description": "customize dropdown content",
240241
"nz-cascader.nzShowArrow.description": "whether show arrow",
241242
"nz-cascader.nzShowInput.description": "whether show input",
242243
"nz-cascader.nzShowSearch.description": "whether support search. Cannot be used with `[nzLoadData]` at the same time",
@@ -248,9 +249,10 @@ export const enUS: Record<string, string> = {
248249
"nz-cascader.nzVariant.description": "Variants of Cascader",
249250
"nz-cascader.ngModelChange.description": "emit on values change",
250251
"nz-cascader.nzClear.description": "emit on clear values",
251-
"nz-cascader.nzVisibleChange.description": "emit on popup menu visible or hide",
252252
"nz-cascader.nzRemoved.description": "emit on selected item removed when `nzMultiple` is `true`",
253253
"nz-cascader.nzSelectionChange.description": "emit on values change",
254+
"nz-cascader.nzOpenChange.description": "emit on popup menu open or close",
255+
"nz-cascader.nzVisibleChange.description": "emit on popup menu visible or hide, deprecated, use `(nzOpenChange)` instead",
254256
"nz-check-list.title": "CheckList",
255257
"nz-check-list.whenToUse": "If the current page business logic is too complex, and with a more mandatory sequential flow control, then you can use this component to help you simplify the process.",
256258
"nz-check-list.description": "",
@@ -359,7 +361,7 @@ export const enUS: Record<string, string> = {
359361
"nz-comment-action.title": "Comment",
360362
"nz-comment-action.whenToUse": "Comments can be used to enable discussions on an entity such as a page, blog post, issue or other.",
361363
"nz-comment-action.description": "The element items rendered below the comment content.",
362-
"nz-cron-expression.title": "cron form",
364+
"nz-cron-expression.title": "Cron Form",
363365
"nz-cron-expression.whenToUse": "When you want to use cron expression in Angular.",
364366
"nz-cron-expression.description": "",
365367
"nz-cron-expression.nzType.description": "Cron rule type",
@@ -533,7 +535,8 @@ export const enUS: Record<string, string> = {
533535
"nz-float-button-group.nzTrigger.description": "Which action can trigger menu open/close",
534536
"nz-float-button-group.nzPlacement.description": "Customize menu animation placement",
535537
"nz-float-button-group.nzOpen.description": "Whether the menu is visible or not",
536-
"nz-float-button-group.nzOnOpenChange.description": "Callback executed when active menu is changed",
538+
"nz-float-button-group.nzOpenChange.description": "Callback executed when active menu is changed",
539+
"nz-float-button-group.nzOnOpenChange.description": "Callback executed when active menu is changed, deprecated, please use `(nzOpenChange)` instead",
537540
"nz-float-button-top.title": "FloatButton",
538541
"nz-float-button-top.whenToUse": "- For global functionality on the site.\n- Buttons that can be seen wherever you browse.",
539542
"nz-float-button-top.description": "",
@@ -590,7 +593,7 @@ export const enUS: Record<string, string> = {
590593
"nz-form-label.nzLabelWrap.description": "whether label can be wrap",
591594
"nz-form-control.title": "Form",
592595
"nz-form-control.whenToUse": "- When you need to create an instance or collect information.\n- When you need to validate fields in certain rules.",
593-
"nz-form-control.description": "NoteDue to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you\nhave to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using\nmethods like `markAsDirty`.",
596+
"nz-form-control.description": "Note: Due to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you\nhave to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using\nmethods like `markAsDirty`.",
594597
"nz-form-control.nzFlex.description": "flex layout style",
595598
"nz-form-control.nzOffset.description": "the number of cells to offset Col from the left",
596599
"nz-form-control.nzOrder.description": "raster order",
@@ -1252,7 +1255,7 @@ export const enUS: Record<string, string> = {
12521255
"nz-space.nzSplit.description": "Set split",
12531256
"nz-space-compact.title": "Space",
12541257
"nz-space-compact.whenToUse": "- Avoid components clinging together and set a unified space.\n- Use `<nz-space-compact>` when child form components are compactly connected and the border is collapsed.",
1255-
"nz-space-compact.description": "Use `<nz-space-compact>` when child form components are compactly connected and the border is collapsed. The supported components are",
1258+
"nz-space-compact.description": "Use `<nz-space-compact>` when child form components are compactly connected and the border is collapsed. The supported components are:",
12561259
"nz-space-compact.nzBlock.description": "Option to fit width to its parent\\'s width",
12571260
"nz-space-compact.nzDirection.description": "Set direction of layout",
12581261
"nz-space-compact.nzSize.description": "Set child component size",
@@ -1745,7 +1748,7 @@ export const enUS: Record<string, string> = {
17451748
"nz-upload.nzAccept.description": "File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept)",
17461749
"nz-upload.nzAction.description": "Required. Uploading URL",
17471750
"nz-upload.nzDirectory.description": "support uploading the whole directory ([caniuse](https://caniuse.com/#feat=input-file-directory))",
1748-
"nz-upload.nzBeforeUpload.description": "Hook function, which will be executed before uploading. Uploading will be stopped with `false` or an Observable. **Warning this function is not supported in IE9**. NOTICE: Must use `=>` to define the method.",
1751+
"nz-upload.nzBeforeUpload.description": "Hook function, which will be executed before uploading. Uploading will be stopped with `false` or an Observable. **Warning: this function is not supported in IE9**. NOTICE: Must use `=>` to define the method.",
17491752
"nz-upload.nzCustomRequest.description": "Override for the default XHR behavior allowing for additional customization and the ability to implement your own XMLHttpRequest. NOTICE: Must use `=>` to define the method.",
17501753
"nz-upload.nzData.description": "Uploading params or function which can return uploading params. NOTICE: Must use `=>` to define the method.",
17511754
"nz-upload.nzDisabled.description": "disable upload button",

src/magic/resources/lang-zh-CN.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export const zhCN: Record<string, string> = {
237237
"nz-cascader.nzOpen.description": "控制浮层显隐",
238238
"nz-cascader.nzPlaceHolder.description": "输入框占位文本",
239239
"nz-cascader.nzPlacement.description": "浮层弹出位置",
240+
"nz-cascader.nzPopupRender.description": "自定义下拉框内容",
240241
"nz-cascader.nzShowArrow.description": "是否显示箭头",
241242
"nz-cascader.nzShowInput.description": "显示输入框",
242243
"nz-cascader.nzShowSearch.description": "是否支持搜索,默认情况下对 `label` 进行全匹配搜索,不能和 `[nzLoadData]` 同时使用",
@@ -248,9 +249,10 @@ export const zhCN: Record<string, string> = {
248249
"nz-cascader.nzVariant.description": "形态变体",
249250
"nz-cascader.ngModelChange.description": "值发生变化时触发",
250251
"nz-cascader.nzClear.description": "清除值时触发",
251-
"nz-cascader.nzVisibleChange.description": "菜单浮层的显示/隐藏",
252252
"nz-cascader.nzRemoved.description": "多选模式下,移除值时触发",
253253
"nz-cascader.nzSelectionChange.description": "值发生变化时触发",
254+
"nz-cascader.nzOpenChange.description": "菜单浮层的打开/关闭",
255+
"nz-cascader.nzVisibleChange.description": "菜单浮层的显示/隐藏,已废弃,请使用 `(nzOpenChange)` 代替",
254256
"nz-check-list.title": "任务清单",
255257
"nz-check-list.whenToUse": "如果当前页面业务逻辑过于复杂,且带有较为强制的顺序流控制,那么你可以采用这个组件来帮你简化流程。",
256258
"nz-check-list.description": "",
@@ -359,7 +361,7 @@ export const zhCN: Record<string, string> = {
359361
"nz-comment-action.title": "评论",
360362
"nz-comment-action.whenToUse": "评论组件可用于对事物的讨论,例如页面、博客文章、问题等等。",
361363
"nz-comment-action.description": "在评论内容下面呈现的操作项。",
362-
"nz-cron-expression.title": "cron 表单",
364+
"nz-cron-expression.title": "Cron 表单",
363365
"nz-cron-expression.whenToUse": "需要在表单中使用 cron 格式验证时使用。",
364366
"nz-cron-expression.description": "",
365367
"nz-cron-expression.nzType.description": "cron 规则类型",
@@ -532,7 +534,8 @@ export const zhCN: Record<string, string> = {
532534
"nz-float-button-group.nzTrigger.description": "触发方式(有触发方式为菜单模式)",
533535
"nz-float-button-group.nzPlacement.description": "自定义菜单弹出位置",
534536
"nz-float-button-group.nzOpen.description": "受控展开",
535-
"nz-float-button-group.nzOnOpenChange.description": "展开收起时的回调",
537+
"nz-float-button-group.nzOpenChange.description": "展开收起时的回调",
538+
"nz-float-button-group.nzOnOpenChange.description": "展开收起时的回调,已废弃,请使用 `(nzOpenChange)` 代替",
536539
"nz-float-button-top.title": "悬浮按钮",
537540
"nz-float-button-top.whenToUse": "- 用于网站上的全局功能;\n- 无论浏览到何处都可以看见的按钮。",
538541
"nz-float-button-top.description": "",

0 commit comments

Comments
 (0)