Browse Source

fix: comment reply content cannot wrap. (#322)

pull/326/head
Ryan Wang 4 years ago committed by GitHub
parent
commit
dceb72cc5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      package.json
  2. 2
      src/views/comment/components/CommentTab.vue
  3. 24
      yarn.lock

6
package.json

@ -30,7 +30,7 @@
"filepond-plugin-image-preview": "^4.6.6", "filepond-plugin-image-preview": "^4.6.6",
"flv.js": "^1.5.0", "flv.js": "^1.5.0",
"halo-editor": "^2.8.2", "halo-editor": "^2.8.2",
"marked": "^2.0.1", "marked": "^2.0.3",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"tiny-pinyin": "^1.3.2", "tiny-pinyin": "^1.3.2",
"verte": "^0.0.12", "verte": "^0.0.12",
@ -54,14 +54,14 @@
"@vue/cli-plugin-unit-jest": "^4.5.12", "@vue/cli-plugin-unit-jest": "^4.5.12",
"@vue/cli-service": "^4.5.12", "@vue/cli-service": "^4.5.12",
"@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-prettier": "^6.0.0",
"@vue/test-utils": "^1.1.3", "@vue/test-utils": "^1.1.4",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3", "babel-jest": "^26.6.3",
"babel-plugin-import": "^1.13.3", "babel-plugin-import": "^1.13.3",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-plugin-html": "^6.1.2", "eslint-plugin-html": "^6.1.2",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^6.2.2",
"husky": "^6.0.0", "husky": "^6.0.0",
"less": "^3.13.1", "less": "^3.13.1",

2
src/views/comment/components/CommentTab.vue

@ -275,7 +275,7 @@
</template> </template>
<a-form-model ref="replyCommentForm" :model="replyComment" :rules="replyCommentRules" layout="vertical"> <a-form-model ref="replyCommentForm" :model="replyComment" :rules="replyCommentRules" layout="vertical">
<a-form-model-item prop="content"> <a-form-model-item prop="content">
<a-input ref="contentInput" type="textarea" :autoSize="{ minRows: 8 }" v-model.trim="replyComment.content" /> <a-input ref="contentInput" type="textarea" :autoSize="{ minRows: 8 }" v-model="replyComment.content" />
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
</a-modal> </a-modal>

24
yarn.lock

@ -1876,10 +1876,10 @@
resolved "https://registry.npmjs.org/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz" resolved "https://registry.npmjs.org/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz"
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ== integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
"@vue/test-utils@^1.1.3": "@vue/test-utils@^1.1.4":
version "1.1.3" version "1.1.4"
resolved "https://registry.npmjs.org/@vue/test-utils/-/test-utils-1.1.3.tgz" resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.4.tgz#a9acb32ea1fa4535b2e1ce5ca100bceb4fade2db"
integrity sha512-BAY1Cwe9JpkJseimC295EW3YlAmgIJI9OPkg2FSP62+PHZooB0B+wceDi9TYyU57oqzL0yLbcP73JKFpKiLc9A== integrity sha512-9BeL8IqGvJKy553lq/07rhYURQkpS/k+j19rJ/4eDpGJk7z872M0YrBWFhjS14yMKlvYVYOCfWnVIXyrAx0xNw==
dependencies: dependencies:
dom-event-types "^1.0.0" dom-event-types "^1.0.0"
lodash "^4.17.15" lodash "^4.17.15"
@ -4721,10 +4721,10 @@ eslint-plugin-html@^6.1.2:
dependencies: dependencies:
htmlparser2 "^6.0.1" htmlparser2 "^6.0.1"
eslint-plugin-prettier@^3.3.1: eslint-plugin-prettier@^3.4.0:
version "3.3.1" version "3.4.0"
resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz#cdbad3bf1dbd2b177e9825737fe63b476a08f0c7"
integrity sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ== integrity sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==
dependencies: dependencies:
prettier-linter-helpers "^1.0.0" prettier-linter-helpers "^1.0.0"
@ -7571,10 +7571,10 @@ map-visit@^1.0.0:
dependencies: dependencies:
object-visit "^1.0.0" object-visit "^1.0.0"
marked@^2.0.1: marked@^2.0.3:
version "2.0.1" version "2.0.3"
resolved "https://registry.npmjs.org/marked/-/marked-2.0.1.tgz" resolved "https://registry.yarnpkg.com/marked/-/marked-2.0.3.tgz#3551c4958c4da36897bda2a16812ef1399c8d6b0"
integrity sha512-5+/fKgMv2hARmMW7DOpykr2iLhl0NgjyELk5yn92iE7z8Se1IS9n3UsFm86hFXIkvMBmVxki8+ckcpjBeyo/hw== integrity sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==
md5.js@^1.3.4: md5.js@^1.3.4:
version "1.3.5" version "1.3.5"

Loading…
Cancel
Save