Lines Matching refs:defaultValue

64 static setAndRef<T>(propName: string, defaultValue: T): AbstractProperty<T>
66 …d)中存在,则获得AppStorage中propName对应数据的引用。如果不存在,则使用defaultValue在AppStorage中创建和初始化propName对应的属性,并返回其引用。de…
82 | defaultValue | T | 是 | 当propName在AppStorage中不存在时,使用defaultValue在AppStorage中初始化对应的propName,
136 static setAndLink<T>(propName: string, defaultValue: T): SubscribedAbstractProperty<T>
138 …ame对应的属性的双向绑定数据。如果不存在,则使用defaultValue在AppStorage中创建和初始化propName对应的属性,返回其双向绑定数据。defaultValue必须为T类型,…
152 | defaultValue | T | 是 | 当propName在AppStorage中不存在时,使用defaultValue在AppStorage中初始化对应的propName,…
202 static setAndProp<T>(propName: string, defaultValue: T): SubscribedAbstractProperty<T>
204 …ame对应的属性的单向绑定数据。如果不存在,则使用defaultValue在AppStorage中创建和初始化propName对应的属性,返回其单向绑定数据。defaultValue必须为T类型,…
218 | defaultValue | T | 是 | 当propName在AppStorage中不存在时,使用defaultValue在AppStorage中初始化对应的propName,…
506 static SetAndLink<T>(propName: string, defaultValue: T): SubscribedAbstractProperty<T>
508 …e.md)中存在,则返回该propName对应的属性的双向绑定数据。如果不存在,则使用defaultValue在AppStorage中创建和初始化propName对应的属性,并返回其双向绑定数据。
520 | defaultValue | T | 是 | 当propName在AppStorage中不存在,使用defaultValue在AppStorage中初始化对应的propName,d…
570 static SetAndProp<S>(propName: string, defaultValue: S): SubscribedAbstractProperty<S>
572 …e.md)中存在,则返回该propName对应的属性的单向绑定数据。如果不存在,则使用defaultValue在AppStorage中创建和初始化propName对应的属性,返回其单向绑定数据。d…
584 | defaultValue | S | 是 | 当propName在AppStorage中不存在时,使用defaultValue在AppStorage中初始化对应的propName,
1114 public setAndRef<T>(propName: string, defaultValue: T): AbstractProperty<T>
1116 …存在,则获得LocalStorage中propName对应数据的引用。如果不存在,则使用defaultValue在LocalStorage中创建和初始化propName对应的属性,并返回其引用。d…
1132 | defaultValue | T | 是 | 当propName在LocalStorage中不存在时,使用defaultValue在LocalStorage中初始化对应的propN…
1189 setAndLink<T>(propName: string, defaultValue: T): SubscribedAbstractProperty<T>
1191 …propName对应的属性的双向绑定数据。如果不存在,则使用defaultValue在LocalStorage中创建和初始化propName对应的属性,返回其双向绑定数据。defaultValue
1208 | defaultValue | T | 是 | 当propName在LocalStorage中不存在时,使用defaultValue在LocalStorage中初始化对应的propN…
1261 setAndProp<S>(propName: string, defaultValue: S): SubscribedAbstractProperty<S>
1263 …me对应的属性的单向绑定数据。如果不存在,则使用defaultValue在LocalStorage中创建和初始化propName对应的属性,返回其单向绑定数据。defaultValue必须为S类型…
1280 | defaultValue | S | 是 | 当propName在LocalStorage中不存在,使用defaultValue在LocalStorage中初始化对应的propNa…
1685 | defaultValue | number \| string \| boolean \| Object | 是 | 在PersistentStorage和AppStorage未查询到时,则…
1690 static persistProp<T>(key: string, defaultValue: T): void
1700 3. 如果AppStorage中也没查找到key对应的属性,则在AppStorage中创建key对应的属性。用defaultValue初始化其值,并将该属性持久化。
1713 | defaultValue | T | 是 | 在PersistentStorage和AppStorage中未查询到时,则使用默认值进行初始化。从API version 12开始允许…
1762 …sistentStorage.persistProps([{ key: 'highScore', defaultValue: '0' }, { key: 'wightScore', default…
1790 static PersistProp<T>(key: string, defaultValue: T): void
1800 3. 如果AppStorage也没查找到key对应的属性,则在AppStorage中创建key对应的属性。用defaultValue初始化其值,并将该属性持久化。
1815 | defaultValue | T | 是 | 在PersistentStorage和AppStorage中未查询到时,则使用默认值进行初始化。不允许为null或undefined。…
1852 static PersistProps(properties: {key: string, defaultValue: any;}[]): void
1865 | properties | {key: string, defaultValue: any}[] | 是 | 持久化数组,启动key为属性名,defaultValue为默认值。规则同Persi…
1870 …sistentStorage.PersistProps([{ key: 'highScore', defaultValue: '0' }, { key: 'wightScore', default…
1916 | defaultValue | number \| string \| boolean | 是 | 查询不到环境变量key,则使用defaultValue作为默认值存入AppStorage中。…
1970 Environment.envProps([{ key: 'accessibilityEnabled', defaultValue: 'default' }, {
1972 defaultValue: 'en'
1973 }, { key: 'prop', defaultValue: 'hhhh' }]);
1995 Environment.envProps([{ key: 'accessibilityEnabled', defaultValue: 'default' }, {
1997 defaultValue: 'en'
1998 }, { key: 'prop', defaultValue: 'hhhh' }]);
2042 static EnvProps(props: {key: string; defaultValue: any;}[]): void
2055 | props | {key: string, defaultValue: any}[] | 是 | 系统环境变量和默认值的键值对的数组。 |
2059 Environment.EnvProps([{ key: 'accessibilityEnabled', defaultValue: 'default' }, {
2061 defaultValue: 'en'
2062 }, { key: 'prop', defaultValue: 'hhhh' }]);
2086 Environment.EnvProps([{ key: 'accessibilityEnabled', defaultValue: 'default' }, {
2088 defaultValue: 'en'
2089 }, { key: 'prop', defaultValue: 'hhhh' }]);