zan-choose-dialog
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -23,8 +23,4 @@ 'use strict'; | ||
var isOldTemplate = false; | ||
var canSelectRow = function canSelectRow(data) { | ||
var templateId = data.template_id; | ||
if (!options || !options.disableH5Only) { | ||
@@ -34,2 +30,5 @@ return true; | ||
var templateId = data.template_id; | ||
if (typeof templateId !== 'number') { | ||
@@ -39,6 +38,3 @@ return true; | ||
// 判断是否为老模板:template_id 2-18 | ||
if (templateId > 1 && templateId < 19) { | ||
isOldTemplate = true; | ||
} | ||
var isOldTemplate = templateId > 1 && templateId < 19; | ||
return !isOldTemplate; | ||
@@ -45,0 +41,0 @@ }; |
{ | ||
"name": "zan-choose-dialog", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "这是一个React组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
1188563
33286