From 54a385334fdd3994cc62dfc10bc40df4c48ba9dd Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 9 Jul 2024 22:08:31 +0800 Subject: [PATCH] * progress: add progress bar component. --- lib/progress/src/main.ts | 1 + lib/progress/src/vanilla/index.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lib/progress/src/vanilla/index.ts diff --git a/lib/progress/src/main.ts b/lib/progress/src/main.ts index 0be5f85fef..f13be58ea4 100644 --- a/lib/progress/src/main.ts +++ b/lib/progress/src/main.ts @@ -1,2 +1,3 @@ import './components/share'; +import './vanilla'; import './style'; diff --git a/lib/progress/src/vanilla/index.ts b/lib/progress/src/vanilla/index.ts new file mode 100644 index 0000000000..e7360b2ad0 --- /dev/null +++ b/lib/progress/src/vanilla/index.ts @@ -0,0 +1,11 @@ +import {ComponentFromReact} from '@zui/core'; +import {ProgressBar as ProgressBarReact} from '../components'; +import {ProgressBarOptions} from '../types'; + +export class ProgressBar extends ComponentFromReact { + static NAME = 'ProgressBar'; + + static Component = ProgressBarReact; +} + +ProgressBar.register();