This commit is contained in:
dap
2024-08-18 10:05:18 +08:00
73 changed files with 963 additions and 895 deletions

View File

@@ -36,6 +36,6 @@
"dependencies": {
"@iconify/vue": "^4.1.2",
"lucide-vue-next": "^0.428.0",
"vue": "^3.4.37"
"vue": "^3.4.38"
}
}

View File

@@ -4,7 +4,7 @@ import { Icon } from '@iconify/vue';
function createIconifyIcon(icon: string) {
return defineComponent({
name: `SvgIcon-${icon}`,
name: `Icon-${icon}`,
setup(props, { attrs }) {
return () => h(Icon, { icon, ...props, ...attrs });
},

View File

@@ -1,5 +1,4 @@
export * from './create-icon';
export * from './lucide';
export * from './mdi';
export * from '@iconify/vue';

View File

@@ -1,7 +1,9 @@
export {
ArrowDown,
ArrowLeft,
ArrowLeftFromLine as MdiMenuOpen,
ArrowLeftToLine,
ArrowRightFromLine as MdiMenuClose,
ArrowRightLeft,
ArrowRightToLine,
ArrowUp,
@@ -11,10 +13,12 @@ export {
ChevronDown,
ChevronLeft,
ChevronRight,
ChevronsLeft,
ChevronsRight,
CircleHelp,
Copy,
CornerDownLeft,
Disc3 as IconDefault,
Disc as IconDefault,
Ellipsis,
ExternalLink,
Eye,
@@ -36,6 +40,8 @@ export {
Palette,
PanelLeft,
PanelRight,
Pin,
PinOff,
RotateCw,
Search,
SearchX,

View File

@@ -1,29 +0,0 @@
import { createIconifyIcon } from './create-icon';
export const MdiKeyboardEsc = createIconifyIcon('mdi:keyboard-esc');
export const MdiWechat = createIconifyIcon('mdi:wechat');
export const MdiGithub = createIconifyIcon('mdi:github');
export const MdiGoogle = createIconifyIcon('mdi:google');
export const MdiQqchat = createIconifyIcon('mdi:qqchat');
export const MdiPin = createIconifyIcon('mdi:pin');
export const MdiPinOff = createIconifyIcon('mdi:pin-off');
export const MdiMenuClose = createIconifyIcon('mdi:menu-close');
export const MdiMenuOpen = createIconifyIcon('mdi:menu-open');
export const EosSystem = createIconifyIcon('eos-icons:system-group');
// 缓存监控使用
export const RedisIcon = createIconifyIcon('logos:redis');
export const CommandLineIcon = createIconifyIcon(
'flat-color-icons:command-line',
);
export const MemoryIcon = createIconifyIcon('la:memory');
export const GiteeIcon = createIconifyIcon('simple-icons:gitee');

View File

@@ -5,6 +5,7 @@ export default defineBuildConfig({
declaration: true,
entries: [
'src/index',
'src/store',
'src/constants/index',
'src/utils/index',
'src/color/index',

View File

@@ -44,6 +44,11 @@
"types": "./src/cache/index.ts",
"development": "./src/cache/index.ts",
"default": "./dist/cache/index.mjs"
},
"./store": {
"types": "./src/store.ts",
"development": "./src/store.ts",
"default": "./dist/store.mjs"
}
},
"publishConfig": {
@@ -56,7 +61,8 @@
},
"dependencies": {
"@ctrl/tinycolor": "^4.1.0",
"@vue/shared": "^3.4.37",
"@tanstack/vue-store": "^0.5.5",
"@vue/shared": "^3.4.38",
"clsx": "^2.1.1",
"defu": "^6.1.4",
"lodash.clonedeep": "^4.5.0",

View File

@@ -1,4 +1,5 @@
export * from './cache';
export * from './color';
export * from './constants';
export * from './store';
export * from './utils';

View File

@@ -0,0 +1 @@
export * from '@tanstack/vue-store';

View File

@@ -38,7 +38,7 @@
}
},
"dependencies": {
"vue": "^3.4.37",
"vue": "^3.4.38",
"vue-router": "^4.4.3"
}
}