Browse Source

[完善]兼容火狐游览器数字输入框

tianjin
邵佳豪 2 years ago
parent
commit
24b584b99f
  1. 2
      src/app/ui/collection-tools-building/collection-tools.component.ts
  2. 3
      src/app/ui/collection-tools-plan/collection-tools.component.ts
  3. 3
      src/app/ui/collection-tools/collection-tools.component.ts

2
src/app/ui/collection-tools-building/collection-tools.component.ts

@ -514,6 +514,7 @@ export class CollectionToolsBuildingComponent implements OnInit {
//动态属性素材input框值改变
assetInputChange(i, e) {
if (e.target.value) {
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => {
return i.PropertyName == item.PropertyName;
});
@ -524,6 +525,7 @@ export class CollectionToolsBuildingComponent implements OnInit {
this.canvasData.isChange = true;
this.canvas.refreshIcon(this.canvasAssetObj.Id);
}
}
//判断是否是数字类型
myIsNaN(value) {
return typeof value === "number" && !isNaN(value);

3
src/app/ui/collection-tools-plan/collection-tools.component.ts

@ -366,6 +366,7 @@ export class CollectionToolsPlanComponent implements OnInit {
}
//动态属性素材input框值改变
assetInputChange(i, e) {
if (e.target.value) {
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => {
return i.PropertyName == item.PropertyName;
});
@ -378,6 +379,7 @@ export class CollectionToolsPlanComponent implements OnInit {
this.canvas.refreshIcon(this.canvasAssetObj.Id);
}
}
}
//动态属性素材布尔值框改变radio
assetRadioChange(i, boolean) {
@ -1014,7 +1016,6 @@ export class CollectionToolsPlanComponent implements OnInit {
//如果是基本信息编辑模式
// console.log(1234, object);
for (const key in object) {
if (object[key].Name == "毗邻") {
//如果是相同楼层,则筛选出毗邻
object[key].PropertyInfos.forEach((element) => {

3
src/app/ui/collection-tools/collection-tools.component.ts

@ -433,6 +433,7 @@ export class CollectionToolsComponent implements OnInit {
//动态属性素材input框值改变
assetInputChange(i, e) {
if(e.target.value){
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => {
return i.PropertyName == item.PropertyName
})
@ -444,6 +445,8 @@ export class CollectionToolsComponent implements OnInit {
this.canvas.refreshIcon(this.canvasAssetObj.Id)
}
}
//动态属性素材布尔值框改变radio
assetRadioChange(i, boolean) {
let index = this.canvasAssetObj.PropertyInfos.findIndex((item) => {

Loading…
Cancel
Save