eztech-core-components 1.0.0 → 1.0.2
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/comps/CoreFormSub.vue +1 -1
- package/comps/CoreFormTable.vue +1 -1
- package/comps/CoreFormTableInline.vue +1 -1
- package/comps/CoreFormTableList.vue +1 -1
- package/comps/CoreSelectOrgEmp.vue +1 -1
- package/comps/CoreSelectTable.vue +1 -1
- package/index.js +20 -7
- package/package.json +1 -1
- package/utils/default-nuxt-config.js +3 -1
package/comps/CoreFormSub.vue
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</template>
|
|
36
36
|
<script>
|
|
37
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
37
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
38
38
|
export default {
|
|
39
39
|
name: 'CoreFormSub',
|
|
40
40
|
props: {
|
package/comps/CoreFormTable.vue
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
</template>
|
|
89
89
|
<script>
|
|
90
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
90
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
91
91
|
export default {
|
|
92
92
|
name: 'CoreFormTable',
|
|
93
93
|
props: {
|
|
@@ -74,7 +74,7 @@ import { isEqual, get, has, cloneDeep } from 'lodash'
|
|
|
74
74
|
import Schema from 'async-validator'
|
|
75
75
|
import { getTriggerFields } from '../utils/data-helper'
|
|
76
76
|
import { getButtons } from './../utils/role-helper'
|
|
77
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
77
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
78
78
|
export default {
|
|
79
79
|
name: 'CoreFormTableInline',
|
|
80
80
|
props: {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
import { isEqual, get, has, cloneDeep } from 'lodash'
|
|
76
76
|
import Schema from 'async-validator'
|
|
77
77
|
import { getTriggerFields } from '../utils/data-helper'
|
|
78
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
78
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
79
79
|
export default {
|
|
80
80
|
name: 'CoreFormTableList',
|
|
81
81
|
props: {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
import { mapGetters } from 'vuex'
|
|
103
103
|
import { get } from 'lodash'
|
|
104
104
|
import { getFormBoolean } from '../utils/data-helper'
|
|
105
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
105
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
106
106
|
export default {
|
|
107
107
|
name: 'CoreSelectOrgEmp',
|
|
108
108
|
props: {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
import { mapGetters } from 'vuex'
|
|
102
102
|
import { get, isEqual } from 'lodash'
|
|
103
103
|
import { getTriggerFields } from '../utils/data-helper'
|
|
104
|
-
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '
|
|
104
|
+
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
105
105
|
export default {
|
|
106
106
|
name: 'CoreSelectTable',
|
|
107
107
|
props: {
|
package/index.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export default {
|
|
2
|
+
install(Vue) {
|
|
3
|
+
const requireComponent = require.context(
|
|
4
|
+
'./comps',
|
|
5
|
+
true,
|
|
6
|
+
/\.vue$/
|
|
7
|
+
)
|
|
8
|
+
requireComponent.keys().forEach(fileName => {
|
|
9
|
+
const componentConfig = requireComponent(fileName)
|
|
10
|
+
const componentName = fileName
|
|
11
|
+
.split('/')
|
|
12
|
+
.pop()
|
|
13
|
+
.replace(/\.\w+$/, '')
|
|
14
|
+
Vue.component(
|
|
15
|
+
componentName,
|
|
16
|
+
componentConfig.default || componentConfig
|
|
17
|
+
)
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// const { URL } = require('url')
|
|
2
|
+
// import path from 'path'
|
|
2
3
|
export const getDefaultConfig = (options) => {
|
|
3
4
|
const buildDir = process.env.BUILD_DIR || '.nuxt'
|
|
4
5
|
const routerBase = process.env.ROUTER_BASE || ''
|
|
@@ -91,6 +92,7 @@ export const getDefaultConfig = (options) => {
|
|
|
91
92
|
// config.externals.jquery = 'jQuery'
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
// config.resolve.alias['eztech-core-components'] = path.resolve(__dirname, 'node_modules/eztech-core-components')
|
|
94
96
|
},
|
|
95
97
|
babel: {
|
|
96
98
|
plugins: [
|
|
@@ -101,7 +103,7 @@ export const getDefaultConfig = (options) => {
|
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
if (!options?.ignoreElementUi) {
|
|
104
|
-
build.transpile = [/^element-ui/, '
|
|
106
|
+
build.transpile = [/^element-ui/, 'eztech-core-components']
|
|
105
107
|
}
|
|
106
108
|
// ,
|
|
107
109
|
// vue: {
|