mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-04 04:59:38 +08:00
!3733 fix(#I69BYK): update topology.js resolve isSupportTouch not work issue
* chore: bump version 7.2.0 * fix: 修复 isSupportTouch 参数
This commit is contained in:
parent
24c8ea2560
commit
5bd94e7e74
@ -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>
|
||||
|
@ -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))
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user