Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0
| | |
| | | import { axisLabelFormatter } from '/@/utils/chart'; |
| | | import { LocalPlus } from '/@/utils/storage'; |
| | | import { debounce, getTextWidth, toPercent } from '/@/utils/util'; |
| | | import { isSharePage } from '/@/stores/chatRoom'; |
| | | |
| | | const props = defineProps({ |
| | | data: { |
| | |
| | | activeTab.value = 0; |
| | | }; |
| | | const showCurve = (row) => { |
| | | if(isSharePage.value) return; |
| | | resetTab(); |
| | | chartDlgIsShow.value = true; |
| | | const quotaChartCol = props.data?.quota_chart?.col; |
| | |
| | | wavesDirective, |
| | | } from '/@/directive/customDirective'; |
| | | import { inputLimit } from '/@/directive/inputLimit'; |
| | | import shareDirective from './shareDirective'; |
| | | |
| | | /** |
| | | * å¯¼åºæä»¤æ¹æ³ï¼v-xxx |
| | |
| | | inputLimit(app); |
| | | eleFocusDirective(app); |
| | | elementResizeDirective(app); |
| | | shareDirective(app); |
| | | focusDirective(app); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { App } from 'vue'; |
| | | import { isSharePage } from '../stores/chatRoom'; |
| | | |
| | | /** @description å享ç颿¯å¦å±ç¤ºå½åé¡µé¢ */ |
| | | export default function shareDirective(app: App) { |
| | | // v-share=falseï¼é»è®¤ä¸º false |
| | | app.directive('share', { |
| | | mounted(el, binding) { |
| | | /** @description é»è®¤åäº«ç¶æéè */ |
| | | const isShow = binding.value ?? false; |
| | | if (isSharePage.value) { |
| | | !isShow && el.parentNode.removeChild(el); |
| | | } else { |
| | | /** @description éåäº«ç¶æï¼isShow å°±æ¯è¦å æå½åå
ç´ */ |
| | | isShow && el.parentNode.removeChild(el); |
| | | } |
| | | }, |
| | | }); |
| | | } |