decorators
- InputBool
import {InputBool} from "@cinling/lib/decorators/InputBool";
class DemoCompoent {
@InputBool()
readonly: boolean = flase
}
<Demo readonly></Demo> <!-- 組件中 readonly = true -->
<Demo></Demo> <!-- 組件中 readonly = false -->
import {InputBool} from "@cinling/lib/decorators/InputBool";
class DemoCompoent {
@InputBool()
readonly: boolean = flase
}
<Demo readonly></Demo> <!-- 組件中 readonly = true -->
<Demo></Demo> <!-- 組件中 readonly = false -->
npm i @cinling/lib
0
11.0.0-alpha.1
none
29.8 kB
27