update
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-07-07 14:35:38
|
* @Date: 2021-07-07 14:35:38
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2022-04-24 00:29:46
|
* @LastEditTime: 2022-04-24 00:44:25
|
||||||
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\registComponents\button.tsx
|
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\registComponents\button.tsx
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -16,7 +16,6 @@ import {
|
|||||||
} from 'dooringx-lib';
|
} from 'dooringx-lib';
|
||||||
import { FormMap } from '../formTypes';
|
import { FormMap } from '../formTypes';
|
||||||
import { ComponentRenderConfigProps } from 'dooringx-lib/dist/core/components/componentItem';
|
import { ComponentRenderConfigProps } from 'dooringx-lib/dist/core/components/componentItem';
|
||||||
let s = 0;
|
|
||||||
function ButtonTemp(pr: ComponentRenderConfigProps) {
|
function ButtonTemp(pr: ComponentRenderConfigProps) {
|
||||||
const props = pr.data.props;
|
const props = pr.data.props;
|
||||||
const eventCenter = useMemo(() => {
|
const eventCenter = useMemo(() => {
|
||||||
@@ -50,9 +49,7 @@ function ButtonTemp(pr: ComponentRenderConfigProps) {
|
|||||||
config,
|
config,
|
||||||
ctx
|
ctx
|
||||||
);
|
);
|
||||||
s = s++;
|
const text = ctxVal[0];
|
||||||
const text = ctxVal[0] + s;
|
|
||||||
|
|
||||||
setText(text);
|
setText(text);
|
||||||
next();
|
next();
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user