x-next 1.19.3 → 1.19.4
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 +36 -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 +3 -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 +5 -1
- package/AI_USAGE/components/message.md +3 -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 +3 -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 +2 -2
- package/AI_USAGE/components/spin.md +133 -25
- 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 +178 -25
- package/CHANGELOG.md +10 -0
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
- package/dist/es/_container/resize-observer-v2.js +1 -1
- package/dist/es/_container/resize-observer.js +1 -1
- package/dist/es/_hooks/use-resize-observer.js +1 -1
- package/dist/es/_virtual/advancedFormat.js +1 -1
- package/dist/es/_virtual/customParseFormat.js +1 -1
- package/dist/es/_virtual/dayjs.min.js +1 -1
- package/dist/es/_virtual/isBetween.js +1 -1
- package/dist/es/_virtual/quarterOfYear.js +1 -1
- package/dist/es/_virtual/weekOfYear.js +1 -1
- package/dist/es/_virtual/weekYear.js +1 -1
- package/dist/es/_virtual/zh-cn.js +1 -1
- package/dist/es/components/dialog/Dialog.js +8 -8
- package/dist/es/components/draggable/useDraggable.js +1 -1
- package/dist/es/components/form/Form.vue2.js +1 -1
- package/dist/es/components/form/FormItem.vue2.js +1 -1
- package/dist/es/components/form-input-number/InputNumber.js +1 -1
- package/dist/es/components/form-slider/Slider.vue2.js +1 -1
- package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
- package/dist/es/components/form-slider/utils.js +1 -1
- package/dist/es/components/menu/MenuItem.js +1 -1
- package/dist/es/components/menu/overflow-wrap.js +1 -1
- package/dist/es/components/progress/circle.vue2.js +1 -1
- package/dist/es/components/progress/line.vue2.js +1 -1
- package/dist/es/components/progress/steps.vue2.js +1 -1
- package/dist/es/components/rate/Rate.js +1 -1
- package/dist/es/components/spin/Spin.js +80 -72
- package/dist/es/components/virtual-list-v2/virtual-list-item.js +1 -1
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/style/base.css +1 -1
- package/dist/style/dialog.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -2
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +0 -0
- /package/dist/es/{node_modules → Users/xuyu/Code/x-next/node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, computed as t } from "vue";
|
|
2
|
-
import f from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
2
|
+
import f from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import { isObject as g } from "../../_utils/is.js";
|
|
4
4
|
import S from "../../icons/default/exclamation.js";
|
|
5
5
|
import p from "../../icons/default/check.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, computed as e } from "vue";
|
|
2
|
-
import s from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
2
|
+
import s from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import { isObject as f } from "../../_utils/is.js";
|
|
4
4
|
import g from "../../icons/default/exclamation-circle-fill.js";
|
|
5
5
|
import { getClassNameMixin as b } from "../../_utils/config.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, computed as e } from "vue";
|
|
2
|
-
import c from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
2
|
+
import c from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import l from "../../icons/default/exclamation-circle-fill.js";
|
|
4
4
|
import { getClassNameMixin as p } from "../../_utils/config.js";
|
|
5
5
|
const x = m({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ee, toRefs as le, toRef as ae, ref as b, computed as v, watch as te, onMounted as re, createVNode as r, mergeProps as ne } from "vue";
|
|
2
|
-
import x from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
2
|
+
import x from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
|
|
3
3
|
import { getClassNameMixin as oe } from "../../_utils/config.js";
|
|
4
4
|
import { isUndefined as ue, isNull as ce, isString as ie, isObject as se } from "../../_utils/is.js";
|
|
5
5
|
import { useFormItem as de, useFormItemControl as fe } from "../../_hooks/use-form-item.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as U, ref as v, onBeforeUpdate as w, watch as x, onUnmounted as E, computed as D, onMounted as H, onUpdated as R, createVNode as r, mergeProps as V, Fragment as T, cloneVNode as j } from "vue";
|
|
2
2
|
import O from "../../icons/animation/animation-loading.js";
|
|
3
3
|
import _ from "./dot-loading.js";
|
|
4
4
|
import { getFirstComponent as q } from "../../_utils/vue-eco.js";
|
|
5
5
|
import { getClassNameMixin as P } from "../../_utils/config.js";
|
|
6
6
|
import { useLocale as $ } from "../../locale/index.js";
|
|
7
|
-
const
|
|
7
|
+
const G = ["a[href]", "area[href]", "button", "input", "select", "textarea", "summary", "iframe", "object", "embed", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', '[tabindex]:not([tabindex="-1"])'].join(","), Z = /* @__PURE__ */ U({
|
|
8
8
|
name: "Spin",
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
props: {
|
|
@@ -82,118 +82,126 @@ const j = 'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-
|
|
|
82
82
|
* @en Custom tip
|
|
83
83
|
* @slot tip
|
|
84
84
|
*/
|
|
85
|
-
setup(
|
|
85
|
+
setup(n, {
|
|
86
86
|
attrs: k,
|
|
87
87
|
slots: i
|
|
88
88
|
}) {
|
|
89
89
|
const a = P("spin"), {
|
|
90
90
|
t: z
|
|
91
|
-
} = $(),
|
|
91
|
+
} = $(), u = v(!!i.default);
|
|
92
|
+
w(() => {
|
|
93
|
+
u.value = !!i.default;
|
|
94
|
+
});
|
|
95
|
+
const d = v(!1);
|
|
92
96
|
let c;
|
|
93
|
-
const
|
|
97
|
+
const b = () => {
|
|
94
98
|
c !== void 0 && (clearTimeout(c), c = void 0);
|
|
95
99
|
};
|
|
96
|
-
x(() => [
|
|
97
|
-
if (
|
|
98
|
-
|
|
100
|
+
x(() => [n.loading, n.delay, u.value], ([e, t, l], f) => {
|
|
101
|
+
if (b(), !l) {
|
|
102
|
+
d.value = !0;
|
|
99
103
|
return;
|
|
100
104
|
}
|
|
101
|
-
if (!
|
|
102
|
-
|
|
105
|
+
if (!e) {
|
|
106
|
+
d.value = !1;
|
|
103
107
|
return;
|
|
104
108
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
109
|
+
if (f != null && f[2] || (d.value = !1), d.value || !t || !Number.isFinite(t) || t <= 0) {
|
|
110
|
+
d.value = !0;
|
|
107
111
|
return;
|
|
108
112
|
}
|
|
109
113
|
c = setTimeout(() => {
|
|
110
|
-
|
|
111
|
-
},
|
|
114
|
+
d.value = !0, c = void 0;
|
|
115
|
+
}, t);
|
|
112
116
|
}, {
|
|
113
|
-
immediate: !0
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
[a.modifier("
|
|
117
|
+
immediate: !0,
|
|
118
|
+
flush: "sync"
|
|
119
|
+
}), E(b);
|
|
120
|
+
const o = D(() => n.loading && d.value), A = (e) => [a.block, n.display === "inline" ? a.modifier("inline") : a.modifier("block"), {
|
|
121
|
+
[a.modifier("loading")]: o.value,
|
|
122
|
+
[a.modifier("with-tip")]: e && !u.value,
|
|
118
123
|
/*
|
|
119
|
-
*
|
|
124
|
+
* 扫光只作用于 prop 提示文字;
|
|
120
125
|
* 自定义 tip 插槽的内容结构未知,不加扫光,避免破坏使用方自己的样式。
|
|
121
126
|
*/
|
|
122
|
-
[a.modifier("tip-shimmer")]:
|
|
123
|
-
}]
|
|
127
|
+
[a.modifier("tip-shimmer")]: n.tipShimmer && !!n.tip && !i.tip
|
|
128
|
+
}], C = () => {
|
|
124
129
|
if (i.icon) {
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
return
|
|
130
|
+
const e = q(i.icon());
|
|
131
|
+
if (e)
|
|
132
|
+
return j(e, {
|
|
128
133
|
spin: !0
|
|
129
134
|
});
|
|
130
135
|
}
|
|
131
|
-
return i.element ? i.element() :
|
|
132
|
-
size:
|
|
133
|
-
type:
|
|
136
|
+
return i.element ? i.element() : n.dot ? r(_, {
|
|
137
|
+
size: n.size,
|
|
138
|
+
type: n.dot === "color" ? "color" : "default"
|
|
134
139
|
}, null) : r(O, {
|
|
135
|
-
size:
|
|
140
|
+
size: n.size
|
|
136
141
|
}, null);
|
|
137
|
-
},
|
|
138
|
-
var
|
|
139
|
-
const
|
|
140
|
-
fontSize: `${
|
|
141
|
-
} : void 0,
|
|
142
|
-
return r(T, null, [!
|
|
142
|
+
}, y = () => {
|
|
143
|
+
var l;
|
|
144
|
+
const e = n.size ? {
|
|
145
|
+
fontSize: `${n.size}px`
|
|
146
|
+
} : void 0, t = !!(i.tip ?? n.tip);
|
|
147
|
+
return r(T, null, [!n.hideIcon && r("div", {
|
|
143
148
|
class: a.element("icon"),
|
|
144
|
-
style:
|
|
145
|
-
}, [C()]),
|
|
149
|
+
style: e
|
|
150
|
+
}, [C()]), t && r("div", {
|
|
146
151
|
class: a.element("tip")
|
|
147
|
-
}, [((
|
|
148
|
-
},
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
}, [((l = i.tip) == null ? void 0 : l.call(i)) ?? n.tip])]);
|
|
153
|
+
}, s = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, h = v(), m = /* @__PURE__ */ new Map(), p = () => {
|
|
154
|
+
const e = h.value;
|
|
155
|
+
if (!e) return;
|
|
156
|
+
e.querySelectorAll(G).forEach((l) => {
|
|
157
|
+
m.has(l) || (m.set(l, l.getAttribute("tabindex")), l.setAttribute("tabindex", "-1"));
|
|
152
158
|
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
const t = document.activeElement;
|
|
160
|
+
t instanceof HTMLElement && e.contains(t) && t.blur();
|
|
161
|
+
}, g = () => {
|
|
162
|
+
m.forEach((e, t) => {
|
|
163
|
+
e === null ? t.removeAttribute("tabindex") : t.setAttribute("tabindex", e);
|
|
164
|
+
}), m.clear();
|
|
165
|
+
}, L = (e) => {
|
|
166
|
+
s || (e ? p() : g());
|
|
159
167
|
};
|
|
160
|
-
return x(
|
|
168
|
+
return x([o, u], ([e, t]) => L(e && t), {
|
|
161
169
|
flush: "post"
|
|
162
|
-
}),
|
|
163
|
-
!
|
|
164
|
-
}),
|
|
165
|
-
|
|
170
|
+
}), H(() => L(o.value)), R(() => {
|
|
171
|
+
!s && o.value && p();
|
|
172
|
+
}), E(() => {
|
|
173
|
+
s || g();
|
|
166
174
|
}), () => {
|
|
167
|
-
var
|
|
175
|
+
var S;
|
|
168
176
|
const {
|
|
169
|
-
class:
|
|
170
|
-
style:
|
|
171
|
-
role:
|
|
172
|
-
"aria-live":
|
|
177
|
+
class: e,
|
|
178
|
+
style: t,
|
|
179
|
+
role: l,
|
|
180
|
+
"aria-live": f,
|
|
173
181
|
"aria-busy": N,
|
|
174
182
|
"aria-label": F,
|
|
175
183
|
...I
|
|
176
|
-
} = k,
|
|
184
|
+
} = k, B = !!(i.tip ?? n.tip), M = u.value ? o.value : !0;
|
|
177
185
|
return r("div", V(I, {
|
|
178
|
-
class: [A
|
|
179
|
-
style:
|
|
180
|
-
role:
|
|
181
|
-
"aria-live":
|
|
182
|
-
"aria-busy": N ?? (
|
|
183
|
-
"aria-label": F ?? (
|
|
184
|
-
}), [
|
|
185
|
-
ref:
|
|
186
|
+
class: [A(B), e],
|
|
187
|
+
style: t,
|
|
188
|
+
role: l ?? (u.value ? void 0 : "status"),
|
|
189
|
+
"aria-live": f ?? (u.value && !o.value ? void 0 : "polite"),
|
|
190
|
+
"aria-busy": N ?? (u.value ? o.value : !0),
|
|
191
|
+
"aria-label": F ?? (M && !B ? z("common.loading") : void 0)
|
|
192
|
+
}), [u.value ? r(T, null, [r("div", {
|
|
193
|
+
ref: h,
|
|
186
194
|
class: a.element("children"),
|
|
187
|
-
"aria-hidden":
|
|
188
|
-
inert:
|
|
189
|
-
}, [(
|
|
195
|
+
"aria-hidden": o.value ? "true" : void 0,
|
|
196
|
+
inert: o.value ? "" : void 0
|
|
197
|
+
}, [(S = i.default) == null ? void 0 : S.call(i)]), o.value && r("div", {
|
|
190
198
|
class: a.element("mask")
|
|
191
199
|
}, [r("div", {
|
|
192
200
|
class: a.element("mask--icon")
|
|
193
|
-
}, [
|
|
201
|
+
}, [y()])])]) : y()]);
|
|
194
202
|
};
|
|
195
203
|
}
|
|
196
204
|
});
|
|
197
205
|
export {
|
|
198
|
-
|
|
206
|
+
Z as default
|
|
199
207
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, getCurrentInstance as p, ref as g, watch as h, onMounted as a, onBeforeUnmount as I, cloneVNode as z } from "vue";
|
|
2
|
-
import l from "../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
2
|
+
import l from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
3
3
|
import { getFirstComponent as y } from "../../_utils/vue-eco.js";
|
|
4
4
|
const $ = /* @__PURE__ */ d({
|
|
5
5
|
name: "VirtualListItem",
|