diff --git a/CHANGELOG.md b/CHANGELOG.md index c06d4cf..75d4317 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.0.13] - 2026-06-08 +### Fixed +- **State Integration**: Bumped `@apigo.cc/state` to `1.0.18` to restore the globally injected `$`/`$$` helpers from the original UMD era, fixing `TagsInput` element targeting. +- **AutoForm Layout**: Fixed `horizontal` grid layout breakage caused by missing `AUTOFORM_STYLE` registration. +- **AutoForm Expansion**: Restored `AutoForm.register` with deep-blueprint `[control-wrapper]` physical insertion mechanism, fixing the blank rendering bug of `TagsInput` and `ColorPicker`. +- **Form Controls**: Removed `height: 100%` from `ColorPicker` preventing flex squash; fixed horizontal mode left-padding overflow for Check/Radio/Switch components. +- **Build**: Fully expunged `.mjs` artifacts from vite build pipeline to enforce UMD compliance. + ## [1.0.12] - 2026-06-05 ### Changed - **De-ESM Refactor**: Fully transitioned the runtime environment to synchronous UMD loading, eliminating race conditions and rendering artifacts. diff --git a/README.md b/README.md index 52e131d..f7b329f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ### ESM 模块引入 (Legacy) ```javascript -import { HTTP, UI, AutoForm, State } from '@apigo.cc/base' +const { HTTP, UI, AutoForm, State } = window.ApigoBase ``` --- @@ -99,7 +99,7 @@ import { HTTP, UI, AutoForm, State } from '@apigo.cc/base' @@ -157,7 +157,7 @@ import { HTTP, UI, AutoForm, State } from '@apigo.cc/base' ``` * **HTML 写法**: ```html - + ``` #### 模式三:树形可折叠列表 (`mode="tree"`) —— 超级示例 @@ -222,8 +222,8 @@ import { HTTP, UI, AutoForm, State } from '@apigo.cc/base' ``` @@ -289,6 +289,7 @@ const resp = await HTTP.post({ ## 4. 开发红线 (Constraints) 1. **表单数据操作红线**:严禁直接覆盖表单的 `state.data` 或 `data` 对象(如 `form.data = {}`)。这会切断与内部 Proxy 的响应式链路。必须使用 `Object.assign(form.state.data, newData)`。 -2. **列表布局红线**:开启虚拟滚动(`fast`)时,容器必须包含 `overflow-auto` 类。 -3. **指令 DOM 保护**:严禁使用原生 DOM API 直接修改由 `$each`、`$if` 或组件渲染指令生成的 DOM 节点。所有 DOM 状态的变化应当完全通过修改与之绑定的底层 `State` 属性驱动。 -4. **退出拦截约束**:在全局配置有 `State.exitBlocks > 0` 时,框架将强行拦截并警告任何刷新/关闭页面的行为。 +2. **结构化指令红线**:所有 `$if` 与 `$each` 指令 **必须** 显式作用于 `