Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
refactor: remove form-related components (#762)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind improvement
/milestone 2.1.x

#### What this PR does / why we need it:

移除与表单相关的组件,比如 `VInput`、`VSelect` 等,以后均使用 FormKit 提供的表单元素

#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#2905

#### Does this PR introduce a user-facing change?

```release-note
None
```
  • Loading branch information
ruibaby authored Dec 12, 2022
1 parent 7f9de2f commit 7e0daae
Show file tree
Hide file tree
Showing 38 changed files with 1 addition and 1,479 deletions.
5 changes: 0 additions & 5 deletions packages/components/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ export * from "./components/avatar";
export * from "./components/alert";
export * from "./components/button";
export * from "./components/card";
export * from "./components/checkbox";
export * from "./components/header";
export * from "./components/input";
export * from "./components/menu";
export * from "./components/modal";
export * from "./components/radio";
export * from "./components/select";
export * from "./components/space";
export * from "./components/tabs";
export * from "./components/tag";
export * from "./components/textarea";
export * from "./components/switch";
export * from "./components/dialog";
export * from "./components/pagination";
Expand Down
25 changes: 0 additions & 25 deletions packages/components/src/components/card/Card.story.vue
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
<script lang="ts" setup>
import { VCard } from "./index";
import { VInput } from "../../components/input";
import { VSpace } from "../../components/space";
import { VButton } from "../../components/button";
import { IconSettings } from "../../icons/icons";
</script>

<template>
<Story title="Card">
<template #default>
<div class="p-3">
<VCard title="登录">
<VSpace class="w-full" direction="column">
<VInput placeholder="用户名"></VInput>
<VInput placeholder="密码"></VInput>
</VSpace>

<template #actions>
<div style="padding: 12px 16px">
<IconSettings />
</div>
</template>

<template #footer>
<VSpace>
<VButton type="secondary">登录</VButton>
<VButton type="default">取消</VButton>
</VSpace>
</template>
</VCard>
</div>
<!-- https://lofiui.co/-->
<div class="p-3">
<VCard title="Page Views">
Expand Down
36 changes: 0 additions & 36 deletions packages/components/src/components/checkbox/CheckBox.story.vue

This file was deleted.

58 changes: 0 additions & 58 deletions packages/components/src/components/checkbox/CheckBox.vue

This file was deleted.

54 changes: 0 additions & 54 deletions packages/components/src/components/checkbox/CheckBoxGroup.vue

This file was deleted.

This file was deleted.

This file was deleted.

Loading

1 comment on commit 7e0daae

@vercel
Copy link

@vercel vercel bot commented on 7e0daae Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

halo-admin-ui.vercel.app
ui-git-main-halo-dev.vercel.app
ui-halo-dev.vercel.app

Please sign in to comment.