!3733 fix(#I69BYK): update topology.js resolve isSupportTouch not work issue

* chore: bump version 7.2.0
* fix: 修复 isSupportTouch 参数
This commit is contained in:
Argo 2023-01-07 06:39:10 +00:00
parent 24c8ea2560
commit 5bd94e7e74
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<Import Project="..\..\..\bundleconfig.props" />
<PropertyGroup>
<Version>7.1.1</Version>
<Version>7.2.0</Version>
</PropertyGroup>
<PropertyGroup>
@ -19,7 +19,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BootstrapBlazor" Version="7.0.0" />
<PackageReference Include="BootstrapBlazor" Version="7.2.1" />
</ItemGroup>
<ItemGroup>

View File

@ -14,7 +14,7 @@ export class BlazorTopology extends BlazorComponent {
const data = this._config.arguments[1]
const method = this._config.arguments[2]
const isSupportTouch = this._config.supportTouch === true;
this._topology = new Topology(this._element, isSupportTouch)
this._topology = new Topology(this._element, {}, isSupportTouch)
this._topology.connectSocket = function () {
}
this._topology.open(JSON.parse(data))

View File

@ -1 +1 @@
import BlazorComponent from"../../../_content/BootstrapBlazor/modules/base/blazor-component.js";export class BlazorTopology extends BlazorComponent{_init(){if(window.Topology){Topology.prototype.lock=function(n){this.store.data.locked=n;this.finishDrawLine(!0);this.canvas.drawingLineName="";this.stopPencil()};const n=this._config.arguments[0],t=this._config.arguments[1],i=this._config.arguments[2],r=this._config.supportTouch===!0;this._topology=new Topology(this._element,r);this._topology.connectSocket=function(){};this._topology.open(JSON.parse(t));this._topology.lock(1);n.invokeMethodAsync(i)}}_execute(n){if(this._topology){const t=n[1];this._topology.doSocket(JSON.stringify(t))}}_dispose(){this._topology&&(this._topology.destroy(),this._topology=null)}}
import BlazorComponent from"../../../_content/BootstrapBlazor/modules/base/blazor-component.js";export class BlazorTopology extends BlazorComponent{_init(){if(window.Topology){Topology.prototype.lock=function(n){this.store.data.locked=n;this.finishDrawLine(!0);this.canvas.drawingLineName="";this.stopPencil()};const n=this._config.arguments[0],t=this._config.arguments[1],i=this._config.arguments[2],r=this._config.supportTouch===!0;this._topology=new Topology(this._element,{},r);this._topology.connectSocket=function(){};this._topology.open(JSON.parse(t));this._topology.lock(1);n.invokeMethodAsync(i)}}_execute(n){if(this._topology){const t=n[1];this._topology.doSocket(JSON.stringify(t))}}_dispose(){this._topology&&(this._topology.destroy(),this._topology=null)}}

File diff suppressed because one or more lines are too long