Commit c4ffdc39 authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent f018dbc6
module.exports = {
// Sentry options are required
organization: 'sentry',
project: 'quantum-blocks-h5',
project: 'quantum-block-h5',
apiKey: '2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95',
// Release version name/hash is required
release: 'quantum-blocks-h5@0.0.1',
release: 'quantum-block-h5@0.0.1',
baseSentryURL: 'https://sentry.quantgroups.com/api/0',
deleteAfterCompile: true,
include: /js\//, // 只上传js和map文件
......
......@@ -6,4 +6,3 @@ export default {
// opapiHost: `${protocol}//opapi.q-gp.com`,
test: false
};
......@@ -100,9 +100,6 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
gridItemEle.classList.remove('del_transform');
}
const transform = getStyle(gridItemEle, 'transform');
const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`;
gridItemEle.className += ' del_transform';
if (transform && transform.length) {
const transformY = transform.split('(')[1].split(')')[0].split(',')[5];
gridItemEle.style.top = `${transformY}px`;
......
......@@ -32,11 +32,11 @@
</template>
<script lang="ts" src="./index.ts"></script>
<style lang="less" scoped>
.activity {
width: 100%;
min-height: 100%;
.activity {
width: 100%;
min-height: 100%;
background-color: rgb(244, 244, 244);
box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
// overflow-x: hidden;
// overflow-y: scroll;
/deep/ .vue-grid-layout {
......@@ -44,19 +44,22 @@
box-sizing: content-box;
// transform: translateY(-10px);
transition-property: none;
.vue-grid-item {
transition-property: none;
display: flex;
justify-content: center;
align-items: center;
/* 不可设置溢出隐藏,tabs导航会出问题 */
overflow: hidden;
&>*:first-child {
& > *:first-child {
height: 100%;
}
}
}
}
}
.del_transform {
overflow: visible !important;
......
......@@ -21,10 +21,7 @@ export default class EditorModule implements Module<EditorState, RootState> {
actions: ActionTree<EditorState, RootState> = {
async getPageDate({ commit }, condition) {
const [res] = await api.getPageById(condition);
let { page, ...rest } = res as PageInfo;
if (!page) {
page = '[]';
}
const { page, ...rest } = res as PageInfo;
commit(SET_PAGE_INFO, { ...rest, page: JSON.parse(page as string) });
}
};
......@@ -34,8 +31,8 @@ export default class EditorModule implements Module<EditorState, RootState> {
state.pageInfo = data;
},
[UPDATE_PAGE_INFO](state, { containerIndex, childIndex, data }) {
const page = (state.pageInfo.page as Page).elements || [];
if ((childIndex || childIndex === 0) && page[containerIndex].child) {
const page = (state.pageInfo.page as Page).elements;
if (childIndex || childIndex === 0) {
page[containerIndex].child.splice(childIndex, 1, data);
} else {
page.splice(containerIndex, 1, data);
......
{
"api": {
"apiHost": "https://quantum-blocks-undefined.liangkebang.net",
"h5Host": "https://quantum-h5-undefined.liangkebang.net",
"opapiHost": "https://opapi-undefined.liangkebang.net",
"passportHost": "https://passportapi-undefined.liangkebang.net",
"kdspHost": "https://talos-undefined.liangkebang.net",
"apiHost": "https://quantum-blocks-test1.liangkebang.net",
"h5Host": "https://quantum-h5-test1.liangkebang.net",
"opapiHost": "https://opapi-test1.liangkebang.net",
"passportHost": "https://passportapi-test1.liangkebang.net",
"kdspHost": "https://talos-test1.liangkebang.net",
"loginUrl": "",
"h5ShopHost": "https://tenet-undefined.liangkebang.net/#"
"h5ShopHost": "https://tenet-test1.liangkebang.net/#"
},
"mysql": {
"low_code": {
......
......@@ -29,7 +29,7 @@ export default (appInfo: EggAppConfig) => {
exports.redis = {
client: {
port: 31565, // Redis port
port: 31400, // Redis port
host: '172.17.5.17', // Redis host
password: '',
db: 0
......
......@@ -1658,9 +1658,9 @@
}
},
"@qg/citrus-ui": {
"version": "0.1.13",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.13.tgz",
"integrity": "sha512-hsiOo61SwlAhp1Cc0gmOhBCH4S7aESrftZAWqWp0HbL6qwcNTLqfIOUxiFJEw0m5nrU+Evjaa8H7iAsDOBkvLg==",
"version": "0.1.14",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.14.tgz",
"integrity": "sha512-88AJuAsBMugnMFkGA60S1quAH7UEh6iNjTqvq/hbQjV5UUSxksdAgdcF0+7ASSPb8aqek4XV2fdRrvC+YBtQxA==",
"requires": {
"@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.20.20",
......
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