Skip to content

Commit

Permalink
[snippets] 删除 AcroDynamicForm 组件
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 committed Nov 6, 2024
1 parent febae50 commit 72bd951
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 2,926 deletions.
82 changes: 3 additions & 79 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,84 +1,8 @@
## [Unreleased]
- ⚠️ [@mixte/snippets] 删除 `AcroDynamicForm` 组件

## [v2.5.0], [v2.5.0-beta.2], [v2.5.0-beta.1]
- 📅 2024-11-05
- 🌟 [@mixte/components] 组件 `AutoGrid` 新增 `fluid` 参数
- 🌟 [@mixte/components] 组件 `AutoGrid` 新增 `columnCount` 变量导出, 标识每行可以渲染的子元素数量
- 🌟 [@mixte/components] 组件 `AutoGrid` 新增 `isCollapsed` 变量导出, 标识子元素是否折叠
- 🐞 [@mixte/use] 修复 `useRequest` 使用了 `resetOnExecute: false` 并请求失败后, `response``data` 未重置的问题
- 🐞 [@mixte/use] 修复 `useRequest` 使用了 `resetOnExecute: false` 并请求成功后, `error` 未重置的问题

## [v2.4.0], [v2.4.0-beta.3], [v2.4.0-beta.2], [v2.4.0-beta.1]
- 📅 2024-08-27
- 🌟 [@mixte/components] 新增 `ListAutoGrid` 组件, 支持 `Vue3``Vue2.7`
- 💄 [@mixte/components] 组件 `AutoGrid` 根节点添加 `mixte-auto-grid` 样式类

## [v2.3.0]
- 📅 2024-08-20
- 🌟 [@mixte/use] 方法 `useRequest` 新增 `reset` 方法, 用于重置请求到初始状态

## [v2.2.0]
- 📅 2024-08-19
- 🌟 [@mixte/snippets] 方法 `toggleThemeViewTransition` 新增 `reverseSelector` 选项, 用于自定义选择器, 默认 `.dark`
- 🌟 [@mixte/snippets] 方法 `toggleThemeViewTransition` 新增 `prefersReducedMotion` 选项, 用于自定义是否检测用户偏好是否是减少动画, 默认检测

## [v2.1.0]
- 📅 2024-08-05
- 🌟 [@mixte/snippets] 新增 `toggleThemeViewTransition` 方法, 提供切换主题时的视图过渡动画

## [v2.0.3]
- 📅 2024-08-03
- 💄 [@mixte/validator] 优化 `citizenID``email` 的正则
- 🐞 [@mixte/use] 修复 `@mixte/use/nuxt` 仅导入了类型的问题

## [v2.0.2]
- 📅 2024-07-30
- 🌟 [@mixte/use] 新增供 Nuxt 使用的模块 `@mixte/use/nuxt`, 提供自动导入功能

## [v2.0.1]
- 📅 2024-07-29
- 💄 [@mixte/use] 内置 `whenever` 方法, 防止项目中 `@vueuse/core` 版本过低不支持 `once` 选项

## [v2.0.0], [v2.0.0-beta.3], [v2.0.0-beta.2], [v2.0.0-beta.1]
- 📅 2024-07-06
- [@mixte/use]
- `useRequest` 方法
- 💄 优化 `reactive` 返回值实现
- ⚠️ 移除 `successCount` 参数及 `clearSuccessCount` 方法

- [@mixte/components]
- ⚠️ 移除该组件包的默认导出, 请按需导入
- `AutoGrid` 组件
- 💄 组件使用 Vue SFC 重构, 提供更好的类型提示
- 💄 新增 `MixteAutoGridInstance` 导出项
- ⚠️ 移除 `mixteAutoGridProps` 导出项, 保留 `MixteAutoGridProps` 导出项

- [@mixte/snippets]
- `AcroDynamicForm` 组件
- 🌟 字段配置新增 `render` 选项
- 可传入渲染函数, 渲染自定义组件
- 可传入插槽名称, 将使用指定名称的插槽来渲染自定义组件
- 🌟 字段配置新增 `preset` 选项
- 用于定义需要继承的已配置的预设, 支持继承多个预设
- 🌟 新增 `actionButtonArea``actionButtonPrepend``actionButtonAppend` 插槽
- `actionButtonArea`: 可使用该插槽代替操作按钮区域的渲染
- `actionButtonPrepend`: 可插入内容到提交按钮前面
- `actionButtonAppend`: 可插入内容到重置按钮后面
- 🌟 新增 `actionButtonArea.props``submitButton.props``resetButton.props`
- `actionButtonArea.props`: 传递给操作按钮区域 FormItem 组件的参数
- `submitButton.props`: 传递给提交按钮组件的参数
- `resetButton.props`: 传递给重置按钮组件的参数
- 🌟 新增 `actionButtonArea.spaceProps`
- 传递给操作按钮区域 Space 组件的参数
- 🌟 新增 `init` 导出方法
- 🌟 新增对外导出方法 `defineAcroDynamicFormPreset`, 用于定义预设选项
- 💄 优化传参类型, 整合 Acro 的 Form 表单组件传参
- ⚠️ 修改 `AcroDynamicForm` 组件参数
-`showActionButtonArea` 改为 `actionButtonArea``actionButtonArea.show`
-`showSubmitButton` 改为 `submitButton``submitButton.show`
-`submitButtonText` 改为 `submitButton.text`
-`showResetButton` 改为 `resetButton``resetButton.show`
-`resetButtonText` 改为 `resetButton.text`
## [../v2](https://mixte-v2.moomfe.com)
- [更新日志](https://mixte-v2.moomfe.com/changelog)

## [../v1](https://mixte-v1.moomfe.com)
- [更新日志](https://mixte-v1.moomfe.com/changelog)
Expand Down
7 changes: 0 additions & 7 deletions meta/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@
}
],
"snippets": [
{
"fn": "acro-dynamic-form",
"title": "AcroDynamicForm",
"name": "Acro 动态表单",
"hiddenTitle": false,
"sidebarTitle": "AcroDynamicForm"
},
{
"fn": "getFastestCDN",
"title": "",
Expand Down
9 changes: 0 additions & 9 deletions meta/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ export const packages = [
external: ['mixte'],
dtsExternal: ['naive-ui'],
},
// @mixte/snippets/acro-dynamic-form
{
input: 'packages/snippets/src/acro-dynamic-form/index.ts',
outputDir: 'packages/snippets/dist',
outputFileName: 'acro-dynamic-form',
external: ['@arco-design/web-vue', 'mixte'],
dtsExternal: ['@arco-design/web-vue'],
vueComponent: true,
},
// @mixte/snippets/toggleThemeViewTransition
{
input: 'packages/snippets/src/toggleThemeViewTransition/index.ts',
Expand Down
1 change: 0 additions & 1 deletion packages/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export default defineConfig({
...alias,
{ find: '@', replacement: resolve(__dirname, '../') },
{ find: '@@', replacement: resolve(__dirname, '../../') },
{ find: '@mixte/components/acro-dynamic-form', replacement: resolve(__dirname, '../snippets/dist/acro-dynamic-form') },
],
},
plugins: [
Expand Down
1 change: 0 additions & 1 deletion packages/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import './style.css';
import 'uno.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import 'element-plus/theme-chalk/el-message.css';
import '@arco-design/web-vue/dist/arco.css';
import '@shikijs/vitepress-twoslash/style.css';

export default {
Expand Down
1 change: 0 additions & 1 deletion packages/snippets/acro-dynamic-form.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"import": "./dist/useNaiveForm.mjs",
"require": "./dist/useNaiveForm.cjs"
},
"./acro-dynamic-form": {
"types": "./dist/acro-dynamic-form.d.ts",
"import": "./dist/acro-dynamic-form.mjs",
"require": "./dist/acro-dynamic-form.cjs"
},
"./toggleThemeViewTransition": {
"types": "./dist/toggleThemeViewTransition.d.ts",
"import": "./dist/toggleThemeViewTransition.mjs",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 72bd951

Please sign in to comment.