Browse Source

[Mod 0000] 修改了bar类型图表在配置dataZoom后的文本宽度处理逻辑

houzekong 1 month ago
parent
commit
d63ba8e257

+ 0 - 1
src/router/guard/permissionGuard.ts

@@ -39,7 +39,6 @@ const whitePathList: PageEnum[] = [LOGIN_PATH, OAUTH2_LOGIN_PAGE_PATH, SYS_FILES
 const glob = useGlobSetting();
 
 export function createPermissionGuard(router: Router) {
-  debugger;
   const userStore = useUserStoreWithOut();
   const permissionStore = usePermissionStoreWithOut();
   const { doAutoLogin, doTokenLogin, validateRoute, tokenValidateRoute } = useAutoLogin();

+ 0 - 1
src/router/index.ts

@@ -23,7 +23,6 @@ export const router = createRouter({
 
 // TODO 【QQYUN-4517】【表单设计器】记录分享路由守卫测试
 router.beforeEach(async (to, from, next) => {
-  debugger;
   //console.group('【QQYUN-4517】beforeEach');
   //console.warn('from', from);
   //console.warn('to', to);

+ 1 - 1
src/views/vent/home/configurable/components/detail/CustomChart.vue

@@ -386,7 +386,7 @@
             type: 'category',
             axisLabel: {
               interval: 0,
-              width: 800 / get(baseSeries, '[0].data.length', 1),
+              width: baseDataZoom.length ? undefined : 800 / get(baseSeries, '[0].data.length', 1),
               overflow: 'break',
             },
           };

+ 6 - 0
src/views/vent/home/configurable/configurable.data.ts

@@ -242,6 +242,12 @@ export const testConfigVent: Config[] = [
             { show: true, name: '风量(m³/min)', position: 'left' },
             { show: true, name: '风速(m/s)', position: 'right' },
           ],
+          dataZoom: [
+            {
+              show: true,
+              end: 20,
+            },
+          ],
           series: [
             { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.m3', label: '风量' },
             { readFrom: 'sys_wind', xprop: 'strinstallpos', yprop: 'readData.va', label: '风速' },