@el-plus/ui 0.0.11 → 0.0.14
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/CHANGELOG.md +18 -0
- package/components.ts +2 -0
- package/index.ts +7 -1
- package/locales.ts +1 -0
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
package/components.ts
CHANGED
|
@@ -8,6 +8,7 @@ import Table from '@el-plus/components/table'
|
|
|
8
8
|
import Title from '@el-plus/components/title'
|
|
9
9
|
import Header from '@el-plus/components/header'
|
|
10
10
|
import DatePickerRange from '@el-plus/components/date-picker-range'
|
|
11
|
+
import CustomColumn from '@el-plus/components/custom-column'
|
|
11
12
|
|
|
12
13
|
export default [
|
|
13
14
|
Buttons,
|
|
@@ -19,4 +20,5 @@ export default [
|
|
|
19
20
|
Title,
|
|
20
21
|
Header,
|
|
21
22
|
DatePickerRange,
|
|
23
|
+
CustomColumn,
|
|
22
24
|
] as Plugin[]
|
package/index.ts
CHANGED
|
@@ -3,10 +3,16 @@ import components from './components'
|
|
|
3
3
|
import { version } from './package.json'
|
|
4
4
|
import * as plugins from './plugins'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const INSTALLED_KEY = Symbol('INSTALLED_KEY')
|
|
7
|
+
const provideGlobalConfig = (config, app) => {}
|
|
8
|
+
export type EpOptions = {}
|
|
9
|
+
export const install = (app: App, options?: EpOptions) => {
|
|
10
|
+
if (app[INSTALLED_KEY]) return // 防止多次use导致重复安装注册,控制台警告
|
|
11
|
+
app[INSTALLED_KEY] = true
|
|
7
12
|
components.forEach((c) => app.use(c))
|
|
8
13
|
Object.values(plugins).forEach((p) => app.use(p))
|
|
9
14
|
if (options) {
|
|
15
|
+
provideGlobalConfig(options, app)
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
|
package/locales.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@el-plus/locale'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@el-plus/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "pro base on element-plus",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -13,17 +13,21 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"axios": "1.13.2",
|
|
15
15
|
"element-plus": "2.13.0",
|
|
16
|
-
"vue": "
|
|
16
|
+
"vue": "3.5.26"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"axios": "1.13.2",
|
|
20
20
|
"element-plus": "2.13.0",
|
|
21
|
-
"vue": "
|
|
21
|
+
"vue": "3.5.26"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@el-plus/components": "^0.0.4"
|
|
24
|
+
"@el-plus/components": "^0.0.4",
|
|
25
|
+
"@el-plus/locale": "^0.0.0"
|
|
25
26
|
},
|
|
26
27
|
"browserslist": [
|
|
28
|
+
"> 1%",
|
|
29
|
+
"last 2 versions",
|
|
30
|
+
"not dead",
|
|
27
31
|
"not ie 11"
|
|
28
32
|
],
|
|
29
33
|
"publishConfig": {
|