workdesktop-ai 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -1
- package/dist/index.esm.js +998 -977
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/buttons/ApiButton.vue.d.ts +9 -0
- package/dist/types/src/components/buttons/ConfirmButton.vue.d.ts +9 -0
- package/dist/types/src/components/buttons/PromptButton.vue.d.ts +9 -0
- package/dist/types/src/components/buttons/RouteButton.vue.d.ts +9 -0
- package/dist/types/src/components/buttons/TipsButton.vue.d.ts +9 -0
- package/dist/types/src/components/common/props.d.ts +7 -0
- package/dist/types/src/components/inputs/AutoComplete.vue.d.ts +2 -2
- package/dist/types/src/components/upload/ImageUpload.vue.d.ts +5 -5
- package/dist/types/src/lib/composables/useConfig.d.ts +1 -1
- package/dist/types/src/types/config.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,37 @@
|
|
|
8
8
|
|
|
9
9
|
- 暂无
|
|
10
10
|
|
|
11
|
+
## [1.0.2] - 2026-09-06
|
|
12
|
+
|
|
13
|
+
文档示例告警治理与 HTML 模板渲染友好性修复。基于文档站 24 个组件页 + 7 个场景页的自动化控制台检测,修复 5 类 Vue / Element Plus 警告。
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
**按钮组 text 属性透传报错(影响 5 个按钮)**
|
|
18
|
+
|
|
19
|
+
- `WdApiButton`、`WdConfirmButton`、`WdPromptButton`、`WdRouteButton`、`WdTipsButton` 新增 `text` 文字 prop(String),支持 `text="保存配置"` 属性式写法;默认插槽兜底渲染 `{{ text }}`。
|
|
20
|
+
- 根因:组件未声明 `text` 时,属性式写法的字符串会经 `$attrs` 透传给 `el-button`,而 el-button 的 `text` 是 Boolean 型「文字按钮」开关,触发类型校验警告。声明 prop 后该属性自动从 `$attrs` 移除。统一对齐 `WdDrawerButton` / `WdDialogButton` 已有的 `text` + 插槽范式。
|
|
21
|
+
|
|
22
|
+
**WdImageUpload thumbnailSize 类型**
|
|
23
|
+
|
|
24
|
+
- `thumbnail-size` prop 类型由 `Number` 放宽为 `[Number, String]`,兼容 HTML 属性式字符串写法(如 `thumbnail-size="90"`),`v-bind` CSS 对两种类型均正确产出像素值。
|
|
25
|
+
|
|
26
|
+
**WdDataForm 编辑态首帧控件告警**
|
|
27
|
+
|
|
28
|
+
- 同步数据(`props.data` / 容器 `data`)的回填由 `onMounted` 提前到 setup 阶段(首次渲染前),避免插槽内 `el-switch` / `el-radio` 等控件首帧绑定 `undefined` 触发 Element Plus 校验警告;api 异步详情仍在 `onMounted` 拉取并覆盖。
|
|
29
|
+
|
|
30
|
+
**WdAutoComplete v-loading 指令告警**
|
|
31
|
+
|
|
32
|
+
- `v-loading` 由根节点 `el-autocomplete`(根为 ElTooltip / fragment 非单一原生元素)移至包裹 `<div>`,修复 "Runtime directive used on component with non-element root node at <ElPopper>" 告警。
|
|
33
|
+
|
|
34
|
+
**文档示例**
|
|
35
|
+
|
|
36
|
+
- `select` 远程搜索示例补全 `value-prop="id" text-prop="name"`:mock `/user/list` 返回用户对象主键为 `id`、名称字段为 `name`(非默认 `value` / `text`),缺失映射导致 `el-option` 的 `value` 为 `undefined` 告警。
|
|
37
|
+
|
|
38
|
+
## [1.0.1] - 2026-09-05
|
|
39
|
+
|
|
40
|
+
1.0.0 修订发布。
|
|
41
|
+
|
|
11
42
|
## [1.0.0] - 2026-09-05
|
|
12
43
|
|
|
13
44
|
首个正式发布。
|
|
@@ -56,6 +87,7 @@
|
|
|
56
87
|
- 测试体系:vitest + @vue/test-utils,基础设施单测 87 用例 + DataGrid/DataForm 集成 19 用例,基础库行覆盖率 98%。
|
|
57
88
|
- 中文内置文案,语义化版本与开源配置(MIT)。
|
|
58
89
|
|
|
59
|
-
[Unreleased]: https://github.com/wordyhuang/workdesktop-ai/compare/v1.0.
|
|
90
|
+
[Unreleased]: https://github.com/wordyhuang/workdesktop-ai/compare/v1.0.2...HEAD
|
|
91
|
+
[1.0.2]: https://github.com/wordyhuang/workdesktop-ai/compare/v1.0.1...v1.0.2
|
|
60
92
|
[1.0.1]: https://github.com/wordyhuang/workdesktop-ai/compare/v1.0.0...v1.0.1
|
|
61
93
|
[1.0.0]: https://github.com/wordyhuang/workdesktop-ai/releases/tag/v1.0.0
|