Skip to content

Commit

Permalink
refactor(progress): move to script setup (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Mar 13, 2024
1 parent 2227550 commit 88d1462
Show file tree
Hide file tree
Showing 13 changed files with 265 additions and 261 deletions.
1 change: 1 addition & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@
"name": "Progress",
"cName": "进度条",
"desc": "用来展示进度",
"setup": true,
"author": "Drjingubo"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/progress/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from '@vue/test-utils';
import { nextTick } from 'vue';
import Progress from '../index.vue';
import Progress from '../';

test('should render progress when use props', async () => {
const wrapper = mount(Progress, {
Expand Down
13 changes: 13 additions & 0 deletions src/packages/__VUE/progress/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ size: `small`, `base`, `large` .
| --- | --- |
| icon-name | Right icon content |

### Types version

The component exports the following type definitions:

```js
import type {
ProgressSize,
ProgressStatus,
ProgressProps,
ProgressInstance
} from '@nutui/nutui';
```

## Theming

### CSS Variables
Expand Down
13 changes: 13 additions & 0 deletions src/packages/__VUE/progress/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ size: `small`, `base`, `large`
| --- | --- | --- |
| icon-name | 右侧 `icon` 内容 | - |

### 类型定义 version

组件导出以下类型定义:

```js
import type {
ProgressSize,
ProgressStatus,
ProgressProps,
ProgressInstance
} from '@nutui/nutui';
```

## 主题定制

### 样式变量
Expand Down
13 changes: 13 additions & 0 deletions src/packages/__VUE/progress/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ size: `small`, `base`, `large`
| --- | --- | --- |
| icon-name | 右侧 `icon` 内容 | - |

### 类型定义 version

组件导出以下类型定义:

```js
import type {
ProgressSize,
ProgressStatus,
ProgressProps,
ProgressInstance
} from '@nutui/nutui-taro';
```

## 主题定制

### 样式变量
Expand Down
13 changes: 13 additions & 0 deletions src/packages/__VUE/progress/index.taro.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Progress from './progress.taro.vue';
import type { ComponentPublicInstance } from 'vue';
import { withInstall } from '@/packages/utils';

withInstall(Progress);

export type { ProgressProps } from './progress.taro.vue';

export type { ProgressSize, ProgressStatus } from './types';

export type ProgressInstance = ComponentPublicInstance & InstanceType<typeof Progress>;

export { Progress, Progress as default };
129 changes: 0 additions & 129 deletions src/packages/__VUE/progress/index.taro.vue

This file was deleted.

13 changes: 13 additions & 0 deletions src/packages/__VUE/progress/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Progress from './progress.vue';
import type { ComponentPublicInstance } from 'vue';
import { withInstall } from '@/packages/utils';

withInstall(Progress);

export type { ProgressProps } from './progress.vue';

export type { ProgressSize, ProgressStatus } from './types';

export type ProgressInstance = ComponentPublicInstance & InstanceType<typeof Progress>;

export { Progress, Progress as default };
129 changes: 0 additions & 129 deletions src/packages/__VUE/progress/index.vue

This file was deleted.

Loading

0 comments on commit 88d1462

Please sign in to comment.