ngx-formly-zorro-antd 13.0.0 → 14.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/autocomplete/autocomplete.props.d.ts +38 -38
- package/autocomplete/{ngx-formly-zorro-antd-autocomplete.d.ts → index.d.ts} +5 -5
- package/autocomplete/public_api.d.ts +1 -1
- package/button/button.module.d.ts +11 -11
- package/button/button.type.d.ts +66 -66
- package/button/{ngx-formly-zorro-antd-button.d.ts → index.d.ts} +5 -5
- package/button/public_api.d.ts +2 -2
- package/card/card.module.d.ts +10 -10
- package/card/card.wrapper.d.ts +58 -58
- package/card/{ngx-formly-zorro-antd-card.d.ts → index.d.ts} +5 -5
- package/card/public_api.d.ts +2 -2
- package/cascader/cascader.module.d.ts +12 -12
- package/cascader/cascader.type.d.ts +152 -152
- package/cascader/{ngx-formly-zorro-antd-cascader.d.ts → index.d.ts} +5 -5
- package/cascader/public_api.d.ts +2 -2
- package/checkbox/checkbox.module.d.ts +12 -12
- package/checkbox/checkbox.type.d.ts +35 -35
- package/checkbox/{ngx-formly-zorro-antd-checkbox.d.ts → index.d.ts} +5 -5
- package/checkbox/public_api.d.ts +2 -2
- package/datepicker/datepicker.module.d.ts +12 -12
- package/datepicker/datepicker.props.d.ts +144 -146
- package/datepicker/datepicker.type.d.ts +31 -31
- package/datepicker/{ngx-formly-zorro-antd-datepicker.d.ts → index.d.ts} +5 -5
- package/datepicker/public_api.d.ts +2 -2
- package/esm2020/autocomplete/autocomplete.props.mjs +2 -2
- package/esm2020/autocomplete/ngx-formly-zorro-antd-autocomplete.mjs +4 -4
- package/esm2020/autocomplete/public_api.mjs +2 -2
- package/esm2020/button/button.module.mjs +61 -63
- package/esm2020/button/button.type.mjs +110 -110
- package/esm2020/button/ngx-formly-zorro-antd-button.mjs +4 -4
- package/esm2020/button/public_api.mjs +3 -3
- package/esm2020/card/card.module.mjs +43 -45
- package/esm2020/card/card.wrapper.mjs +47 -47
- package/esm2020/card/ngx-formly-zorro-antd-card.mjs +4 -4
- package/esm2020/card/public_api.mjs +3 -3
- package/esm2020/cascader/cascader.module.mjs +51 -53
- package/esm2020/cascader/cascader.type.mjs +112 -112
- package/esm2020/cascader/ngx-formly-zorro-antd-cascader.mjs +4 -4
- package/esm2020/cascader/public_api.mjs +3 -3
- package/esm2020/checkbox/checkbox.module.mjs +59 -61
- package/esm2020/checkbox/checkbox.type.mjs +69 -69
- package/esm2020/checkbox/ngx-formly-zorro-antd-checkbox.mjs +4 -4
- package/esm2020/checkbox/public_api.mjs +3 -3
- package/esm2020/datepicker/datepicker.module.mjs +51 -53
- package/esm2020/datepicker/datepicker.props.mjs +2 -2
- package/esm2020/datepicker/datepicker.type.mjs +191 -189
- package/esm2020/datepicker/ngx-formly-zorro-antd-datepicker.mjs +4 -4
- package/esm2020/datepicker/public_api.mjs +3 -3
- package/esm2020/form-field/form-field.module.mjs +45 -47
- package/esm2020/form-field/form-field.props.mjs +2 -2
- package/esm2020/form-field/form-field.wrapper.mjs +127 -127
- package/esm2020/form-field/ngx-formly-zorro-antd-form-field.mjs +4 -4
- package/esm2020/form-field/public_api.mjs +2 -2
- package/esm2020/grid/grid.module.mjs +41 -43
- package/esm2020/grid/grid.props.mjs +2 -2
- package/esm2020/grid/grid.type.mjs +71 -71
- package/esm2020/grid/ngx-formly-zorro-antd-grid.mjs +4 -4
- package/esm2020/grid/public_api.mjs +3 -3
- package/esm2020/index.mjs +2 -2
- package/esm2020/input/input.module.mjs +89 -91
- package/esm2020/input/input.props.mjs +2 -2
- package/esm2020/input/input.type.mjs +309 -263
- package/esm2020/input/ngx-formly-zorro-antd-input.mjs +4 -4
- package/esm2020/input/public_api.mjs +3 -3
- package/esm2020/input-group/input-group.module.mjs +47 -49
- package/esm2020/input-group/input-group.props.mjs +2 -2
- package/esm2020/input-group/input-group.type.mjs +71 -71
- package/esm2020/input-group/ngx-formly-zorro-antd-input-group.mjs +4 -4
- package/esm2020/input-group/public_api.mjs +3 -3
- package/esm2020/input-number/input-number.module.mjs +59 -61
- package/esm2020/input-number/input-number.props.mjs +2 -2
- package/esm2020/input-number/input-number.type.mjs +128 -128
- package/esm2020/input-number/ngx-formly-zorro-antd-input-number.mjs +4 -4
- package/esm2020/input-number/public_api.mjs +3 -3
- package/esm2020/lib/ui-ng-zorro-antd.mjs +2 -2
- package/esm2020/lib/ui-ng-zorro-antd.module.mjs +97 -99
- package/esm2020/ngx-formly-zorro-antd.mjs +4 -4
- package/esm2020/radio/ngx-formly-zorro-antd-radio.mjs +4 -4
- package/esm2020/radio/public_api.mjs +3 -3
- package/esm2020/radio/radio.module.mjs +59 -61
- package/esm2020/radio/radio.type.mjs +96 -96
- package/esm2020/rate/ngx-formly-zorro-antd-rate.mjs +4 -4
- package/esm2020/rate/public_api.mjs +3 -3
- package/esm2020/rate/rate.module.mjs +51 -53
- package/esm2020/rate/rate.type.mjs +63 -63
- package/esm2020/select/ngx-formly-zorro-antd-select.mjs +4 -4
- package/esm2020/select/public_api.mjs +3 -3
- package/esm2020/select/select.module.mjs +57 -59
- package/esm2020/select/select.props.mjs +2 -2
- package/esm2020/select/select.type.mjs +163 -163
- package/esm2020/slider/ngx-formly-zorro-antd-slider.mjs +4 -4
- package/esm2020/slider/public_api.mjs +3 -3
- package/esm2020/slider/slider.module.mjs +51 -53
- package/esm2020/slider/slider.type.mjs +67 -67
- package/esm2020/switch/ngx-formly-zorro-antd-switch.mjs +4 -4
- package/esm2020/switch/public_api.mjs +3 -3
- package/esm2020/switch/switch.module.mjs +51 -53
- package/esm2020/switch/switch.type.mjs +53 -53
- package/esm2020/tabs/ngx-formly-zorro-antd-tabs.mjs +4 -4
- package/esm2020/tabs/public_api.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +41 -43
- package/esm2020/tabs/tabs.props.mjs +2 -2
- package/esm2020/tabs/tabs.wrapper.mjs +111 -111
- package/esm2020/textarea/ngx-formly-zorro-antd-textarea.mjs +4 -4
- package/esm2020/textarea/public_api.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +51 -53
- package/esm2020/textarea/textarea.type.mjs +88 -88
- package/esm2020/timepicker/ngx-formly-zorro-antd-timepicker.mjs +4 -4
- package/esm2020/timepicker/public_api.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +51 -53
- package/esm2020/timepicker/timepicker.type.mjs +92 -92
- package/esm2020/transfer/ngx-formly-zorro-antd-transfer.mjs +4 -4
- package/esm2020/transfer/public_api.mjs +3 -3
- package/esm2020/transfer/transfer.component.mjs +128 -128
- package/esm2020/transfer/transfer.module.mjs +52 -54
- package/esm2020/transfer/transfer.type.mjs +87 -87
- package/esm2020/tree-select/ngx-formly-zorro-antd-tree-select.mjs +4 -4
- package/esm2020/tree-select/public_api.mjs +3 -3
- package/esm2020/tree-select/tree-select.module.mjs +51 -53
- package/esm2020/tree-select/tree-select.type.mjs +98 -98
- package/esm2020/upload/ngx-formly-zorro-antd-upload.mjs +4 -4
- package/esm2020/upload/public_api.mjs +3 -3
- package/esm2020/upload/upload.component.mjs +174 -174
- package/esm2020/upload/upload.module.mjs +60 -62
- package/esm2020/upload/upload.type.mjs +119 -119
- package/fesm2015/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2015/ngx-formly-zorro-antd-button.mjs +156 -158
- package/fesm2015/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-card.mjs +77 -79
- package/fesm2015/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs +148 -150
- package/fesm2015/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs +113 -115
- package/fesm2015/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +227 -227
- package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs +159 -161
- package/fesm2015/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs +99 -101
- package/fesm2015/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs +105 -107
- package/fesm2015/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs +172 -174
- package/fesm2015/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-input.mjs +382 -338
- package/fesm2015/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs +137 -139
- package/fesm2015/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs +99 -101
- package/fesm2015/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-select.mjs +202 -204
- package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs +103 -105
- package/fesm2015/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs +89 -91
- package/fesm2015/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs +140 -142
- package/fesm2015/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs +124 -126
- package/fesm2015/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +128 -130
- package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs +243 -245
- package/fesm2015/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs +134 -136
- package/fesm2015/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs +328 -330
- package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2015/ngx-formly-zorro-antd.mjs +74 -76
- package/fesm2015/ngx-formly-zorro-antd.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-autocomplete.mjs +2 -2
- package/fesm2020/ngx-formly-zorro-antd-button.mjs +156 -158
- package/fesm2020/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-card.mjs +77 -79
- package/fesm2020/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs +148 -150
- package/fesm2020/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs +113 -115
- package/fesm2020/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +227 -227
- package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs +159 -161
- package/fesm2020/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs +99 -101
- package/fesm2020/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs +105 -107
- package/fesm2020/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs +172 -174
- package/fesm2020/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-input.mjs +382 -338
- package/fesm2020/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs +137 -139
- package/fesm2020/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs +99 -101
- package/fesm2020/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-select.mjs +202 -204
- package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs +103 -105
- package/fesm2020/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs +89 -91
- package/fesm2020/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs +140 -142
- package/fesm2020/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs +124 -126
- package/fesm2020/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +128 -130
- package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs +243 -245
- package/fesm2020/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs +134 -136
- package/fesm2020/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs +327 -329
- package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2020/ngx-formly-zorro-antd.mjs +74 -76
- package/fesm2020/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.module.d.ts +11 -11
- package/form-field/form-field.props.d.ts +105 -105
- package/form-field/form-field.wrapper.d.ts +9 -9
- package/form-field/{ngx-formly-zorro-antd-form-field.d.ts → index.d.ts} +5 -5
- package/form-field/public_api.d.ts +3 -3
- package/grid/grid.module.d.ts +10 -10
- package/grid/grid.props.d.ts +44 -44
- package/grid/grid.type.d.ts +11 -11
- package/grid/{ngx-formly-zorro-antd-grid.d.ts → index.d.ts} +5 -5
- package/grid/public_api.d.ts +3 -3
- package/index.d.ts +1 -1
- package/input/{ngx-formly-zorro-antd-input.d.ts → index.d.ts} +5 -5
- package/input/input.module.d.ts +14 -14
- package/input/input.props.d.ts +36 -33
- package/input/input.type.d.ts +26 -26
- package/input/public_api.d.ts +2 -2
- package/input-group/{ngx-formly-zorro-antd-input-group.d.ts → index.d.ts} +5 -5
- package/input-group/input-group.module.d.ts +11 -11
- package/input-group/input-group.props.d.ts +56 -56
- package/input-group/input-group.type.d.ts +22 -22
- package/input-group/public_api.d.ts +3 -3
- package/input-number/{ngx-formly-zorro-antd-input-number.d.ts → index.d.ts} +5 -5
- package/input-number/input-number.module.d.ts +12 -12
- package/input-number/input-number.props.d.ts +81 -78
- package/input-number/input-number.type.d.ts +24 -24
- package/input-number/public_api.d.ts +2 -2
- package/lib/ui-ng-zorro-antd.d.ts +1 -1
- package/lib/ui-ng-zorro-antd.module.d.ts +27 -27
- package/package.json +34 -30
- package/radio/{ngx-formly-zorro-antd-radio.d.ts → index.d.ts} +5 -5
- package/radio/public_api.d.ts +2 -2
- package/radio/radio.module.d.ts +14 -14
- package/radio/radio.type.d.ts +38 -38
- package/rate/{ngx-formly-zorro-antd-rate.d.ts → index.d.ts} +5 -5
- package/rate/public_api.d.ts +2 -2
- package/rate/rate.module.d.ts +12 -12
- package/rate/rate.type.d.ts +57 -57
- package/select/{ngx-formly-zorro-antd-select.d.ts → index.d.ts} +5 -5
- package/select/public_api.d.ts +2 -2
- package/select/select.module.d.ts +13 -13
- package/select/select.props.d.ts +162 -162
- package/select/select.type.d.ts +35 -35
- package/slider/{ngx-formly-zorro-antd-slider.d.ts → index.d.ts} +5 -5
- package/slider/public_api.d.ts +2 -2
- package/slider/slider.module.d.ts +12 -12
- package/slider/slider.type.d.ts +76 -76
- package/switch/{ngx-formly-zorro-antd-switch.d.ts → index.d.ts} +5 -5
- package/switch/public_api.d.ts +2 -2
- package/switch/switch.module.d.ts +12 -12
- package/switch/switch.type.d.ts +44 -44
- package/tabs/{ngx-formly-zorro-antd-tabs.d.ts → index.d.ts} +5 -5
- package/tabs/public_api.d.ts +2 -2
- package/tabs/tabs.module.d.ts +10 -10
- package/tabs/tabs.props.d.ts +126 -126
- package/tabs/tabs.wrapper.d.ts +28 -28
- package/textarea/{ngx-formly-zorro-antd-textarea.d.ts → index.d.ts} +5 -5
- package/textarea/public_api.d.ts +2 -2
- package/textarea/textarea.module.d.ts +12 -12
- package/textarea/textarea.type.d.ts +38 -38
- package/timepicker/{ngx-formly-zorro-antd-timepicker.d.ts → index.d.ts} +5 -5
- package/timepicker/public_api.d.ts +2 -2
- package/timepicker/timepicker.module.d.ts +12 -12
- package/timepicker/timepicker.type.d.ts +131 -131
- package/transfer/{ngx-formly-zorro-antd-transfer.d.ts → index.d.ts} +5 -5
- package/transfer/public_api.d.ts +2 -2
- package/transfer/transfer.component.d.ts +26 -26
- package/transfer/transfer.module.d.ts +13 -13
- package/transfer/transfer.type.d.ts +118 -118
- package/tree-select/{ngx-formly-zorro-antd-tree-select.d.ts → index.d.ts} +5 -5
- package/tree-select/public_api.d.ts +2 -2
- package/tree-select/tree-select.module.d.ts +12 -12
- package/tree-select/tree-select.type.d.ts +158 -158
- package/upload/{ngx-formly-zorro-antd-upload.d.ts → index.d.ts} +5 -5
- package/upload/public_api.d.ts +2 -2
- package/upload/upload.component.d.ts +27 -27
- package/upload/upload.module.d.ts +15 -15
- package/upload/upload.type.d.ts +173 -173
- package/autocomplete/package.json +0 -10
- package/button/package.json +0 -10
- package/card/package.json +0 -10
- package/cascader/package.json +0 -10
- package/checkbox/package.json +0 -10
- package/datepicker/package.json +0 -10
- package/form-field/package.json +0 -10
- package/grid/package.json +0 -10
- package/input/package.json +0 -10
- package/input-group/package.json +0 -10
- package/input-number/package.json +0 -10
- package/ngx-formly-zorro-antd.d.ts +0 -5
- package/radio/package.json +0 -10
- package/rate/package.json +0 -10
- package/select/package.json +0 -10
- package/slider/package.json +0 -10
- package/switch/package.json +0 -10
- package/tabs/package.json +0 -10
- package/textarea/package.json +0 -10
- package/timepicker/package.json +0 -10
- package/transfer/package.json +0 -10
- package/tree-select/package.json +0 -10
- package/upload/package.json +0 -10
package/slider/slider.type.d.ts
CHANGED
@@ -1,76 +1,76 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
-
import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
interface SlideProps extends FormlyFieldProps {
|
7
|
-
/**
|
8
|
-
* 是否只能拖拽到刻度上
|
9
|
-
* @default false
|
10
|
-
*/
|
11
|
-
dots?: boolean;
|
12
|
-
/**
|
13
|
-
* marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列
|
14
|
-
* @default true
|
15
|
-
*/
|
16
|
-
included?: boolean;
|
17
|
-
/**
|
18
|
-
* 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式
|
19
|
-
* @default
|
20
|
-
* { number: string/HTML } or { number: { style: object, label: string/HTML } }
|
21
|
-
*/
|
22
|
-
marks?: object;
|
23
|
-
/**
|
24
|
-
* 双滑块模式
|
25
|
-
* @default false
|
26
|
-
*/
|
27
|
-
range?: boolean;
|
28
|
-
/**
|
29
|
-
* Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。
|
30
|
-
*/
|
31
|
-
tipFormatter?: (value: number) => string;
|
32
|
-
/**
|
33
|
-
* 值为 true 时,Slider 为垂直方向
|
34
|
-
* @default false
|
35
|
-
*/
|
36
|
-
vertical?: boolean;
|
37
|
-
/**
|
38
|
-
* 反向坐标轴
|
39
|
-
* @default false
|
40
|
-
*/
|
41
|
-
reverse?: boolean;
|
42
|
-
/**
|
43
|
-
* 值为 always 时总是显示,值为 never 时在任何情况下都不显示
|
44
|
-
* @default default
|
45
|
-
*/
|
46
|
-
tooltipVisible?: NzSliderShowTooltip;
|
47
|
-
/**
|
48
|
-
* 设置 Tooltip 的默认位置。
|
49
|
-
*/
|
50
|
-
tooltipPlacement?: string;
|
51
|
-
/**
|
52
|
-
* 与 onmouseup 触发时机一致,把当前值作为参数传入。
|
53
|
-
*/
|
54
|
-
afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;
|
55
|
-
}
|
56
|
-
export interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {
|
57
|
-
type: 'slider' | Type<FormlyFieldSlider>;
|
58
|
-
}
|
59
|
-
export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
|
60
|
-
defaultOptions: {
|
61
|
-
props: {
|
62
|
-
max: number;
|
63
|
-
min: number;
|
64
|
-
step: number;
|
65
|
-
dots: boolean;
|
66
|
-
included: boolean;
|
67
|
-
range: boolean;
|
68
|
-
vertical: boolean;
|
69
|
-
reverse: boolean;
|
70
|
-
tooltipVisible: "default";
|
71
|
-
};
|
72
|
-
};
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-slider", never, {}, {}, never, never>;
|
75
|
-
}
|
76
|
-
export {};
|
1
|
+
import { Type } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
+
import type { NzSliderShowTooltip } from 'ng-zorro-antd/slider';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface SlideProps extends FormlyFieldProps {
|
7
|
+
/**
|
8
|
+
* 是否只能拖拽到刻度上
|
9
|
+
* @default false
|
10
|
+
*/
|
11
|
+
dots?: boolean;
|
12
|
+
/**
|
13
|
+
* marks 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列
|
14
|
+
* @default true
|
15
|
+
*/
|
16
|
+
included?: boolean;
|
17
|
+
/**
|
18
|
+
* 刻度标记,key 的类型必须为 number 且取值在闭区间 [min, max] 内,每个标签可以单独设置样式
|
19
|
+
* @default
|
20
|
+
* { number: string/HTML } or { number: { style: object, label: string/HTML } }
|
21
|
+
*/
|
22
|
+
marks?: object;
|
23
|
+
/**
|
24
|
+
* 双滑块模式
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
range?: boolean;
|
28
|
+
/**
|
29
|
+
* Slider 会把当前值传给 nzTipFormatter,并在 Tooltip 中显示 nzTipFormatter 的返回值,若为 null,则隐藏 Tooltip。
|
30
|
+
*/
|
31
|
+
tipFormatter?: (value: number) => string;
|
32
|
+
/**
|
33
|
+
* 值为 true 时,Slider 为垂直方向
|
34
|
+
* @default false
|
35
|
+
*/
|
36
|
+
vertical?: boolean;
|
37
|
+
/**
|
38
|
+
* 反向坐标轴
|
39
|
+
* @default false
|
40
|
+
*/
|
41
|
+
reverse?: boolean;
|
42
|
+
/**
|
43
|
+
* 值为 always 时总是显示,值为 never 时在任何情况下都不显示
|
44
|
+
* @default default
|
45
|
+
*/
|
46
|
+
tooltipVisible?: NzSliderShowTooltip;
|
47
|
+
/**
|
48
|
+
* 设置 Tooltip 的默认位置。
|
49
|
+
*/
|
50
|
+
tooltipPlacement?: string;
|
51
|
+
/**
|
52
|
+
* 与 onmouseup 触发时机一致,把当前值作为参数传入。
|
53
|
+
*/
|
54
|
+
afterChange?: (field: FormlyFieldConfig, value: number[] | number) => void;
|
55
|
+
}
|
56
|
+
export interface FormlySlideFieldConfig extends FormlyFieldConfig<SlideProps> {
|
57
|
+
type: 'slider' | Type<FormlyFieldSlider>;
|
58
|
+
}
|
59
|
+
export declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SlideProps>> {
|
60
|
+
defaultOptions: {
|
61
|
+
props: {
|
62
|
+
max: number;
|
63
|
+
min: number;
|
64
|
+
step: number;
|
65
|
+
dots: boolean;
|
66
|
+
included: boolean;
|
67
|
+
range: boolean;
|
68
|
+
vertical: boolean;
|
69
|
+
reverse: boolean;
|
70
|
+
tooltipVisible: "default";
|
71
|
+
};
|
72
|
+
};
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-slider", never, {}, {}, never, never, false>;
|
75
|
+
}
|
76
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="ngx-formly-zorro-antd/switch" />
|
5
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="ngx-formly-zorro-antd/switch" />
|
5
|
+
export * from './public_api';
|
package/switch/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { FormlyNzSwitchModule } from './switch.module';
|
2
|
-
export { FormlyFieldSwitch, FormlySwitchFieldConfig } from './switch.type';
|
1
|
+
export { FormlyNzSwitchModule } from './switch.module';
|
2
|
+
export { FormlyFieldSwitch, FormlySwitchFieldConfig } from './switch.type';
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./switch.type";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
-
import * as i5 from "ng-zorro-antd/switch";
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
8
|
-
export declare class FormlyNzSwitchModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSwitchModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSwitchModule, [typeof i1.FormlyFieldSwitch], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSwitchModule, typeof i6.FormlyModule], never>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSwitchModule>;
|
12
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./switch.type";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/forms";
|
5
|
+
import * as i4 from "ngx-formly-zorro-antd/form-field";
|
6
|
+
import * as i5 from "ng-zorro-antd/switch";
|
7
|
+
import * as i6 from "@ngx-formly/core";
|
8
|
+
export declare class FormlyNzSwitchModule {
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzSwitchModule, never>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzSwitchModule, [typeof i1.FormlyFieldSwitch], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyNzFormFieldModule, typeof i5.NzSwitchModule, typeof i6.FormlyModule], never>;
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzSwitchModule>;
|
12
|
+
}
|
package/switch/switch.type.d.ts
CHANGED
@@ -1,44 +1,44 @@
|
|
1
|
-
import { Type, TemplateRef } from '@angular/core';
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
-
import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
interface SwitchProps extends FormlyFieldProps {
|
7
|
-
/**
|
8
|
-
* 选中时的内容
|
9
|
-
*/
|
10
|
-
checkedChildren?: string | TemplateRef<void> | null;
|
11
|
-
/**
|
12
|
-
* 非选中时的内容
|
13
|
-
*/
|
14
|
-
unCheckedChildren?: string | TemplateRef<void> | null;
|
15
|
-
/**
|
16
|
-
* 开关大小
|
17
|
-
*/
|
18
|
-
size?: NzSizeDSType;
|
19
|
-
/**
|
20
|
-
* 加载中的开关
|
21
|
-
* @default false
|
22
|
-
*/
|
23
|
-
loading?: boolean;
|
24
|
-
/**
|
25
|
-
* 是否完全由用户控制状态
|
26
|
-
* @default false
|
27
|
-
*/
|
28
|
-
control?: boolean;
|
29
|
-
}
|
30
|
-
export interface FormlySwitchFieldConfig extends FormlyFieldConfig<SwitchProps> {
|
31
|
-
type: 'switch' | Type<FormlyFieldSwitch>;
|
32
|
-
}
|
33
|
-
export declare class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {
|
34
|
-
defaultOptions: {
|
35
|
-
props: {
|
36
|
-
size: "default";
|
37
|
-
loading: boolean;
|
38
|
-
control: boolean;
|
39
|
-
};
|
40
|
-
};
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSwitch, never>;
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSwitch, "formly-field-switch", never, {}, {}, never, never>;
|
43
|
-
}
|
44
|
-
export {};
|
1
|
+
import { Type, TemplateRef } from '@angular/core';
|
2
|
+
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';
|
4
|
+
import type { NzSizeDSType } from 'ng-zorro-antd/core/types';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface SwitchProps extends FormlyFieldProps {
|
7
|
+
/**
|
8
|
+
* 选中时的内容
|
9
|
+
*/
|
10
|
+
checkedChildren?: string | TemplateRef<void> | null;
|
11
|
+
/**
|
12
|
+
* 非选中时的内容
|
13
|
+
*/
|
14
|
+
unCheckedChildren?: string | TemplateRef<void> | null;
|
15
|
+
/**
|
16
|
+
* 开关大小
|
17
|
+
*/
|
18
|
+
size?: NzSizeDSType;
|
19
|
+
/**
|
20
|
+
* 加载中的开关
|
21
|
+
* @default false
|
22
|
+
*/
|
23
|
+
loading?: boolean;
|
24
|
+
/**
|
25
|
+
* 是否完全由用户控制状态
|
26
|
+
* @default false
|
27
|
+
*/
|
28
|
+
control?: boolean;
|
29
|
+
}
|
30
|
+
export interface FormlySwitchFieldConfig extends FormlyFieldConfig<SwitchProps> {
|
31
|
+
type: 'switch' | Type<FormlyFieldSwitch>;
|
32
|
+
}
|
33
|
+
export declare class FormlyFieldSwitch extends FieldType<FieldTypeConfig<SwitchProps>> {
|
34
|
+
defaultOptions: {
|
35
|
+
props: {
|
36
|
+
size: "default";
|
37
|
+
loading: boolean;
|
38
|
+
control: boolean;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSwitch, never>;
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSwitch, "formly-field-switch", never, {}, {}, never, never, false>;
|
43
|
+
}
|
44
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="ngx-formly-zorro-antd/tabs" />
|
5
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="ngx-formly-zorro-antd/tabs" />
|
5
|
+
export * from './public_api';
|
package/tabs/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { FormlyNzTabsModule } from './tabs.module';
|
2
|
-
export { FormlyWrapperTabs, FormlyTabsWrapperConfig } from './tabs.wrapper';
|
1
|
+
export { FormlyNzTabsModule } from './tabs.module';
|
2
|
+
export { FormlyWrapperTabs, FormlyTabsWrapperConfig } from './tabs.wrapper';
|
package/tabs/tabs.module.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./tabs.wrapper";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "ng-zorro-antd/tabs";
|
5
|
-
import * as i4 from "@ngx-formly/core";
|
6
|
-
export declare class FormlyNzTabsModule {
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTabsModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTabsModule, [typeof i1.FormlyWrapperTabs], [typeof i2.CommonModule, typeof i3.NzTabsModule, typeof i4.FormlyModule], never>;
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTabsModule>;
|
10
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./tabs.wrapper";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ng-zorro-antd/tabs";
|
5
|
+
import * as i4 from "@ngx-formly/core";
|
6
|
+
export declare class FormlyNzTabsModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzTabsModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzTabsModule, [typeof i1.FormlyWrapperTabs], [typeof i2.CommonModule, typeof i3.NzTabsModule, typeof i4.FormlyModule], never>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzTabsModule>;
|
10
|
+
}
|
package/tabs/tabs.props.d.ts
CHANGED
@@ -1,126 +1,126 @@
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
2
|
-
import type { FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import { NzTabComponent } from 'ng-zorro-antd/tabs';
|
4
|
-
import type { NzSizeLDSType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
|
-
import type { NzTabsCanDeactivateFn, TabTemplateContext, NzTabType, NzTabPosition, NzAnimatedInterface } from 'ng-zorro-antd/tabs';
|
6
|
-
export interface TabsProps {
|
7
|
-
/**
|
8
|
-
* 当前激活 tab 面板的 序列号,可双向绑定
|
9
|
-
*/
|
10
|
-
selectedIndex?: number | null;
|
11
|
-
/**
|
12
|
-
* 是否使用动画切换 Tabs,在 nzTabPosition=top\bottom 时有效
|
13
|
-
* @default true
|
14
|
-
*/
|
15
|
-
animated?: NzAnimatedInterface | boolean;
|
16
|
-
/**
|
17
|
-
* 大小,提供 largedefault 和 small 三种大小
|
18
|
-
* @default default
|
19
|
-
*/
|
20
|
-
size?: NzSizeLDSType;
|
21
|
-
/**
|
22
|
-
* tab bar 上额外的元素
|
23
|
-
*/
|
24
|
-
tabBarExtraContent?: TemplateRef<void>;
|
25
|
-
/**
|
26
|
-
* tab bar 的样式对象
|
27
|
-
*/
|
28
|
-
tabBarStyle?: {
|
29
|
-
[key: string]: string;
|
30
|
-
} | null;
|
31
|
-
/**
|
32
|
-
* 页签位置
|
33
|
-
* @default top
|
34
|
-
*/
|
35
|
-
tabPosition?: NzTabPosition;
|
36
|
-
/**
|
37
|
-
* 页签的基本样式
|
38
|
-
* @default line
|
39
|
-
*/
|
40
|
-
type?: NzTabType;
|
41
|
-
/**
|
42
|
-
* tabs 之间的间隙
|
43
|
-
*/
|
44
|
-
tabBarGutter?: number;
|
45
|
-
/**
|
46
|
-
* 是否隐藏所有tab内容
|
47
|
-
* @default false
|
48
|
-
*/
|
49
|
-
hideAll?: boolean;
|
50
|
-
/**
|
51
|
-
* 与 Angular 路由联动
|
52
|
-
* @default false
|
53
|
-
*/
|
54
|
-
linkRouter?: boolean;
|
55
|
-
/**
|
56
|
-
* 以严格匹配模式确定联动的路由
|
57
|
-
* @default true
|
58
|
-
*/
|
59
|
-
linkExact?: boolean;
|
60
|
-
/**
|
61
|
-
* 决定一个 tab 是否可以被切换
|
62
|
-
*/
|
63
|
-
canDeactivate?: NzTabsCanDeactivateFn | null;
|
64
|
-
/**
|
65
|
-
* 标签居中展示
|
66
|
-
* @default false
|
67
|
-
*/
|
68
|
-
centered?: boolean;
|
69
|
-
/**
|
70
|
-
* 当前激活 tab 面板的 序列号变更回调函数
|
71
|
-
*/
|
72
|
-
selectedIndexChange?: (field: FormlyFieldConfig, index: number) => void;
|
73
|
-
/**
|
74
|
-
* 当前激活 tab 面板变更回调函数
|
75
|
-
*/
|
76
|
-
selectChange?: (field: FormlyFieldConfig, index?: number, tab?: NzTabComponent) => void;
|
77
|
-
/**
|
78
|
-
* 隐藏添加按钮
|
79
|
-
* @default false
|
80
|
-
*/
|
81
|
-
hideAdd?: boolean;
|
82
|
-
/**
|
83
|
-
* 添加按钮图标
|
84
|
-
*/
|
85
|
-
addIcon?: string | TemplateRef<NzSafeAny>;
|
86
|
-
/**
|
87
|
-
* 点击添加按钮时的事件
|
88
|
-
*/
|
89
|
-
onAdd?: (field: FormlyFieldConfig) => void;
|
90
|
-
/**
|
91
|
-
* 点击删除按钮时的事件
|
92
|
-
*/
|
93
|
-
onClose?: (field: FormlyFieldConfig, index: number) => void;
|
94
|
-
tab?: {
|
95
|
-
/**
|
96
|
-
* 选项卡头显示文字
|
97
|
-
*/
|
98
|
-
title?: string | TemplateRef<TabTemplateContext>;
|
99
|
-
/**
|
100
|
-
* 被隐藏时是否渲染 DOM 结构
|
101
|
-
* @default false
|
102
|
-
*/
|
103
|
-
forceRender?: boolean;
|
104
|
-
/**
|
105
|
-
* 是否禁用
|
106
|
-
* @default false
|
107
|
-
*/
|
108
|
-
disabled?: boolean;
|
109
|
-
/**
|
110
|
-
* 单击 title 的回调函数
|
111
|
-
*/
|
112
|
-
click?: () => void;
|
113
|
-
/**
|
114
|
-
* 右键 title 的回调函数
|
115
|
-
*/
|
116
|
-
contextmenu?: (event: MouseEvent) => void;
|
117
|
-
/**
|
118
|
-
* tab 被选中的回调函数
|
119
|
-
*/
|
120
|
-
select?: () => void;
|
121
|
-
/**
|
122
|
-
* tab 被取消选中的回调函数
|
123
|
-
*/
|
124
|
-
deselect?: () => void;
|
125
|
-
};
|
126
|
-
}
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import type { FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import { NzTabComponent } from 'ng-zorro-antd/tabs';
|
4
|
+
import type { NzSizeLDSType, NzSafeAny } from 'ng-zorro-antd/core/types';
|
5
|
+
import type { NzTabsCanDeactivateFn, TabTemplateContext, NzTabType, NzTabPosition, NzAnimatedInterface } from 'ng-zorro-antd/tabs';
|
6
|
+
export interface TabsProps {
|
7
|
+
/**
|
8
|
+
* 当前激活 tab 面板的 序列号,可双向绑定
|
9
|
+
*/
|
10
|
+
selectedIndex?: number | null;
|
11
|
+
/**
|
12
|
+
* 是否使用动画切换 Tabs,在 nzTabPosition=top\bottom 时有效
|
13
|
+
* @default true
|
14
|
+
*/
|
15
|
+
animated?: NzAnimatedInterface | boolean;
|
16
|
+
/**
|
17
|
+
* 大小,提供 largedefault 和 small 三种大小
|
18
|
+
* @default default
|
19
|
+
*/
|
20
|
+
size?: NzSizeLDSType;
|
21
|
+
/**
|
22
|
+
* tab bar 上额外的元素
|
23
|
+
*/
|
24
|
+
tabBarExtraContent?: TemplateRef<void>;
|
25
|
+
/**
|
26
|
+
* tab bar 的样式对象
|
27
|
+
*/
|
28
|
+
tabBarStyle?: {
|
29
|
+
[key: string]: string;
|
30
|
+
} | null;
|
31
|
+
/**
|
32
|
+
* 页签位置
|
33
|
+
* @default top
|
34
|
+
*/
|
35
|
+
tabPosition?: NzTabPosition;
|
36
|
+
/**
|
37
|
+
* 页签的基本样式
|
38
|
+
* @default line
|
39
|
+
*/
|
40
|
+
type?: NzTabType;
|
41
|
+
/**
|
42
|
+
* tabs 之间的间隙
|
43
|
+
*/
|
44
|
+
tabBarGutter?: number;
|
45
|
+
/**
|
46
|
+
* 是否隐藏所有tab内容
|
47
|
+
* @default false
|
48
|
+
*/
|
49
|
+
hideAll?: boolean;
|
50
|
+
/**
|
51
|
+
* 与 Angular 路由联动
|
52
|
+
* @default false
|
53
|
+
*/
|
54
|
+
linkRouter?: boolean;
|
55
|
+
/**
|
56
|
+
* 以严格匹配模式确定联动的路由
|
57
|
+
* @default true
|
58
|
+
*/
|
59
|
+
linkExact?: boolean;
|
60
|
+
/**
|
61
|
+
* 决定一个 tab 是否可以被切换
|
62
|
+
*/
|
63
|
+
canDeactivate?: NzTabsCanDeactivateFn | null;
|
64
|
+
/**
|
65
|
+
* 标签居中展示
|
66
|
+
* @default false
|
67
|
+
*/
|
68
|
+
centered?: boolean;
|
69
|
+
/**
|
70
|
+
* 当前激活 tab 面板的 序列号变更回调函数
|
71
|
+
*/
|
72
|
+
selectedIndexChange?: (field: FormlyFieldConfig, index: number) => void;
|
73
|
+
/**
|
74
|
+
* 当前激活 tab 面板变更回调函数
|
75
|
+
*/
|
76
|
+
selectChange?: (field: FormlyFieldConfig, index?: number, tab?: NzTabComponent) => void;
|
77
|
+
/**
|
78
|
+
* 隐藏添加按钮
|
79
|
+
* @default false
|
80
|
+
*/
|
81
|
+
hideAdd?: boolean;
|
82
|
+
/**
|
83
|
+
* 添加按钮图标
|
84
|
+
*/
|
85
|
+
addIcon?: string | TemplateRef<NzSafeAny>;
|
86
|
+
/**
|
87
|
+
* 点击添加按钮时的事件
|
88
|
+
*/
|
89
|
+
onAdd?: (field: FormlyFieldConfig) => void;
|
90
|
+
/**
|
91
|
+
* 点击删除按钮时的事件
|
92
|
+
*/
|
93
|
+
onClose?: (field: FormlyFieldConfig, index: number) => void;
|
94
|
+
tab?: {
|
95
|
+
/**
|
96
|
+
* 选项卡头显示文字
|
97
|
+
*/
|
98
|
+
title?: string | TemplateRef<TabTemplateContext>;
|
99
|
+
/**
|
100
|
+
* 被隐藏时是否渲染 DOM 结构
|
101
|
+
* @default false
|
102
|
+
*/
|
103
|
+
forceRender?: boolean;
|
104
|
+
/**
|
105
|
+
* 是否禁用
|
106
|
+
* @default false
|
107
|
+
*/
|
108
|
+
disabled?: boolean;
|
109
|
+
/**
|
110
|
+
* 单击 title 的回调函数
|
111
|
+
*/
|
112
|
+
click?: () => void;
|
113
|
+
/**
|
114
|
+
* 右键 title 的回调函数
|
115
|
+
*/
|
116
|
+
contextmenu?: (event: MouseEvent) => void;
|
117
|
+
/**
|
118
|
+
* tab 被选中的回调函数
|
119
|
+
*/
|
120
|
+
select?: () => void;
|
121
|
+
/**
|
122
|
+
* tab 被取消选中的回调函数
|
123
|
+
*/
|
124
|
+
deselect?: () => void;
|
125
|
+
};
|
126
|
+
}
|
package/tabs/tabs.wrapper.d.ts
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
import { Type } from '@angular/core';
|
2
|
-
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
-
import type { TabsProps } from './tabs.props';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export interface FormlyTabsWrapperConfig extends FormlyFieldConfig<TabsProps> {
|
6
|
-
wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];
|
7
|
-
}
|
8
|
-
export declare class FormlyWrapperTabs extends FieldWrapper<FormlyFieldConfig<TabsProps>> {
|
9
|
-
defaultOptions: {
|
10
|
-
props: {
|
11
|
-
animated: boolean;
|
12
|
-
size: "default";
|
13
|
-
type: "line";
|
14
|
-
tabPosition: "top";
|
15
|
-
hideAll: boolean;
|
16
|
-
linkRouter: boolean;
|
17
|
-
linkExact: boolean;
|
18
|
-
centered: boolean;
|
19
|
-
hideAdd: boolean;
|
20
|
-
tab: {
|
21
|
-
forceRender: boolean;
|
22
|
-
disabled: boolean;
|
23
|
-
};
|
24
|
-
};
|
25
|
-
};
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperTabs, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperTabs, "formly-wrapper-tabs", never, {}, {}, never, never>;
|
28
|
-
}
|
1
|
+
import { Type } from '@angular/core';
|
2
|
+
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import type { TabsProps } from './tabs.props';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export interface FormlyTabsWrapperConfig extends FormlyFieldConfig<TabsProps> {
|
6
|
+
wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];
|
7
|
+
}
|
8
|
+
export declare class FormlyWrapperTabs extends FieldWrapper<FormlyFieldConfig<TabsProps>> {
|
9
|
+
defaultOptions: {
|
10
|
+
props: {
|
11
|
+
animated: boolean;
|
12
|
+
size: "default";
|
13
|
+
type: "line";
|
14
|
+
tabPosition: "top";
|
15
|
+
hideAll: boolean;
|
16
|
+
linkRouter: boolean;
|
17
|
+
linkExact: boolean;
|
18
|
+
centered: boolean;
|
19
|
+
hideAdd: boolean;
|
20
|
+
tab: {
|
21
|
+
forceRender: boolean;
|
22
|
+
disabled: boolean;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperTabs, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperTabs, "formly-wrapper-tabs", never, {}, {}, never, never, false>;
|
28
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="ngx-formly-zorro-antd/textarea" />
|
5
|
-
export * from './public_api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="ngx-formly-zorro-antd/textarea" />
|
5
|
+
export * from './public_api';
|
package/textarea/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { FormlyNzTextareaModule } from './textarea.module';
|
2
|
-
export { FormlyFieldTextarea, FormlyTextareaFieldConfig } from './textarea.type';
|
1
|
+
export { FormlyNzTextareaModule } from './textarea.module';
|
2
|
+
export { FormlyFieldTextarea, FormlyTextareaFieldConfig } from './textarea.type';
|