From d41648827f2d21c7884ac8d00e8d8a9ac1cd2715 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 25 八月 2025 19:49:11 +0800 Subject: [PATCH] 组件优化 --- src/components/bookVideo/index.vue | 8 -------- src/components/svgIcon/index.vue | 25 +------------------------ 2 files changed, 1 insertions(+), 32 deletions(-) diff --git a/src/components/bookVideo/index.vue b/src/components/bookVideo/index.vue index a387040..9a2d3c3 100644 --- a/src/components/bookVideo/index.vue +++ b/src/components/bookVideo/index.vue @@ -53,20 +53,12 @@ type: String, required: "",// 榛樿鍊� }, - logoColor: { - type: String, - required: "#00918e",// 榛樿鍊� - }, }, async mounted() { - debugger - console.log(this.videoInfo, "111111"); await this.getVidoePath(); this.collectResourceList = await getCollectResource( this.BookId ); - console.log(this.collectResourceList, "this.collectResourceList"); - }, methods: { async getVidoePath() { diff --git a/src/components/svgIcon/index.vue b/src/components/svgIcon/index.vue index 820aa9a..92e0b8e 100644 --- a/src/components/svgIcon/index.vue +++ b/src/components/svgIcon/index.vue @@ -3,7 +3,7 @@ <i v-if="iconFileName.indexOf('el-icon-') === 0" :class="iconFileName" /> <!-- 濡傛灉鏄� SVG 鍥炬爣锛岃繘琛屾敼閫� --> - <svg v-else class="svg-icon" aria-hidden="true" v-on="$listeners" :style="svgStyle"> + <svg v-else class="svg-icon" aria-hidden="true" v-on="$listeners" > <!-- :xlink:href 鍔ㄦ�佺粦瀹氬浘鏍嘔D 娉ㄦ剰锛氳繖閲屽亣璁句綘鐨勫浘鏍嘔D鏄� "icon-" + iconFileName @@ -13,7 +13,6 @@ </template> <script> -import config from "@/assets/js/config"; export default { name: 'SvgIcon', props: { @@ -21,29 +20,7 @@ type: String, required: true }, - // 鏂板涓�涓� color prop锛岀敤浜庢帴鏀堕鑹� - color: { - type: String, - // 榛樿鍊艰涓� 'inherit'锛屽畠浼氱户鎵跨埗鍏冪礌鐨勬枃瀛楅鑹� - default: 'inherit' - }, - // 鍙�夛細澧炲姞灏哄鎺у埗 - size: { - type: String, - default: '1em' - } }, - computed: { - // 浣跨敤璁$畻灞炴�ф潵鍔ㄦ�佺敓鎴愭牱寮� - svgStyle() { - return { - fontSize: this.size, - }; - } - }, - mounted() { - console.log(config.activeBook.bookThemeColor, "987654"); - } } </script> -- Gitblit v1.9.1