feat:change makeRef to createRef
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
Scroller,
|
||||
jsx,
|
||||
VLayout,
|
||||
makeRef,
|
||||
createRef,
|
||||
HLayout,
|
||||
} from "doric";
|
||||
import { colors } from "./utils";
|
||||
@@ -216,11 +216,11 @@ interface GoBangState {
|
||||
class GoBangVH extends ViewHolder {
|
||||
root!: Group;
|
||||
gap = 0;
|
||||
currentRole = makeRef<Text>();
|
||||
result = makeRef<Text>();
|
||||
currentRole = createRef<Text>();
|
||||
result = createRef<Text>();
|
||||
targetZone: View[] = [];
|
||||
gameMode = makeRef<Text>();
|
||||
assistant = makeRef<Text>();
|
||||
gameMode = createRef<Text>();
|
||||
assistant = createRef<Text>();
|
||||
build(root: Group): void {
|
||||
this.root = root;
|
||||
}
|
||||
|
@@ -6,10 +6,7 @@ import {
|
||||
Group,
|
||||
layoutConfig,
|
||||
Text,
|
||||
makeRef,
|
||||
Stack,
|
||||
Color,
|
||||
modal,
|
||||
createRef,
|
||||
} from "doric";
|
||||
|
||||
function createFragment() {
|
||||
@@ -25,7 +22,7 @@ function createFragment() {
|
||||
class Counter extends Panel {
|
||||
build(root: Group) {
|
||||
const fragments = createFragment();
|
||||
const ref = makeRef<Text>();
|
||||
const ref = createRef<Text>();
|
||||
let count = 0;
|
||||
<VLayout
|
||||
space={20}
|
||||
|
Reference in New Issue
Block a user