Skip to content

Commit

Permalink
refactor(navbar): move to script setup (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Mar 19, 2024
1 parent 36877ff commit 8ee509b
Show file tree
Hide file tree
Showing 10 changed files with 314 additions and 289 deletions.
1 change: 1 addition & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"name": "Navbar",
"cName": "头部导航",
"desc": "头部导航",
"setup": true,
"author": "liqiong43"
},
{
Expand Down
11 changes: 11 additions & 0 deletions src/packages/__VUE/navbar/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ app.use(Navbar);
| left-show | Custom icon of left arrow |
| title-icon | Custom icon in header |

### Types version

The component exports the following type definitions:

```js
import type {
NavbarProps,
NavbarInstance
} from '@nutui/nutui';
```

## Theming

### CSS Variables
Expand Down
11 changes: 11 additions & 0 deletions src/packages/__VUE/navbar/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ app.use(Navbar);
| left-show | 左侧箭头自定义图标 |
| title-icon | 标题中自定义图标 |

### 类型定义 version

组件导出以下类型定义:

```js
import type {
NavbarProps,
NavbarInstance
} from '@nutui/nutui';
```

## 主题定制

### 样式变量
Expand Down
11 changes: 11 additions & 0 deletions src/packages/__VUE/navbar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ app.use(Navbar);
| left-show | 左侧箭头自定义图标 |
| title-icon | 标题中自定义图标 |

### 类型定义 version

组件导出以下类型定义:

```js
import type {
NavbarProps,
NavbarInstance
} from '@nutui/nutui-taro';
```

## 主题定制

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

withInstall(Navbar);

export type { NavbarProps } from './navbar.taro.vue';

export type NavbarInstance = ComponentPublicInstance & InstanceType<typeof Navbar>;

export { Navbar, Navbar as default };
147 changes: 0 additions & 147 deletions src/packages/__VUE/navbar/index.taro.vue

This file was deleted.

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

withInstall(Navbar);

export type { NavbarProps } from './navbar.vue';

export type NavbarInstance = ComponentPublicInstance & InstanceType<typeof Navbar>;

export { Navbar, Navbar as default };
142 changes: 0 additions & 142 deletions src/packages/__VUE/navbar/index.vue

This file was deleted.

Loading

0 comments on commit 8ee509b

Please sign in to comment.