diff --git a/extend/base/common/command/admin/VersionBase.php b/extend/base/common/command/admin/VersionBase.php index 97df1f6..f644322 100644 --- a/extend/base/common/command/admin/VersionBase.php +++ b/extend/base/common/command/admin/VersionBase.php @@ -12,13 +12,12 @@ use think\console\Output; class VersionBase extends Command { - public const VERSION = 'v2.0.65'; + public const VERSION = 'v2.0.66'; public const LAYUI_VERSION = '2.8.17'; public const COMMENT = [ - '属性输入组件增加拖动排序,自定义列', - '给商品表增加字段', + '修复动态输入组件初始化', '发布新版本', ]; diff --git a/public/static/plugs/lay-module/propertyInput/propertyInput.js b/public/static/plugs/lay-module/propertyInput/propertyInput.js index 50a0c84..cda6a68 100644 --- a/public/static/plugs/lay-module/propertyInput/propertyInput.js +++ b/public/static/plugs/lay-module/propertyInput/propertyInput.js @@ -135,6 +135,10 @@ this.originalValue = $.extend(true, [], this.setting.value); this.listItem = $.extend(true, [], this.setting.value); this.updateValue(this.listItem); + + if (this.listItem.length == 0) { + this.onAddItem(); + } } },