Commit ccda8b68 authored by xuchaozou's avatar xuchaozou

feat: 新增全景图

parent 5dc455bd
Pipeline #63853 passed with stages
......@@ -60,6 +60,22 @@ module.exports = options => ({
// localIdentName: '[name]__[local]___[hash:base64:5]'
// modules: true,
getLocalIdent: (context, _, localName) => {
if (/@wisdom-cesium/.test(context.resourcePath)) {
const matchRule = slash(context.resourcePath).match(/@wisdom-cesium\/(krpano)(.*).less$/)
if (matchRule && matchRule[2]) {
if (/rc-slider/.test(matchRule[0])) {
return localName
}
const className = matchRule[2].
split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase()).join('-')
return `panda-krpano-${className}-${localName}`.replace(/--/g, '-')
}
return localName
}
if (
context.resourcePath.includes('node_modules') ||
context.resourcePath.includes('ant.design.pro.less') ||
......
......@@ -91,6 +91,7 @@
"@babel/runtime": "^7.10.5",
"@esri/calcite-colors": "6.0.3",
"@wisdom-cesium/cesium": "^1.0.78",
"@wisdom-cesium/krpano": "^1.0.28-2",
"@wisdom-map/amap": "1.1.0-beta.40",
"@wisdom-map/arcgismap": "1.4.0-76",
"@wisdom-map/basemap": "1.1.0-18",
......
import React, { useState, useEffect } from 'react';
import styles from './index.less';
// import {EditProject} from '@wisdom-cesium/krpano'
const PanoramaConfig = () => {
useEffect(() => {}, []);
return (
<div className={styles.pageContent}>
<div className={styles.tip}>此功能待开发</div>
<div className={styles.container}>
{/* <EditProject /> */}
</div>
</div>
);
};
......
.pageContent {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
.container {
width: 90%;
height: 90%;
position: relative;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment