@vavt/react-ui 1.4.5 → 1.5.0
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/README.md +40 -8
- package/dist/AutoComplete-D8yHFMHQ.js +185 -0
- package/dist/AutoComplete-Drl00grg.cjs +1 -0
- package/dist/Avatar-CVGMy2Ws.cjs +1 -0
- package/dist/Avatar-DiZ9p6tu.js +125 -0
- package/dist/{Badge-FzXPw1qS.js → Badge-CchY6uXz.js} +1 -1
- package/dist/{Badge-BkqoSV-F.cjs → Badge-D3htuSXY.cjs} +1 -1
- package/dist/Breadcrumb-BWR92yK_.cjs +1 -0
- package/dist/Breadcrumb-BmZKaAQx.js +88 -0
- package/dist/Cascader-ZVE95kvm.cjs +1 -0
- package/dist/Cascader-bozg6Ebp.js +268 -0
- package/dist/Collapse-DVxYsq3L.cjs +1 -0
- package/dist/Collapse-DszkYUfD.js +112 -0
- package/dist/{Cron-BVMn9OXM.js → Cron-BWqWgWuv.js} +401 -398
- package/dist/Cron-zcb1FZ09.cjs +1 -0
- package/dist/{DatePicker-3wbkApMJ.js → DatePicker-DBjtTP2Q.js} +1 -1
- package/dist/{DatePicker-B3mA7BzE.cjs → DatePicker-apiCVsKF.cjs} +1 -1
- package/dist/{DateTimePicker-C1bggaBl.cjs → DateTimePicker-2omkPUuf.cjs} +1 -1
- package/dist/{DateTimePicker--A4EWUe-.js → DateTimePicker-IpyJLY4J.js} +1 -1
- package/dist/Descriptions-CmSiqsqf.cjs +1 -0
- package/dist/Descriptions-EL2QcZ1K.js +32 -0
- package/dist/{Drawer-D1elCS8V.js → Drawer--aEf7OiI.js} +8 -8
- package/dist/{Drawer-DbH5rUvZ.cjs → Drawer-BEDZEapD.cjs} +1 -1
- package/dist/Dropdown-FrlX_2wd.js +332 -0
- package/dist/Dropdown-dvIwbqMc.cjs +1 -0
- package/dist/{Form-DiYdJJNH.js → Form-CGJDPj0N.js} +9 -9
- package/dist/{Form-X98FSlHG.cjs → Form-lygZzVRZ.cjs} +1 -1
- package/dist/Image-D7FGl2cQ.cjs +1 -0
- package/dist/Image-DJb-tcA-.js +295 -0
- package/dist/{Input-BbJ4Q_xu.cjs → Input-BI-gwi8w.cjs} +1 -1
- package/dist/{Input-DpoSxIdb.js → Input-CoS-XMv1.js} +5 -5
- package/dist/Layout-CJpTIRSF.cjs +1 -0
- package/dist/Layout-l-rfDdFR.js +60 -0
- package/dist/List-BupBfl-B.js +45 -0
- package/dist/List-DAkXmKFR.cjs +1 -0
- package/dist/{Loading-BAKnIASq.js → Loading-C9LBGbnd.js} +1 -1
- package/dist/{Loading-BSqhKOle.cjs → Loading-CRhiY3Ok.cjs} +1 -1
- package/dist/Menu-CsGCo2ck.cjs +1 -0
- package/dist/Menu-t8GRH6oh.js +168 -0
- package/dist/Message-Bo-hPakI.js +170 -0
- package/dist/Message-D2WGz_wk.cjs +1 -0
- package/dist/{MessageBox-C0dCtUie.js → MessageBox-CaTZOiZC.js} +8 -8
- package/dist/{MessageBox-Bp-3oqz4.cjs → MessageBox-D9rZAvhY.cjs} +1 -1
- package/dist/Modal-BTMB0xbR.js +250 -0
- package/dist/{Modal-BfHARuVJ.cjs → Modal-ToC7SNzp.cjs} +1 -1
- package/dist/Notification-C1lOX5Hn.js +187 -0
- package/dist/Notification-DK5jP-kX.cjs +1 -0
- package/dist/{Pagination-CtnBykzs.cjs → Pagination-D_SAnFOA.cjs} +1 -1
- package/dist/{Pagination-BGbiLFtp.js → Pagination-fbC5EEq-.js} +1 -1
- package/dist/Popconfirm-CQ59-YOh.cjs +1 -0
- package/dist/Popconfirm-D2zgbhKF.js +91 -0
- package/dist/Popover-Cb8BrtQC.js +232 -0
- package/dist/Popover-Dqrb-lKh.cjs +1 -0
- package/dist/Result-C3RqWqnc.cjs +1 -0
- package/dist/Result-CcnBHoE5.js +77 -0
- package/dist/Segmented-CQ18snYg.cjs +1 -0
- package/dist/Segmented-OykaARP4.js +39 -0
- package/dist/Select-CpoP5kRp.js +504 -0
- package/dist/Select-D8udcz4F.cjs +1 -0
- package/dist/Skeleton-B_cZyDWx.cjs +1 -0
- package/dist/Skeleton-C80MPzfN.js +31 -0
- package/dist/Statistic-BitBMhSW.cjs +1 -0
- package/dist/Statistic-DVduwOGW.js +35 -0
- package/dist/Steps-B9phXfUl.cjs +1 -0
- package/dist/Steps-Cnswg-bb.js +85 -0
- package/dist/{Table-CpyEziz5.js → Table-DMqVnyDN.js} +1 -1
- package/dist/{Table-uBqeNSnm.cjs → Table-rgp7iAWc.cjs} +1 -1
- package/dist/TimePicker-BydMgSVN.js +220 -0
- package/dist/TimePicker-t4eGpNEu.cjs +1 -0
- package/dist/Tooltip-CWQDc8Nf.js +201 -0
- package/dist/Tooltip-Cn9pIMfU.cjs +1 -0
- package/dist/Transfer-BRjVUdyi.js +115 -0
- package/dist/Transfer-BfWsmx_x.cjs +1 -0
- package/dist/{Transition-X_89ga-e.cjs → Transition-BBMxZ5_8.cjs} +1 -1
- package/dist/{Transition-DiO4GsP3.js → Transition-CJDv6yI5.js} +2 -2
- package/dist/Tree-BsG6l54c.js +202 -0
- package/dist/Tree-CcSMb0_M.cjs +1 -0
- package/dist/TreeSelect-DBJkW7zM.cjs +1 -0
- package/dist/TreeSelect-DWmDo7pg.js +120 -0
- package/dist/Typography-C9Ef3jN5.js +91 -0
- package/dist/Typography-DLrh1jPn.cjs +1 -0
- package/dist/{Upload-DZ6VaM7r.js → Upload-aLdxGpWh.js} +7 -7
- package/dist/{Upload-wHEEoe1c.cjs → Upload-wt5lnQHc.cjs} +1 -1
- package/dist/base.css +1 -1
- package/dist/choice-popup-Crn_uZzu.cjs +1 -0
- package/dist/choice-popup-CzxryGs6.js +168 -0
- package/dist/cjs/AutoComplete.cjs +1 -0
- package/dist/cjs/Avatar.cjs +1 -0
- package/dist/cjs/Badge.cjs +1 -1
- package/dist/cjs/Breadcrumb.cjs +1 -0
- package/dist/cjs/Cascader.cjs +1 -0
- package/dist/cjs/Collapse.cjs +1 -0
- package/dist/cjs/Cron.cjs +1 -1
- package/dist/cjs/DatePicker.cjs +1 -1
- package/dist/cjs/DateTimePicker.cjs +1 -1
- package/dist/cjs/Descriptions.cjs +1 -0
- package/dist/cjs/Drawer.cjs +1 -1
- package/dist/cjs/Dropdown.cjs +1 -1
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/Image.cjs +1 -0
- package/dist/cjs/Input.cjs +1 -1
- package/dist/cjs/Layout.cjs +1 -0
- package/dist/cjs/List.cjs +1 -0
- package/dist/cjs/Loading.cjs +1 -1
- package/dist/cjs/Menu.cjs +1 -0
- package/dist/cjs/Message.cjs +1 -0
- package/dist/cjs/MessageBox.cjs +1 -1
- package/dist/cjs/Modal.cjs +1 -1
- package/dist/cjs/Notification.cjs +1 -1
- package/dist/cjs/Pagination.cjs +1 -1
- package/dist/cjs/Popconfirm.cjs +1 -0
- package/dist/cjs/Popover.cjs +1 -0
- package/dist/cjs/Result.cjs +1 -0
- package/dist/cjs/Segmented.cjs +1 -0
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Skeleton.cjs +1 -0
- package/dist/cjs/Statistic.cjs +1 -0
- package/dist/cjs/Steps.cjs +1 -0
- package/dist/cjs/Table.cjs +1 -1
- package/dist/cjs/TimePicker.cjs +1 -1
- package/dist/cjs/Tooltip.cjs +1 -1
- package/dist/cjs/Transfer.cjs +1 -0
- package/dist/cjs/Transition.cjs +1 -1
- package/dist/cjs/Tree.cjs +1 -0
- package/dist/cjs/TreeSelect.cjs +1 -0
- package/dist/cjs/Typography.cjs +1 -0
- package/dist/cjs/Upload.cjs +1 -1
- package/dist/cjs/global.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/register.cjs +1 -1
- package/dist/css/AutoComplete.css +1 -0
- package/dist/css/Avatar.css +1 -0
- package/dist/css/Breadcrumb.css +1 -0
- package/dist/css/Cascader.css +1 -0
- package/dist/css/Checkbox.css +1 -1
- package/dist/css/Collapse.css +1 -0
- package/dist/css/Descriptions.css +1 -0
- package/dist/css/Image.css +1 -0
- package/dist/css/Layout.css +1 -0
- package/dist/css/List.css +1 -0
- package/dist/css/Menu.css +1 -0
- package/dist/css/Message.css +1 -0
- package/dist/css/Popconfirm.css +1 -0
- package/dist/css/Popover.css +1 -0
- package/dist/css/Radio.css +1 -1
- package/dist/css/Result.css +1 -0
- package/dist/css/Segmented.css +1 -0
- package/dist/css/Skeleton.css +1 -0
- package/dist/css/Statistic.css +1 -0
- package/dist/css/Steps.css +1 -0
- package/dist/css/Switch.css +1 -1
- package/dist/css/Transfer.css +1 -0
- package/dist/css/Tree.css +1 -0
- package/dist/css/TreeSelect.css +1 -0
- package/dist/css/Typography.css +1 -0
- package/dist/date-picker-BUZofYHp.js +644 -0
- package/dist/date-picker-CDbRvH7g.cjs +1 -0
- package/dist/dialog-shell-Bv1Jvhjb.js +219 -0
- package/dist/dialog-shell-HPbp3xhc.cjs +1 -0
- package/dist/es/AutoComplete.mjs +3 -0
- package/dist/es/Avatar.mjs +3 -0
- package/dist/es/Badge.mjs +1 -1
- package/dist/es/Breadcrumb.mjs +3 -0
- package/dist/es/Cascader.mjs +3 -0
- package/dist/es/Collapse.mjs +3 -0
- package/dist/es/Cron.mjs +1 -1
- package/dist/es/DatePicker.mjs +1 -1
- package/dist/es/DateTimePicker.mjs +1 -1
- package/dist/es/Descriptions.mjs +3 -0
- package/dist/es/Drawer.mjs +1 -1
- package/dist/es/Dropdown.mjs +1 -1
- package/dist/es/Form.mjs +1 -1
- package/dist/es/Image.mjs +3 -0
- package/dist/es/Input.mjs +1 -1
- package/dist/es/Layout.mjs +3 -0
- package/dist/es/List.mjs +3 -0
- package/dist/es/Loading.mjs +1 -1
- package/dist/es/Menu.mjs +3 -0
- package/dist/es/Message.mjs +3 -0
- package/dist/es/MessageBox.mjs +1 -1
- package/dist/es/Modal.mjs +1 -1
- package/dist/es/Notification.mjs +1 -1
- package/dist/es/Pagination.mjs +1 -1
- package/dist/es/Popconfirm.mjs +3 -0
- package/dist/es/Popover.mjs +3 -0
- package/dist/es/Result.mjs +3 -0
- package/dist/es/Segmented.mjs +3 -0
- package/dist/es/Select.mjs +1 -1
- package/dist/es/Skeleton.mjs +3 -0
- package/dist/es/Statistic.mjs +3 -0
- package/dist/es/Steps.mjs +3 -0
- package/dist/es/Table.mjs +1 -1
- package/dist/es/TimePicker.mjs +1 -1
- package/dist/es/Tooltip.mjs +1 -1
- package/dist/es/Transfer.mjs +3 -0
- package/dist/es/Transition.mjs +1 -1
- package/dist/es/Tree.mjs +3 -0
- package/dist/es/TreeSelect.mjs +3 -0
- package/dist/es/Typography.mjs +3 -0
- package/dist/es/Upload.mjs +1 -1
- package/dist/es/global.mjs +1 -1
- package/dist/es/index.mjs +62 -40
- package/dist/es/register.mjs +1 -1
- package/dist/floating-B6CCQcuK.cjs +1 -0
- package/dist/{floating-BqCWEj83.js → floating-C8pd2mFu.js} +62 -56
- package/dist/index.css +1 -1
- package/dist/layer-B9unaPbV.js +109 -0
- package/dist/layer-BcLkE2NM.cjs +1 -0
- package/dist/notice-timer-BRLTVgTj.js +28 -0
- package/dist/notice-timer-OkrpLRrG.cjs +1 -0
- package/dist/registry-BFCksD7k.js +131 -0
- package/dist/registry-DftkiQnN.cjs +1 -0
- package/dist/style/AutoComplete.cjs +9 -0
- package/dist/style/AutoComplete.mjs +9 -0
- package/dist/style/Avatar.cjs +7 -0
- package/dist/style/Avatar.mjs +7 -0
- package/dist/style/Breadcrumb.cjs +7 -0
- package/dist/style/Breadcrumb.mjs +7 -0
- package/dist/style/Cascader.cjs +9 -0
- package/dist/style/Cascader.mjs +9 -0
- package/dist/style/Collapse.cjs +7 -0
- package/dist/style/Collapse.mjs +7 -0
- package/dist/style/Descriptions.cjs +7 -0
- package/dist/style/Descriptions.mjs +7 -0
- package/dist/style/Image.cjs +10 -0
- package/dist/style/Image.mjs +10 -0
- package/dist/style/Layout.cjs +7 -0
- package/dist/style/Layout.mjs +7 -0
- package/dist/style/List.cjs +9 -0
- package/dist/style/List.mjs +9 -0
- package/dist/style/Menu.cjs +8 -0
- package/dist/style/Menu.mjs +8 -0
- package/dist/style/Message.cjs +8 -0
- package/dist/style/Message.mjs +8 -0
- package/dist/style/Popconfirm.cjs +9 -0
- package/dist/style/Popconfirm.mjs +9 -0
- package/dist/style/Popover.cjs +8 -0
- package/dist/style/Popover.mjs +8 -0
- package/dist/style/Result.cjs +7 -0
- package/dist/style/Result.mjs +7 -0
- package/dist/style/Segmented.cjs +8 -0
- package/dist/style/Segmented.mjs +8 -0
- package/dist/style/Skeleton.cjs +7 -0
- package/dist/style/Skeleton.mjs +7 -0
- package/dist/style/Statistic.cjs +7 -0
- package/dist/style/Statistic.mjs +7 -0
- package/dist/style/Steps.cjs +7 -0
- package/dist/style/Steps.mjs +7 -0
- package/dist/style/Transfer.cjs +11 -0
- package/dist/style/Transfer.mjs +11 -0
- package/dist/style/Tree.cjs +9 -0
- package/dist/style/Tree.mjs +9 -0
- package/dist/style/TreeSelect.cjs +10 -0
- package/dist/style/TreeSelect.mjs +10 -0
- package/dist/style/Typography.cjs +7 -0
- package/dist/style/Typography.mjs +7 -0
- package/dist/types/AutoComplete/AutoComplete.d.cts +6 -0
- package/dist/types/AutoComplete/AutoComplete.d.ts +6 -0
- package/dist/types/AutoComplete/index.d.cts +2 -0
- package/dist/types/AutoComplete/index.d.ts +2 -0
- package/dist/types/AutoComplete/type.d.cts +57 -0
- package/dist/types/AutoComplete/type.d.ts +57 -0
- package/dist/types/Avatar/Avatar.d.cts +4 -0
- package/dist/types/Avatar/Avatar.d.ts +4 -0
- package/dist/types/Avatar/AvatarGroup.d.cts +7 -0
- package/dist/types/Avatar/AvatarGroup.d.ts +7 -0
- package/dist/types/Avatar/context.d.cts +6 -0
- package/dist/types/Avatar/context.d.ts +6 -0
- package/dist/types/Avatar/index.d.cts +7 -0
- package/dist/types/Avatar/index.d.ts +7 -0
- package/dist/types/Avatar/type.d.cts +36 -0
- package/dist/types/Avatar/type.d.ts +36 -0
- package/dist/types/Breadcrumb/Breadcrumb.d.cts +5 -0
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/types/Breadcrumb/index.d.cts +6 -0
- package/dist/types/Breadcrumb/index.d.ts +6 -0
- package/dist/types/Breadcrumb/type.d.cts +59 -0
- package/dist/types/Breadcrumb/type.d.ts +59 -0
- package/dist/types/Cascader/Cascader.d.cts +3 -0
- package/dist/types/Cascader/Cascader.d.ts +3 -0
- package/dist/types/Cascader/index.d.cts +2 -0
- package/dist/types/Cascader/index.d.ts +2 -0
- package/dist/types/Cascader/type.d.cts +38 -0
- package/dist/types/Cascader/type.d.ts +38 -0
- package/dist/types/Collapse/Collapse.d.cts +3 -0
- package/dist/types/Collapse/Collapse.d.ts +3 -0
- package/dist/types/Collapse/index.d.cts +4 -0
- package/dist/types/Collapse/index.d.ts +4 -0
- package/dist/types/Collapse/type.d.cts +46 -0
- package/dist/types/Collapse/type.d.ts +46 -0
- package/dist/types/Descriptions/Descriptions.d.cts +3 -0
- package/dist/types/Descriptions/Descriptions.d.ts +3 -0
- package/dist/types/Descriptions/index.d.cts +4 -0
- package/dist/types/Descriptions/index.d.ts +4 -0
- package/dist/types/Descriptions/type.d.cts +20 -0
- package/dist/types/Descriptions/type.d.ts +20 -0
- package/dist/types/Image/Image.d.cts +3 -0
- package/dist/types/Image/Image.d.ts +3 -0
- package/dist/types/Image/ImagePreview.d.cts +4 -0
- package/dist/types/Image/ImagePreview.d.ts +4 -0
- package/dist/types/Image/index.d.cts +3 -0
- package/dist/types/Image/index.d.ts +3 -0
- package/dist/types/Image/type.d.cts +25 -0
- package/dist/types/Image/type.d.ts +25 -0
- package/dist/types/Layout/Layout.d.cts +8 -0
- package/dist/types/Layout/Layout.d.ts +8 -0
- package/dist/types/Layout/index.d.cts +2 -0
- package/dist/types/Layout/index.d.ts +2 -0
- package/dist/types/Layout/type.d.cts +20 -0
- package/dist/types/Layout/type.d.ts +20 -0
- package/dist/types/List/List.d.cts +3 -0
- package/dist/types/List/List.d.ts +3 -0
- package/dist/types/List/index.d.cts +2 -0
- package/dist/types/List/index.d.ts +2 -0
- package/dist/types/List/type.d.cts +15 -0
- package/dist/types/List/type.d.ts +15 -0
- package/dist/types/Menu/Menu.d.cts +4 -0
- package/dist/types/Menu/Menu.d.ts +4 -0
- package/dist/types/Menu/index.d.cts +2 -0
- package/dist/types/Menu/index.d.ts +2 -0
- package/dist/types/Menu/type.d.cts +26 -0
- package/dist/types/Menu/type.d.ts +26 -0
- package/dist/types/Message/Message.d.cts +3 -0
- package/dist/types/Message/Message.d.ts +3 -0
- package/dist/types/Message/host.d.cts +5 -0
- package/dist/types/Message/host.d.ts +5 -0
- package/dist/types/Message/index.d.cts +4 -0
- package/dist/types/Message/index.d.ts +4 -0
- package/dist/types/Message/service.d.cts +4 -0
- package/dist/types/Message/service.d.ts +4 -0
- package/dist/types/Message/type.d.cts +34 -0
- package/dist/types/Message/type.d.ts +34 -0
- package/dist/types/Popconfirm/Popconfirm.d.cts +4 -0
- package/dist/types/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/types/Popconfirm/index.d.cts +4 -0
- package/dist/types/Popconfirm/index.d.ts +4 -0
- package/dist/types/Popconfirm/type.d.cts +14 -0
- package/dist/types/Popconfirm/type.d.ts +14 -0
- package/dist/types/Popover/Popover.d.cts +3 -0
- package/dist/types/Popover/Popover.d.ts +3 -0
- package/dist/types/Popover/index.d.cts +4 -0
- package/dist/types/Popover/index.d.ts +4 -0
- package/dist/types/Popover/type.d.cts +27 -0
- package/dist/types/Popover/type.d.ts +27 -0
- package/dist/types/Result/Result.d.cts +3 -0
- package/dist/types/Result/Result.d.ts +3 -0
- package/dist/types/Result/index.d.cts +2 -0
- package/dist/types/Result/index.d.ts +2 -0
- package/dist/types/Result/type.d.cts +11 -0
- package/dist/types/Result/type.d.ts +11 -0
- package/dist/types/Segmented/Segmented.d.cts +4 -0
- package/dist/types/Segmented/Segmented.d.ts +4 -0
- package/dist/types/Segmented/index.d.cts +2 -0
- package/dist/types/Segmented/index.d.ts +2 -0
- package/dist/types/Segmented/type.d.cts +21 -0
- package/dist/types/Segmented/type.d.ts +21 -0
- package/dist/types/Skeleton/Skeleton.d.cts +4 -0
- package/dist/types/Skeleton/Skeleton.d.ts +4 -0
- package/dist/types/Skeleton/index.d.cts +4 -0
- package/dist/types/Skeleton/index.d.ts +4 -0
- package/dist/types/Skeleton/type.d.cts +15 -0
- package/dist/types/Skeleton/type.d.ts +15 -0
- package/dist/types/Statistic/Statistic.d.cts +4 -0
- package/dist/types/Statistic/Statistic.d.ts +4 -0
- package/dist/types/Statistic/index.d.cts +2 -0
- package/dist/types/Statistic/index.d.ts +2 -0
- package/dist/types/Statistic/type.d.cts +11 -0
- package/dist/types/Statistic/type.d.ts +11 -0
- package/dist/types/Steps/Steps.d.cts +4 -0
- package/dist/types/Steps/Steps.d.ts +4 -0
- package/dist/types/Steps/index.d.cts +2 -0
- package/dist/types/Steps/index.d.ts +2 -0
- package/dist/types/Steps/type.d.cts +24 -0
- package/dist/types/Steps/type.d.ts +24 -0
- package/dist/types/Transfer/Transfer.d.cts +4 -0
- package/dist/types/Transfer/Transfer.d.ts +4 -0
- package/dist/types/Transfer/index.d.cts +2 -0
- package/dist/types/Transfer/index.d.ts +2 -0
- package/dist/types/Transfer/type.d.cts +24 -0
- package/dist/types/Transfer/type.d.ts +24 -0
- package/dist/types/Transition/type.d.cts +1 -1
- package/dist/types/Transition/type.d.ts +1 -1
- package/dist/types/Tree/Tree.d.cts +3 -0
- package/dist/types/Tree/Tree.d.ts +3 -0
- package/dist/types/Tree/index.d.cts +2 -0
- package/dist/types/Tree/index.d.ts +2 -0
- package/dist/types/Tree/type.d.cts +42 -0
- package/dist/types/Tree/type.d.ts +42 -0
- package/dist/types/TreeSelect/TreeSelect.d.cts +4 -0
- package/dist/types/TreeSelect/TreeSelect.d.ts +4 -0
- package/dist/types/TreeSelect/index.d.cts +3 -0
- package/dist/types/TreeSelect/index.d.ts +3 -0
- package/dist/types/TreeSelect/type.d.cts +26 -0
- package/dist/types/TreeSelect/type.d.ts +26 -0
- package/dist/types/Typography/Typography.d.cts +7 -0
- package/dist/types/Typography/Typography.d.ts +7 -0
- package/dist/types/Typography/index.d.cts +2 -0
- package/dist/types/Typography/index.d.ts +2 -0
- package/dist/types/Typography/type.d.cts +23 -0
- package/dist/types/Typography/type.d.ts +23 -0
- package/dist/types/_shared/choice-popup.d.cts +44 -0
- package/dist/types/_shared/choice-popup.d.ts +44 -0
- package/dist/types/_shared/dialog-layer.d.cts +4 -1
- package/dist/types/_shared/dialog-layer.d.ts +4 -1
- package/dist/types/_shared/dialog.d.cts +4 -1
- package/dist/types/_shared/dialog.d.ts +4 -1
- package/dist/types/_shared/floating.d.cts +3 -3
- package/dist/types/_shared/floating.d.ts +3 -3
- package/dist/types/_shared/focus.d.cts +1 -1
- package/dist/types/_shared/focus.d.ts +1 -1
- package/dist/types/_shared/notice-timer.d.cts +11 -0
- package/dist/types/_shared/notice-timer.d.ts +11 -0
- package/dist/types/_shared/popup-scope.d.cts +30 -0
- package/dist/types/_shared/popup-scope.d.ts +30 -0
- package/dist/types/_shared/tree.d.cts +28 -0
- package/dist/types/_shared/tree.d.ts +28 -0
- package/dist/types/global.d.cts +44 -0
- package/dist/types/global.d.ts +44 -0
- package/dist/types/index.d.cts +22 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/registry.d.cts +26 -0
- package/dist/types/registry.d.ts +26 -0
- package/package.json +3 -2
- package/dist/Cron-2avclmKf.cjs +0 -1
- package/dist/Dropdown-CYo0Ckcg.js +0 -330
- package/dist/Dropdown-DlT_kSLw.cjs +0 -1
- package/dist/Modal-UWOcLzA6.js +0 -250
- package/dist/Notification-CJraaZIi.js +0 -197
- package/dist/Notification-D6m4qHKz.cjs +0 -1
- package/dist/Select-BBw595_R.js +0 -497
- package/dist/Select-CcuSjVhm.cjs +0 -1
- package/dist/TimePicker-BtorXdZv.cjs +0 -1
- package/dist/TimePicker-DxDA8bbO.js +0 -215
- package/dist/Tooltip-2-mZgyai.js +0 -198
- package/dist/Tooltip-BCH9SOnY.cjs +0 -1
- package/dist/date-picker-BrlkzTx6.cjs +0 -1
- package/dist/date-picker-DBzPbLf2.js +0 -639
- package/dist/dialog-shell-DqKDnSak.js +0 -207
- package/dist/dialog-shell-WCsdja9-.cjs +0 -1
- package/dist/floating-BpTI3sWS.cjs +0 -1
- package/dist/focus-BDDJyKk3.js +0 -9
- package/dist/focus-D-h8CbGr.cjs +0 -1
- package/dist/layer-CWiOhvXF.js +0 -53
- package/dist/layer-DfWO72Y-.cjs +0 -1
- package/dist/registry-7LU6RUh_.cjs +0 -1
- package/dist/registry-BYt8u6us.js +0 -87
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PopoverProps } from '../Popover/index.js';
|
|
3
|
+
export type PopconfirmRef = HTMLDivElement;
|
|
4
|
+
/** 确认流程使用固定 click 触发,其余定位、内容和受控属性遵循 Popover。 */
|
|
5
|
+
export interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'trigger' | 'showDelay' | 'hideDelay'> {
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
confirmButtonText?: ReactNode;
|
|
8
|
+
cancelButtonText?: ReactNode;
|
|
9
|
+
/** 返回 Promise 时进入等待状态;失败保持面板打开。 */
|
|
10
|
+
onConfirm?: () => void | Promise<void>;
|
|
11
|
+
/** 仅由取消按钮触发,外部点击和 Escape 通过 onChange 请求关闭。 */
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
onConfirmError?: (error: unknown) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popover from './Popover.cjs';
|
|
2
|
+
export declare const VlPopover: import("react").ForwardRefExoticComponent<import("./type.cjs").PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopoverProps, PopoverRef, PopoverPlacement, PopoverTrigger } from './type.cjs';
|
|
4
|
+
export default Popover;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Popover from './Popover.js';
|
|
2
|
+
export declare const VlPopover: import("react").ForwardRefExoticComponent<import("./type.js").PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { PopoverProps, PopoverRef, PopoverPlacement, PopoverTrigger } from './type.js';
|
|
4
|
+
export default Popover;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { FloatingPlacement } from '../_shared/floating.cjs';
|
|
3
|
+
export type PopoverPlacement = FloatingPlacement;
|
|
4
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus';
|
|
5
|
+
export type PopoverRef = HTMLDivElement;
|
|
6
|
+
/** 非模态交互面板;children 是内容,triggerContent 是唯一触发器。 */
|
|
7
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
8
|
+
triggerContent?: ReactNode;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
onChange?: (open: boolean) => void;
|
|
13
|
+
trigger?: PopoverTrigger;
|
|
14
|
+
placement?: PopoverPlacement;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
offset?: number;
|
|
17
|
+
zIndex?: number;
|
|
18
|
+
maxWidth?: number | string;
|
|
19
|
+
showArrow?: boolean;
|
|
20
|
+
/** hover / focus 的打开与关闭延迟,默认均为 100ms。 */
|
|
21
|
+
showDelay?: number;
|
|
22
|
+
hideDelay?: number;
|
|
23
|
+
closeOnOutsideClick?: boolean;
|
|
24
|
+
closeOnPressEscape?: boolean;
|
|
25
|
+
/** 没有 title 时使用的面板可访问名称,默认“弹出面板”。 */
|
|
26
|
+
panelLabel?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { FloatingPlacement } from '../_shared/floating.js';
|
|
3
|
+
export type PopoverPlacement = FloatingPlacement;
|
|
4
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus';
|
|
5
|
+
export type PopoverRef = HTMLDivElement;
|
|
6
|
+
/** 非模态交互面板;children 是内容,triggerContent 是唯一触发器。 */
|
|
7
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
|
|
8
|
+
triggerContent?: ReactNode;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
onChange?: (open: boolean) => void;
|
|
13
|
+
trigger?: PopoverTrigger;
|
|
14
|
+
placement?: PopoverPlacement;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
offset?: number;
|
|
17
|
+
zIndex?: number;
|
|
18
|
+
maxWidth?: number | string;
|
|
19
|
+
showArrow?: boolean;
|
|
20
|
+
/** hover / focus 的打开与关闭延迟,默认均为 100ms。 */
|
|
21
|
+
showDelay?: number;
|
|
22
|
+
hideDelay?: number;
|
|
23
|
+
closeOnOutsideClick?: boolean;
|
|
24
|
+
closeOnPressEscape?: boolean;
|
|
25
|
+
/** 没有 title 时使用的面板可访问名称,默认“弹出面板”。 */
|
|
26
|
+
panelLabel?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ResultStatus = 'success' | 'info' | 'warning' | 'error' | '403' | '404' | '500';
|
|
3
|
+
/** 页面级结果说明。具体操作通过 actions 提供,组件不绑定业务路由。 */
|
|
4
|
+
export interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
status?: ResultStatus;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export type ResultRef = HTMLDivElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ResultStatus = 'success' | 'info' | 'warning' | 'error' | '403' | '404' | '500';
|
|
3
|
+
/** 页面级结果说明。具体操作通过 actions 提供,组件不绑定业务路由。 */
|
|
4
|
+
export interface ResultProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
status?: ResultStatus;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export type ResultRef = HTMLDivElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type SegmentedValue = string | number;
|
|
3
|
+
export interface SegmentedOption {
|
|
4
|
+
value: SegmentedValue;
|
|
5
|
+
/** 即使只显示图标,也必须提供可访问名称。 */
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconOnly?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
options: SegmentedOption[];
|
|
13
|
+
value?: SegmentedValue | null;
|
|
14
|
+
defaultValue?: SegmentedValue | null;
|
|
15
|
+
onChange?: (value: SegmentedValue) => void;
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
block?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
export type SegmentedRef = HTMLDivElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type SegmentedValue = string | number;
|
|
3
|
+
export interface SegmentedOption {
|
|
4
|
+
value: SegmentedValue;
|
|
5
|
+
/** 即使只显示图标,也必须提供可访问名称。 */
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
iconOnly?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SegmentedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
options: SegmentedOption[];
|
|
13
|
+
value?: SegmentedValue | null;
|
|
14
|
+
defaultValue?: SegmentedValue | null;
|
|
15
|
+
onChange?: (value: SegmentedValue) => void;
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
block?: boolean;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
export type SegmentedRef = HTMLDivElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Skeleton from './Skeleton.cjs';
|
|
2
|
+
export declare const VlSkeleton: import("react").ForwardRefExoticComponent<import("./type.cjs").SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { SkeletonProps, SkeletonRef } from './type.cjs';
|
|
4
|
+
export default Skeleton;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Skeleton from './Skeleton.js';
|
|
2
|
+
export declare const VlSkeleton: import("react").ForwardRefExoticComponent<import("./type.js").SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type { SkeletonProps, SkeletonRef } from './type.js';
|
|
4
|
+
export default Skeleton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonRef = HTMLDivElement;
|
|
3
|
+
/** 加载完成后才挂载 children;适合首次加载占位,不用于覆盖正在编辑的内容。 */
|
|
4
|
+
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
/** 默认 true。 */
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/** 文本占位行数,默认 3;非负整数,非有限值回退为 3。 */
|
|
8
|
+
rows?: number;
|
|
9
|
+
/** 是否显示标题占位,默认 true。 */
|
|
10
|
+
title?: boolean;
|
|
11
|
+
/** 是否显示头像占位,默认 false。 */
|
|
12
|
+
avatar?: boolean;
|
|
13
|
+
/** 是否启用透明度动效,默认 true;尊重 reduced-motion。 */
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonRef = HTMLDivElement;
|
|
3
|
+
/** 加载完成后才挂载 children;适合首次加载占位,不用于覆盖正在编辑的内容。 */
|
|
4
|
+
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
/** 默认 true。 */
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/** 文本占位行数,默认 3;非负整数,非有限值回退为 3。 */
|
|
8
|
+
rows?: number;
|
|
9
|
+
/** 是否显示标题占位,默认 true。 */
|
|
10
|
+
title?: boolean;
|
|
11
|
+
/** 是否显示头像占位,默认 false。 */
|
|
12
|
+
avatar?: boolean;
|
|
13
|
+
/** 是否启用透明度动效,默认 true;尊重 reduced-motion。 */
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
value: number | string;
|
|
5
|
+
/** 小数位数,0–20;未指定时最多保留 3 位。字符串不做数字转换。 */
|
|
6
|
+
precision?: number;
|
|
7
|
+
prefix?: ReactNode;
|
|
8
|
+
suffix?: ReactNode;
|
|
9
|
+
formatter?: (value: number | string) => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export type StatisticRef = HTMLDivElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface StatisticProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'prefix'> {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
value: number | string;
|
|
5
|
+
/** 小数位数,0–20;未指定时最多保留 3 位。字符串不做数字转换。 */
|
|
6
|
+
precision?: number;
|
|
7
|
+
prefix?: ReactNode;
|
|
8
|
+
suffix?: ReactNode;
|
|
9
|
+
formatter?: (value: number | string) => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export type StatisticRef = HTMLDivElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
|
+
export interface StepsItem {
|
|
4
|
+
key?: string | number;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
status?: StepsStatus;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
items: StepsItem[];
|
|
13
|
+
/** 从 0 开始,items.length 表示全部完成。 */
|
|
14
|
+
value?: number;
|
|
15
|
+
defaultValue?: number;
|
|
16
|
+
onChange?: (value: number) => void;
|
|
17
|
+
direction?: 'horizontal' | 'vertical';
|
|
18
|
+
size?: 'sm' | 'md' | 'lg';
|
|
19
|
+
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
20
|
+
status?: StepsStatus;
|
|
21
|
+
/** 默认 false。业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
22
|
+
clickable?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type StepsRef = HTMLOListElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type StepsStatus = 'wait' | 'process' | 'finish' | 'error';
|
|
3
|
+
export interface StepsItem {
|
|
4
|
+
key?: string | number;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
status?: StepsStatus;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface StepsProps extends Omit<HTMLAttributes<HTMLOListElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
items: StepsItem[];
|
|
13
|
+
/** 从 0 开始,items.length 表示全部完成。 */
|
|
14
|
+
value?: number;
|
|
15
|
+
defaultValue?: number;
|
|
16
|
+
onChange?: (value: number) => void;
|
|
17
|
+
direction?: 'horizontal' | 'vertical';
|
|
18
|
+
size?: 'sm' | 'md' | 'lg';
|
|
19
|
+
/** 当前步骤状态;单项 status 可单独表达失败或跳过后的状态。 */
|
|
20
|
+
status?: StepsStatus;
|
|
21
|
+
/** 默认 false。业务校验流程使用受控 value,在验证成功后回传下一步。 */
|
|
22
|
+
clickable?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type StepsRef = HTMLOListElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TransferKey = string | number;
|
|
3
|
+
export interface TransferItem {
|
|
4
|
+
key: TransferKey;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TransferProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
9
|
+
data: TransferItem[];
|
|
10
|
+
/** 右侧目标集合;显示顺序始终跟随 data。 */
|
|
11
|
+
value?: TransferKey[];
|
|
12
|
+
defaultValue?: TransferKey[];
|
|
13
|
+
onChange?: (keys: TransferKey[]) => void;
|
|
14
|
+
selectedKeys?: TransferKey[];
|
|
15
|
+
defaultSelectedKeys?: TransferKey[];
|
|
16
|
+
onSelectChange?: (keys: TransferKey[]) => void;
|
|
17
|
+
filterable?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
titles?: [ReactNode, ReactNode];
|
|
20
|
+
renderItem?: (item: TransferItem) => ReactNode;
|
|
21
|
+
emptyContent?: ReactNode;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
export type TransferRef = HTMLDivElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TransferKey = string | number;
|
|
3
|
+
export interface TransferItem {
|
|
4
|
+
key: TransferKey;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TransferProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
9
|
+
data: TransferItem[];
|
|
10
|
+
/** 右侧目标集合;显示顺序始终跟随 data。 */
|
|
11
|
+
value?: TransferKey[];
|
|
12
|
+
defaultValue?: TransferKey[];
|
|
13
|
+
onChange?: (keys: TransferKey[]) => void;
|
|
14
|
+
selectedKeys?: TransferKey[];
|
|
15
|
+
defaultSelectedKeys?: TransferKey[];
|
|
16
|
+
onSelectChange?: (keys: TransferKey[]) => void;
|
|
17
|
+
filterable?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
titles?: [ReactNode, ReactNode];
|
|
20
|
+
renderItem?: (item: TransferItem) => ReactNode;
|
|
21
|
+
emptyContent?: ReactNode;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
export type TransferRef = HTMLDivElement;
|
|
@@ -7,7 +7,7 @@ export interface TransitionProps {
|
|
|
7
7
|
show: boolean;
|
|
8
8
|
/** 过渡动画类名前缀(如 `vl-loading-fade`),用于派生 `-enter-from`, `-enter-active`, `-leave-to` 等类名 */
|
|
9
9
|
name: string;
|
|
10
|
-
/** 在离场动画完全结束后是否销毁子节点 DOM,默认为
|
|
10
|
+
/** 在离场动画完全结束后是否销毁子节点 DOM,默认为 true */
|
|
11
11
|
unmountOnExit?: boolean;
|
|
12
12
|
/** 在 show=false 时仍预挂载节点,供 Portal 浮层先完成测量和定位,默认为 false */
|
|
13
13
|
forceMount?: boolean;
|
|
@@ -7,7 +7,7 @@ export interface TransitionProps {
|
|
|
7
7
|
show: boolean;
|
|
8
8
|
/** 过渡动画类名前缀(如 `vl-loading-fade`),用于派生 `-enter-from`, `-enter-active`, `-leave-to` 等类名 */
|
|
9
9
|
name: string;
|
|
10
|
-
/** 在离场动画完全结束后是否销毁子节点 DOM,默认为
|
|
10
|
+
/** 在离场动画完全结束后是否销毁子节点 DOM,默认为 true */
|
|
11
11
|
unmountOnExit?: boolean;
|
|
12
12
|
/** 在 show=false 时仍预挂载节点,供 Portal 浮层先完成测量和定位,默认为 false */
|
|
13
13
|
forceMount?: boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TreeKey = string | number;
|
|
3
|
+
export interface TreeNode {
|
|
4
|
+
/** 整棵树中稳定且唯一,数字 1 与字符串 '1' 是不同节点。 */
|
|
5
|
+
key: TreeKey;
|
|
6
|
+
label: string;
|
|
7
|
+
children?: TreeNode[];
|
|
8
|
+
/** 禁止选择和勾选,仍允许展开以访问可用子项;关联勾选不会跨越此节点。 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface TreeSelectInfo {
|
|
12
|
+
node: TreeNode;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TreeCheckInfo {
|
|
16
|
+
node: TreeNode;
|
|
17
|
+
checked: boolean;
|
|
18
|
+
halfCheckedKeys: TreeKey[];
|
|
19
|
+
}
|
|
20
|
+
export interface TreeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
21
|
+
data: TreeNode[];
|
|
22
|
+
expandedKeys?: TreeKey[];
|
|
23
|
+
defaultExpandedKeys?: TreeKey[];
|
|
24
|
+
onExpand?: (keys: TreeKey[]) => void;
|
|
25
|
+
selectedKeys?: TreeKey[];
|
|
26
|
+
defaultSelectedKeys?: TreeKey[];
|
|
27
|
+
onSelect?: (keys: TreeKey[], info: TreeSelectInfo) => void;
|
|
28
|
+
checkedKeys?: TreeKey[];
|
|
29
|
+
defaultCheckedKeys?: TreeKey[];
|
|
30
|
+
onCheck?: (keys: TreeKey[], info: TreeCheckInfo) => void;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
checkable?: boolean;
|
|
33
|
+
checkStrictly?: boolean;
|
|
34
|
+
/** 搜索会显示命中节点、其祖先,以及命中分支下的子项;清空后恢复原展开状态。 */
|
|
35
|
+
searchValue?: string;
|
|
36
|
+
renderNode?: (node: TreeNode) => ReactNode;
|
|
37
|
+
size?: 'sm' | 'md' | 'lg';
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
emptyContent?: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export type TreeRef = HTMLDivElement;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TreeKey = string | number;
|
|
3
|
+
export interface TreeNode {
|
|
4
|
+
/** 整棵树中稳定且唯一,数字 1 与字符串 '1' 是不同节点。 */
|
|
5
|
+
key: TreeKey;
|
|
6
|
+
label: string;
|
|
7
|
+
children?: TreeNode[];
|
|
8
|
+
/** 禁止选择和勾选,仍允许展开以访问可用子项;关联勾选不会跨越此节点。 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface TreeSelectInfo {
|
|
12
|
+
node: TreeNode;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TreeCheckInfo {
|
|
16
|
+
node: TreeNode;
|
|
17
|
+
checked: boolean;
|
|
18
|
+
halfCheckedKeys: TreeKey[];
|
|
19
|
+
}
|
|
20
|
+
export interface TreeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
21
|
+
data: TreeNode[];
|
|
22
|
+
expandedKeys?: TreeKey[];
|
|
23
|
+
defaultExpandedKeys?: TreeKey[];
|
|
24
|
+
onExpand?: (keys: TreeKey[]) => void;
|
|
25
|
+
selectedKeys?: TreeKey[];
|
|
26
|
+
defaultSelectedKeys?: TreeKey[];
|
|
27
|
+
onSelect?: (keys: TreeKey[], info: TreeSelectInfo) => void;
|
|
28
|
+
checkedKeys?: TreeKey[];
|
|
29
|
+
defaultCheckedKeys?: TreeKey[];
|
|
30
|
+
onCheck?: (keys: TreeKey[], info: TreeCheckInfo) => void;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
checkable?: boolean;
|
|
33
|
+
checkStrictly?: boolean;
|
|
34
|
+
/** 搜索会显示命中节点、其祖先,以及命中分支下的子项;清空后恢复原展开状态。 */
|
|
35
|
+
searchValue?: string;
|
|
36
|
+
renderNode?: (node: TreeNode) => ReactNode;
|
|
37
|
+
size?: 'sm' | 'md' | 'lg';
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
emptyContent?: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export type TreeRef = HTMLDivElement;
|