get real version from node_modules
This commit is contained in:
parent
ebc2ac08b7
commit
b7939165d1
|
@ -6,9 +6,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getVersion } from '@/utils/index.js'
|
|
||||||
|
|
||||||
const version = getVersion('element-ui') // element-ui version from package.json
|
const version = require('element-ui/package.json').version // element-ui version from node_modules
|
||||||
const ORIGINAL_THEME = '#409EFF' // default color
|
const ORIGINAL_THEME = '#409EFF' // default color
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -265,9 +265,3 @@ export function deepClone(source) {
|
||||||
}
|
}
|
||||||
return targetObj
|
return targetObj
|
||||||
}
|
}
|
||||||
|
|
||||||
// get dependencies verison from package.json
|
|
||||||
export function getVersion(name) {
|
|
||||||
const p = require('../../package')
|
|
||||||
return p.dependencies[name]
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue