{"id":25370,"date":"2024-11-24T15:25:38","date_gmt":"2024-11-24T07:25:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25370\/"},"modified":"2024-11-24T15:25:38","modified_gmt":"2024-11-24T07:25:38","slug":"elementui-el-table-%e5%ad%90%e8%8a%82%e7%82%b9%e9%80%89%e4%b8%ad%e5%90%8e%e4%b8%ba%e4%bb%80%e4%b9%88%e5%8b%be%e9%80%89%e6%a1%86%e4%b8%8d%e6%98%be%e7%a4%ba%e6%89%93%e5%8b%be%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25370\/","title":{"rendered":"ElementUI el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u4e3a\u4ec0\u4e48\u52fe\u9009\u6846\u4e0d\u663e\u793a\u6253\u52fe\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173060069381820.jpg\" class=\"aligncenter\" title=\"ElementUI el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u4e3a\u4ec0\u4e48\u52fe\u9009\u6846\u4e0d\u663e\u793a\u6253\u52fe\uff1f\u63d2\u56fe\" alt=\"ElementUI el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u4e3a\u4ec0\u4e48\u52fe\u9009\u6846\u4e0d\u663e\u793a\u6253\u52fe\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>elementui el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u52fe\u9009\u4e0d\u51fa\u6253\u52fe\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7248\u672c\u51b2\u7a81\u6216\u534a\u9009\u72b6\u6001\u5bfc\u81f4\u7684\u3002<\/strong><\/p>\n<p><strong>\u539f\u56e0\u89e3\u6790\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u7248\u672c\u51b2\u7a81\uff1a<\/strong>\u4f4e\u7248\u672c\u7684 elementui \u4e2d\u5b58\u5728\u4e00\u4e2a bug\uff0c\u5bfc\u81f4\u5b50\u8282\u70b9\u9009\u4e2d\u540e\u52fe\u9009\u6846\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\u3002<\/li>\n<li> <strong>\u534a\u9009\u72b6\u6001\uff1a<\/strong>el-table \u652f\u6301\u534a\u9009\u72b6\u6001\uff0c\u5f53\u7236\u8282\u70b9\u9009\u4e2d but \u5b58\u5728\u5b50\u8282\u70b9\u672a\u9009\u4e2d\u65f6\uff0c\u7236\u8282\u70b9\u52fe\u9009\u6846\u4f1a\u663e\u793a\u4e3a\u534a\u9009\u72b6\u6001\uff0c\u800c\u4e0d\u662f\u6253\u52fe\u3002<\/li>\n<\/ul>\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p><strong>\u5347\u7ea7 elementui \u7248\u672c\uff1a<\/strong>\u5c06 elementui \u7248\u672c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\uff082.15.13 \u4ee5\u4e0a\uff09\uff0c\u8fd9\u53ef\u4ee5\u89e3\u51b3\u7248\u672c\u51b2\u7a81\u95ee\u9898\u3002<\/p>\n<p><strong>\u5904\u7406\u534a\u9009\u72b6\u6001\uff1a<\/strong>\u901a\u8fc7\u81ea\u5b9a\u4e49  \u6837\u5f0f\uff0c\u53ef\u4ee5\u4fee\u6539\u534a\u9009\u72b6\u6001\u7684\u663e\u793a\uff1a<\/p>\n<pre>::v-deep .indeterminate .el-checkbox {\n  display: block !important;\n}\n\n::v-deep .indeterminate .el-checkbox__input .el-checkbox__inner {\n  background-color: #4a97eb !important;\n  border-color: #4a97eb !important;\n  color: #fff !important;\n}\n\n::v-deep .indeterminate .el-checkbox__input.is-checked .el-checkbox__inner::after {\n  transform: scale(0.5);\n}\n\n::v-deep .indeterminate .el-checkbox__input .el-checkbox__inner::after {\n  border-color: #c0c4cc !important;\n  background-color: #c0c4cc;\n}\n\n::v-deep .indeterminate .el-checkbox__input .el-checkbox__inner::after {\n  content: \"\";\n  position: absolute;\n  display: block;\n  background-color: #fff;\n  height: 2px;\n  transform: scale(0.5);\n  left: 0;\n  right: 0;\n  top: 5px;\n  width: auto !important;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u6837\u5f0f\uff0c\u53ef\u4ee5\u5728\u534a\u9009\u72b6\u6001\u65f6\u663e\u793a\u52fe\u9009\u6548\u679c\u3002<\/p>\n<p><strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4ee5\u4e0a\u89e3\u51b3\u65b9\u6848\u4ec5\u9488\u5bf9 elementui \u7684\u7279\u5b9a\u7248\u672c\uff0c\u5177\u4f53\u60c5\u51b5\u53ef\u80fd\u6709\u6240\u4e0d\u540c\u3002\u8fd8\u9700\u8981\u6839\u64da\u5177\u9ad4\u60c5\u6cc1\u5fae\u8abf css \u8abf\u6574\u986f\u793a\u6548\u679c\u3002<\/strong><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fElementUI el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u4e3a\u4ec0\u4e48\u52fe\u9009\u6846\u4e0d\u663e\u793a\u6253\u52fe\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>elementui el-table \u5b50\u8282\u70b9\u9009\u4e2d\u540e\u52fe\u9009\u4e0d\u51fa\u6253\u52fe\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u7248\u672c\u51b2\u7a81\u6216\u534a\u9009\u72b6\u6001\u5bfc\u81f4\u7684\u3002 \u539f\u56e0\u89e3\u6790\uff1a \u7248\u672c\u51b2\u7a81\uff1a\u4f4e\u7248\u672c\u7684 elementui \u4e2d\u5b58\u5728\u4e00\u4e2a bug\uff0c\u5bfc\u81f4\u5b50\u8282\u70b9\u9009\u4e2d\u540e\u52fe\u9009\u6846\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\u3002 \u534a\u9009\u72b6\u6001\uff1ael-table \u652f\u6301\u534a\u9009\u72b6\u6001\uff0c\u5f53\u7236\u8282\u70b9\u9009\u4e2d but \u5b58\u5728\u5b50\u8282\u70b9\u672a\u9009\u4e2d\u65f6\uff0c\u7236\u8282\u70b9\u52fe\u9009\u6846\u4f1a\u663e\u793a\u4e3a\u534a\u9009\u72b6\u6001\uff0c\u800c\u4e0d\u662f\u6253\u52fe\u3002 \u89e3\u51b3\u65b9\u6848\uff1a \u5347\u7ea7 elementui \u7248\u672c\uff1a\u5c06 elementui \u7248\u672c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\uff082.15.13 \u4ee5\u4e0a\uff09\uff0c\u8fd9\u53ef\u4ee5\u89e3\u51b3\u7248\u672c\u51b2\u7a81\u95ee\u9898\u3002 \u5904\u7406\u534a\u9009\u72b6\u6001\uff1a\u901a\u8fc7\u81ea\u5b9a\u4e49 \u6837\u5f0f\uff0c\u53ef\u4ee5\u4fee\u6539\u534a\u9009\u72b6\u6001\u7684\u663e\u793a\uff1a ::v-deep .indeterminate .el-checkbox { display: block !important; } ::v-deep .indeterminate .el-checkbox__input .el-checkbox__inner { background-color: #4a97eb !important; border-color: #4a97eb !important; color: #fff !important; } ::v-deep .indeterminate .el-checkbox__input.is-checked .el-checkbox__inner::after { transform: scale(0.5); } ::v-deep .indeterminate .el-checkbox__input [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-25370","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=25370"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25370\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}