@alauda/ui 6.5.9-beta.21 → 6.5.9-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion-item/accordion-item.component.d.ts +3 -3
- package/accordion/accordion.component.d.ts +1 -1
- package/anchor/anchor.component.d.ts +2 -2
- package/anchor/anchor.directive.d.ts +3 -3
- package/autocomplete/autocomplete-placeholder.component.d.ts +1 -1
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.directive.d.ts +2 -2
- package/autocomplete/autocomplete.types.d.ts +1 -1
- package/autocomplete/helper-directives.d.ts +1 -1
- package/autocomplete/suggestion/suggestion.component.d.ts +1 -1
- package/autocomplete/suggestion-group/suggestion-group.component.d.ts +1 -1
- package/back-top/back-top.component.d.ts +2 -2
- package/breadcrumb/breadcrumb-item.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/button/button-group/button-group.component.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/button/button.types.d.ts +1 -10
- package/card/card.component.d.ts +1 -1
- package/card/helper-directives.d.ts +3 -6
- package/card/section.component.d.ts +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/color-picker/color-picker.component.d.ts +1 -1
- package/date-picker/calendar/date-picker-panel/component.d.ts +1 -1
- package/date-picker/calendar/footer/component.d.ts +1 -1
- package/date-picker/calendar/header/component.d.ts +1 -1
- package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
- package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
- package/date-picker/date-picker/date-picker.component.d.ts +1 -1
- package/date-picker/date-picker.type.d.ts +2 -2
- package/date-picker/range-picker/range-picker.component.d.ts +1 -1
- package/date-picker/trigger/trigger.component.d.ts +1 -1
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-close.directive.d.ts +1 -1
- package/dialog/dialog-content/dialog-content.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-footer.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/dialog/dialog.types.d.ts +3 -3
- package/drawer/component/drawer.component.d.ts +1 -1
- package/drawer/component/helper-directives.d.ts +3 -3
- package/dropdown/dropdown-active.directive.d.ts +1 -1
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/helper-directives.d.ts +1 -1
- package/dropdown/menu/menu-content.directive.d.ts +1 -1
- package/dropdown/menu/menu.component.d.ts +1 -1
- package/dropdown/menu-group/menu-group.component.d.ts +1 -1
- package/dropdown/menu-item/menu-item.component.d.ts +1 -1
- package/dropdown/submenu/submenu.component.d.ts +1 -1
- package/esm2020/accordion/accordion-item/accordion-item.component.mjs +12 -14
- package/esm2020/accordion/accordion.component.mjs +4 -4
- package/esm2020/accordion/accordion.module.mjs +5 -5
- package/esm2020/alauda-ui.mjs +1 -4
- package/esm2020/anchor/anchor.component.mjs +15 -16
- package/esm2020/anchor/anchor.directive.mjs +27 -27
- package/esm2020/anchor/anchor.module.mjs +5 -6
- package/esm2020/autocomplete/autocomplete-placeholder.component.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.directive.mjs +27 -28
- package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
- package/esm2020/autocomplete/helper-directives.mjs +3 -3
- package/esm2020/autocomplete/suggestion/suggestion.component.mjs +17 -17
- package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +3 -3
- package/esm2020/back-top/back-top.component.mjs +15 -17
- package/esm2020/back-top/back-top.module.mjs +5 -5
- package/esm2020/breadcrumb/breadcrumb-item.component.mjs +11 -11
- package/esm2020/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2020/breadcrumb/breadcrumb.module.mjs +5 -5
- package/esm2020/button/button-group/button-group.component.mjs +3 -3
- package/esm2020/button/button.component.mjs +21 -22
- package/esm2020/button/button.module.mjs +5 -5
- package/esm2020/button/button.types.mjs +1 -10
- package/esm2020/card/card.component.mjs +3 -3
- package/esm2020/card/card.module.mjs +5 -5
- package/esm2020/card/helper-directives.mjs +10 -13
- package/esm2020/card/section.component.mjs +3 -3
- package/esm2020/checkbox/checkbox-group/checkbox-group.component.mjs +3 -3
- package/esm2020/checkbox/checkbox.component.mjs +20 -20
- package/esm2020/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/color-picker/color-picker.component.mjs +3 -3
- package/esm2020/color-picker/color-picker.module.mjs +5 -5
- package/esm2020/date-picker/calendar/constant.mjs +1 -2
- package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +10 -10
- package/esm2020/date-picker/calendar/footer/component.mjs +5 -5
- package/esm2020/date-picker/calendar/header/component.mjs +7 -11
- package/esm2020/date-picker/calendar/panel/picker-panel.mjs +20 -24
- package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +11 -13
- package/esm2020/date-picker/calendar/util.mjs +1 -2
- package/esm2020/date-picker/date-picker/date-picker.component.mjs +8 -8
- package/esm2020/date-picker/date-picker.module.mjs +13 -15
- package/esm2020/date-picker/range-picker/range-picker.component.mjs +8 -8
- package/esm2020/date-picker/trigger/trigger.component.mjs +18 -18
- package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +6 -6
- package/esm2020/dialog/dialog-animations.mjs +1 -2
- package/esm2020/dialog/dialog-content/dialog-close.directive.mjs +3 -3
- package/esm2020/dialog/dialog-content/dialog-content.component.mjs +4 -5
- package/esm2020/dialog/dialog-content/dialog-footer.component.mjs +3 -3
- package/esm2020/dialog/dialog-content/dialog-header.component.mjs +5 -5
- package/esm2020/dialog/dialog.component.mjs +12 -13
- package/esm2020/dialog/dialog.module.mjs +9 -12
- package/esm2020/dialog/dialog.service.mjs +4 -5
- package/esm2020/drawer/component/drawer.component.mjs +27 -30
- package/esm2020/drawer/component/helper-directives.mjs +10 -14
- package/esm2020/drawer/drawer.module.mjs +5 -6
- package/esm2020/drawer/drawer.service.mjs +3 -3
- package/esm2020/dropdown/dropdown-active.directive.mjs +3 -3
- package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +5 -5
- package/esm2020/dropdown/dropdown.directive.mjs +13 -13
- package/esm2020/dropdown/dropdown.module.mjs +5 -5
- package/esm2020/dropdown/helper-directives.mjs +3 -3
- package/esm2020/dropdown/menu/menu-content.directive.mjs +3 -3
- package/esm2020/dropdown/menu/menu.component.mjs +3 -3
- package/esm2020/dropdown/menu-group/menu-group.component.mjs +3 -3
- package/esm2020/dropdown/menu-item/menu-item.component.mjs +3 -3
- package/esm2020/dropdown/submenu/submenu.component.mjs +7 -7
- package/esm2020/form/common-form.mjs +15 -22
- package/esm2020/form/form-item/form-item.component.mjs +9 -9
- package/esm2020/form/form.directive.mjs +17 -17
- package/esm2020/form/form.module.mjs +5 -5
- package/esm2020/form/helper-directives.mjs +15 -15
- package/esm2020/i18n/i18n.module.mjs +4 -4
- package/esm2020/i18n/i18n.pipe.mjs +3 -3
- package/esm2020/i18n/i18n.service.mjs +3 -3
- package/esm2020/icon/icon-register.service.mjs +4 -5
- package/esm2020/icon/icon.component.mjs +3 -3
- package/esm2020/icon/icon.module.mjs +5 -5
- package/esm2020/inline-alert/helper-directives.mjs +3 -3
- package/esm2020/inline-alert/inline-alert.component.mjs +5 -5
- package/esm2020/inline-alert/inline-alert.module.mjs +5 -5
- package/esm2020/input/autosize.directive.mjs +11 -16
- package/esm2020/input/helper-directives.mjs +12 -12
- package/esm2020/input/input-group/input-group.component.mjs +3 -3
- package/esm2020/input/input.component.mjs +14 -18
- package/esm2020/input/input.module.mjs +10 -12
- package/esm2020/input/number-input/number-input.component.mjs +6 -6
- package/esm2020/input/search/search.component.mjs +8 -8
- package/esm2020/input/tags-input/tags-input.component.mjs +27 -32
- package/esm2020/message/message-wrapper.component.mjs +3 -3
- package/esm2020/message/message.component.mjs +8 -8
- package/esm2020/message/message.config.mjs +1 -6
- package/esm2020/message/message.module.mjs +5 -6
- package/esm2020/message/message.service.mjs +3 -3
- package/esm2020/notification/notification-wrapper.component.mjs +3 -3
- package/esm2020/notification/notification.component.mjs +8 -12
- package/esm2020/notification/notification.module.mjs +5 -6
- package/esm2020/notification/notification.service.mjs +3 -3
- package/esm2020/paginator/paginator-intl.mjs +4 -15
- package/esm2020/paginator/paginator.component.mjs +24 -32
- package/esm2020/paginator/paginator.module.mjs +5 -5
- package/esm2020/radio/base-radio.mjs +11 -11
- package/esm2020/radio/radio-button/radio-button.component.mjs +9 -10
- package/esm2020/radio/radio-group/radio-group.component.mjs +4 -7
- package/esm2020/radio/radio.component.mjs +7 -8
- package/esm2020/radio/radio.module.mjs +5 -5
- package/esm2020/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +4 -6
- package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +4 -6
- package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +4 -5
- package/esm2020/scrolling/scrolling.module.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.directive.mjs +3 -3
- package/esm2020/scrolling/virtual-scroll-viewport.component.mjs +3 -3
- package/esm2020/select/base-select.mjs +5 -8
- package/esm2020/select/helper-directives.mjs +6 -6
- package/esm2020/select/multi-select/multi-select.component.mjs +28 -31
- package/esm2020/select/option/option.component.mjs +34 -34
- package/esm2020/select/option-group/option-group.component.mjs +3 -3
- package/esm2020/select/option-placeholder.component.mjs +3 -3
- package/esm2020/select/select.component.mjs +11 -12
- package/esm2020/select/select.module.mjs +10 -12
- package/esm2020/select/validators.mjs +9 -13
- package/esm2020/shared/click-outside.directive.mjs +8 -8
- package/esm2020/shared/shared.module.mjs +4 -4
- package/esm2020/sort/sort-errors.mjs +1 -5
- package/esm2020/sort/sort-header.component.mjs +4 -8
- package/esm2020/sort/sort.directive.mjs +4 -5
- package/esm2020/sort/sort.module.mjs +5 -5
- package/esm2020/status-bar/status-bar.component.mjs +3 -3
- package/esm2020/status-bar/status-bar.module.mjs +5 -5
- package/esm2020/steps/steps.component.mjs +6 -10
- package/esm2020/steps/steps.module.mjs +5 -5
- package/esm2020/switch/switch.component.mjs +5 -5
- package/esm2020/switch/switch.module.mjs +5 -5
- package/esm2020/table/table-cell-def.directive.mjs +4 -8
- package/esm2020/table/table-cell.component.mjs +9 -9
- package/esm2020/table/table-cell.directive.mjs +4 -6
- package/esm2020/table/table-column-def.directive.mjs +4 -10
- package/esm2020/table/table-header-cell-def.directive.mjs +4 -8
- package/esm2020/table/table-header-cell.directive.mjs +4 -6
- package/esm2020/table/table-header-row-def.directive.mjs +4 -8
- package/esm2020/table/table-header-row.component.mjs +4 -5
- package/esm2020/table/table-placeholder.directive.mjs +6 -6
- package/esm2020/table/table-row-def.directive.mjs +4 -9
- package/esm2020/table/table-row.component.mjs +4 -5
- package/esm2020/table/table-scroll.directive.mjs +14 -15
- package/esm2020/table/table.component.mjs +6 -9
- package/esm2020/table/table.module.mjs +5 -5
- package/esm2020/table-of-contents/table-of-contents.module.mjs +5 -5
- package/esm2020/table-of-contents/toc-container.directive.mjs +14 -14
- package/esm2020/table-of-contents/toc-content.directive.mjs +3 -3
- package/esm2020/table-of-contents/toc-link.directive.mjs +7 -7
- package/esm2020/tabs/tab-body.component.mjs +25 -43
- package/esm2020/tabs/tab-context.service.mjs +10 -13
- package/esm2020/tabs/tab-group.component.mjs +28 -73
- package/esm2020/tabs/tab-header-active-indicator.component.mjs +4 -13
- package/esm2020/tabs/tab-header.component.mjs +28 -131
- package/esm2020/tabs/tab.component.mjs +13 -27
- package/esm2020/tabs/tabs.module.mjs +11 -13
- package/esm2020/tabs/tabs.types.mjs +1 -4
- package/esm2020/tag/check-tag/check-tag.component.mjs +3 -3
- package/esm2020/tag/tag.component.mjs +6 -7
- package/esm2020/tag/tag.module.mjs +5 -5
- package/esm2020/theme/theme.module.mjs +5 -5
- package/esm2020/theme/theme.pipe.mjs +12 -12
- package/esm2020/theme/theme.service.mjs +3 -3
- package/esm2020/time-picker/component.mjs +12 -12
- package/esm2020/time-picker/panel/panel.component.mjs +27 -29
- package/esm2020/time-picker/time-picker.module.mjs +14 -16
- package/esm2020/tooltip/base-tooltip.mjs +38 -42
- package/esm2020/tooltip/tooltip-active.directive.mjs +3 -3
- package/esm2020/tooltip/tooltip-copy.directive.mjs +10 -10
- package/esm2020/tooltip/tooltip-intl.mjs +4 -10
- package/esm2020/tooltip/tooltip.component.mjs +5 -5
- package/esm2020/tooltip/tooltip.directive.mjs +3 -3
- package/esm2020/tooltip/tooltip.module.mjs +5 -6
- package/esm2020/tree-select/tree-node-placeholder.component.mjs +3 -3
- package/esm2020/tree-select/tree-select.component.mjs +29 -30
- package/esm2020/tree-select/tree-select.module.mjs +5 -5
- package/esm2020/types.mjs +1 -4
- package/esm2020/utils/bem.mjs +1 -2
- package/esm2020/utils/coercion.mjs +1 -5
- package/fesm2015/alauda-ui.mjs +1559 -1952
- package/fesm2015/alauda-ui.mjs.map +1 -1
- package/fesm2020/alauda-ui.mjs +1559 -1953
- package/fesm2020/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +1 -8
- package/form/form-item/form-item.component.d.ts +1 -1
- package/form/form.directive.d.ts +1 -1
- package/form/form.types.d.ts +2 -2
- package/form/helper-directives.d.ts +5 -5
- package/i18n/i18n.pipe.d.ts +1 -1
- package/i18n/i18n.type.d.ts +1 -1
- package/icon/icon.component.d.ts +1 -1
- package/inline-alert/helper-directives.d.ts +1 -1
- package/inline-alert/inline-alert.component.d.ts +1 -1
- package/inline-alert/inline-alert.types.d.ts +1 -1
- package/input/autosize.directive.d.ts +1 -4
- package/input/helper-directives.d.ts +4 -4
- package/input/input-group/input-group.component.d.ts +1 -1
- package/input/input.component.d.ts +1 -4
- package/input/number-input/number-input.component.d.ts +1 -1
- package/input/search/search.component.d.ts +1 -1
- package/input/tags-input/tags-input.component.d.ts +4 -4
- package/message/message-wrapper.component.d.ts +1 -1
- package/message/message.component.d.ts +1 -1
- package/message/message.config.d.ts +0 -20
- package/notification/notification-wrapper.component.d.ts +1 -1
- package/notification/notification.component.d.ts +1 -5
- package/notification/notification.config.d.ts +1 -1
- package/package.json +9 -9
- package/paginator/paginator-intl.d.ts +0 -9
- package/paginator/paginator.component.d.ts +1 -15
- package/radio/base-radio.d.ts +1 -1
- package/radio/radio-button/radio-button.component.d.ts +1 -1
- package/radio/radio-group/radio-group.component.d.ts +1 -4
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.types.d.ts +1 -1
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +1 -1
- package/scrolling/fixed-size-virtual-scroll.directive.d.ts +1 -1
- package/scrolling/virtual-for-of.directive.d.ts +1 -1
- package/scrolling/virtual-scroll-viewport.component.d.ts +1 -1
- package/select/base-select.d.ts +1 -4
- package/select/helper-directives.d.ts +2 -2
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +1 -1
- package/select/option-group/option-group.component.d.ts +1 -1
- package/select/option-placeholder.component.d.ts +1 -1
- package/select/select.component.d.ts +1 -1
- package/select/select.types.d.ts +3 -3
- package/select/validators.d.ts +1 -1
- package/shared/click-outside.directive.d.ts +1 -1
- package/sort/sort-errors.d.ts +0 -4
- package/sort/sort-header.component.d.ts +1 -1
- package/sort/sort.directive.d.ts +1 -1
- package/sort/sort.types.d.ts +2 -2
- package/status-bar/status-bar.component.d.ts +1 -1
- package/status-bar/status-bar.types.d.ts +2 -2
- package/steps/steps.component.d.ts +1 -4
- package/steps/types.d.ts +3 -6
- package/switch/switch.component.d.ts +1 -1
- package/table/table-cell-def.directive.d.ts +1 -5
- package/table/table-cell.component.d.ts +2 -2
- package/table/table-cell.directive.d.ts +1 -2
- package/table/table-column-def.directive.d.ts +1 -5
- package/table/table-header-cell-def.directive.d.ts +1 -5
- package/table/table-header-cell.directive.d.ts +1 -2
- package/table/table-header-row-def.directive.d.ts +1 -5
- package/table/table-header-row.component.d.ts +1 -2
- package/table/table-placeholder.directive.d.ts +2 -2
- package/table/table-row-def.directive.d.ts +1 -6
- package/table/table-row.component.d.ts +1 -2
- package/table/table-scroll.directive.d.ts +2 -2
- package/table/table.component.d.ts +1 -1
- package/table-of-contents/toc-container.directive.d.ts +1 -1
- package/table-of-contents/toc-content.directive.d.ts +1 -1
- package/table-of-contents/toc-link.directive.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +7 -23
- package/tabs/tab-context.service.d.ts +0 -3
- package/tabs/tab-group.component.d.ts +1 -29
- package/tabs/tab-header-active-indicator.component.d.ts +1 -10
- package/tabs/tab-header.component.d.ts +2 -85
- package/tabs/tab.component.d.ts +1 -19
- package/tabs/tabs.types.d.ts +2 -5
- package/tag/check-tag/check-tag.component.d.ts +1 -1
- package/tag/tag.component.d.ts +1 -1
- package/tag/tag.types.d.ts +1 -1
- package/theme/theme.pipe.d.ts +4 -4
- package/theme/theme.types.d.ts +3 -3
- package/time-picker/component.d.ts +1 -1
- package/time-picker/panel/panel.component.d.ts +1 -1
- package/time-picker/time-picker.type.d.ts +1 -1
- package/tooltip/base-tooltip.d.ts +1 -1
- package/tooltip/tooltip-active.directive.d.ts +1 -1
- package/tooltip/tooltip-copy.directive.d.ts +1 -1
- package/tooltip/tooltip-intl.d.ts +0 -4
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.directive.d.ts +1 -1
- package/tree-select/tree-node-placeholder.component.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +2 -2
- package/tree-select/tree-select.types.d.ts +1 -1
- package/types.d.ts +2 -5
- package/utils/operators.d.ts +1 -1
- package/.changeset/README.md +0 -8
- package/alauda-ui.d.ts +0 -5
- package/src/accordion/README.md +0 -13
- package/src/anchor/README.md +0 -23
- package/src/dropdown/README.md +0 -57
- package/src/form/README.md +0 -32
- package/src/icon/README.md +0 -28
- package/src/inline-alert/README.md +0 -16
- package/src/input/number-input/README.md +0 -16
- package/src/select/README.md +0 -57
- package/src/sort/README.md +0 -13
- package/src/table/README.md +0 -8
- package/src/table-of-contents/README.md +0 -94
- package/src/tag/README.md +0 -32
- package/src/tree-select/README.md +0 -34
package/src/select/README.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
## Select
|
|
2
|
-
|
|
3
|
-
### Select Attributes
|
|
4
|
-
|
|
5
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
-
| ----------- | -------------------------------------------- | ------------------ | ----------------------- |
|
|
7
|
-
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
8
|
-
| placeholder | 占位符 | string | - |
|
|
9
|
-
| disabled | 禁用 | boolean | false |
|
|
10
|
-
| loading | 加载状态 | boolean | false |
|
|
11
|
-
| value | 选中值 | T | - |
|
|
12
|
-
| filterable | 是否可过滤选项 | boolean | false |
|
|
13
|
-
| filterFn | 过滤函数 | OptionFilterMethod | Array.property.includes |
|
|
14
|
-
| allowCreate | 是否允许创建新值,需要和 filterable 一起打开 | boolean | false |
|
|
15
|
-
| clearable | 是否可清空选项 | boolean | false |
|
|
16
|
-
| trackFn | 返回 value 唯一标识符 | TrackFn | val => val |
|
|
17
|
-
|
|
18
|
-
### Select Events
|
|
19
|
-
|
|
20
|
-
| 时间名称 | 说明 | 回调参数 |
|
|
21
|
-
| ------------ | ------------ | ------------- |
|
|
22
|
-
| valueChange | 选中值变化 | value: T |
|
|
23
|
-
| filterChange | input 值变化 | value: string |
|
|
24
|
-
|
|
25
|
-
## MultiSelect
|
|
26
|
-
|
|
27
|
-
### MultiSelect Attributes
|
|
28
|
-
|
|
29
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
30
|
-
| ----------- | -------------------------------------------- | -------------- | ----------------------- |
|
|
31
|
-
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
32
|
-
| placeholder | 占位符 | string | - |
|
|
33
|
-
| disabled | 禁用 | boolean | false |
|
|
34
|
-
| loading | 加载状态 | boolean | false |
|
|
35
|
-
| value | 选中值 | T[] | [] |
|
|
36
|
-
| filterable | 是否可过滤选项 | boolean | false |
|
|
37
|
-
| filterFn | 过滤函数 | OptionFilterFn | Array.property.includes |
|
|
38
|
-
| allowCreate | 是否允许创建新值,需要和 filterable 一起打开 | boolean | false |
|
|
39
|
-
| clearable | 是否可清空选项 | boolean | false |
|
|
40
|
-
| trackFn | 返回 value 唯一标识符 | TrackFn | val => val |
|
|
41
|
-
|
|
42
|
-
### MultiSelect Events
|
|
43
|
-
|
|
44
|
-
| 事件名称 | 说明 | 回调参数 |
|
|
45
|
-
| ------------ | ------------ | ------------- |
|
|
46
|
-
| valueChange | 选中值变化 | value: T |
|
|
47
|
-
| filterChange | input 值变化 | value: string |
|
|
48
|
-
|
|
49
|
-
## Option
|
|
50
|
-
|
|
51
|
-
### Option Attributes
|
|
52
|
-
|
|
53
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
54
|
-
| -------- | ------------------------ | ------- | ------ |
|
|
55
|
-
| label | 选中后 select 显示的文案 | string | - |
|
|
56
|
-
| value | 选中值 | T | - |
|
|
57
|
-
| disabled | 禁用 | boolean | false |
|
package/src/sort/README.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
### 设计
|
|
2
|
-
|
|
3
|
-
基于 angular/material 的 MatSort 及 MatSortHeader 原始代码修改,修改样式,移除 Alauda UI 不需要的功能,目的是保持组件尽可能简单,避免无关功能干扰开发,变更功能如下:
|
|
4
|
-
|
|
5
|
-
- sort disable 相关代码
|
|
6
|
-
- sort indicator 样式修改,并去除原有动画相关代码,原有动画仅适合箭头,Alauda UI 的设计并不适合添加动画
|
|
7
|
-
- 排序清除功能(asc -> desc -> no sort),Alauda UI 的设计并未考虑这块功能,考虑这块功能不是非常必要,而且会增加一个排序状态,操作稍显繁琐。
|
|
8
|
-
- 无障碍相关功能(后续结合实际情况考虑是否加入)
|
|
9
|
-
|
|
10
|
-
### 使用
|
|
11
|
-
|
|
12
|
-
- [material2 sort.md](https://github.com/angular/material2/blob/master/src/lib/sort/sort.md)
|
|
13
|
-
- [material2 document](https://material.angular.io/components/sort/overview)
|
package/src/table/README.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## 设计
|
|
2
|
-
|
|
3
|
-
基于 angular/material 的 MatTable 修改,功能基本一致,仅移除 MatTableDataSource 相关代码`(MatTableDataSource和MatTable本身并无关系,而且功能并不适合基于服务端的排序及过滤,未来是否会抽取适合服务端的排序及过滤功能还需要考虑)`,样式按 Alauda UI 设计规范调整 。MatTable 相关组件基于 CdkTable 开发,未来 AuiTable 的功能变更会结合 CdkTable 来做。CdkTable 的[设计目标](https://docs.google.com/document/d/1ZyKhwrgqfTBAn7saTq2jPlep2_CwSw5DeoZ8UbaXrC0/preview)和 AuiTable 有很多共同点,可以作为一个后续功能迭代的基础。
|
|
4
|
-
|
|
5
|
-
## 使用
|
|
6
|
-
|
|
7
|
-
- [material2 table.md](https://github.com/angular/components/blob/master/src/cdk/table/table.md)
|
|
8
|
-
- [material2 document](https://material.angular.io/components/table/overview)
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
Features:
|
|
2
|
-
|
|
3
|
-
- Active link and content when content visible in scroll container.
|
|
4
|
-
- Smooth scroll to content when click link.
|
|
5
|
-
- Support programmable scroll to content.
|
|
6
|
-
- Support nested content.
|
|
7
|
-
|
|
8
|
-
Limit:
|
|
9
|
-
|
|
10
|
-
- container must scrollable.
|
|
11
|
-
- link active or fix position styles not included.
|
|
12
|
-
- if scroll to then end, scrollHeight - scrollTop === clientHeight, set last content active.
|
|
13
|
-
|
|
14
|
-
Simplest usage:
|
|
15
|
-
|
|
16
|
-
```html
|
|
17
|
-
<!-- links -->
|
|
18
|
-
<aside>
|
|
19
|
-
<a
|
|
20
|
-
auiTocLink="content1"
|
|
21
|
-
[for]="toc"
|
|
22
|
-
>content1</a
|
|
23
|
-
>
|
|
24
|
-
<a
|
|
25
|
-
auiTocLink="content2"
|
|
26
|
-
[for]="toc"
|
|
27
|
-
>content2</a
|
|
28
|
-
>
|
|
29
|
-
<a
|
|
30
|
-
auiTocLink="content3"
|
|
31
|
-
[for]="toc"
|
|
32
|
-
>content3</a
|
|
33
|
-
>
|
|
34
|
-
</aside>
|
|
35
|
-
<!-- scroll container -->
|
|
36
|
-
<article
|
|
37
|
-
auiTocContainer
|
|
38
|
-
#toc="auiTocContainer"
|
|
39
|
-
>
|
|
40
|
-
<section auiTocContent="content1">...</section>
|
|
41
|
-
<section auiTocContent="content2">...</section>
|
|
42
|
-
<section auiTocContent="content3">...</section>
|
|
43
|
-
</article>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Directives:
|
|
47
|
-
|
|
48
|
-
- `auiTocContainer`
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
@Output() activedChange: EventEmitter<string>;
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
emit when actived change, use this for self define links active.
|
|
55
|
-
|
|
56
|
-
```ts
|
|
57
|
-
scrollTo(content: string): void;
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
programmable scroll to content.
|
|
61
|
-
|
|
62
|
-
- `auiTocContent`
|
|
63
|
-
|
|
64
|
-
```ts
|
|
65
|
-
@Input('auiTocContent') auiTocContent: string;
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
set content name, must unique in same container.
|
|
69
|
-
|
|
70
|
-
```ts
|
|
71
|
-
@HostBinding('class.isActive') active: boolean;
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
you need define content `isActive` class for content styling when active.
|
|
75
|
-
|
|
76
|
-
- (Optional) `auiTocLink`
|
|
77
|
-
|
|
78
|
-
```ts
|
|
79
|
-
@Input() for: TocContainerDirective;
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
scroll container template reference variable
|
|
83
|
-
|
|
84
|
-
```ts
|
|
85
|
-
@Input('auiTocLink') auiTocLink: string;
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
link target content name.
|
|
89
|
-
|
|
90
|
-
```ts
|
|
91
|
-
@HostBinding('class.isActive') active: boolean;
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
you need define link `isActive` class for link styling when active.
|
package/src/tag/README.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
## Tag
|
|
2
|
-
|
|
3
|
-
### Tag Attributes
|
|
4
|
-
|
|
5
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
6
|
-
| --------- | ----------------------------------------------------------------- | ------------- | -------------------- |
|
|
7
|
-
| type | 主题 | TagType | TagType.Primary |
|
|
8
|
-
| size | 尺寸 | ComponentSize | ComponentSize.Medium |
|
|
9
|
-
| closeable | 是否可关闭 | boolean | false |
|
|
10
|
-
| solid | 是否实心 | boolean | false |
|
|
11
|
-
| color | 自定义颜色,可以 `,` 分隔两个色值,第一个值为主色,第二个为背景色 | string | - |
|
|
12
|
-
|
|
13
|
-
### Tag Events
|
|
14
|
-
|
|
15
|
-
| 事件名称 | 说明 | 回调参数 |
|
|
16
|
-
| -------- | --------------- | -------- |
|
|
17
|
-
| close | 关闭 tag 时触发 | - |
|
|
18
|
-
|
|
19
|
-
## CheckTag
|
|
20
|
-
|
|
21
|
-
### CheckTag Attributes
|
|
22
|
-
|
|
23
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
24
|
-
| ------- | -------- | ------------- | -------------------- |
|
|
25
|
-
| checked | 是否选中 | boolean | false |
|
|
26
|
-
| size | 尺寸 | ComponentSize | ComponentSize.medium |
|
|
27
|
-
|
|
28
|
-
### CheckTag Events
|
|
29
|
-
|
|
30
|
-
| 事件名称 | 说明 | 回调参数 |
|
|
31
|
-
| ------------- | --------------- | -------- |
|
|
32
|
-
| checkedChange | 点击 tag 时触发 | boolean |
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# TreeSelect Module
|
|
2
|
-
|
|
3
|
-
## TreeSelect
|
|
4
|
-
|
|
5
|
-
### TreeSelect Attributes
|
|
6
|
-
|
|
7
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
8
|
-
| ----------- | -------------- | ------------------ | ----------------------- |
|
|
9
|
-
| placeholder | 占位符 | string | - |
|
|
10
|
-
| disabled | 禁用 | boolean | false |
|
|
11
|
-
| loading | 加载状态 | boolean | false |
|
|
12
|
-
| value | 选中值 | any | - |
|
|
13
|
-
| filterable | 是否可过滤选项 | boolean | false |
|
|
14
|
-
| filterFn | 过滤函数 | OptionFilterMethod | Array.property.includes |
|
|
15
|
-
| clearable | 是否可清空选项 | boolean | false |
|
|
16
|
-
|
|
17
|
-
### TreeSelect Events
|
|
18
|
-
|
|
19
|
-
| 时间名称 | 说明 | 回调参数 |
|
|
20
|
-
| ------------ | ------------ | ------------- |
|
|
21
|
-
| valueChange | 选中值变化 | value: any |
|
|
22
|
-
| filterChange | input 值变化 | value: string |
|
|
23
|
-
|
|
24
|
-
## TreeNode
|
|
25
|
-
|
|
26
|
-
### TreeNode Attributes
|
|
27
|
-
|
|
28
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
29
|
-
| -------- | ------------------------ | ------- | ------ |
|
|
30
|
-
| label | 选中后 select 显示的文案 | string | - |
|
|
31
|
-
| value | 选中值 | any | - |
|
|
32
|
-
| disabled | 禁用 | boolean | false |
|
|
33
|
-
| expanded | 是否默认展开节点 | boolean | false |
|
|
34
|
-
| leafOnly | 只允许选择叶子节点 | boolean | false |
|