protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await ElementReferenceId.SetAnalogClock(JSRuntimeObj, ClockType.GetHashCode()); base.StateHasChanged(); } }
/// <summary> /// 哈希数 /// </summary> /// <returns></returns> public override int GetHashCode() { return(ClockType.GetHashCode() * 3 + base.GetHashCode() ); }