antd-solid 0.0.31 → 0.0.34
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/dist/index.esm.js +11 -3
- package/dist/index.umd.js +1 -1
- package/es/Modal/useModal.js +1 -1
- package/es/Modal/warning.d.ts +1 -1
- package/es/Modal/warning.js +1 -1
- package/es/hooks/useEllipsisLoading.d.ts +1 -0
- package/es/hooks/useEllipsisLoading.js +11 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1270,7 +1270,7 @@ function createTransition(target, when, props = {}) {
|
|
|
1270
1270
|
}));
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
-
var _tmpl$$L = /*#__PURE__*/template(`<div class="flex items-center gap-12px"><span class="i-ant-design:exclamation-circle text-22px text-[var(--ant-color-warning)]">`),
|
|
1273
|
+
var _tmpl$$L = /*#__PURE__*/template(`<div class="flex items-center gap-12px"><span class="i-ant-design:exclamation-circle text-22px text-[var(--ant-color-warning)] shrink-0">`),
|
|
1274
1274
|
_tmpl$2$t = /*#__PURE__*/template(`<div class=ml-34px>`);
|
|
1275
1275
|
function useModal() {
|
|
1276
1276
|
const [open, setOpen] = createSignal(false);
|
|
@@ -1316,7 +1316,7 @@ function useModal() {
|
|
|
1316
1316
|
return [modal, getContextHolder];
|
|
1317
1317
|
}
|
|
1318
1318
|
|
|
1319
|
-
var _tmpl$$K = /*#__PURE__*/template(`<div class="flex items-center gap-12px"><span class="i-ant-design:exclamation-circle text-22px text-[var(--ant-color-warning)]">`),
|
|
1319
|
+
var _tmpl$$K = /*#__PURE__*/template(`<div class="flex items-center gap-12px"><span class="i-ant-design:exclamation-circle text-22px text-[var(--ant-color-warning)] shrink-0">`),
|
|
1320
1320
|
_tmpl$2$s = /*#__PURE__*/template(`<div class=ml-34px>`);
|
|
1321
1321
|
function warning$1(props) {
|
|
1322
1322
|
const div = document.createElement('div');
|
|
@@ -8419,6 +8419,14 @@ function useMouse() {
|
|
|
8419
8419
|
return mouse;
|
|
8420
8420
|
}
|
|
8421
8421
|
|
|
8422
|
+
function useEllipsisLoading(time = 500) {
|
|
8423
|
+
const [ellipsis, setEllipsis] = createSignal('');
|
|
8424
|
+
setInterval(() => {
|
|
8425
|
+
setEllipsis(prev => prev.length >= 3 ? '.' : prev + '.');
|
|
8426
|
+
}, time);
|
|
8427
|
+
return ellipsis;
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8422
8430
|
const locale = {
|
|
8423
8431
|
locale: 'en',
|
|
8424
8432
|
Modal: {
|
|
@@ -8442,4 +8450,4 @@ const locale = {
|
|
|
8442
8450
|
}
|
|
8443
8451
|
};
|
|
8444
8452
|
|
|
8445
|
-
export { Alert, Button$1 as Button, Checkbox, CodeInput, Collapse, ColorPicker, Command, Compact, CompactContextIsolator, ConfigProvider, index as ContextMenu, Cursor, DatePicker, DelayShow, Divider, Drawer, Dropdown, Element$1 as Element, Empty, Form, Fragment, Image, Input, InputNumber, Menu, Modal, Popconfirm, Popover, Progress, Radio, RangeInput, Result, Segmented, Select, SelectInput, Slider, Space, Spin, Switch, Table, Tabs, Timeline, Tooltip, Transformer, Tree, TreeFor, TreeSelect, Upload, createControllableValue, locale as enUS, message, setupGlobalDrag, useClickAway, useCounter, useFocus, useHover, useMouse, useScroll, useSize, useVirtualList, locale$1 as zhCN };
|
|
8453
|
+
export { Alert, Button$1 as Button, Checkbox, CodeInput, Collapse, ColorPicker, Command, Compact, CompactContextIsolator, ConfigProvider, index as ContextMenu, Cursor, DatePicker, DelayShow, Divider, Drawer, Dropdown, Element$1 as Element, Empty, Form, Fragment, Image, Input, InputNumber, Menu, Modal, Popconfirm, Popover, Progress, Radio, RangeInput, Result, Segmented, Select, SelectInput, Slider, Space, Spin, Switch, Table, Tabs, Timeline, Tooltip, Transformer, Tree, TreeFor, TreeSelect, Upload, createControllableValue, locale as enUS, message, setupGlobalDrag, useClickAway, useCounter, useEllipsisLoading, useFocus, useHover, useMouse, useScroll, useSize, useVirtualList, locale$1 as zhCN };
|