Skip to content

Commit b3479a5

Browse files
committed
refactor: change deep clone function in CRenderFunction component
1 parent 4233016 commit b3479a5

File tree

3 files changed

+40
-5
lines changed

3 files changed

+40
-5
lines changed

package-lock.json

Lines changed: 36 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@coreui/coreui": "3.0.0-beta.3",
6161
"@coreui/icons": "coreui/coreui-icons#1.0.0-beta.1",
6262
"@coreui/icons-vue": "coreui/coreui-icons-vue#1.0.0-alpha.1",
63-
"clone": "^2.1.2",
63+
"lodash.clonedeep": "^4.5.0",
6464
"perfect-scrollbar": "^1.4.0",
6565
"popper.js": "^1.16.0",
6666
"tooltip.js": "^1.3.3",
@@ -79,9 +79,9 @@
7979
"core-js": "^3.4.1",
8080
"eslint": "^6.6.0",
8181
"eslint-plugin-vue": "^6.0.1",
82-
"lodash": "^4.17.15",
8382
"node-sass": "^4.13.0",
8483
"node-sass-magic-importer": "^5.3.2",
84+
"npm-run-all": "^4.1.5",
8585
"rollup": "^1.27.2",
8686
"rollup-plugin-babel": "^4.3.3",
8787
"rollup-plugin-commonjs": "^10.1.0",

src/components/render-function/CRenderFunction.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import clone from 'clone'
2+
import clonedeep from 'lodash.clonedeep'
33
export default {
44
name: 'CRenderFunction',
55
props: {
@@ -8,7 +8,7 @@ export default {
88
},
99
computed: {
1010
copiedContent () {
11-
return clone(this.contentToRender)
11+
return clonedeep(this.contentToRender)
1212
},
1313
content () {
1414
if (!this.flat) {

0 commit comments

Comments
 (0)