@duxweb/dvha-pro 1.0.17 → 1.0.19
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/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/code/code.cjs +1 -0
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -0
- package/dist/cjs/components/icon/iconPicker.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -0
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/panel/collapse.cjs +1 -0
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -0
- package/dist/cjs/components/table/table.cjs +1 -0
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -0
- package/dist/cjs/components/upload/config.cjs +1 -0
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/naiveTheme.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +27 -7
- package/dist/esm/component.js +52 -47
- package/dist/esm/components/card/card.js +6 -6
- package/dist/esm/components/chart/echart.js +18 -6
- package/dist/esm/components/code/code.js +53 -0
- package/dist/esm/components/crop/imageCrop.js +38 -26
- package/dist/esm/components/data/dynamicSelect.js +31 -19
- package/dist/esm/components/data/selectModal.js +50 -38
- package/dist/esm/components/drawer/drawer.js +17 -28
- package/dist/esm/components/drawer/drawerPage.js +54 -17
- package/dist/esm/components/form/formItem.js +13 -13
- package/dist/esm/components/form/formLayout.js +8 -8
- package/dist/esm/components/form/modalForm.js +46 -36
- package/dist/esm/components/form/pageForm.js +82 -43
- package/dist/esm/components/form/settingForm.js +39 -27
- package/dist/esm/components/icon/icon.js +89 -0
- package/dist/esm/components/icon/iconPicker.js +83 -0
- package/dist/esm/components/layout/filter.js +15 -11
- package/dist/esm/components/layout/filterLayout.js +34 -0
- package/dist/esm/components/layout/list.js +207 -160
- package/dist/esm/components/layout/table.js +213 -185
- package/dist/esm/components/level/level.js +29 -17
- package/dist/esm/components/modal/modal.js +9 -9
- package/dist/esm/components/modal/modalPage.js +2 -2
- package/dist/esm/components/panel/collapse.js +49 -0
- package/dist/esm/components/panel/setting.js +3 -3
- package/dist/esm/components/status/listEmpty.js +26 -0
- package/dist/esm/components/table/table.js +110 -0
- package/dist/esm/components/table/tablePage.js +24 -18
- package/dist/esm/components/tree/treeFilter.js +212 -0
- package/dist/esm/components/upload/config.js +32 -0
- package/dist/esm/components/upload/file.js +143 -116
- package/dist/esm/components/upload/image.js +96 -66
- package/dist/esm/components/upload/manage/item.js +18 -6
- package/dist/esm/components/upload/manager.js +203 -164
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +77 -75
- package/dist/esm/hooks/dialog.js +14 -2
- package/dist/esm/hooks/drawer.js +14 -2
- package/dist/esm/hooks/modal.js +14 -2
- package/dist/esm/hooks/table/image.js +22 -10
- package/dist/esm/hooks/table/media.js +22 -10
- package/dist/esm/hooks/table.js +16 -13
- package/dist/esm/index.js +200 -184
- package/dist/esm/langs/en-US.json.js +1 -1
- package/dist/esm/langs/zh-CN.json.js +1 -1
- package/dist/esm/pages/authLayout.js +23 -11
- package/dist/esm/pages/layout/page.js +29 -17
- package/dist/esm/pages/login.js +41 -29
- package/dist/esm/pages/menu/avatar.js +46 -34
- package/dist/esm/pages/menu/button.js +26 -14
- package/dist/esm/pages/menu/cmd.js +46 -34
- package/dist/esm/pages/menu/main.js +41 -27
- package/dist/esm/pages/menu/mobile.js +14 -2
- package/dist/esm/pages/page.js +1 -1
- package/dist/esm/pages/page404.js +21 -9
- package/dist/esm/pages/pageStatus.js +33 -16
- package/dist/esm/theme/naiveTheme.js +6 -6
- package/dist/esm/theme/uno.css.js +27 -7
- package/dist/types/components/code/code.d.ts +44 -0
- package/dist/types/components/code/index.d.ts +1 -0
- package/dist/types/components/drawer/drawer.d.ts +2 -0
- package/dist/types/components/drawer/drawerPage.d.ts +20 -1
- package/dist/types/components/form/formItem.d.ts +2 -2
- package/dist/types/components/form/formLayout.d.ts +3 -3
- package/dist/types/components/form/modalForm.d.ts +3 -3
- package/dist/types/components/form/pageForm.d.ts +12 -0
- package/dist/types/components/icon/icon.d.ts +7 -0
- package/dist/types/components/icon/iconPicker.d.ts +9 -0
- package/dist/types/components/icon/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/layout/filterLayout.d.ts +32 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/layout/table.d.ts +3 -0
- package/dist/types/components/panel/collapse.d.ts +14 -0
- package/dist/types/components/panel/index.d.ts +1 -0
- package/dist/types/components/select/cardSelect.d.ts +1 -1
- package/dist/types/components/status/index.d.ts +1 -0
- package/dist/types/components/status/listEmpty.d.ts +11 -0
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/table/table.d.ts +6552 -0
- package/dist/types/components/table/tablePage.d.ts +3 -0
- package/dist/types/components/tree/index.d.ts +1 -0
- package/dist/types/components/tree/treeFilter.d.ts +24 -0
- package/dist/types/components/upload/config.d.ts +13 -0
- package/dist/types/components/upload/file.d.ts +4 -0
- package/dist/types/components/upload/image.d.ts +30 -2
- package/dist/types/components/upload/manager.d.ts +4 -0
- package/dist/types/hooks/drawer.d.ts +1 -0
- package/dist/types/hooks/table/types.d.ts +1 -0
- package/dist/types/main.d.ts +6 -0
- package/dist/types/pages/pageStatus.d.ts +11 -1
- package/package.json +6 -4
package/dist/esm/dvha-pro.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.n-popover-shared .n-popover-arrow-wrapper .n-popover-arrow{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.n-dropdown-menu{min-width:130px}.icon-gradient{color:rgb(var(--ui-color-primary));animation:icon-color-cycle 12s ease-in-out infinite}@keyframes icon-color-cycle{0%{color:rgb(var(--ui-color-primary))}20%{color:rgb(var(--ui-color-info))}40%{color:rgb(var(--ui-color-success))}60%{color:rgb(var(--ui-color-warning))}80%{color:rgb(var(--ui-color-error))}to{color:rgb(var(--ui-color-primary))}}@keyframes icon-gradient-shift{0%{background-position:0% 50%}25%{background-position:50% 0%}50%{background-position:100% 50%}75%{background-position:50% 100%}to{background-position:0% 50%}}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-pad{border:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__prefix,.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__suffix{border-bottom:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab{padding:0;border-bottom:none;border-radius:0;background-color:transparent}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{height:20px;width:1px;background-color:#0000001a;border-bottom:none;position:absolute;top:50%;transform:translateY(-50%)}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab{background-color:transparent;border-bottom:none;border:none;position:relative}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:transparent}.dark .app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{background-color:#ffffff1a}.app-modal-tabs.n-tabs .n-tabs-wrapper{padding:0 16px}.app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-color-gray-200)/.2)}.app-modal-tabs.n-tabs .n-tabs-tab{padding:12px 4px;font-size:var(--n-font-size)}.dark .app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-bg-elevated)/.5)}.n-data-table .n-data-table-thead{border:1px solid rgb(var(--ui-border-muted))}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-left:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th--last{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-right:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-th{border-top:1px solid rgba(var(--ui-border-accented)/.5);border-bottom:1px solid rgba(var(--ui-border-accented)/.5)}.command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.3);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:100vh;width:100vw;position:fixed;top:0;left:0;z-index:1000}.command-palette [command-dialog-wrapper]{position:relative;flex-direction:column;margin:20vh auto auto;max-width:560px;background-color:rgb(var(--ui-bg)/.9);border-radius:6px}.command-palette [command-group-heading]{color:rgba(var(--ui-text-muted));padding:6px}.command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border-muted));margin:6px 0}.command-palette [command-list]{border-top:1px solid rgb(var(--ui-border-muted));padding:0 6px 6px}.command-palette [command-item]{padding:6px 12px;display:flex;align-items:center;gap:6px;border-radius:3px;color:rgba(var(--ui-text-toned))}.command-palette [command-item][aria-selected=true],.command-palette [command-item]:active{background-color:rgb(var(--ui-bg-accented)/.8);color:rgba(var(--ui-color-primary-500))}.dark .command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.02)}.dark .command-palette [command-dialog-wrapper]{background-color:rgb(var(--ui-bg-elevated)/.95)}.dark .command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border)/.5)}.dark .command-palette [command-list]{border-top:1px solid rgb(var(--ui-border)/.5)}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content-header{opacity:1}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content__arrow{display:none}.app-login-bg{background-image:repeating-linear-gradient(90deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#f7f7f8,#f7f7f8)}.app-login-dark-bg{background-image:repeating-linear-gradient(90deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#101014,#101014)}.app-loading{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;background-color:rgb(var(--ui-bg));overflow:hidden}.app-box-loading{width:50px;height:50px;position:relative}.app-box-loading:before{content:"";width:50px;height:5px;background:rgb(var(--ui-color-gray-200));opacity:.3;position:absolute;top:59px;left:0;border-radius:50%;animation:shadow .5s linear infinite}.app-box-loading:after{content:"";width:50px;height:50px;background:rgba(var(--ui-color-primary));animation:animate .5s linear infinite;position:absolute;top:0;left:0;border-radius:3px}@keyframes animate{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}html{color-scheme:light;background-color:rgb(var(--ui-color-primary-700)/.05)}html.dark{color-scheme:dark;background-color:rgb(var(--ui-bg)/.5)}[un-cloak]{display:none}.app-remote-loader{height:100%}
|
|
1
|
+
@charset "UTF-8";.n-popover-shared .n-popover-arrow-wrapper .n-popover-arrow{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.n-dropdown-menu{min-width:130px}.icon-gradient{color:rgb(var(--ui-color-primary));animation:icon-color-cycle 12s ease-in-out infinite}@keyframes icon-color-cycle{0%{color:rgb(var(--ui-color-primary))}20%{color:rgb(var(--ui-color-info))}40%{color:rgb(var(--ui-color-success))}60%{color:rgb(var(--ui-color-warning))}80%{color:rgb(var(--ui-color-error))}to{color:rgb(var(--ui-color-primary))}}@keyframes icon-gradient-shift{0%{background-position:0% 50%}25%{background-position:50% 0%}50%{background-position:100% 50%}75%{background-position:50% 100%}to{background-position:0% 50%}}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-pad{border:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__prefix,.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__suffix{border-bottom:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab{padding:0;border-bottom:none;border-radius:0;background-color:transparent}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{height:20px;width:1px;background-color:#0000001a;border-bottom:none;position:absolute;top:50%;transform:translateY(-50%)}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab{background-color:transparent;border-bottom:none;border:none;position:relative}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:transparent}.dark .app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{background-color:#ffffff1a}.app-modal-tabs.n-tabs .n-tabs-wrapper{padding:0 16px}.app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-color-gray-200)/.2)}.app-modal-tabs.n-tabs .n-tabs-tab{padding:12px 4px;font-size:var(--n-font-size)}.dark .app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-bg-elevated)/.5)}.n-data-table .n-data-table-thead{border:1px solid rgb(var(--ui-border-muted))}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-left:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th--last{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-right:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-th{border-top:1px solid rgba(var(--ui-border-accented)/.5);border-bottom:1px solid rgba(var(--ui-border-accented)/.5)}.command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.3);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:100vh;width:100vw;position:fixed;top:0;left:0;z-index:1000}.command-palette [command-dialog-wrapper]{position:relative;flex-direction:column;margin:20vh auto auto;max-width:560px;background-color:rgb(var(--ui-bg)/.9);border-radius:6px}.command-palette [command-group-heading]{color:rgba(var(--ui-text-muted));padding:6px}.command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border-muted));margin:6px 0}.command-palette [command-list]{border-top:1px solid rgb(var(--ui-border-muted));padding:0 6px 6px}.command-palette [command-item]{padding:6px 12px;display:flex;align-items:center;gap:6px;border-radius:3px;color:rgba(var(--ui-text-toned))}.command-palette [command-item][aria-selected=true],.command-palette [command-item]:active{background-color:rgb(var(--ui-bg-accented)/.8);color:rgba(var(--ui-color-primary-500))}.dark .command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.02)}.dark .command-palette [command-dialog-wrapper]{background-color:rgb(var(--ui-bg-elevated)/.95)}.dark .command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border)/.5)}.dark .command-palette [command-list]{border-top:1px solid rgb(var(--ui-border)/.5)}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content-header{opacity:1}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content__arrow{display:none}.app-login-bg{background-image:repeating-linear-gradient(90deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#f7f7f8,#f7f7f8)}.app-login-dark-bg{background-image:repeating-linear-gradient(90deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#101014,#101014)}.app-loading{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;background-color:rgb(var(--ui-bg));overflow:hidden}.app-box-loading{width:50px;height:50px;position:relative}.app-box-loading:before{content:"";width:50px;height:5px;background:rgb(var(--ui-color-gray-200));opacity:.3;position:absolute;top:59px;left:0;border-radius:50%;animation:shadow .5s linear infinite}.app-box-loading:after{content:"";width:50px;height:50px;background:rgba(var(--ui-color-primary));animation:animate .5s linear infinite;position:absolute;top:0;left:0;border-radius:3px}@keyframes animate{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}html{color-scheme:light;background-color:rgb(var(--ui-color-primary-700)/.05)}html.dark{color-scheme:dark;background-color:rgb(var(--ui-bg)/.5)}[un-cloak]{display:none}.app-remote-loader{height:100%}.tab-fade-leave-active,.tab-fade-enter-active{transition:all .3s}.tab-fade-enter-from{opacity:0;transform:translate(-30px)}.tab-fade-enter-to{opacity:1;transform:translate(0)}.tab-fade-leave-to{opacity:0;transform:translate(30px)}
|
package/dist/esm/hooks/action.js
CHANGED
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
import { useI18n as
|
|
1
|
+
import { useI18n as b, useManage as S, useCustomMutation as D, useDelete as C } from "@duxweb/dvha-core";
|
|
2
2
|
import { useMessage as I, NButton as j, NDropdown as N } from "naive-ui";
|
|
3
|
-
import { h as
|
|
3
|
+
import { h as s } from "vue";
|
|
4
4
|
import { useRouter as $ } from "vue-router";
|
|
5
5
|
import { useDialog as B } from "./dialog.js";
|
|
6
6
|
import { useDrawer as E } from "./drawer.js";
|
|
7
7
|
import { useModal as T } from "./modal.js";
|
|
8
|
-
function
|
|
9
|
-
const y = T(), d = E(),
|
|
8
|
+
function Q(n) {
|
|
9
|
+
const y = T(), d = E(), o = B(), {
|
|
10
10
|
t: c
|
|
11
|
-
} =
|
|
11
|
+
} = b(), a = I(), l = S(), u = $(), v = D({
|
|
12
12
|
onSuccess: (e) => {
|
|
13
|
-
|
|
13
|
+
a.success(e.message || c("common.success"));
|
|
14
14
|
},
|
|
15
15
|
onError: (e) => {
|
|
16
|
-
|
|
16
|
+
a.error(e.message || c("common.error"));
|
|
17
17
|
}
|
|
18
18
|
}), A = C({
|
|
19
19
|
onSuccess: (e) => {
|
|
20
|
-
|
|
20
|
+
a.success(e.message || c("common.success"));
|
|
21
21
|
},
|
|
22
22
|
onError: (e) => {
|
|
23
|
-
|
|
23
|
+
a.error(e.message || c("common.error"));
|
|
24
24
|
}
|
|
25
|
-
}), g = (n == null ? void 0 : n.path) ||
|
|
26
|
-
var f,
|
|
27
|
-
const i = c(e.item.title || "", {}, e.item.title),
|
|
25
|
+
}), g = (n == null ? void 0 : n.path) || l.getPath(), x = (e) => {
|
|
26
|
+
var f, k;
|
|
27
|
+
const i = c(e.item.title || "", {}, e.item.title), r = c(e.item.label || "", {}, e.item.label);
|
|
28
28
|
if (e.item.type === "modal") {
|
|
29
|
-
const t = e.item;
|
|
29
|
+
const t = e.item, m = typeof t.componentProps == "function" ? t.componentProps(e.data) : t.componentProps;
|
|
30
30
|
y.show({
|
|
31
|
-
title: i ||
|
|
31
|
+
title: i || r,
|
|
32
32
|
component: t.component,
|
|
33
33
|
componentProps: {
|
|
34
34
|
id: e.id,
|
|
35
|
-
...
|
|
35
|
+
...m
|
|
36
36
|
},
|
|
37
37
|
width: t.width,
|
|
38
38
|
draggable: t.draggable !== void 0 ? t.draggable : !0
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
if (e.item.type === "drawer") {
|
|
42
|
-
const t = e.item;
|
|
42
|
+
const t = e.item, m = typeof t.componentProps == "function" ? t.componentProps(e.data) : t.componentProps;
|
|
43
43
|
d.show({
|
|
44
|
-
title: i ||
|
|
44
|
+
title: i || r,
|
|
45
45
|
component: t.component,
|
|
46
46
|
componentProps: {
|
|
47
47
|
id: e.id,
|
|
48
|
-
...
|
|
48
|
+
...m
|
|
49
49
|
},
|
|
50
|
-
width: t.width
|
|
50
|
+
width: t.width,
|
|
51
|
+
maxWidth: t.maxWidth
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
if (e.item.type === "confirm") {
|
|
54
55
|
const t = e.item;
|
|
55
|
-
|
|
56
|
-
title: i ||
|
|
56
|
+
o.confirm({
|
|
57
|
+
title: i || r,
|
|
57
58
|
content: t.content
|
|
58
|
-
}).then((
|
|
59
|
+
}).then((m) => {
|
|
59
60
|
var h;
|
|
60
|
-
|
|
61
|
+
m && ((h = t.callback) == null || h.call(t, e.id, e.data));
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
if (e.item.type === "request") {
|
|
64
65
|
const t = e.item;
|
|
65
|
-
|
|
66
|
-
title: i ||
|
|
66
|
+
o.confirm({
|
|
67
|
+
title: i || r,
|
|
67
68
|
content: t.content
|
|
68
69
|
}).then(() => {
|
|
69
|
-
const
|
|
70
|
+
const m = typeof t.data == "function" ? t.data(e.id, e.data) : t.data, h = (t.method || "post").toLowerCase(), M = t.path || g;
|
|
70
71
|
v.mutate({
|
|
71
72
|
path: M,
|
|
72
73
|
method: h,
|
|
73
|
-
payload:
|
|
74
|
+
payload: m
|
|
74
75
|
});
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
if (e.item.type === "delete") {
|
|
78
79
|
const t = e.item;
|
|
79
|
-
|
|
80
|
-
title: i ||
|
|
80
|
+
o.confirm({
|
|
81
|
+
title: i || r,
|
|
81
82
|
content: t.content
|
|
82
83
|
}).then(() => {
|
|
83
84
|
A.mutate({
|
|
@@ -87,120 +88,121 @@ function U(n) {
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
if (e.item.type === "link") {
|
|
90
|
-
const t = e.item,
|
|
91
|
-
u.push(
|
|
91
|
+
const t = e.item, m = typeof t.path == "function" ? (f = t.path) == null ? void 0 : f.call(t, e.id, e.data) : l.getRoutePath(e.id ? `${t.path || g}${e.data === void 0 ? "" : `/${e.id}`}` : t.path || g);
|
|
92
|
+
u.push(m);
|
|
92
93
|
}
|
|
93
94
|
if (e.item.type === "callback") {
|
|
94
95
|
const t = e.item;
|
|
95
|
-
(
|
|
96
|
+
(k = t.callback) == null || k.call(t, e.id, e.data);
|
|
96
97
|
}
|
|
97
|
-
}, w =
|
|
98
|
+
}, w = W(), P = q();
|
|
98
99
|
return {
|
|
99
|
-
target:
|
|
100
|
-
renderTable: (e) => (i,
|
|
100
|
+
target: x,
|
|
101
|
+
renderTable: (e) => (i, r) => {
|
|
101
102
|
const f = {
|
|
102
103
|
id: i[e.key || (n == null ? void 0 : n.key) || "id"],
|
|
103
104
|
data: i,
|
|
104
|
-
index:
|
|
105
|
-
target:
|
|
105
|
+
index: r,
|
|
106
|
+
target: x,
|
|
106
107
|
text: e.text !== void 0 ? e.text : (n == null ? void 0 : n.text) || !1,
|
|
107
108
|
align: e.align !== void 0 ? e.align : (n == null ? void 0 : n.align) || "left"
|
|
108
109
|
};
|
|
109
110
|
return (e.type || (n == null ? void 0 : n.type)) === "button" ? w.render({
|
|
110
111
|
...f,
|
|
111
112
|
action: e || n
|
|
112
|
-
}) :
|
|
113
|
+
}) : P.render({
|
|
113
114
|
...f,
|
|
114
115
|
action: e || n
|
|
115
116
|
});
|
|
116
117
|
},
|
|
117
118
|
renderAction: (e) => {
|
|
118
119
|
const i = {
|
|
119
|
-
target:
|
|
120
|
+
target: x,
|
|
120
121
|
text: e.text !== void 0 ? e.text : (n == null ? void 0 : n.text) || !1,
|
|
121
122
|
align: e.align !== void 0 ? e.align : (n == null ? void 0 : n.align) || "left"
|
|
122
123
|
};
|
|
123
124
|
return (e.type || (n == null ? void 0 : n.type)) === "button" ? w.render({
|
|
124
125
|
...i,
|
|
125
126
|
action: e || n
|
|
126
|
-
}) :
|
|
127
|
+
}) : P.render({
|
|
127
128
|
...i,
|
|
128
129
|
action: e || n
|
|
129
130
|
});
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function W() {
|
|
134
135
|
const {
|
|
135
136
|
t: n
|
|
136
|
-
} =
|
|
137
|
+
} = b();
|
|
137
138
|
return {
|
|
138
139
|
render: (d) => {
|
|
139
140
|
var c;
|
|
140
|
-
const
|
|
141
|
-
var
|
|
142
|
-
return !
|
|
143
|
-
}).map((
|
|
144
|
-
key:
|
|
145
|
-
type:
|
|
141
|
+
const o = (c = d.action.items) == null ? void 0 : c.filter((a) => {
|
|
142
|
+
var l;
|
|
143
|
+
return !a.show || ((l = a.show) == null ? void 0 : l.call(a, d.data, d.index));
|
|
144
|
+
}).map((a, l) => s(j, {
|
|
145
|
+
key: l,
|
|
146
|
+
type: a.color || (a.type === "delete" ? "error" : "primary"),
|
|
146
147
|
text: d.text,
|
|
148
|
+
secondary: !d.text,
|
|
147
149
|
onClick: () => {
|
|
148
150
|
var u;
|
|
149
151
|
(u = d == null ? void 0 : d.target) == null || u.call(d, {
|
|
150
152
|
id: d.id,
|
|
151
153
|
data: d.data,
|
|
152
|
-
item:
|
|
154
|
+
item: a
|
|
153
155
|
});
|
|
154
156
|
},
|
|
155
|
-
renderIcon:
|
|
156
|
-
class: ["n-icon",
|
|
157
|
+
renderIcon: a.icon ? () => s("div", {
|
|
158
|
+
class: ["n-icon", a.icon]
|
|
157
159
|
}) : void 0
|
|
158
|
-
}, () => n(
|
|
159
|
-
return
|
|
160
|
+
}, () => n(a.label || "", {}, a.label)));
|
|
161
|
+
return s("div", {
|
|
160
162
|
class: ["flex gap-2 flex-wrap items-center", d.align === "right" ? "justify-end" : d.align === "center" ? "justify-center" : "justify-start"]
|
|
161
|
-
},
|
|
163
|
+
}, o);
|
|
162
164
|
}
|
|
163
165
|
};
|
|
164
166
|
}
|
|
165
|
-
function
|
|
167
|
+
function q() {
|
|
166
168
|
const {
|
|
167
169
|
t: n
|
|
168
|
-
} =
|
|
170
|
+
} = b();
|
|
169
171
|
return {
|
|
170
172
|
render: (d) => {
|
|
171
173
|
var c;
|
|
172
|
-
const
|
|
173
|
-
var
|
|
174
|
-
return !
|
|
175
|
-
}).map((
|
|
176
|
-
label: n(
|
|
177
|
-
key:
|
|
178
|
-
icon:
|
|
179
|
-
class: ["n-icon",
|
|
174
|
+
const o = (c = d.action.items) == null ? void 0 : c.filter((a) => {
|
|
175
|
+
var l;
|
|
176
|
+
return !a.show || ((l = a.show) == null ? void 0 : l.call(a, d.data, d.index));
|
|
177
|
+
}).map((a, l) => ({
|
|
178
|
+
label: n(a.label || "", {}, a.label),
|
|
179
|
+
key: l,
|
|
180
|
+
icon: a.icon ? () => s("div", {
|
|
181
|
+
class: ["n-icon", a.icon]
|
|
180
182
|
}) : void 0,
|
|
181
183
|
onSelect: () => {
|
|
182
184
|
var u;
|
|
183
185
|
(u = d == null ? void 0 : d.target) == null || u.call(d, {
|
|
184
186
|
id: d.id,
|
|
185
187
|
data: d.data,
|
|
186
|
-
item:
|
|
188
|
+
item: a
|
|
187
189
|
});
|
|
188
190
|
}
|
|
189
191
|
}));
|
|
190
|
-
return
|
|
192
|
+
return s(N, {
|
|
191
193
|
trigger: "click",
|
|
192
|
-
options:
|
|
193
|
-
onSelect: (
|
|
194
|
+
options: o,
|
|
195
|
+
onSelect: (a, l) => {
|
|
194
196
|
var u;
|
|
195
|
-
(u =
|
|
197
|
+
(u = l == null ? void 0 : l.onSelect) == null || u.call(l);
|
|
196
198
|
}
|
|
197
|
-
}, () => [
|
|
199
|
+
}, () => [s("div", {
|
|
198
200
|
class: ["flex items-center", d.align === "right" ? "justify-end" : d.align === "center" ? "justify-center" : "justify-start"]
|
|
199
|
-
},
|
|
201
|
+
}, s(j, {
|
|
200
202
|
type: "default",
|
|
201
203
|
text: d.text,
|
|
202
204
|
secondary: !d.text,
|
|
203
|
-
renderIcon: () =>
|
|
205
|
+
renderIcon: () => s("div", {
|
|
204
206
|
class: ["n-icon", "i-tabler:dots-vertical"]
|
|
205
207
|
})
|
|
206
208
|
}))]);
|
|
@@ -208,7 +210,7 @@ function L() {
|
|
|
208
210
|
};
|
|
209
211
|
}
|
|
210
212
|
export {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
Q as useAction,
|
|
214
|
+
W as useActionButton,
|
|
215
|
+
q as useActionDropdown
|
|
214
216
|
};
|
package/dist/esm/hooks/dialog.js
CHANGED
|
@@ -29,7 +29,19 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
29
29
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
30
30
|
import "vue-command-palette";
|
|
31
31
|
import "../pages/page404.js";
|
|
32
|
-
|
|
32
|
+
import "@iconify-json/tabler/icons.json";
|
|
33
|
+
import "vue3-ace-editor";
|
|
34
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
35
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
function $() {
|
|
33
45
|
const t = p(m), o = (r) => t(r);
|
|
34
46
|
return {
|
|
35
47
|
confirm: (r) => o({
|
|
@@ -55,5 +67,5 @@ function P() {
|
|
|
55
67
|
};
|
|
56
68
|
}
|
|
57
69
|
export {
|
|
58
|
-
|
|
70
|
+
$ as useDialog
|
|
59
71
|
};
|
package/dist/esm/hooks/drawer.js
CHANGED
|
@@ -29,12 +29,24 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
29
29
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
30
30
|
import "vue-command-palette";
|
|
31
31
|
import "../pages/page404.js";
|
|
32
|
-
|
|
32
|
+
import "@iconify-json/tabler/icons.json";
|
|
33
|
+
import "vue3-ace-editor";
|
|
34
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
35
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
function W() {
|
|
33
45
|
const r = t(m);
|
|
34
46
|
return {
|
|
35
47
|
show: (o) => r(o)
|
|
36
48
|
};
|
|
37
49
|
}
|
|
38
50
|
export {
|
|
39
|
-
|
|
51
|
+
W as useDrawer
|
|
40
52
|
};
|
package/dist/esm/hooks/modal.js
CHANGED
|
@@ -29,12 +29,24 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
29
29
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
30
30
|
import "vue-command-palette";
|
|
31
31
|
import "../pages/page404.js";
|
|
32
|
-
|
|
32
|
+
import "@iconify-json/tabler/icons.json";
|
|
33
|
+
import "vue3-ace-editor";
|
|
34
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
35
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
function W() {
|
|
33
45
|
const o = t(m);
|
|
34
46
|
return {
|
|
35
47
|
show: (r) => o(r)
|
|
36
48
|
};
|
|
37
49
|
}
|
|
38
50
|
export {
|
|
39
|
-
|
|
51
|
+
W as useModal
|
|
40
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode as r, h as
|
|
1
|
+
import { createVNode as r, h as o } from "vue";
|
|
2
2
|
import { get as h } from "lodash-es";
|
|
3
3
|
import { NImage as g } from "naive-ui";
|
|
4
4
|
import "clsx";
|
|
@@ -29,25 +29,37 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
29
29
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
30
30
|
import "vue-command-palette";
|
|
31
31
|
import "../../pages/page404.js";
|
|
32
|
-
|
|
32
|
+
import "@iconify-json/tabler/icons.json";
|
|
33
|
+
import "vue3-ace-editor";
|
|
34
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
35
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
function it() {
|
|
33
45
|
return {
|
|
34
|
-
render: (t) => (
|
|
35
|
-
let i = h(
|
|
46
|
+
render: (t) => (e, d) => {
|
|
47
|
+
let i = h(e, t.key || "") || [];
|
|
36
48
|
return i = Array.isArray(i) ? i : [i], r("div", {
|
|
37
49
|
class: "flex flex-wrap gap-2"
|
|
38
|
-
}, [i.length > 0 ? i.map((
|
|
39
|
-
key:
|
|
40
|
-
src:
|
|
50
|
+
}, [i.length > 0 ? i.map((p, a) => r(g, {
|
|
51
|
+
key: a,
|
|
52
|
+
src: p,
|
|
41
53
|
width: t.imageWidth,
|
|
42
54
|
height: t.imageHeight,
|
|
43
55
|
objectFit: "cover",
|
|
44
56
|
fallbackSrc: "data:image/svg+xml;base64,"
|
|
45
57
|
}, {
|
|
46
|
-
placeholder: () =>
|
|
58
|
+
placeholder: () => o(m, {
|
|
47
59
|
width: t.imageWidth || 40,
|
|
48
60
|
height: t.imageHeight || 40
|
|
49
61
|
}),
|
|
50
|
-
error: () =>
|
|
62
|
+
error: () => o(m, {
|
|
51
63
|
width: t.imageWidth || 40,
|
|
52
64
|
height: t.imageHeight || 40
|
|
53
65
|
})
|
|
@@ -58,5 +70,5 @@ function K() {
|
|
|
58
70
|
};
|
|
59
71
|
}
|
|
60
72
|
export {
|
|
61
|
-
|
|
73
|
+
it as useTableColumnImage
|
|
62
74
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createVNode as
|
|
1
|
+
import { createVNode as p } from "vue";
|
|
2
2
|
import { get as m } from "lodash-es";
|
|
3
|
-
import { DuxMedia as
|
|
3
|
+
import { DuxMedia as n } from "../../components/media/media.js";
|
|
4
4
|
import "naive-ui";
|
|
5
5
|
import "vue-echarts";
|
|
6
6
|
import "@duxweb/dvha-core";
|
|
@@ -29,15 +29,27 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
29
29
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
30
30
|
import "vue-command-palette";
|
|
31
31
|
import "../../pages/page404.js";
|
|
32
|
-
|
|
32
|
+
import "@iconify-json/tabler/icons.json";
|
|
33
|
+
import "vue3-ace-editor";
|
|
34
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
35
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
36
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
37
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
38
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
39
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
40
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
41
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
42
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
43
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
44
|
+
function D() {
|
|
33
45
|
return {
|
|
34
|
-
render: (t) => (i,
|
|
35
|
-
const
|
|
36
|
-
return n
|
|
37
|
-
title:
|
|
38
|
-
desc:
|
|
46
|
+
render: (t) => (i, d) => {
|
|
47
|
+
const o = typeof t.title == "function" ? t.title(i) : m(i, t.title || ""), r = typeof t.desc == "function" ? t.desc(i) : m(i, t.desc || ""), e = typeof t.image == "function" ? t.image(i) : m(i, t.image || "");
|
|
48
|
+
return p(n, {
|
|
49
|
+
title: o,
|
|
50
|
+
desc: r,
|
|
39
51
|
avatar: t.avatar,
|
|
40
|
-
image:
|
|
52
|
+
image: e,
|
|
41
53
|
imageWidth: t.imageWidth,
|
|
42
54
|
imageHeight: t.imageHeight
|
|
43
55
|
}, null);
|
|
@@ -45,5 +57,5 @@ function O() {
|
|
|
45
57
|
};
|
|
46
58
|
}
|
|
47
59
|
export {
|
|
48
|
-
|
|
60
|
+
D as useTableColumnMedia
|
|
49
61
|
};
|
package/dist/esm/hooks/table.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useNaiveTable as
|
|
4
|
-
import { useMessage as
|
|
5
|
-
function
|
|
1
|
+
import { ref as g, createVNode as l, createTextVNode as x } from "vue";
|
|
2
|
+
import { useI18n as d } from "@duxweb/dvha-core";
|
|
3
|
+
import { useNaiveTable as f } from "@duxweb/dvha-naiveui";
|
|
4
|
+
import { useMessage as b, useNotification as k, NProgress as p } from "naive-ui";
|
|
5
|
+
function y(i) {
|
|
6
6
|
const {
|
|
7
7
|
t: o
|
|
8
|
-
} =
|
|
9
|
-
return
|
|
10
|
-
...
|
|
8
|
+
} = d(), a = b(), n = k(), t = g(null);
|
|
9
|
+
return f({
|
|
10
|
+
...i,
|
|
11
11
|
// 传递导出回调
|
|
12
12
|
onExportSuccess: (e) => {
|
|
13
13
|
var s, c;
|
|
14
14
|
(s = t.value) == null || s.destroy(), t.value = null, n.success({
|
|
15
15
|
title: o("hooks.table.exportSuccess"),
|
|
16
16
|
content: o("hooks.table.exportSuccessContent", {
|
|
17
|
-
count: ((c = e == null ? void 0 : e.pages) == null ? void 0 : c.reduce((
|
|
17
|
+
count: ((c = e == null ? void 0 : e.pages) == null ? void 0 : c.reduce((m, r) => {
|
|
18
|
+
var u;
|
|
19
|
+
return m + ((u = r == null ? void 0 : r.data) == null ? void 0 : u.length);
|
|
20
|
+
}, 0)) || 0
|
|
18
21
|
}),
|
|
19
22
|
duration: 6e3
|
|
20
23
|
});
|
|
@@ -25,7 +28,7 @@ function P(p) {
|
|
|
25
28
|
content: () => o("hooks.table.exportProgressContent", {
|
|
26
29
|
page: e.page || 1
|
|
27
30
|
}),
|
|
28
|
-
avatar: () => l(
|
|
31
|
+
avatar: () => l(p, {
|
|
29
32
|
class: "size-10 text-sm",
|
|
30
33
|
type: "circle",
|
|
31
34
|
percentage: 50
|
|
@@ -63,14 +66,14 @@ function P(p) {
|
|
|
63
66
|
processed: (e == null ? void 0 : e.processedItems) || 0,
|
|
64
67
|
total: (e == null ? void 0 : e.totalItems) || 0
|
|
65
68
|
}),
|
|
66
|
-
avatar: () => l(
|
|
69
|
+
avatar: () => l(p, {
|
|
67
70
|
class: "size-10 text-sm",
|
|
68
71
|
type: "circle",
|
|
69
72
|
percentage: (e == null ? void 0 : e.percentage) || 0
|
|
70
73
|
}, {
|
|
71
74
|
default: () => [l("div", {
|
|
72
75
|
class: "text-xs"
|
|
73
|
-
}, [(e == null ? void 0 : e.percentage) || 0,
|
|
76
|
+
}, [(e == null ? void 0 : e.percentage) || 0, x("%")])]
|
|
74
77
|
}),
|
|
75
78
|
onClose: () => {
|
|
76
79
|
t.value = null;
|
|
@@ -86,5 +89,5 @@ function P(p) {
|
|
|
86
89
|
});
|
|
87
90
|
}
|
|
88
91
|
export {
|
|
89
|
-
|
|
92
|
+
y as useTable
|
|
90
93
|
};
|