x-next 1.16.0 → 1.16.1
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/AI_USAGE/catalog.md +1 -1
- package/AI_USAGE/components/alert-api.md +1 -1
- package/AI_USAGE/components/alert.md +1 -1
- package/AI_USAGE/components/bar-chart-api.md +1 -1
- package/AI_USAGE/components/bar-chart.md +1 -1
- package/AI_USAGE/components/boxicons.md +1 -1
- package/AI_USAGE/components/button-api.md +1 -1
- package/AI_USAGE/components/button.md +1 -1
- package/AI_USAGE/components/charts.md +1 -1
- package/AI_USAGE/components/checkbox-api.md +1 -1
- package/AI_USAGE/components/checkbox.md +1 -1
- package/AI_USAGE/components/color-picker-api.md +1 -1
- package/AI_USAGE/components/color-picker.md +1 -1
- package/AI_USAGE/components/config-provider-api.md +1 -1
- package/AI_USAGE/components/config-provider.md +1 -1
- package/AI_USAGE/components/date-picker-api.md +1 -1
- package/AI_USAGE/components/date-picker.md +1 -1
- package/AI_USAGE/components/dialog-api.md +1 -1
- package/AI_USAGE/components/dialog.md +1 -1
- package/AI_USAGE/components/draggable-api.md +1 -1
- package/AI_USAGE/components/draggable.md +1 -1
- package/AI_USAGE/components/drawer-api.md +1 -1
- package/AI_USAGE/components/drawer.md +1 -1
- package/AI_USAGE/components/dropdown-api.md +1 -1
- package/AI_USAGE/components/dropdown.md +1 -1
- package/AI_USAGE/components/empty-api.md +1 -1
- package/AI_USAGE/components/empty.md +1 -1
- package/AI_USAGE/components/finicon.md +1 -1
- package/AI_USAGE/components/form-api.md +1 -1
- package/AI_USAGE/components/form.md +1 -1
- package/AI_USAGE/components/grid-api.md +1 -1
- package/AI_USAGE/components/grid.md +1 -1
- package/AI_USAGE/components/heatmap-api.md +1 -1
- package/AI_USAGE/components/heatmap.md +1 -1
- package/AI_USAGE/components/icon-api.md +1 -1
- package/AI_USAGE/components/icon.md +1 -1
- package/AI_USAGE/components/image-api.md +1 -1
- package/AI_USAGE/components/image.md +1 -1
- package/AI_USAGE/components/input-api.md +1 -1
- package/AI_USAGE/components/input-number-api.md +1 -1
- package/AI_USAGE/components/input-number.md +1 -1
- package/AI_USAGE/components/input-tag-api.md +1 -1
- package/AI_USAGE/components/input-tag.md +1 -1
- package/AI_USAGE/components/input.md +1 -1
- package/AI_USAGE/components/layout-api.md +1 -1
- package/AI_USAGE/components/layout.md +1 -1
- package/AI_USAGE/components/line-chart-api.md +1 -1
- package/AI_USAGE/components/line-chart.md +1 -1
- package/AI_USAGE/components/link-api.md +1 -1
- package/AI_USAGE/components/link.md +1 -1
- package/AI_USAGE/components/menu-api.md +1 -1
- package/AI_USAGE/components/menu.md +1 -1
- package/AI_USAGE/components/message-api.md +1 -1
- package/AI_USAGE/components/message-box-api.md +1 -1
- package/AI_USAGE/components/message-box.md +1 -1
- package/AI_USAGE/components/message.md +1 -1
- package/AI_USAGE/components/network-api.md +1 -1
- package/AI_USAGE/components/network.md +1 -1
- package/AI_USAGE/components/notification-api.md +1 -1
- package/AI_USAGE/components/notification.md +1 -1
- package/AI_USAGE/components/pagination-api.md +1 -1
- package/AI_USAGE/components/pagination.md +1 -1
- package/AI_USAGE/components/pie-chart-api.md +1 -1
- package/AI_USAGE/components/pie-chart.md +1 -1
- package/AI_USAGE/components/popconfirm-api.md +1 -1
- package/AI_USAGE/components/popconfirm.md +1 -1
- package/AI_USAGE/components/popover-api.md +1 -1
- package/AI_USAGE/components/popover.md +1 -1
- package/AI_USAGE/components/popup-api.md +1 -1
- package/AI_USAGE/components/popup.md +1 -1
- package/AI_USAGE/components/progress-api.md +1 -1
- package/AI_USAGE/components/progress.md +1 -1
- package/AI_USAGE/components/radio-api.md +1 -1
- package/AI_USAGE/components/radio.md +1 -1
- package/AI_USAGE/components/rate-api.md +1 -1
- package/AI_USAGE/components/rate.md +1 -1
- package/AI_USAGE/components/resize-box-api.md +1 -1
- package/AI_USAGE/components/resize-box.md +1 -1
- package/AI_USAGE/components/scrollbar-api.md +1 -1
- package/AI_USAGE/components/scrollbar.md +1 -1
- package/AI_USAGE/components/select-api.md +1 -1
- package/AI_USAGE/components/select.md +1 -1
- package/AI_USAGE/components/skeleton-api.md +1 -1
- package/AI_USAGE/components/skeleton.md +1 -1
- package/AI_USAGE/components/slider-api.md +1 -1
- package/AI_USAGE/components/slider.md +1 -1
- package/AI_USAGE/components/space-api.md +1 -1
- package/AI_USAGE/components/space.md +1 -1
- package/AI_USAGE/components/spin-api.md +1 -1
- package/AI_USAGE/components/spin.md +1 -1
- package/AI_USAGE/components/steps-api.md +1 -1
- package/AI_USAGE/components/steps.md +1 -1
- package/AI_USAGE/components/switch-api.md +1 -1
- package/AI_USAGE/components/switch.md +1 -1
- package/AI_USAGE/components/table-api.md +1 -1
- package/AI_USAGE/components/table.md +1 -1
- package/AI_USAGE/components/tabs-api.md +1 -1
- package/AI_USAGE/components/tabs.md +1 -1
- package/AI_USAGE/components/tag-api.md +1 -1
- package/AI_USAGE/components/tag.md +1 -1
- package/AI_USAGE/components/textarea-api.md +1 -1
- package/AI_USAGE/components/textarea.md +1 -1
- package/AI_USAGE/components/time-picker-api.md +1 -1
- package/AI_USAGE/components/time-picker.md +1 -1
- package/AI_USAGE/components/time-range-selector-api.md +1 -1
- package/AI_USAGE/components/time-range-selector.md +1 -1
- package/AI_USAGE/components/timeline-api.md +1 -1
- package/AI_USAGE/components/timeline.md +1 -1
- package/AI_USAGE/components/tooltip-api.md +1 -1
- package/AI_USAGE/components/tooltip.md +1 -1
- package/AI_USAGE/components/tree-select-api.md +1 -1
- package/AI_USAGE/components/tree-select.md +1 -1
- package/AI_USAGE/components/trend-chart-api.md +1 -1
- package/AI_USAGE/components/trend-chart.md +1 -1
- package/AI_USAGE/components/trigger-api.md +1 -1
- package/AI_USAGE/components/trigger.md +1 -1
- package/AI_USAGE/components/upload-api.md +1 -1
- package/AI_USAGE/components/upload.md +1 -1
- package/AI_USAGE/components/watermark-api.md +1 -1
- package/AI_USAGE/components/watermark.md +1 -1
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +1 -1
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +2 -2
- package/CHANGELOG.md +12 -0
- package/dist/es/_styles/palette-aliases.js +1 -1
- package/dist/es/components/tree-select/TreeNode.vue2.js +27 -26
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/style/base.css +1 -1
- package/dist/style/tree-select.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Trigger 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Trigger AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Trigger`;主要模型:v-model:popup-visible。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./trigger-api.md),包含本组件族全部子组件和别名。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Upload 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Upload AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Upload`;主要模型:v-model:file-list。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./upload-api.md),包含本组件族全部子组件和别名。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Watermark 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
从同版本构建的公开声明、运行时 props/emits 和显式 expose 生成。运行时导入始终使用 `x-next`,声明路径仅作定位。插槽类型未细化时,具体槽名与作用域见本地用法示例。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# Watermark AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`Watermark`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./watermark-api.md),包含本组件族全部子组件和别名。
|
|
7
7
|
|
package/AI_USAGE/core.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# x-next AI 通用接入
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
7
|
npm install x-next
|
package/AI_USAGE/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# x-next AI 按需入口
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
AI 专用资料,与文档站独立分发。先读 [core.md](./core.md),再只读本任务需要的组件页;各页含场景 SFC,完整 API 位于对应 `*-api.md`。全部公开组件与服务有本地导航,查本包用法优先包内文件,不默认网络搜索。
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# 按需样式与表单接入
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.16.
|
|
4
|
+
适用版本:x-next@1.16.1;来源指纹:`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md),相关组件规则:[config-provider](../components/config-provider.md)、[input](../components/input.md)、[textarea](../components/textarea.md)、[select](../components/select.md)、[checkbox](../components/checkbox.md)。
|
|
7
7
|
|
package/AI_USAGE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# x-next AI 使用手册
|
|
3
3
|
|
|
4
|
-
适用版本:**x-next@1.16.
|
|
4
|
+
适用版本:**x-next@1.16.1**。Vue:`^3.5.0`;Node:`>=20.19.0`。
|
|
5
5
|
|
|
6
|
-
来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`
|
|
6
|
+
来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`82741ea6b533ff677d8fd71ad9c907c9d8ffe3f134b363bb1584668c30115b17`。
|
|
7
7
|
|
|
8
8
|
覆盖 58 个组件族与 105 个公开组件/服务导出。优先通过 [本地按需索引](./AI_USAGE/index.md) 读取组件页和 API,不为查本包用法默认搜索网络。
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.16.1] - 2026-10-13
|
|
8
|
+
|
|
9
|
+
### 修复
|
|
10
|
+
|
|
11
|
+
- TreeSelect 下拉列表增加左右留白,统一普通与虚拟列表的节点内边距,调整文字间距、节点与面板圆角,并同步连接线和展开箭头的对齐。
|
|
12
|
+
- TreeSelect 多选 / 勾选模式移除连续的选中背景,保留蓝色文字与勾选框;单选使用更淡且适配亮暗主题的选中背景,已选节点继续显示悬停与键盘定位反馈。
|
|
13
|
+
|
|
14
|
+
### 工程与验证
|
|
15
|
+
|
|
16
|
+
- 同步主题生成产物与 1.16.1 AI 手册,完成构建、完整质量门禁和打包后的 TreeSelect 生产浏览器消费验证。
|
|
17
|
+
- 修正编译类回归的独立时限与 Message 关闭回归的动画等待,减少慢机误报,保留全部断言与覆盖率要求。
|
|
18
|
+
|
|
7
19
|
## [1.16.0] - 2026-10-12
|
|
8
20
|
|
|
9
21
|
### 修复
|
|
@@ -105,7 +105,7 @@ const r = {
|
|
|
105
105
|
"--x-timeline-dot-hollow-shadow": "0 0 0 1px color-mix( in srgb, var(--x-color-primary-solid) 10%, var(--x-color-transparent) )",
|
|
106
106
|
"--x-timeline-dot-shadow": "0 0 0 1px color-mix(in srgb, var(--x-color-primary-solid) 8%, var(--x-color-transparent))",
|
|
107
107
|
"--x-tree-select-highlight-color-text": "var(--x-color-primary)",
|
|
108
|
-
"--x-tree-select-node-color-bg_selected": "var(--x-color-primary-
|
|
108
|
+
"--x-tree-select-node-color-bg_selected": "color-mix( in srgb, var(--x-color-primary) 6%, var(--x-color-bg-elevated) )",
|
|
109
109
|
"--x-tree-select-node-color-text_selected": "var(--x-color-primary)",
|
|
110
110
|
"--x-upload-color-border-hover": "var(--x-color-primary)"
|
|
111
111
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as v, provide as C, computed as
|
|
1
|
+
import { defineComponent as v, provide as C, computed as t } from "vue";
|
|
2
2
|
import { getClassNameMixin as y } from "../../_utils/config.js";
|
|
3
3
|
import B from "../form-checkbox/Checkbox.js";
|
|
4
4
|
import I from "../../icons/default/right.js";
|
|
5
5
|
import L from "../../icons/animation/animation-loading.js";
|
|
6
6
|
import { formItemInjectionKey as w } from "../form/context.js";
|
|
7
7
|
import { splitHighlightText as N } from "./utils.js";
|
|
8
|
-
const
|
|
8
|
+
const i = 24, S = 8, O = v({
|
|
9
9
|
name: "TreeNode",
|
|
10
10
|
components: {
|
|
11
11
|
Checkbox: B,
|
|
@@ -81,20 +81,20 @@ const a = 24, S = 8, O = v({
|
|
|
81
81
|
setup(e, { emit: d, slots: E }) {
|
|
82
82
|
const l = y("tree-select--node");
|
|
83
83
|
C(w, {});
|
|
84
|
-
const
|
|
84
|
+
const o = t(() => e.checkable || e.multiple), c = t(
|
|
85
85
|
() => !e.node.isLeaf || e.loading
|
|
86
|
-
),
|
|
87
|
-
() =>
|
|
88
|
-
), h =
|
|
89
|
-
paddingLeft: `${e.node.level *
|
|
86
|
+
), f = t(() => !e.node.isLeaf), n = t(() => e.disabled || e.node.disabled), s = t(
|
|
87
|
+
() => n.value || e.node.disableCheckbox
|
|
88
|
+
), h = t(() => ({
|
|
89
|
+
paddingLeft: `${e.node.level * i}px`,
|
|
90
90
|
// 连接线对齐父级展开图标的水平中心
|
|
91
|
-
"--x-tree-select-node-line-left": `${(e.node.level - 1) *
|
|
92
|
-
})), u =
|
|
93
|
-
var
|
|
94
|
-
return (
|
|
95
|
-
}), b =
|
|
91
|
+
"--x-tree-select-node-line-left": `${(e.node.level - 1) * i + S}px`
|
|
92
|
+
})), u = t(() => e.node.siblingCount), m = t(() => e.node.siblingIndex), g = t(() => {
|
|
93
|
+
var a;
|
|
94
|
+
return (a = e.node.raw) == null ? void 0 : a.icon;
|
|
95
|
+
}), b = t(
|
|
96
96
|
() => N(e.node.title, e.highlight)
|
|
97
|
-
),
|
|
97
|
+
), r = t(() => ({
|
|
98
98
|
node: e.node.raw,
|
|
99
99
|
value: e.node.value,
|
|
100
100
|
title: e.node.title,
|
|
@@ -103,9 +103,9 @@ const a = 24, S = 8, O = v({
|
|
|
103
103
|
halfChecked: e.halfChecked,
|
|
104
104
|
selected: e.selected,
|
|
105
105
|
expanded: e.expanded,
|
|
106
|
-
disabled:
|
|
106
|
+
disabled: n.value,
|
|
107
107
|
isLeaf: e.node.isLeaf
|
|
108
|
-
})),
|
|
108
|
+
})), x = t(() => [
|
|
109
109
|
l.block,
|
|
110
110
|
l.modifier(`size-${e.size}`),
|
|
111
111
|
{
|
|
@@ -114,11 +114,12 @@ const a = 24, S = 8, O = v({
|
|
|
114
114
|
[l.modifier("is-expanded")]: e.expanded,
|
|
115
115
|
[l.modifier("active")]: e.active,
|
|
116
116
|
[l.modifier("selected")]: e.selected,
|
|
117
|
-
[l.modifier("
|
|
117
|
+
[l.modifier("multiple")]: o.value,
|
|
118
|
+
[l.modifier("disabled")]: n.value,
|
|
118
119
|
[l.modifier("with-line")]: e.showLine,
|
|
119
120
|
[l.modifier("block")]: e.blockNode
|
|
120
121
|
}
|
|
121
|
-
]),
|
|
122
|
+
]), k = t(() => [
|
|
122
123
|
l.element("content"),
|
|
123
124
|
{
|
|
124
125
|
[l.element("content-block")]: e.blockNode
|
|
@@ -126,24 +127,24 @@ const a = 24, S = 8, O = v({
|
|
|
126
127
|
]);
|
|
127
128
|
return {
|
|
128
129
|
className: l,
|
|
129
|
-
cls:
|
|
130
|
-
contentCls:
|
|
130
|
+
cls: x,
|
|
131
|
+
contentCls: k,
|
|
131
132
|
indentStyle: h,
|
|
132
|
-
showCheckbox:
|
|
133
|
+
showCheckbox: o,
|
|
133
134
|
showSwitcher: c,
|
|
134
|
-
hasChildren:
|
|
135
|
-
mergedDisabled:
|
|
136
|
-
checkboxDisabled:
|
|
135
|
+
hasChildren: f,
|
|
136
|
+
mergedDisabled: n,
|
|
137
|
+
checkboxDisabled: s,
|
|
137
138
|
siblingCount: u,
|
|
138
139
|
siblingIndex: m,
|
|
139
140
|
nodeIcon: g,
|
|
140
141
|
titleSegments: b,
|
|
141
|
-
slotProps:
|
|
142
|
+
slotProps: r,
|
|
142
143
|
handleClick: () => {
|
|
143
|
-
|
|
144
|
+
n.value || d("select");
|
|
144
145
|
},
|
|
145
146
|
handleCheckboxChange: () => {
|
|
146
|
-
|
|
147
|
+
n.value || e.node.disableCheckbox || d("check");
|
|
147
148
|
},
|
|
148
149
|
handleToggleExpand: () => {
|
|
149
150
|
e.loading || d("toggle-expand", !e.expanded);
|