223 changed files with 324 additions and 322 deletions
@ -0,0 +1,5 @@ |
|||
# base |
|||
|
|||
基础共享包,请勿引入 workspace 依赖 |
|||
|
|||
- |
|||
@ -0,0 +1,13 @@ |
|||
import { defineBuildConfig } from 'unbuild'; |
|||
|
|||
export default defineBuildConfig({ |
|||
clean: true, |
|||
declaration: true, |
|||
entries: [ |
|||
'src/index', |
|||
'src/constants/index', |
|||
'src/utils/index', |
|||
'src/colorful/index', |
|||
'src/cache/index', |
|||
], |
|||
}); |
|||
@ -0,0 +1,4 @@ |
|||
export * from './cache'; |
|||
export * from './colorful'; |
|||
export * from './constants'; |
|||
export * from './utils'; |
|||
@ -1,6 +1,4 @@ |
|||
export * from './cache'; |
|||
export * from './cn'; |
|||
export * from './colorful'; |
|||
export * from './diff'; |
|||
export * from './dom'; |
|||
export * from './inference'; |
|||
@ -1,7 +1,9 @@ |
|||
import { computed, onMounted, ref, watch } from 'vue'; |
|||
|
|||
import { CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT } from '@vben-core/constants'; |
|||
import { getElementVisibleHeight } from '@vben-core/toolkit'; |
|||
import { |
|||
CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT, |
|||
getElementVisibleHeight, |
|||
} from '@vben-core/shared'; |
|||
|
|||
import { useCssVar, useDebounceFn, useWindowSize } from '@vueuse/core'; |
|||
/** |
|||
@ -1,4 +1,4 @@ |
|||
import { DEFAULT_NAMESPACE } from '@vben-core/constants'; |
|||
import { DEFAULT_NAMESPACE } from '@vben-core/shared'; |
|||
|
|||
/** |
|||
* @see copy https://github.com/element-plus/element-plus/blob/dev/packages/hooks/use-namespace/index.ts
|
|||
@ -1,6 +0,0 @@ |
|||
# shared |
|||
|
|||
全局共享包,请勿引入 workspace 依赖 |
|||
|
|||
- typings 共享类型 |
|||
- toolkit 共享工具类 |
|||
@ -1,37 +0,0 @@ |
|||
{ |
|||
"name": "@vben-core/constants", |
|||
"version": "5.0.0", |
|||
"homepage": "https://github.com/vbenjs/vue-vben-admin", |
|||
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues", |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "git+https://github.com/vbenjs/vue-vben-admin.git", |
|||
"directory": "packages/@vben-core/shared/constants" |
|||
}, |
|||
"license": "MIT", |
|||
"type": "module", |
|||
"scripts": { |
|||
"build": "pnpm unbuild" |
|||
}, |
|||
"files": [ |
|||
"dist" |
|||
], |
|||
"sideEffects": false, |
|||
"main": "./dist/index.mjs", |
|||
"module": "./dist/index.mjs", |
|||
"exports": { |
|||
".": { |
|||
"types": "./src/index.ts", |
|||
"development": "./src/index.ts", |
|||
"default": "./dist/index.mjs" |
|||
} |
|||
}, |
|||
"publishConfig": { |
|||
"exports": { |
|||
".": { |
|||
"types": "./dist/index.d.ts", |
|||
"default": "./dist/index.mjs" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +0,0 @@ |
|||
import { defineBuildConfig } from 'unbuild'; |
|||
|
|||
export default defineBuildConfig({ |
|||
clean: true, |
|||
declaration: true, |
|||
entries: ['src/index'], |
|||
}); |
|||
@ -1,7 +0,0 @@ |
|||
import { defineBuildConfig } from 'unbuild'; |
|||
|
|||
export default defineBuildConfig({ |
|||
clean: true, |
|||
declaration: true, |
|||
entries: ['src/index'], |
|||
}); |
|||
@ -1,6 +0,0 @@ |
|||
{ |
|||
"$schema": "https://json.schemastore.org/tsconfig", |
|||
"extends": "@vben/tsconfig/library.json", |
|||
"include": ["src"], |
|||
"exclude": ["node_modules"] |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue