cosey 0.1.1 → 0.1.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/components/audio-card/audio-card.vue.js +1 -1
- package/components/audio-card/style/index.d.ts +1 -1
- package/components/audio-viewer/style/index.d.ts +1 -1
- package/components/close/close.vue.js +1 -1
- package/components/close/style/index.d.ts +1 -1
- package/components/col/style/index.d.ts +1 -1
- package/components/col/style/index.js +1 -1
- package/components/components.d.ts +98 -44
- package/components/config-provider/config-provider.js +1 -3
- package/components/config-provider/config-provider.vue.d.ts +2 -7
- package/components/config-provider/config-provider.vue.js +8 -4
- package/components/config-provider/index.d.ts +1 -1
- package/components/config-provider/override-element-plus.d.ts +3 -2
- package/components/config-provider/override-element-plus.js +2 -2
- package/components/container/container.d.ts +0 -1
- package/components/container/container.vue.js +0 -4
- package/components/container/style/index.d.ts +1 -1
- package/components/context-menu/content.vue.js +1 -1
- package/components/context-menu/context-menu.vue.js +2 -2
- package/components/context-menu/style/index.d.ts +1 -1
- package/components/copy/copy.d.ts +0 -2
- package/components/copy/copy.vue.d.ts +1 -7
- package/components/copy/copy.vue.js +1 -2
- package/components/copy/index.d.ts +3 -19
- package/components/copy/style/index.d.ts +1 -1
- package/components/cssinjs/parser.js +8 -25
- package/components/dnd-sort/dnd-sort-item.vue.js +3 -4
- package/components/dnd-sort/dnd-sort.vue.js +1 -2
- package/components/dnd-sort/index.d.ts +1 -1
- package/components/dnd-sort/style/index.d.ts +1 -1
- package/components/dnd-sort/style/index.js +1 -0
- package/components/editor/components/button-group.vue.d.ts +2 -7
- package/components/editor/components/button.vue.d.ts +2 -7
- package/components/editor/components/color-picker/color-picker.style.d.ts +1 -1
- package/components/editor/components/color-picker/color-picker.vue.d.ts +2 -43
- package/components/editor/components/color-picker/color-picker.vue.js +14 -11
- package/components/editor/components/list/list.style.d.ts +1 -1
- package/components/editor/components/picker/picker.style.d.ts +1 -1
- package/components/editor/components/picker/picker.vue.d.ts +2 -15
- package/components/editor/components/resize/resize.js +4 -4
- package/components/editor/components/resize/resize.style.d.ts +1 -1
- package/components/editor/components/resize/resize.style.js +9 -32
- package/components/editor/components/resize/resize.vue.js +21 -14
- package/components/editor/components/select-button.vue.d.ts +2 -9
- package/components/editor/components/select-button.vue.js +1 -1
- package/components/editor/components/split-button.vue.d.ts +2 -19
- package/components/editor/components/split-button.vue.js +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +1 -1
- package/components/editor/components/table-toolbar/table-toolbar.vue.js +9 -9
- package/components/editor/components/toolbar/formats/align.vue.js +4 -4
- package/components/editor/components/toolbar/formats/blockquote.vue.js +1 -1
- package/components/editor/components/toolbar/formats/bold.vue.js +1 -1
- package/components/editor/components/toolbar/formats/clean.vue.js +1 -1
- package/components/editor/components/toolbar/formats/code-block.vue.js +1 -1
- package/components/editor/components/toolbar/formats/code.vue.js +1 -1
- package/components/editor/components/toolbar/formats/formula.vue.js +4 -3
- package/components/editor/components/toolbar/formats/image.vue.js +1 -1
- package/components/editor/components/toolbar/formats/indent.vue.js +2 -2
- package/components/editor/components/toolbar/formats/italic.vue.js +1 -1
- package/components/editor/components/toolbar/formats/link.vue.js +15 -13
- package/components/editor/components/toolbar/formats/list.vue.js +3 -3
- package/components/editor/components/toolbar/formats/script.vue.js +2 -2
- package/components/editor/components/toolbar/formats/size-delta.vue.js +2 -2
- package/components/editor/components/toolbar/formats/strike.vue.js +1 -1
- package/components/editor/components/toolbar/formats/table.style.d.ts +1 -1
- package/components/editor/components/toolbar/formats/table.vue.js +1 -1
- package/components/editor/components/toolbar/formats/underline.vue.js +1 -1
- package/components/editor/components/toolbar/formats/video.vue.js +1 -1
- package/components/editor/components/toolbar/toolbar.d.ts +1 -2
- package/components/editor/components/toolbar/toolbar.js +17 -21
- package/components/editor/components/toolbar/toolbarContext.js +1 -3
- package/components/editor/editor.d.ts +0 -2
- package/components/editor/editor.vue.js +1 -11
- package/components/editor/formats/image.d.ts +13 -0
- package/components/editor/formats/image.js +46 -0
- package/components/editor/formats/indent.d.ts +2 -0
- package/components/editor/formats/indent.js +12 -7
- package/components/editor/formats/link.js +1 -5
- package/components/editor/formats/list.d.ts +0 -4
- package/components/editor/formats/list.js +10 -5
- package/components/editor/formats/video.js +6 -9
- package/components/editor/modules/custom-list.js +1 -6
- package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +1 -1
- package/components/editor/modules/image-uploader/formats/image-loading.style.js +4 -4
- package/components/editor/modules/image-uploader/image-uploader.js +1 -3
- package/components/editor/quill.js +7 -4
- package/components/editor/quillContext.js +1 -3
- package/components/editor/style/hljs.d.ts +1 -1
- package/components/editor/style/index.d.ts +1 -1
- package/components/editor/style/index.js +1 -5
- package/components/field/components/checkbox-group/panel.vue.d.ts +2 -20
- package/components/field/components/checkbox-group/panel.vue.js +2 -2
- package/components/field/components/tree-select/tree-select.d.ts +1 -2
- package/components/field/components/tree-select/tree-select.js +69 -0
- package/components/file-card/file-card.vue.js +1 -1
- package/components/file-card/style/index.d.ts +1 -1
- package/components/form/form-item.vue.js +1 -1
- package/components/form/style/index.d.ts +1 -1
- package/components/form/useFormItemWidth.js +1 -1
- package/components/form/useFormTemplate.js +2 -10
- package/components/form-dialog/form-dialog.vue.d.ts +0 -1
- package/components/form-dialog/form-dialog.vue.js +1 -1
- package/components/form-dialog/index.d.ts +0 -3
- package/components/form-group/form-group.vue.js +1 -1
- package/components/form-list/form-list.js +1 -6
- package/components/form-list/form-list.vue.js +2 -2
- package/components/form-list/style/index.d.ts +1 -1
- package/components/form-query/form-query.vue.js +5 -5
- package/components/form-query/style/index.d.ts +1 -1
- package/components/highlight/highlight.d.ts +1 -1
- package/components/highlight/highlight.vue.js +11 -4
- package/components/highlight/style/index.d.ts +1 -1
- package/components/highlight/style/index.js +15 -5
- package/components/horizontal-tree/horizontal-tree.vue.js +16 -12
- package/components/horizontal-tree/style/index.d.ts +1 -1
- package/components/icon/style/index.d.ts +1 -1
- package/components/iconify-icon/iconify-icon.d.ts +3 -0
- package/components/iconify-icon/iconify-icon.js +9 -0
- package/components/iconify-icon/iconify-icon.vue.js +2 -5
- package/components/iconify-icon/index.js +1 -0
- package/components/image-card/style/index.d.ts +1 -1
- package/components/index.js +4 -2
- package/components/long-text/style/index.d.ts +1 -1
- package/components/mask/style/index.d.ts +1 -1
- package/components/media-card-group/media-card-group.vue.js +4 -3
- package/components/media-card-group/style/index.d.ts +1 -1
- package/components/panel/style/index.d.ts +1 -1
- package/components/row/style/index.d.ts +1 -1
- package/components/scroll-view/scroll-view.vue.js +1 -2
- package/components/scroll-view/style/index.d.ts +1 -1
- package/components/snug-menu/snug-menu.vue.js +1 -2
- package/components/snug-menu/style/index.d.ts +1 -1
- package/components/style/animation.d.ts +5 -0
- package/components/style/animation.js +33 -0
- package/components/style/index.d.ts +1 -1
- package/components/style/index.js +2 -2
- package/components/style/mixins.d.ts +2 -0
- package/components/style/mixins.js +10 -1
- package/components/table/index.d.ts +0 -8
- package/components/table/style/index.d.ts +1 -1
- package/components/table/style/index.js +2 -2
- package/components/table/table-column/renderer.js +22 -18
- package/components/table/table-column/style/index.d.ts +1 -1
- package/components/table/table-column/table-column.vue.d.ts +3 -3
- package/components/table/table-column-editor/item.vue.js +5 -8
- package/components/table/table-column-editor/style/index.d.ts +1 -1
- package/components/table/table-column-editor/style/index.js +1 -0
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +2 -246
- package/components/table/table-column-editor/table-column-editor.vue.js +9 -9
- package/components/table/table-export/style/index.d.ts +1 -1
- package/components/table/table-export/table-export.vue.js +2 -2
- package/components/table/table-query/table-query.d.ts +0 -4
- package/components/table/table-query/table-query.js +0 -4
- package/components/table/table-query/table-query.vue.d.ts +0 -9
- package/components/table/table-query/table-query.vue.js +14 -12
- package/components/table/table.js +1 -3
- package/components/table/table.vue.js +22 -24
- package/components/table/useTable.js +1 -4
- package/components/table/utils.js +1 -3
- package/components/table-action/item.vue.js +5 -5
- package/components/table-action/style/index.d.ts +1 -1
- package/components/table-action/table-action.vue.js +4 -3
- package/components/theme/StyleContext.js +1 -3
- package/components/theme/createCacheToken.js +1 -4
- package/components/theme/getGlobalStyleHook.d.ts +2 -3
- package/components/theme/getGlobalStyleHook.js +5 -13
- package/components/theme/getOverrideStyleHook.d.ts +8 -0
- package/components/theme/getOverrideStyleHook.js +39 -0
- package/components/theme/getSimpleStyleHook.d.ts +2 -2
- package/components/theme/getSimpleStyleHook.js +4 -11
- package/components/theme/getStyleHook.d.ts +2 -2
- package/components/theme/getStyleHook.js +4 -11
- package/components/theme/index.d.ts +2 -1
- package/components/theme/index.js +1 -0
- package/components/theme/interface/index.d.ts +1 -1
- package/components/theme/theme-context.d.ts +11 -2
- package/components/theme/theme-context.js +36 -6
- package/components/theme/themes/shared/genColorMapToken.js +1 -4
- package/components/theme/useStyleRegister.d.ts +1 -7
- package/components/theme/useStyleRegister.js +3 -6
- package/components/theme/util/alias.js +4 -16
- package/components/theme/util/getAlphaColor.js +1 -6
- package/components/theme/util/normalizeStyle.js +1 -1
- package/components/theme/util/statistic.js +4 -1
- package/components/theme/util/useToken.d.ts +4 -4
- package/components/theme/util/useToken.js +7 -10
- package/components/toggle/toggle.vue.js +1 -1
- package/components/transition/style/index.d.ts +1 -1
- package/components/transition/transition.vue.js +1 -2
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/style/index.d.ts +1 -1
- package/components/transition-group/transition-group.vue.d.ts +1 -1
- package/components/upload/index.d.ts +0 -3
- package/components/upload/style/index.d.ts +1 -1
- package/components/upload/upload-item.vue.js +8 -8
- package/components/upload/upload.d.ts +0 -2
- package/components/upload/upload.js +0 -1
- package/components/upload/upload.vue.d.ts +0 -1
- package/components/upload/upload.vue.js +1 -5
- package/components/video-card/style/index.d.ts +1 -1
- package/components/video-card/video-card.vue.js +1 -1
- package/components/video-viewer/style/index.d.ts +1 -1
- package/config/http.d.ts +1 -1
- package/config/http.js +1 -1
- package/config/index.d.ts +23 -22
- package/config/index.js +2 -7
- package/config/layout.d.ts +36 -0
- package/config/layout.js +37 -1
- package/config/nprogress.style.d.ts +2 -0
- package/config/nprogress.style.js +51 -0
- package/config/root-config-provider.vue.d.ts +2 -20
- package/config/root-config-provider.vue.js +2 -0
- package/hooks/useColorScheme.js +5 -9
- package/hooks/useEcharts.js +2 -4
- package/hooks/useFetch.d.ts +1 -1
- package/hooks/useFetch.js +1 -7
- package/hooks/useFullPage.js +7 -9
- package/hooks/useLocale.js +1 -3
- package/hooks/useLockscreenObserver.js +1 -1
- package/hooks/usePersist.js +1 -3
- package/hooks/useTreeCheck.js +13 -26
- package/hooks/useUpsert.d.ts +15 -16
- package/hooks/useUpsert.js +3 -3
- package/index.d.ts +1 -0
- package/index.js +5 -4
- package/layout/index.js +2 -2
- package/layout/layout-aside/layout-aside.vue.js +2 -1
- package/layout/layout-aside/style/index.d.ts +1 -1
- package/layout/layout-auth/style/index.d.ts +1 -1
- package/layout/layout-base/layout-base.vue.js +9 -9
- package/layout/layout-base/style/index.d.ts +1 -1
- package/layout/layout-brand/style/index.d.ts +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +8 -8
- package/layout/layout-change-password/style/index.d.ts +1 -1
- package/layout/layout-change-password/style/index.js +1 -1
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +8 -14
- package/layout/layout-color-scheme/style/index.d.ts +2 -5
- package/layout/layout-color-scheme/style/index.js +26 -44
- package/layout/layout-content/layout-content.vue.d.ts +2 -13
- package/layout/layout-content/style/index.d.ts +1 -1
- package/layout/layout-exception/style/index.d.ts +1 -1
- package/layout/layout-forbidden/layout-forbidden.vue.js +2 -2
- package/layout/layout-header/layout-header.vue.d.ts +2 -14
- package/layout/layout-header/style/index.d.ts +1 -1
- package/layout/layout-iframe/style/index.d.ts +1 -1
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +2 -2
- package/layout/layout-login/layout-login.vue.js +5 -5
- package/layout/layout-login/style/index.d.ts +1 -1
- package/layout/layout-login/style/index.js +1 -1
- package/layout/layout-main/style/index.d.ts +1 -1
- package/layout/layout-mask/style/index.d.ts +1 -1
- package/layout/layout-mask/style/index.js +1 -1
- package/layout/layout-menu/layout-menu.vue.js +5 -0
- package/layout/layout-menu/style/index.d.ts +1 -1
- package/layout/layout-not-found/layout-not-found.vue.js +2 -2
- package/layout/layout-search/layout-search.vue.js +37 -34
- package/layout/layout-search/style/index.d.ts +1 -1
- package/layout/layout-sidebar/layout-sidebar.vue.d.ts +2 -15
- package/layout/layout-sidebar/style/index.d.ts +1 -1
- package/layout/layout-sidebar/style/index.js +1 -1
- package/layout/layout-snug-aside/style/index.d.ts +1 -1
- package/layout/layout-switch-effect/layout-switch-effect.vue.d.ts +2 -7
- package/layout/layout-switch-effect/style/index.d.ts +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +8 -3
- package/layout/layout-tabbar/reload.vue.js +1 -1
- package/layout/layout-tabbar/style/index.d.ts +1 -1
- package/layout/layout-tabbar/style/index.js +6 -2
- package/layout/layout-toggle/layout-toggle.vue.js +1 -1
- package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +4 -3
- package/layout/layout-topbar/layout-topbar.vue.d.ts +2 -1217
- package/layout/layout-topbar/style/index.d.ts +1 -1
- package/layout/layout-user-menu/index.d.ts +1 -0
- package/layout/layout-user-menu/index.js +1 -0
- package/layout/{layout-user/layout-user.vue.js → layout-user-menu/layout-user-menu.vue.js} +18 -13
- package/layout/{layout-user → layout-user-menu}/style/index.d.ts +1 -1
- package/layout/{layout-user → layout-user-menu}/style/index.js +9 -5
- package/layout/layout.d.ts +1 -1
- package/layout/layout.js +1 -1
- package/layout/merged/index.d.ts +1 -1
- package/layout/merged/index.js +1 -1
- package/layout/merged/{layout-user.js → layout-user-menu.js} +1 -1
- package/layout/utils.js +1 -4
- package/package.json +16 -6
- package/request/useRequest.js +1 -1
- package/router/guard/auth.js +2 -5
- package/router/guard/index.js +2 -2
- package/router/guard/pageTitle.d.ts +2 -0
- package/router/guard/pageTitle.js +11 -0
- package/router/guard/progress.js +11 -1
- package/router/index.d.ts +22 -0
- package/router/index.js +1 -1
- package/router/routes/static/auth.js +5 -6
- package/router/routes/static/exception.js +3 -3
- package/router/utils.js +11 -3
- package/store/layout.d.ts +4 -10
- package/store/layout.js +19 -31
- package/store/user.d.ts +4 -4
- package/store/user.js +2 -1
- package/utils/array.js +3 -0
- package/utils/dynamicCSS.d.ts +3 -2
- package/utils/dynamicCSS.js +12 -1
- package/utils/excel/index.js +1 -3
- package/utils/excel/utils.js +1 -5
- package/utils/file.js +1 -3
- package/utils/index.js +1 -1
- package/utils/object.js +1 -3
- package/utils/tree.js +2 -11
- package/utils/vue.js +1 -1
- package/components/global.d.js +0 -1
- package/components/style/motion/index.d.ts +0 -1
- package/components/style/motion/index.js +0 -1
- package/components/style/motion/loading.d.ts +0 -3
- package/components/style/motion/loading.js +0 -23
- package/layout/layout-user/index.d.ts +0 -1
- package/layout/layout-user/index.js +0 -1
- package/router/guard/popup.d.ts +0 -2
- package/router/guard/popup.js +0 -6
- package/types/vue-router.d.js +0 -1
- package/types/vue.d.js +0 -1
- /package/layout/{layout-user/layout-user.vue.d.ts → layout-user-menu/layout-user-menu.vue.d.ts} +0 -0
- /package/layout/merged/{layout-user.d.ts → layout-user-menu.d.ts} +0 -0
package/store/user.js
CHANGED
|
@@ -8,7 +8,7 @@ import { NOT_FOUND_ROUTE_NAME, NotFoundRoute } from '../router/not-found.js';
|
|
|
8
8
|
import { usePersist } from '../hooks/usePersist.js';
|
|
9
9
|
import { warningOnce } from '../utils/warning.js';
|
|
10
10
|
|
|
11
|
-
const useUserStore = defineStore("user", () => {
|
|
11
|
+
const useUserStore = defineStore("cosey-user", () => {
|
|
12
12
|
const route = useRoute();
|
|
13
13
|
const router = useRouter();
|
|
14
14
|
const persist = usePersist();
|
|
@@ -46,6 +46,7 @@ const useUserStore = defineStore("user", () => {
|
|
|
46
46
|
nickname,
|
|
47
47
|
avatar
|
|
48
48
|
};
|
|
49
|
+
return userInfo.value;
|
|
49
50
|
});
|
|
50
51
|
};
|
|
51
52
|
const changePassword = async (data) => {
|
package/utils/array.js
CHANGED
package/utils/dynamicCSS.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function insertCSS(styleStr: string, styleId?: string): HTMLStyleElement;
|
|
2
|
-
export declare function findCSSNode(styleId: string):
|
|
3
|
-
export declare function updateCSS(styleStr: string, styleId: string):
|
|
2
|
+
export declare function findCSSNode(styleId: string): HTMLStyleElement | null;
|
|
3
|
+
export declare function updateCSS(styleStr: string, styleId: string): HTMLStyleElement | undefined;
|
|
4
|
+
export declare function updateCSSByStyle(style: HTMLStyleElement | undefined | null, styleStr: string, styleId: string): HTMLStyleElement | undefined;
|
|
4
5
|
export declare function removeCSS(styleId: string): void;
|
package/utils/dynamicCSS.js
CHANGED
|
@@ -23,6 +23,17 @@ function updateCSS(styleStr, styleId) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
function updateCSSByStyle(style, styleStr, styleId) {
|
|
27
|
+
if (isClient()) {
|
|
28
|
+
if (style) {
|
|
29
|
+
style.innerHTML = styleStr;
|
|
30
|
+
style.dataset.id = styleId;
|
|
31
|
+
return style;
|
|
32
|
+
} else {
|
|
33
|
+
return insertCSS(styleStr, styleId);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
function removeCSS(styleId) {
|
|
27
38
|
const style = findCSSNode(styleId);
|
|
28
39
|
if (style) {
|
|
@@ -30,4 +41,4 @@ function removeCSS(styleId) {
|
|
|
30
41
|
}
|
|
31
42
|
}
|
|
32
43
|
|
|
33
|
-
export { findCSSNode, insertCSS, removeCSS, updateCSS };
|
|
44
|
+
export { findCSSNode, insertCSS, removeCSS, updateCSS, updateCSSByStyle };
|
package/utils/excel/index.js
CHANGED
|
@@ -59,9 +59,7 @@ async function writeFile(wb, bookType) {
|
|
|
59
59
|
}
|
|
60
60
|
function flatColumns(columns) {
|
|
61
61
|
return columns.reduce((result, column) => {
|
|
62
|
-
return result.concat(
|
|
63
|
-
Array.isArray(column.columns) ? flatColumns(column.columns) : column
|
|
64
|
-
);
|
|
62
|
+
return result.concat(Array.isArray(column.columns) ? flatColumns(column.columns) : column);
|
|
65
63
|
}, []);
|
|
66
64
|
}
|
|
67
65
|
function columns2aoa(columns) {
|
package/utils/excel/utils.js
CHANGED
|
@@ -4,11 +4,7 @@ function aoa2sheet(sheetName, aoa) {
|
|
|
4
4
|
const sheet = new WorkSheet(sheetName);
|
|
5
5
|
aoa.forEach((row, rowIndex) => {
|
|
6
6
|
row.forEach((value, colIndex) => {
|
|
7
|
-
sheet.setCell(
|
|
8
|
-
colIndex,
|
|
9
|
-
rowIndex,
|
|
10
|
-
value instanceof Cell ? value : new Cell(value)
|
|
11
|
-
);
|
|
7
|
+
sheet.setCell(colIndex, rowIndex, value instanceof Cell ? value : new Cell(value));
|
|
12
8
|
});
|
|
13
9
|
});
|
|
14
10
|
return sheet;
|
package/utils/file.js
CHANGED
|
@@ -43,9 +43,7 @@ function getFileType(urlOrFile) {
|
|
|
43
43
|
if (/^(?:avi|wmv|mpg|mpeg|mov|rm|ram|swf|flv|mp4|webm|ogm)$/i.test(suffix)) {
|
|
44
44
|
return "video";
|
|
45
45
|
}
|
|
46
|
-
if (/^(?:mp3|wav|mid|aif|aiff|wma|ra|vqf|m4a|aac|midi|ogg|au|voc)$/i.test(
|
|
47
|
-
suffix
|
|
48
|
-
)) {
|
|
46
|
+
if (/^(?:mp3|wav|mid|aif|aiff|wma|ra|vqf|m4a|aac|midi|ogg|au|voc)$/i.test(suffix)) {
|
|
49
47
|
return "audio";
|
|
50
48
|
}
|
|
51
49
|
return suffix;
|
package/utils/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { getBasename, getExtname } from './path.js';
|
|
|
13
13
|
export { uniqid, uuid } from './string.js';
|
|
14
14
|
export { Scope, addNullablePlaceholder, createMergedExpose, defineTemplate } from './vue.js';
|
|
15
15
|
export { note, noteOnce, resetWarned, warning, warningOnce } from './warning.js';
|
|
16
|
-
export { findCSSNode, insertCSS, removeCSS, updateCSS } from './dynamicCSS.js';
|
|
16
|
+
export { findCSSNode, insertCSS, removeCSS, updateCSS, updateCSSByStyle } from './dynamicCSS.js';
|
|
17
17
|
export { sleep } from './sleep.js';
|
|
18
18
|
export { arrayToTree, extraTreeToTable, mapTree, mapTreeExtra, walkAncestor, walkTree, walkTreeNode } from './tree.js';
|
|
19
19
|
export { warningConfirm } from './message-box.js';
|
package/utils/object.js
CHANGED
|
@@ -2,9 +2,7 @@ import { omit } from 'lodash-es';
|
|
|
2
2
|
import { isPlainObject } from './is.js';
|
|
3
3
|
|
|
4
4
|
function omitUndefined(object) {
|
|
5
|
-
return Object.fromEntries(
|
|
6
|
-
Object.entries(object).filter(([, value]) => value !== void 0)
|
|
7
|
-
);
|
|
5
|
+
return Object.fromEntries(Object.entries(object).filter(([, value]) => value !== void 0));
|
|
8
6
|
}
|
|
9
7
|
function initObject(keys, initValue) {
|
|
10
8
|
return keys.reduce(
|
package/utils/tree.js
CHANGED
|
@@ -46,11 +46,7 @@ function walkAncestor(node, parentKey, callback) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
function mapTree(tree, callback, options = {}) {
|
|
49
|
-
const {
|
|
50
|
-
childrenKey = "children",
|
|
51
|
-
newChildrenKey = childrenKey,
|
|
52
|
-
parent
|
|
53
|
-
} = options;
|
|
49
|
+
const { childrenKey = "children", newChildrenKey = childrenKey, parent } = options;
|
|
54
50
|
return tree.map((node, i) => {
|
|
55
51
|
const rNode = callback(node, i, parent);
|
|
56
52
|
const children = node[childrenKey];
|
|
@@ -65,12 +61,7 @@ function mapTree(tree, callback, options = {}) {
|
|
|
65
61
|
});
|
|
66
62
|
}
|
|
67
63
|
function mapTreeExtra(tree, callback, options, _internalLevel = 1) {
|
|
68
|
-
const {
|
|
69
|
-
mergeLast,
|
|
70
|
-
customNode,
|
|
71
|
-
childrenKey = "children",
|
|
72
|
-
parent
|
|
73
|
-
} = options || {};
|
|
64
|
+
const { mergeLast, customNode, childrenKey = "children", parent } = options || {};
|
|
74
65
|
let prevNode;
|
|
75
66
|
return tree.map((node, index) => {
|
|
76
67
|
const mappedNode = callback(node, index, parent);
|
package/utils/vue.js
CHANGED
|
@@ -20,7 +20,7 @@ function createMergedExpose(keys, ...exposeList) {
|
|
|
20
20
|
for (const expose of exposeList) {
|
|
21
21
|
const obj = typeof expose === "function" ? expose() : expose;
|
|
22
22
|
if (obj && key in obj) {
|
|
23
|
-
|
|
23
|
+
const value = obj[key];
|
|
24
24
|
if (typeof value === "function") {
|
|
25
25
|
return obj[key](...args);
|
|
26
26
|
}
|
package/components/global.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './loading';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { loadingDash, loadingRotate } from './loading.js';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import stdin_default from '../../cssinjs/Keyframes.js';
|
|
2
|
-
|
|
3
|
-
const loadingRotate = new stdin_default("loading-rotate", {
|
|
4
|
-
"100%": {
|
|
5
|
-
transform: "rotate(1turn)"
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
const loadingDash = new stdin_default("loading-dash", {
|
|
9
|
-
"0%": {
|
|
10
|
-
strokeDasharray: "1,200",
|
|
11
|
-
strokeDashoffset: 0
|
|
12
|
-
},
|
|
13
|
-
"50%": {
|
|
14
|
-
strokeDasharray: "90,150",
|
|
15
|
-
strokeDashoffset: "-40px"
|
|
16
|
-
},
|
|
17
|
-
"100%": {
|
|
18
|
-
strokeDasharray: "90,150",
|
|
19
|
-
strokeDashoffset: "-120px"
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export { loadingDash, loadingRotate };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './layout-user.vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './layout-user.vue.js';
|
package/router/guard/popup.d.ts
DELETED
package/router/guard/popup.js
DELETED
package/types/vue-router.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/types/vue.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
/package/layout/{layout-user/layout-user.vue.d.ts → layout-user-menu/layout-user-menu.vue.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|