Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07262c78
authored
Dec 03, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
ad8b809d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
126 additions
and
9 deletions
package-lock.json
package.json
src/views/task/addTask/components/textBox.vue
src/views/task/addTask/index.vue
package-lock.json
View file @
07262c7
...
@@ -928,7 +928,6 @@
...
@@ -928,7 +928,6 @@
"version"
:
"7.19.4"
,
"version"
:
"7.19.4"
,
"resolved"
:
"https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.4.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.4.tgz"
,
"integrity"
:
"sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA=="
,
"integrity"
:
"sha512-EXpLCrk55f+cYqmHsSR+yD/0gAIMxxA9QK9lnQWzhMCvt+YmoBN7Zx94s++Kv0+unHk39vxNO8t+CMA2WSS3wA=="
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"regenerator-runtime"
:
"^0.13.4"
"regenerator-runtime"
:
"^0.13.4"
},
},
...
@@ -936,8 +935,7 @@
...
@@ -936,8 +935,7 @@
"regenerator-runtime"
:
{
"regenerator-runtime"
:
{
"version"
:
"0.13.9"
,
"version"
:
"0.13.9"
,
"resolved"
:
"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz"
,
"resolved"
:
"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz"
,
"integrity"
:
"sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
,
"integrity"
:
"sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
"dev"
:
true
}
}
}
}
},
},
...
@@ -959,6 +957,22 @@
...
@@ -959,6 +957,22 @@
}
}
}
}
},
},
"@babel/runtime-corejs3"
:
{
"version"
:
"7.20.6"
,
"resolved"
:
"https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.20.6.tgz"
,
"integrity"
:
"sha512-tqeujPiuEfcH067mx+7otTQWROVMKHXEaOQcAeNV5dDdbPWvPcFA8/W9LXw2NfjNmOetqLl03dfnG2WALPlsRQ=="
,
"requires"
:
{
"core-js-pure"
:
"^3.25.1"
,
"regenerator-runtime"
:
"^0.13.11"
},
"dependencies"
:
{
"regenerator-runtime"
:
{
"version"
:
"0.13.11"
,
"resolved"
:
"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz"
,
"integrity"
:
"sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg=="
}
}
},
"@babel/template"
:
{
"@babel/template"
:
{
"version"
:
"7.18.10"
,
"version"
:
"7.18.10"
,
"resolved"
:
"https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz"
,
...
@@ -3026,7 +3040,7 @@
...
@@ -3026,7 +3040,7 @@
},
},
"charenc"
:
{
"charenc"
:
{
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npm
mirror.com
/charenc/-/charenc-0.0.2.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/charenc/-/charenc-0.0.2.tgz"
,
"integrity"
:
"sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
"integrity"
:
"sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
},
},
"check-types"
:
{
"check-types"
:
{
...
@@ -3893,6 +3907,11 @@
...
@@ -3893,6 +3907,11 @@
"browserslist"
:
"^4.21.4"
"browserslist"
:
"^4.21.4"
}
}
},
},
"core-js-pure"
:
{
"version"
:
"3.26.1"
,
"resolved"
:
"https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.26.1.tgz"
,
"integrity"
:
"sha512-VVXcDpp/xJ21KdULRq/lXdLzQAtX7+37LzpyfFM973il0tWSsDEoyzG38G14AjTpK9VTfiNM9jnFauq/CpaWGQ=="
},
"core-util-is"
:
{
"core-util-is"
:
{
"version"
:
"1.0.3"
,
"version"
:
"1.0.3"
,
"resolved"
:
"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz"
,
...
@@ -3978,7 +3997,7 @@
...
@@ -3978,7 +3997,7 @@
},
},
"crypt"
:
{
"crypt"
:
{
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npm
mirror.com
/crypt/-/crypt-0.0.2.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/crypt/-/crypt-0.0.2.tgz"
,
"integrity"
:
"sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
"integrity"
:
"sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
},
},
"crypto-browserify"
:
{
"crypto-browserify"
:
{
...
@@ -6278,7 +6297,7 @@
...
@@ -6278,7 +6297,7 @@
},
},
"glsx-vue-common"
:
{
"glsx-vue-common"
:
{
"version"
:
"2.0.5"
,
"version"
:
"2.0.5"
,
"resolved"
:
"https://registry.npm
mirror.com
/glsx-vue-common/-/glsx-vue-common-2.0.5.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/glsx-vue-common/-/glsx-vue-common-2.0.5.tgz"
,
"integrity"
:
"sha512-YMwjcuc0svvm/nbqnut1E0Obp3JFMfi1Rx/+RU2LGRiVKI0/RQveVYsy7CXbOGgL6hlnIL/GwLCMwJ57qtaWpg=="
,
"integrity"
:
"sha512-YMwjcuc0svvm/nbqnut1E0Obp3JFMfi1Rx/+RU2LGRiVKI0/RQveVYsy7CXbOGgL6hlnIL/GwLCMwJ57qtaWpg=="
,
"requires"
:
{
"requires"
:
{
"vue"
:
"^2.5.10"
"vue"
:
"^2.5.10"
...
@@ -11438,7 +11457,7 @@
...
@@ -11438,7 +11457,7 @@
},
},
"sha1"
:
{
"sha1"
:
{
"version"
:
"1.1.1"
,
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npm
mirror.com
/sha1/-/sha1-1.1.1.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/sha1/-/sha1-1.1.1.tgz"
,
"integrity"
:
"sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA=="
,
"integrity"
:
"sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA=="
,
"requires"
:
{
"requires"
:
{
"charenc"
:
">= 0.0.1"
,
"charenc"
:
">= 0.0.1"
,
...
@@ -13108,6 +13127,23 @@
...
@@ -13108,6 +13127,23 @@
"integrity"
:
"sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw=="
,
"integrity"
:
"sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw=="
,
"dev"
:
true
"dev"
:
true
},
},
"wangeditor"
:
{
"version"
:
"4.7.15"
,
"resolved"
:
"https://registry.npmjs.org/wangeditor/-/wangeditor-4.7.15.tgz"
,
"integrity"
:
"sha512-aPTdREd8BxXVyJ5MI+LU83FQ7u1EPd341iXIorRNYSOvoimNoZ4nPg+yn3FGbB93/owEa6buLw8wdhYnMCJQLg=="
,
"requires"
:
{
"@babel/runtime"
:
"^7.11.2"
,
"@babel/runtime-corejs3"
:
"^7.11.2"
,
"tslib"
:
"^2.1.0"
},
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.4.1"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz"
,
"integrity"
:
"sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="
}
}
},
"watchpack"
:
{
"watchpack"
:
{
"version"
:
"1.7.5"
,
"version"
:
"1.7.5"
,
"resolved"
:
"https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz"
,
"resolved"
:
"https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz"
,
...
...
package.json
View file @
07262c7
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"author"
:
"chenwq <cwqnn2015@163.com>"
,
"author"
:
"chenwq <cwqnn2015@163.com>"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"serve"
:
"
vue-cli-service
serve"
,
"serve"
:
"
node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js
serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
},
},
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
"sass-loader"
:
"7.3.1"
,
"sass-loader"
:
"7.3.1"
,
"sha1"
:
"^1.1.1"
,
"sha1"
:
"^1.1.1"
,
"md5"
:
"^2.3.0"
,
"md5"
:
"^2.3.0"
,
"vue"
:
"^2.6.11"
"vue"
:
"^2.6.11"
,
"wangeditor"
:
"^4.7.12"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^3.0.1"
,
"@vue/cli-plugin-babel"
:
"^3.0.1"
,
...
...
src/views/task/addTask/components/textBox.vue
0 → 100644
View file @
07262c7
<
template
>
<div>
<div
id=
"div-demo"
></div>
</div>
</
template
>
<
script
>
import
E
from
'wangeditor'
export
default
{
name
:
'textBox'
,
data
()
{
return
{
editor
:
''
,
content
:
''
,
editorOption
:
{},
}
},
props
:
{
excludeMenus
:
{
type
:
Array
,
default
:
()
=>
[
'code'
],
},
},
mounted
()
{
this
.
getEdit
()
},
methods
:
{
getEdit
()
{
const
_this
=
this
this
.
editor
=
new
E
(
'#div-demo'
)
this
.
editor
.
config
.
uploadImgShowBase64
=
true
this
.
editor
.
config
.
showMenuTooltips
=
true
this
.
editor
.
config
.
menuTooltipPosition
=
'down'
this
.
editor
.
config
.
height
=
400
this
.
editor
.
config
.
width
=
500
this
.
editor
.
config
.
excludeMenus
=
this
.
excludeMenus
this
.
editor
.
config
.
onchange
=
(
html
)
=>
{
// console.log(html);
this
.
content
=
html
// 绑定当前逐渐地值
this
.
$emit
(
'change'
,
this
.
content
)
// 将内容同步到父组件中
}
this
.
editor
.
config
.
onfocus
=
()
=>
{
this
.
$emit
(
'focus'
)
}
this
.
editor
.
config
.
onchangeTimeout
=
5000
this
.
editor
.
create
()
},
setEdit
(
html
)
{
this
.
$nextTick
(()
=>
{
this
.
editor
.
txt
.
html
(
html
)
})
},
forbidEdit
()
{
// this.editor.$textElem.attr('contenteditable', false)
this
.
editor
.
disable
()
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
#div-demo
{
margin
:
16px
300px
0
0
;
}
.el-form
.editor
{
margin-top
:
20px
;
}
.myQuillEditor
{
background-color
:
#fff
;
height
:
200px
;
}
</
style
>
<
style
>
.w-e-text-container
{
z-index
:
1
!important
;
}
.w-e-toolbar
{
z-index
:
2
!important
;
}
</
style
>
src/views/task/addTask/index.vue
View file @
07262c7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment