Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-general-business into dev

This commit is contained in:
梁朝伟 2022-08-01 06:18:29 +08:00
commit 7d1e9f9ef7
10 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-message": "../../miniprogram_npm/tdesign/message/message"
}
}

View File

@ -0,0 +1,6 @@
.btn-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding: 40rpx;
}

View File

@ -0,0 +1,13 @@
export default OakComponent({
methods: {
printDebugStore() {
console.log(this.features.cache.getFullData());
},
printCachedStore() {
console.log(this.features.cache.getCachedData());
},
printRunningTree() {
console.log(this.features.runningTree.getRoot());
},
},
});

View File

@ -0,0 +1,22 @@
import React from 'react';
import { Button, Space } from 'tdesign-react';
export default function render() {
return (
<Space
breakLine={false}
direction="horizontal"
size="medium"
>
<Button theme="primary" shape="circle" onClick={() => this.printRunningTree()}>
R
</Button>
<Button theme="primary" shape="circle" onClick={() => this.printDebugStore()}>
S
</Button>
<Button theme="primary" shape="circle" onClick={() => this.printCachedStore()}>
C
</Button>
</Space>
);
}

View File

@ -0,0 +1,2 @@
<t-message id="t-message" />

View File

@ -56,7 +56,6 @@
"get:area": "ts-node ./scripts/getAmapArea.ts",
"clean:dir": "ts-node ./scripts/cleanDtsAndJs",
"test": "ts-node ./test/test.ts",
"postinstall": "npm run make:domain",
"prepare": "rimraf node_modules/react & rimraf node_modules/react-dom & rimraf node_modules/react-router"
},
"main": "lib/index"