새로운 '가져 오기 라이브러리'프로젝트 을 만들었으며 누락 된 조각을 정의했습니다.
namespace KnockoutApi
{
[Imported]
[IgnoreNamespace]
[ScriptName("ko")]
public static class Ko
{
/// <summary>
/// Creates an observable with a value computed from one or more other values.
/// </summary>
/// <typeparam name="T">The type of the observable value.</typeparam>
/// <param name="options">Options for the dependent observable.</param>
public static DependentObservable<T> DependentObservable<T>(DependentObservableWritableOptions<T> options)
{
return null;
}
}
}
[IgnoreNamespace]
[Imported]
[ScriptName("Object")]
public class DependentObservableWritableOptions<T>
{
public DependentObservableWritableOptions()
{ }
// Summary:
// Gets or sets whether the evaluation should be deferred, i.e. not performed
// when the observable is first created.
[IntrinsicProperty]
public bool DeferEvaluation { get; set; }
//
// Summary:
// Gets or sets the function to compute the value.
[ScriptName("read")]
[IntrinsicProperty]
public Func<T> GetValueFunction { get; set; }
//
// Summary:
// Gets or sets the function to compute the value.
[ScriptName("write")]
[IntrinsicProperty]
public Action<T> SetValueFunction { get; set; }
//
// Summary:
// Gets the model instance which acts as 'this' in the get value function.
[IntrinsicProperty]
[ScriptName("owner")]
public object Model { get; set; }
}
github의 git 저장소를 통해 프로젝트에 다시 게시해야합니다. 그것도 다른 사람들을 도울 가능성이 ... –