el-plus-crud 0.0.2 → 0.0.3

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 CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.3](https://github.com/KDJack/el-plus-crud/compare/v0.0.2...v0.0.3) (2023-07-10)
6
+
5
7
  ### 0.0.2 (2023-07-10)
package/lib/index.ts CHANGED
@@ -5,11 +5,12 @@ import { components } from './components/el-plus-form/components/index'
5
5
  import ElPlusTable from './components/el-plus-table/ElPlusTable.vue'
6
6
 
7
7
  export default {
8
- install: (app: App, format?: { [key: string]: Function }) => {
8
+ install: (app: App, config: { [key: string]: Function }, format?: { [key: string]: Function }, globalData?: { [key: string]: Function }) => {
9
+ console.log('initConfig: ', config)
10
+
9
11
  // 这里注入format对象
10
12
  app.provide('format', format)
11
- app.provide('globalData', { aaa: [] })
12
- // app.config.globalProperties.$epfFormat = { ...format }
13
+ app.provide('globalData', globalData)
13
14
 
14
15
  // 循环注册表单组件
15
16
  components.unshift(ElPlusForm)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "el-plus-crud",
3
3
  "description": "采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件",
4
4
  "author": "K.D.Jack",
5
- "version": "0.0.2",
5
+ "version": "0.0.3",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "dist/el-plus-crud.umd.cjs",