x-next 1.19.0 → 1.19.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 +3 -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 +3 -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/transfer-api.md +1 -1
- package/AI_USAGE/components/transfer.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/virtual-list-api.md +1 -1
- package/AI_USAGE/components/virtual-list.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 +6 -2
- package/CHANGELOG.md +12 -0
- package/dist/es/components/_components/input-label/input-label.js +26 -25
- package/dist/es/components/form-select/SelectDropdown.vue.js +34 -32
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style/base.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by pnpm generate:ai-usage. Edit script/ai-usage/content.md and script/ai-usage/. -->
|
|
2
2
|
# TreeSelect AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`TreeSelect, TreeSelectDropdown`;主要模型:v-model、v-model:input-value、v-model:popup-visible、v-model:expanded-keys。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./tree-select-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
|
# TrendChart 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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
|
# TrendChart AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`TrendChart`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./trend-chart-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
|
# Trigger 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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
|
# VirtualList 完整公开 API
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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
|
# VirtualList AI 使用
|
|
3
3
|
|
|
4
|
-
适用版本:x-next@1.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
5
5
|
|
|
6
6
|
先读 [通用接入](../core.md)。公开导出:`VirtualList`;主要模型:无。完整 Props、Events、Slots、实例方法与服务签名见 [本地 API](./virtual-list-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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:x-next@1.19.1;来源指纹:`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
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.19.
|
|
4
|
+
适用版本:**x-next@1.19.1**。Vue:`^3.5.0`;Node:`>=20.19.0`。
|
|
5
5
|
|
|
6
|
-
来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`
|
|
6
|
+
来源指纹(AI 行为说明、docs 导入快照、映射、样式依赖、版本、公开类型和 API 参考):`2b56412c00f1c9b6a71d45b8fc935c9489b29ef530938f7f917e0607397d899e`。
|
|
7
7
|
|
|
8
8
|
覆盖 60 个组件族与 107 个公开组件/服务导出。优先通过 [本地按需索引](./AI_USAGE/index.md) 读取组件页和 API,不为查本包用法默认搜索网络。
|
|
9
9
|
|
|
@@ -3632,6 +3632,8 @@ const city = ref('');
|
|
|
3632
3632
|
|
|
3633
3633
|
### 状态和尺寸
|
|
3634
3634
|
|
|
3635
|
+
加载弹层使用 16px 圆环并在内容区域内水平、垂直居中。单选搜索框按当前标签或 placeholder 保留宽度,聚焦和输入时宽度保持稳定;显式设置的控件宽度继续生效。
|
|
3636
|
+
|
|
3635
3637
|
```vue
|
|
3636
3638
|
<script setup lang="ts">
|
|
3637
3639
|
import 'x-next/style.css';
|
|
@@ -7943,6 +7945,8 @@ const pageSize = ref(10);
|
|
|
7943
7945
|
|
|
7944
7946
|
可透传搜索、加载、弹层和格式化等 Select 能力。当前条数不在选项中时自动并入,非法选项会过滤并去重、排序。分页维护单个数字值,不支持多选、清空和创建条数。
|
|
7945
7947
|
|
|
7948
|
+
搜索输入覆盖在标签区域,聚焦、输入和关闭时保持当前标签对应的宽度;选择新条数后按新标签宽度显示。加载弹层采用紧凑区域,16px 圆环在区域内水平、垂直居中。
|
|
7949
|
+
|
|
7946
7950
|
```vue
|
|
7947
7951
|
<script setup lang="ts">
|
|
7948
7952
|
import 'x-next/style.css';
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.19.1] - 2026-10-30
|
|
8
|
+
|
|
9
|
+
### 修复
|
|
10
|
+
|
|
11
|
+
- 单选 Select 的原生输入框不再贡献固有宽度,搜索聚焦、输入、关闭与失焦时保持当前标签或 placeholder 对应的宽度;短文本选择器和 Pagination 每页条数选择器按内容显示,同时保留原生点击热区。
|
|
12
|
+
- Select 加载弹层使用独立容器水平、垂直居中,圆环缩至 16px,默认弹层高度收至约 46px,保留空态布局。
|
|
13
|
+
|
|
14
|
+
### 工程与验证
|
|
15
|
+
|
|
16
|
+
- 补充搜索、空值占位、自定义标签、清空与加载居中生产消费回归,以及恢复错误布局时必须失败的反例检查;同步文档和随包 AI 手册。
|
|
17
|
+
- 更新 Happy DOM 与 fast-uri 开发工具链安全修补版本,保持运行时依赖不变。
|
|
18
|
+
|
|
7
19
|
## [1.19.0] - 2026-10-23
|
|
8
20
|
|
|
9
21
|
### 新增
|
|
@@ -39,30 +39,30 @@ const ae = /* @__PURE__ */ K({
|
|
|
39
39
|
},
|
|
40
40
|
setup(e, {
|
|
41
41
|
attrs: o,
|
|
42
|
-
emit:
|
|
42
|
+
emit: s,
|
|
43
43
|
slots: t
|
|
44
44
|
}) {
|
|
45
45
|
const {
|
|
46
46
|
size: g,
|
|
47
|
-
disabled:
|
|
48
|
-
error:
|
|
49
|
-
inputValue:
|
|
47
|
+
disabled: x,
|
|
48
|
+
error: B,
|
|
49
|
+
inputValue: C,
|
|
50
50
|
uninjectFormItemContext: r
|
|
51
51
|
} = O(e), n = e.baseCls ? I(J(e.baseCls)) : I("input-label"), {
|
|
52
52
|
mergedSize: S,
|
|
53
|
-
mergedDisabled:
|
|
53
|
+
mergedDisabled: c,
|
|
54
54
|
mergedError: w,
|
|
55
55
|
eventHandlers: N
|
|
56
56
|
} = q({
|
|
57
57
|
size: g,
|
|
58
|
-
disabled:
|
|
59
|
-
error:
|
|
58
|
+
disabled: x,
|
|
59
|
+
error: B,
|
|
60
60
|
uninject: r == null ? void 0 : r.value
|
|
61
61
|
}), {
|
|
62
62
|
mergedSize: z
|
|
63
63
|
} = G(S), {
|
|
64
|
-
inputRef:
|
|
65
|
-
_focused:
|
|
64
|
+
inputRef: f,
|
|
65
|
+
_focused: v,
|
|
66
66
|
computedValue: y,
|
|
67
67
|
handleInput: F,
|
|
68
68
|
handleComposition: i,
|
|
@@ -70,35 +70,35 @@ const ae = /* @__PURE__ */ K({
|
|
|
70
70
|
handleBlur: A,
|
|
71
71
|
handleMousedown: E
|
|
72
72
|
} = $({
|
|
73
|
-
modelValue:
|
|
74
|
-
emit:
|
|
73
|
+
modelValue: C,
|
|
74
|
+
emit: s,
|
|
75
75
|
eventName: "inputValueChange",
|
|
76
76
|
updateEventName: "update:inputValue",
|
|
77
77
|
eventHandlers: N
|
|
78
|
-
}), R = l(() => e.focused ??
|
|
78
|
+
}), R = l(() => e.focused ?? v.value), d = l(() => e.enabledInput && v.value || !e.modelValue), m = () => {
|
|
79
79
|
var u;
|
|
80
80
|
return e.modelValue ? ((u = e.formatLabel) == null ? void 0 : u.call(e, e.modelValue)) ?? e.modelValue.label : "";
|
|
81
|
-
}, k = l(() => e.enabledInput && e.modelValue ?
|
|
81
|
+
}, k = l(() => e.enabledInput && e.modelValue ? m() : e.placeholder), P = () => {
|
|
82
82
|
var u;
|
|
83
83
|
return e.modelValue ? ((u = t.default) == null ? void 0 : u.call(t, {
|
|
84
84
|
data: e.modelValue
|
|
85
|
-
})) ??
|
|
85
|
+
})) ?? m() : null;
|
|
86
86
|
}, j = l(() => [n.block, n.modifier(`size-${z.value}`), {
|
|
87
87
|
[n.modifier("search")]: e.enabledInput,
|
|
88
88
|
[n.modifier("focus")]: R.value,
|
|
89
|
-
[n.modifier("disabled")]:
|
|
89
|
+
[n.modifier("disabled")]: c.value,
|
|
90
90
|
[n.modifier("error")]: w.value
|
|
91
91
|
}]), M = l(() => H(o, h)), _ = l(() => U(o, h)), D = (u) => {
|
|
92
|
-
|
|
92
|
+
s("keydown", u);
|
|
93
93
|
}, b = () => a("input", V(_.value, e.inputAttrs, {
|
|
94
|
-
ref:
|
|
94
|
+
ref: f,
|
|
95
95
|
class: [n.element("input"), {
|
|
96
|
-
[n.element("input-hidden")]: !
|
|
96
|
+
[n.element("input-hidden")]: !d.value
|
|
97
97
|
}],
|
|
98
98
|
value: y.value,
|
|
99
99
|
readonly: !e.enabledInput,
|
|
100
100
|
placeholder: k.value,
|
|
101
|
-
disabled:
|
|
101
|
+
disabled: c.value,
|
|
102
102
|
onInput: F,
|
|
103
103
|
onKeydown: D,
|
|
104
104
|
onFocus: L,
|
|
@@ -106,22 +106,23 @@ const ae = /* @__PURE__ */ K({
|
|
|
106
106
|
onCompositionstart: i,
|
|
107
107
|
onCompositionupdate: i,
|
|
108
108
|
onCompositionend: i
|
|
109
|
-
}), null),
|
|
109
|
+
}), null), p = () => a("span", {
|
|
110
|
+
"aria-hidden": e.retainInputBox && d.value ? !0 : void 0,
|
|
110
111
|
class: [n.element("value"), {
|
|
111
|
-
[n.element("value-hidden")]:
|
|
112
|
+
[n.element("value-hidden")]: d.value
|
|
112
113
|
}]
|
|
113
|
-
}, [P()]);
|
|
114
|
+
}, [e.retainInputBox && !e.modelValue ? e.placeholder : P()]);
|
|
114
115
|
return {
|
|
115
|
-
inputRef:
|
|
116
|
+
inputRef: f,
|
|
116
117
|
render: () => a("span", V(M.value, {
|
|
117
118
|
class: j.value,
|
|
118
|
-
title:
|
|
119
|
+
title: m(),
|
|
119
120
|
onMousedown: E
|
|
120
121
|
}), [t.prefix && a("span", {
|
|
121
122
|
class: n.element("prefix")
|
|
122
123
|
}, [t.prefix()]), e.retainInputBox ? a("span", {
|
|
123
124
|
class: n.element("input-area")
|
|
124
|
-
}, [b(),
|
|
125
|
+
}, [b(), p()]) : a(T, null, [b(), p()]), t.suffix && a("span", {
|
|
125
126
|
class: n.element("suffix")
|
|
126
127
|
}, [t.suffix()])])
|
|
127
128
|
};
|
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
import m from "./SelectDropdown.vue2.js";
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const n =
|
|
7
|
-
return
|
|
2
|
+
import { resolveComponent as d, openBlock as o, createElementBlock as s, normalizeClass as l, renderSlot as a, createCommentVNode as r, createVNode as p, createBlock as t, resolveDynamicComponent as i, withDirectives as u, mergeProps as y, withCtx as v, createElementVNode as c, vShow as f } from "vue";
|
|
3
|
+
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const $ = ["id", "aria-multiselectable", "aria-busy"];
|
|
5
|
+
function N(e, b, k, w, S, C) {
|
|
6
|
+
const n = d("spin");
|
|
7
|
+
return o(), s("div", {
|
|
8
8
|
id: e.id,
|
|
9
|
-
class:
|
|
9
|
+
class: l(e.cls),
|
|
10
10
|
role: "listbox",
|
|
11
11
|
"aria-multiselectable": e.multiple || void 0,
|
|
12
12
|
"aria-busy": e.loading || void 0
|
|
13
13
|
}, [
|
|
14
|
-
e.$slots.header && (!e.empty || e.showHeaderOnEmpty) ? (
|
|
14
|
+
e.$slots.header && (!e.empty || e.showHeaderOnEmpty) ? (o(), s("div", {
|
|
15
15
|
key: 0,
|
|
16
|
-
class:
|
|
16
|
+
class: l(e.className.element("header"))
|
|
17
17
|
}, [
|
|
18
|
-
|
|
19
|
-
], 2)) :
|
|
20
|
-
e.loading ? (
|
|
18
|
+
a(e.$slots, "header")
|
|
19
|
+
], 2)) : r("", !0),
|
|
20
|
+
e.loading ? (o(), s("div", {
|
|
21
21
|
key: 1,
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
22
|
+
class: l(e.className.element("loading"))
|
|
23
|
+
}, [
|
|
24
|
+
p(n, { size: 16 })
|
|
25
|
+
], 2)) : e.empty ? (o(), s("div", {
|
|
24
26
|
key: 2,
|
|
25
|
-
class:
|
|
27
|
+
class: l(e.className.element("empty"))
|
|
26
28
|
}, [
|
|
27
|
-
|
|
28
|
-
(
|
|
29
|
+
a(e.$slots, "empty", {}, () => [
|
|
30
|
+
(o(), t(i("Empty"), { component: "select" }))
|
|
29
31
|
])
|
|
30
|
-
], 2)) :
|
|
31
|
-
e.virtualList && !e.loading && !e.empty ?
|
|
32
|
-
e.virtualList ?
|
|
32
|
+
], 2)) : r("", !0),
|
|
33
|
+
e.virtualList && !e.loading && !e.empty ? a(e.$slots, "virtual-list", {}, void 0, void 0, 3) : r("", !0),
|
|
34
|
+
e.virtualList ? r("", !0) : u((o(), t(i(e.displayScrollbar ? "ScrollbarComponent" : "div"), y({
|
|
33
35
|
key: 4,
|
|
34
36
|
ref: "wrapperComRef",
|
|
35
37
|
class: e.className.element("list-wrapper")
|
|
36
38
|
}, e.scrollbarProps, { onScroll: e.handleScroll }), {
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
class:
|
|
39
|
+
default: v(() => [
|
|
40
|
+
c("ul", {
|
|
41
|
+
class: l(e.className.element("list"))
|
|
40
42
|
}, [
|
|
41
|
-
|
|
43
|
+
a(e.$slots, "default")
|
|
42
44
|
], 2)
|
|
43
45
|
]),
|
|
44
46
|
_: 3
|
|
45
47
|
}, 16, ["class", "onScroll"])), [
|
|
46
|
-
[
|
|
48
|
+
[f, !e.loading && !e.empty]
|
|
47
49
|
]),
|
|
48
|
-
e.$slots.footer && (!e.empty || e.showFooterOnEmpty) ? (
|
|
50
|
+
e.$slots.footer && (!e.empty || e.showFooterOnEmpty) ? (o(), s("div", {
|
|
49
51
|
key: 5,
|
|
50
|
-
class:
|
|
52
|
+
class: l(e.className.element("footer"))
|
|
51
53
|
}, [
|
|
52
|
-
|
|
53
|
-
], 2)) :
|
|
54
|
-
], 10,
|
|
54
|
+
a(e.$slots, "footer")
|
|
55
|
+
], 2)) : r("", !0)
|
|
56
|
+
], 10, $);
|
|
55
57
|
}
|
|
56
|
-
const
|
|
58
|
+
const D = /* @__PURE__ */ h(m, [["render", N]]);
|
|
57
59
|
export {
|
|
58
|
-
|
|
60
|
+
D as default
|
|
59
61
|
};
|