halo/console
Ryan Wang 44cb311fac
refactor: visible condition of modal component (#5078)
#### What type of PR is this?

/area console
/kind improvement
/milestone 2.12.x

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

重构 UI 的 Modal 组件,支持通过 v-if 控制是否显示(渲染)。

example:

```vue
<script lang="ts" setup>
import { ref } from "vue"
const visible = ref(false)
const modal = ref()

function open() {
  visible.value = true
}

function close() {
  modal.value.close()
}
</script>

<template>
  <button @click="open">Open</button>
    <VModal v-if="visible" ref="modal" title="test">
      <button @click="close">Close</button>
    </VModal>
</template>
```

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

Fixes #5077 

#### Special notes for your reviewer:

测试方式:

1. cd console && pnpm --filter "./packages/components" storybook
2. 测试 Modal 组件在文档中是否工作正常。
3. 启动 Console 或者 UC。
4. 观察以前页面上的弹框是否工作正常。

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

```release-note
重构 UI 的 Modal 组件,支持通过 v-if 控制是否显示(渲染)。
```
2023-12-29 07:15:39 +00:00
..
.changeset Move root to console 2023-03-02 15:49:22 +08:00
.husky Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
.vscode Move root to console 2023-03-02 15:49:22 +08:00
console-src chore: use lodash-es instead of lodash (#5125) 2023-12-28 09:13:38 +00:00
cypress Move root to console 2023-03-02 15:49:22 +08:00
docs refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
packages refactor: visible condition of modal component (#5078) 2023-12-29 07:15:39 +00:00
public Move root to console 2023-03-02 15:49:22 +08:00
src chore: use lodash-es instead of lodash (#5125) 2023-12-28 09:13:38 +00:00
uc-src chore: use lodash-es instead of lodash (#5125) 2023-12-28 09:13:38 +00:00
.editorconfig Move root to console 2023-03-02 15:49:22 +08:00
.env.development Configure default external-url as slash (#3655) 2023-04-03 03:50:13 +00:00
.env.production Move root to console 2023-03-02 15:49:22 +08:00
.eslintrc.cjs feat: use storybook to refactor components library docs (#4944) 2023-12-06 08:30:13 +00:00
.gitignore chore: add storybook-static folder to .gitignore (#5075) 2023-12-19 09:12:07 +00:00
.gitpod.yml Move root to console 2023-03-02 15:49:22 +08:00
.npmignore Move root to console 2023-03-02 15:49:22 +08:00
.npmrc Move root to console 2023-03-02 15:49:22 +08:00
.prettierignore feat: add i18n supports for console (#3506) 2023-03-23 08:54:33 +00:00
Makefile Support publishing to maven central repository (#3767) 2023-04-18 14:28:23 +08:00
OWNERS Refactor workflow for new console project (#3445) 2023-03-02 18:07:23 +08:00
README.md chore: bump pnpm version to 8 (#3935) 2023-05-11 08:50:21 +00:00
cypress.json Move root to console 2023-03-02 15:49:22 +08:00
env.d.ts chore: bump formkit version to 0.18.0 (#4428) 2023-08-16 03:30:12 +00:00
index.html feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
package.json chore: use lodash-es instead of lodash (#5125) 2023-12-28 09:13:38 +00:00
pnpm-lock.yaml chore: use lodash-es instead of lodash (#5125) 2023-12-28 09:13:38 +00:00
pnpm-workspace.yaml Move root to console 2023-03-02 15:49:22 +08:00
postcss.config.js fix: modal height issue in ios devices (#4106) 2023-06-25 02:06:14 +00:00
prettier.config.js Move root to console 2023-03-02 15:49:22 +08:00
tailwind.config.js feat: add tailwindcss/forms plugin to standardize the style of form elements (#4893) 2023-11-23 09:32:09 +00:00
tsconfig.app.json feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
tsconfig.json chore: improve the console project infrastructure (#4105) 2023-06-26 03:54:17 +00:00
tsconfig.node.json feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00
tsconfig.vitest.json Move root to console 2023-03-02 15:49:22 +08:00
vite.config.ts refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
vite.uc.config.ts refactor: improve project structure for user center feature (#4839) 2023-11-09 06:56:06 +00:00
vitest.config.ts feat: build infrastructure for user center feature (#4806) 2023-11-02 09:00:28 +00:00

README.md

README

Halo logo

Halo 2.0 的管理端项目(原 halo-admin

GitHub release GitHub GitHub last commit GitHub Workflow Status Gitpod ready-to-code


当前仓库已经将 halo-admin 改为了 console。但对于 Halo 1.x 版本,依旧保持 halo-admin 的概念。

开发环境运行

npm install -g pnpm@8
pnpm install 
pnpm build:packages
pnpm dev

生产构建

pnpm build

状态

Repobeats analytics