diff --git a/bootstrap-table.js b/bootstrap-table.js index b37a298..4a1091f 100644 --- a/bootstrap-table.js +++ b/bootstrap-table.js @@ -1,6 +1,6 @@ angular.module("schemaForm").run(["$templateCache", function($templateCache) {$templateCache.put("directives/decorators/bootstrap/table/ckeditor.html","
\n \n
\n
\n
\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/cutuploadpic.html","
\n \n
\n
\n
\n {{form.btn_title || \'选择图片\'}}\n
\n
\n
\n
\n
\n"); -$templateCache.put("directives/decorators/bootstrap/table/cutuploadpics.html","
\n \n
\n
\n
\n
\n
\n
$$value$$.length : true\"\n class=\"upload-img-one upload-btn\" file-button file-change=\"$$value$$.push(image)\"\n fl-title=\"剪裁\" fl-image-format=\"image/jpeg\">\n {{form.btn_title || \'选择图片\'}}\n
\n
\n
\n
\n
\n"); +$templateCache.put("directives/decorators/bootstrap/table/cutuploadpics.html","
\n \n
\n
\n
\n
\n
\n
$$value$$.length : true\"\n class=\"upload-img-one upload-btn\" file-button file-change=\"$$value$$.push(image)\"\n fl-title=\"剪裁\" fl-image-format=\"image/jpeg\">\n {{form.btn_title || \'选择图片\'}}\n
\n
\n
\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/date-range.html","
\n \n
\n \n \n \n {{ hasSuccess() ? \'(success)\' : \'(error)\' }}\n
\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/mos-array.html","
\n
\n \n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/mos-button-group.html","
\n \n \n
\n"); @@ -16,13 +16,15 @@ $templateCache.put("directives/decorators/bootstrap/table/mos-select2.html","\n \n \n\n"); $templateCache.put("directives/decorators/bootstrap/table/mos-textarea.html","
\n \n
\n \n\n
\n\n \n\n \n \n \n \n\n \n\n \n \n \n\n
\n\n \n\n {{ hasSuccess() ? \'(success)\' : \'(error)\' }}\n\n
\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/mos-tree-grid.html","\n"); +$templateCache.put("directives/decorators/bootstrap/table/mos-treemultiselect2.html","
\n \n
\n
    \n
  • \n
  • \n
    \n \n
  • \n
\n \n
\n \n
\n
\n\n
\n"); +$templateCache.put("directives/decorators/bootstrap/table/mos-treeselect2.html","
\n \n
\n \n
\n \n \n
\n \n
\n
\n \n
\n \n \n \n \n
\n
\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/ngtree.html","
\n \n
\n {{ hasSuccess() ? \'(success)\' : \'(error)\' }}\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/popover-tree.html","
\n \n
\n
\n \n
\n {{ hasSuccess() ? \'(success)\' : \'(error)\' }}\n \n
\n"); $templateCache.put("directives/decorators/bootstrap/table/popover-user.html","\n
\n \n \n \n
\n\n\n\n"); $templateCache.put("directives/decorators/bootstrap/table/table-title.html","
\n \n \n

{{form.title}}

\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/table.html","
\n\n\n
\n
\n
\n \n
\n
\n
\n \n \n
\n \n
    \n
  • \n {{col.title}}\n
  • \n
\n
\n
\n \n \n
\n
\n
\n\n
\n \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n \n
\n \n
\n \n
\n
\n 该列类型未开发。。。\n
\n
暂无该类数据
\n
\n\n\n\n \n\n \n\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadfile.html","
\n \n
\n \n 错误: {{$file[form.options.errorMsgKey]}}\n
\n
\n"); -$templateCache.put("directives/decorators/bootstrap/table/uploadfiles.html","
\n \n
\n \n
\n
\n"); +$templateCache.put("directives/decorators/bootstrap/table/uploadfiles.html","
\n \n
\n \n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadpic.html","
\n \n
\n \n \n \n
\n (form.options.resizewidth?form.options.resizewidth:960) || $height > (form.options.resizewidth?form.options.resizewidth:960)\" ng-class=\"form.class\" tabindex=\"-1\">\n 上传图片\n = 0\">\n \n \n 上传成功\n \n
\n \n 错误: {{$file[form.options.errorMsgKey]}}\n
\n
\n"); $templateCache.put("directives/decorators/bootstrap/table/uploadpics.html","
\n \n
\n
\n 错误: {{$files[$index][form.options.errorMsgKey]}}\n \n \n \n = 0\">\n
\n
\n
\n
\n (form.options.resizewidth?form.options.resizewidth:960) || $height > (form.options.resizewidth?form.options.resizewidth:960)\" ng-class=\"form.class\" tabindex=\"-1\">\n 批量上传\n \n
\n \n
\n
\n");}]); angular.module('schemaForm').config( @@ -247,6 +249,48 @@ angular.module('schemaForm').config( base + 'mos-multiselect2.html' ); + //MOSTreeSelect2 + var mostreeselect2 = function(name, schema, options) { + if (schema.format === 'mos-treeselect2') { + var f = schemaFormProvider.stdFormObj(name, schema, options); + f.key = options.path; + f.type = 'mos-treeselect2'; + options.lookup[sfPathProvider.stringify(options.path)] = f; + return f; + } + }; + schemaFormProvider.defaults.string.unshift(mostreeselect2); + schemaFormDecoratorsProvider.addMapping( + 'bootstrapDecorator', + 'mos-treeselect2', + base + 'mos-treeselect2.html' + ); + schemaFormDecoratorsProvider.createDirective( + 'mos-treeselect2', + base + 'mos-treeselect2.html' + ); + + //MOS-treeMultiselect2 + var mostreemultiselect2 = function(name, schema, options) { + if (schema.format === 'mos-treemultiselect2') { + var f = schemaFormProvider.stdFormObj(name, schema, options); + f.key = options.path; + f.type = 'mos-treemultiselect2'; + options.lookup[sfPathProvider.stringify(options.path)] = f; + return f; + } + }; + schemaFormProvider.defaults.string.unshift(mostreemultiselect2); + schemaFormDecoratorsProvider.addMapping( + 'bootstrapDecorator', + 'mos-treemultiselect2', + base + 'mos-treemultiselect2.html' + ); + schemaFormDecoratorsProvider.createDirective( + 'mos-treemultiselect2', + base + 'mos-treemultiselect2.html' + ); + var mostemplate = function(name, schema, options) { if (schema.format === 'mos-template') { var f = schemaFormProvider.stdFormObj(name, schema, options); @@ -594,6 +638,8 @@ angular.module('schemaForm').config( 'mos-commit-info' : base + 'mos-commit-info.html',//自定义提交资料 'mos-select2' : base + 'mos-select2.html',//选择组件v2 'mos-multiselect2' : base + 'mos-multiselect2.html',//多选组件v2 + 'mos-treeselect2' : base + 'mos-treeselect2.html',//选择树形组件v2 + 'mos-treemultiselect2' : base + 'mos-treemultiselect2.html',//多选树形组件v2 'mos-template' : base + 'mos-template.html',//文本显示模板 'uploadpic' : base + 'uploadpic.html',//上传组件 'uploadpics' : base + 'uploadpics.html',//多文件上传组 diff --git a/bootstrap-table.min.js b/bootstrap-table.min.js index 19b1e74..1e3dc35 100644 --- a/bootstrap-table.min.js +++ b/bootstrap-table.min.js @@ -1,2 +1,3 @@ -angular.module("schemaForm").run(["$templateCache",function(e){e.put("directives/decorators/bootstrap/table/ckeditor.html",'
'),e.put("directives/decorators/bootstrap/table/cutuploadpic.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/cutuploadpics.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/date-range.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-array.html",'
'),e.put("directives/decorators/bootstrap/table/mos-button-group.html",'
'),e.put("directives/decorators/bootstrap/table/mos-color.html",'
'),e.put("directives/decorators/bootstrap/table/mos-commit-info.html",'
'),e.put("directives/decorators/bootstrap/table/mos-default.html",'
{{$$value$$}}
{{$$value$$}}
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-multiselect.html",'
'),e.put("directives/decorators/bootstrap/table/mos-multiselect2.html",'
{{$item[form.map.displayProp]}}
{{$item[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-radio-buttons.html",'
'),e.put("directives/decorators/bootstrap/table/mos-radios.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select2.html",'
{{$select.selected[form.map.displayProp]}}
{{$select.selected[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-template.html",'
'),e.put("directives/decorators/bootstrap/table/mos-textarea.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-tree-grid.html",''),e.put("directives/decorators/bootstrap/table/ngtree.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/popover-tree.html",'

{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/popover-user.html",'
'), -e.put("directives/decorators/bootstrap/table/table-title.html",'

{{form.title}}

'),e.put("directives/decorators/bootstrap/table/table.html",'
该列类型未开发。。。
暂无该类数据
'),e.put("directives/decorators/bootstrap/table/uploadfile.html",'
错误: {{$file[form.options.errorMsgKey]}}
'),e.put("directives/decorators/bootstrap/table/uploadfiles.html",'
错误: {{$files[$index][form.options.errorMsgKey]}} {{f.substring(f.lastIndexOf(\'/\')+1)}}
批量上传
'),e.put("directives/decorators/bootstrap/table/uploadpic.html",'

上传图片 上传成功
错误: {{$file[form.options.errorMsgKey]}}
'),e.put("directives/decorators/bootstrap/table/uploadpics.html",'
错误: {{$files[$index][form.options.errorMsgKey]}}
批量上传
')}]),angular.module("schemaForm").config(["schemaFormProvider","schemaFormDecoratorsProvider","sfPathProvider",function(e,o,t){var s="directives/decorators/bootstrap/table/",r=function(o,s,r){if("array"===s.type&&"table"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="table",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(r),o.addMapping("bootstrapDecorator","table",s+"table.html"),o.createDirective("table",s+"table.html");var a=function(o,s,r){if("array"===s.type&&"table-title"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="table-title",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(a),o.addMapping("bootstrapDecorator","table-title",s+"table-title.html"),o.createDirective("table-title",s+"table-title.html");var l=function(o,s,r){if("default"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="default",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(l),o.addMapping("bootstrapDecorator","default",s+"mos-default.html"),o.createDirective("default",s+"mos-default.html");var i=function(o,s,r){if("multi-select"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="multi-select",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(i),o.addMapping("bootstrapDecorator","multi-select",s+"mos-multiselect.html"),o.createDirective("multi-select",s+"mos-multiselect.html");var n=function(o,s,r){if("button-group"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="button-group",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(n),o.addMapping("bootstrapDecorator","button-group",s+"mos-button-group.html"),o.createDirective("button-group",s+"mos-button-group.html");var m=function(o,s,r){if("mos-array"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-array",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(m),o.addMapping("bootstrapDecorator","mos-array",s+"mos-array.html"),o.createDirective("mos-array",s+"mos-array.html");var d=function(o,s,r){if("mos-color"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-color",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(d),o.addMapping("bootstrapDecorator","mos-color",s+"mos-color.html"),o.createDirective("mos-color",s+"mos-color.html");var c=function(o,s,r){if("mos-textarea"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-textarea",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(c),o.addMapping("bootstrapDecorator","mos-textarea",s+"mos-textarea.html"),o.createDirective("mos-textarea",s+"mos-textarea.html");var p=function(o,s,r){if("mos-select2"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-select2",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(p),o.addMapping("bootstrapDecorator","mos-select2",s+"mos-select2.html"),o.createDirective("mos-select2",s+"mos-select2.html");var f=function(o,s,r){if("mos-multiselect2"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-multiselect2",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(f),o.addMapping("bootstrapDecorator","mos-multiselect2",s+"mos-multiselect2.html"),o.createDirective("mos-multiselect2",s+"mos-multiselect2.html");var u=function(o,s,r){if("mos-template"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-template",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(u),o.addMapping("bootstrapDecorator","mos-template","directives/decorators/bootstrap/table/mos-template.html"),o.createDirective("mos-template","directives/decorators/bootstrap/table/mos-template.html");var g=function(o,s,r){if("uploadpic"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="uploadpic",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(g),o.addMapping("bootstrapDecorator","uploadpic",s+"uploadpic.html"),o.createDirective("uploadpic",s+"uploadpic.html");var h=function(o,s,r){if("uploadpics"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="uploadpics",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(h),o.addMapping("bootstrapDecorator","uploadpics",s+"uploadpics.html"),o.createDirective("uploadpics",s+"uploadpics.html");var b=function(o,s,r){if("cutuploadpic"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="cutuploadpic",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(b),o.addMapping("bootstrapDecorator","cutuploadpic",s+"cutuploadpic.html"),o.createDirective("cutuploadpic",s+"cutuploadpic.html");var v=function(o,s,r){if("cutuploadpics"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="cutuploadpics",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(v),o.addMapping("bootstrapDecorator","cutuploadpics",s+"cutuploadpics.html"),o.createDirective("cutuploadpics",s+"cutuploadpics.html");var $=function(o,s,r){if("uploadfile"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="uploadfile",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift($),o.addMapping("bootstrapDecorator","uploadfile",s+"uploadfile.html"),o.createDirective("uploadfile",s+"uploadfile.html");var y=function(o,s,r){if("uploadfiles"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="uploadfiles",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(y),o.addMapping("bootstrapDecorator","uploadfiles",s+"uploadfiles.html"),o.createDirective("uploadfiles",s+"uploadfiles.html");var k=function(o,s,r){if("ckeditor"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="ckeditor",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(k),o.addMapping("bootstrapDecorator","ckeditor",s+"ckeditor.html"),o.createDirective("ckeditor",s+"ckeditor.html");var w=function(o,s,r){if("ngtree"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="ngtree",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(w),o.addMapping("bootstrapDecorator","ngtree",s+"ngtree.html"),o.createDirective("ngtree",s+"ngtree.html");var x=function(o,s,r){if("popover-tree"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="popover-tree",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(x),o.addMapping("bootstrapDecorator","popover-tree",s+"popover-tree.html"),o.createDirective("popover-tree",s+"popover-tree.html");var S=function(o,s,r){if("date-range"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="date-range",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(S),o.addMapping("bootstrapDecorator","date-range",s+"date-range.html"),o.createDirective("date-range",s+"date-range.html");var C=function(o,s,r){if("mos-radio-buttons"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-radio-buttons",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(C),o.addMapping("bootstrapDecorator","mos-radio-buttons",s+"mos-radio-buttons.html"),o.createDirective("mos-radio-buttons",s+"mos-radio-buttons.html");var _=function(o,s,r){if("popoverUser"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="popoverUser",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(_),o.addMapping("bootstrapDecorator","popoverUser",s+"popover-user.html"),o.createDirective("popoverUser",s+"popover-user.html");var j=function(o,s,r){if("mos-commit-info"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-commit-info",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(j),o.addMapping("bootstrapDecorator","mos-commit-info",s+"mos-commit-info.html"),o.createDirective("mos-commit-info",s+"mos-commit-info.html");var O=function(o,s,r){if("mos-tree-grid"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-tree-grid",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(O),o.addMapping("bootstrapDecorator","mos-tree-grid",s+"mos-tree-grid.html"),o.createDirective("mos-tree-grid",s+"mos-tree-grid.html");var I=function(o,s,r){if("mos-radios"===s.format){var a=e.stdFormObj(o,s,r);return a.key=r.path,a.type="mos-radios",r.lookup[t.stringify(r.path)]=a,a}};e.defaults.string.unshift(I),o.addMapping("bootstrapDecorator","mos-radios",s+"mos-radios.html"),o.createDirective("mos-radios",s+"mos-radios.html"),o.createDirectives({"mos-number":s+"mos-default.html",text:s+"mos-default.html",date:s+"mos-default.html",password:s+"mos-default.html",input:s+"mos-default.html","multi-select":s+"mos-multiselect.html","table-title":s+"table-title.html",table:s+"table.html","button-group":s+"mos-button-group.html","mos-array":s+"mos-array.html","mos-color":s+"mos-color.html","mos-textarea":s+"mos-textarea.html","mos-commit-info":s+"mos-commit-info.html","mos-select2":s+"mos-select2.html","mos-multiselect2":s+"mos-multiselect2.html","mos-template":s+"mos-template.html",uploadpic:s+"uploadpic.html",uploadpics:s+"uploadpics.html",cutuploadpic:s+"cutuploadpic.html",cutuploadpics:s+"cutuploadpics.html",uploadfile:s+"uploadfile.html",uploadfiles:s+"uploadfiles.html",ckeditor:s+"ckeditor.html",ngtree:s+"ngtree.html","popover-tree":s+"popover-tree.html","date-range":s+"date-range.html","mos-radio-buttons":s+"mos-radio-buttons.html","mos-tree-grid":s+"mos-tree-grid.html",popoverUser:s+"popover-user.html","mos-radios":s+"mos-radios.html",label:s+"mos-default.html"})}]); \ No newline at end of file +angular.module("schemaForm").run(["$templateCache",function(e){e.put("directives/decorators/bootstrap/table/ckeditor.html",'
'),e.put("directives/decorators/bootstrap/table/cutuploadpic.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/cutuploadpics.html",'
{{form.btn_title || \'选择图片\'}}
'),e.put("directives/decorators/bootstrap/table/date-range.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-array.html",'
'),e.put("directives/decorators/bootstrap/table/mos-button-group.html",'
'),e.put("directives/decorators/bootstrap/table/mos-color.html",'
'),e.put("directives/decorators/bootstrap/table/mos-commit-info.html",'
'),e.put("directives/decorators/bootstrap/table/mos-default.html",'
{{$$value$$}}
{{$$value$$}}
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-multiselect.html",'
'),e.put("directives/decorators/bootstrap/table/mos-multiselect2.html",'
{{$item[form.map.displayProp]}}
{{$item[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-radio-buttons.html",'
'),e.put("directives/decorators/bootstrap/table/mos-radios.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select.html",'
'),e.put("directives/decorators/bootstrap/table/mos-select2.html",'
{{$select.selected[form.map.displayProp]}}
{{$select.selected[form.map.displayProp]}}
'),e.put("directives/decorators/bootstrap/table/mos-template.html",'
'),e.put("directives/decorators/bootstrap/table/mos-textarea.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/mos-tree-grid.html",''),e.put("directives/decorators/bootstrap/table/mos-treemultiselect2.html",'
'),e.put("directives/decorators/bootstrap/table/mos-treeselect2.html",'
'),e.put("directives/decorators/bootstrap/table/ngtree.html",'
{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'),e.put("directives/decorators/bootstrap/table/popover-tree.html",'

{{ hasSuccess() ? \'(success)\' : \'(error)\' }}
'), +e.put("directives/decorators/bootstrap/table/popover-user.html",'
'),e.put("directives/decorators/bootstrap/table/table-title.html",'

{{form.title}}

'),e.put("directives/decorators/bootstrap/table/table.html",'
该列类型未开发。。。
暂无该类数据
'),e.put("directives/decorators/bootstrap/table/uploadfile.html",'
错误: {{$file[form.options.errorMsgKey]}}
'),e.put("directives/decorators/bootstrap/table/uploadfiles.html",'
错误: {{$files[$index][form.options.errorMsgKey]}} {{f.substring(f.lastIndexOf(\'/\')+1)}}
批量上传
'),e.put("directives/decorators/bootstrap/table/uploadpic.html",'

上传图片 上传成功
错误: {{$file[form.options.errorMsgKey]}}
'),e.put("directives/decorators/bootstrap/table/uploadpics.html",'
错误: {{$files[$index][form.options.errorMsgKey]}}
批量上传
'); +}]),angular.module("schemaForm").config(["schemaFormProvider","schemaFormDecoratorsProvider","sfPathProvider",function(e,t,o){var s="directives/decorators/bootstrap/table/",a=function(t,s,a){if("array"===s.type&&"table"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="table",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(a),t.addMapping("bootstrapDecorator","table",s+"table.html"),t.createDirective("table",s+"table.html");var r=function(t,s,a){if("array"===s.type&&"table-title"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="table-title",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(r),t.addMapping("bootstrapDecorator","table-title",s+"table-title.html"),t.createDirective("table-title",s+"table-title.html");var l=function(t,s,a){if("default"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="default",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(l),t.addMapping("bootstrapDecorator","default",s+"mos-default.html"),t.createDirective("default",s+"mos-default.html");var i=function(t,s,a){if("multi-select"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="multi-select",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(i),t.addMapping("bootstrapDecorator","multi-select",s+"mos-multiselect.html"),t.createDirective("multi-select",s+"mos-multiselect.html");var n=function(t,s,a){if("button-group"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="button-group",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(n),t.addMapping("bootstrapDecorator","button-group",s+"mos-button-group.html"),t.createDirective("button-group",s+"mos-button-group.html");var m=function(t,s,a){if("mos-array"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-array",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(m),t.addMapping("bootstrapDecorator","mos-array",s+"mos-array.html"),t.createDirective("mos-array",s+"mos-array.html");var d=function(t,s,a){if("mos-color"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-color",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(d),t.addMapping("bootstrapDecorator","mos-color",s+"mos-color.html"),t.createDirective("mos-color",s+"mos-color.html");var c=function(t,s,a){if("mos-textarea"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-textarea",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(c),t.addMapping("bootstrapDecorator","mos-textarea",s+"mos-textarea.html"),t.createDirective("mos-textarea",s+"mos-textarea.html");var p=function(t,s,a){if("mos-select2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-select2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(p),t.addMapping("bootstrapDecorator","mos-select2",s+"mos-select2.html"),t.createDirective("mos-select2",s+"mos-select2.html");var f=function(t,s,a){if("mos-multiselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-multiselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(f),t.addMapping("bootstrapDecorator","mos-multiselect2",s+"mos-multiselect2.html"),t.createDirective("mos-multiselect2",s+"mos-multiselect2.html");var u=function(t,s,a){if("mos-treeselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-treeselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(u),t.addMapping("bootstrapDecorator","mos-treeselect2",s+"mos-treeselect2.html"),t.createDirective("mos-treeselect2",s+"mos-treeselect2.html");var g=function(t,s,a){if("mos-treemultiselect2"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-treemultiselect2",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(g),t.addMapping("bootstrapDecorator","mos-treemultiselect2",s+"mos-treemultiselect2.html"),t.createDirective("mos-treemultiselect2",s+"mos-treemultiselect2.html");var h=function(t,s,a){if("mos-template"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-template",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(h),t.addMapping("bootstrapDecorator","mos-template","directives/decorators/bootstrap/table/mos-template.html"),t.createDirective("mos-template","directives/decorators/bootstrap/table/mos-template.html");var b=function(t,s,a){if("uploadpic"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadpic",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(b),t.addMapping("bootstrapDecorator","uploadpic",s+"uploadpic.html"),t.createDirective("uploadpic",s+"uploadpic.html");var v=function(t,s,a){if("uploadpics"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadpics",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(v),t.addMapping("bootstrapDecorator","uploadpics",s+"uploadpics.html"),t.createDirective("uploadpics",s+"uploadpics.html");var $=function(t,s,a){if("cutuploadpic"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="cutuploadpic",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift($),t.addMapping("bootstrapDecorator","cutuploadpic",s+"cutuploadpic.html"),t.createDirective("cutuploadpic",s+"cutuploadpic.html");var y=function(t,s,a){if("cutuploadpics"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="cutuploadpics",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(y),t.addMapping("bootstrapDecorator","cutuploadpics",s+"cutuploadpics.html"),t.createDirective("cutuploadpics",s+"cutuploadpics.html");var k=function(t,s,a){if("uploadfile"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadfile",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(k),t.addMapping("bootstrapDecorator","uploadfile",s+"uploadfile.html"),t.createDirective("uploadfile",s+"uploadfile.html");var w=function(t,s,a){if("uploadfiles"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="uploadfiles",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(w),t.addMapping("bootstrapDecorator","uploadfiles",s+"uploadfiles.html"),t.createDirective("uploadfiles",s+"uploadfiles.html");var x=function(t,s,a){if("ckeditor"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="ckeditor",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(x),t.addMapping("bootstrapDecorator","ckeditor",s+"ckeditor.html"),t.createDirective("ckeditor",s+"ckeditor.html");var S=function(t,s,a){if("ngtree"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="ngtree",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(S),t.addMapping("bootstrapDecorator","ngtree",s+"ngtree.html"),t.createDirective("ngtree",s+"ngtree.html");var C=function(t,s,a){if("popover-tree"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="popover-tree",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(C),t.addMapping("bootstrapDecorator","popover-tree",s+"popover-tree.html"),t.createDirective("popover-tree",s+"popover-tree.html");var _=function(t,s,a){if("date-range"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="date-range",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(_),t.addMapping("bootstrapDecorator","date-range",s+"date-range.html"),t.createDirective("date-range",s+"date-range.html");var O=function(t,s,a){if("mos-radio-buttons"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-radio-buttons",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(O),t.addMapping("bootstrapDecorator","mos-radio-buttons",s+"mos-radio-buttons.html"),t.createDirective("mos-radio-buttons",s+"mos-radio-buttons.html");var j=function(t,s,a){if("popoverUser"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="popoverUser",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(j),t.addMapping("bootstrapDecorator","popoverUser",s+"popover-user.html"),t.createDirective("popoverUser",s+"popover-user.html");var D=function(t,s,a){if("mos-commit-info"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-commit-info",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(D),t.addMapping("bootstrapDecorator","mos-commit-info",s+"mos-commit-info.html"),t.createDirective("mos-commit-info",s+"mos-commit-info.html");var q=function(t,s,a){if("mos-tree-grid"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-tree-grid",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(q),t.addMapping("bootstrapDecorator","mos-tree-grid",s+"mos-tree-grid.html"),t.createDirective("mos-tree-grid",s+"mos-tree-grid.html");var M=function(t,s,a){if("mos-radios"===s.format){var r=e.stdFormObj(t,s,a);return r.key=a.path,r.type="mos-radios",a.lookup[o.stringify(a.path)]=r,r}};e.defaults.string.unshift(M),t.addMapping("bootstrapDecorator","mos-radios",s+"mos-radios.html"),t.createDirective("mos-radios",s+"mos-radios.html"),t.createDirectives({"mos-number":s+"mos-default.html",text:s+"mos-default.html",date:s+"mos-default.html",password:s+"mos-default.html",input:s+"mos-default.html","multi-select":s+"mos-multiselect.html","table-title":s+"table-title.html",table:s+"table.html","button-group":s+"mos-button-group.html","mos-array":s+"mos-array.html","mos-color":s+"mos-color.html","mos-textarea":s+"mos-textarea.html","mos-commit-info":s+"mos-commit-info.html","mos-select2":s+"mos-select2.html","mos-multiselect2":s+"mos-multiselect2.html","mos-treeselect2":s+"mos-treeselect2.html","mos-treemultiselect2":s+"mos-treemultiselect2.html","mos-template":s+"mos-template.html",uploadpic:s+"uploadpic.html",uploadpics:s+"uploadpics.html",cutuploadpic:s+"cutuploadpic.html",cutuploadpics:s+"cutuploadpics.html",uploadfile:s+"uploadfile.html",uploadfiles:s+"uploadfiles.html",ckeditor:s+"ckeditor.html",ngtree:s+"ngtree.html","popover-tree":s+"popover-tree.html","date-range":s+"date-range.html","mos-radio-buttons":s+"mos-radio-buttons.html","mos-tree-grid":s+"mos-tree-grid.html",popoverUser:s+"popover-user.html","mos-radios":s+"mos-radios.html",label:s+"mos-default.html"})}]); \ No newline at end of file diff --git a/src/bootstrap-table.js b/src/bootstrap-table.js index b92c250..1052213 100644 --- a/src/bootstrap-table.js +++ b/src/bootstrap-table.js @@ -220,6 +220,48 @@ base + 'mos-multiselect2.html' ); + //MOSTreeSelect2 + var mostreeselect2 = function(name, schema, options) { + if (schema.format === 'mos-treeselect2') { + var f = schemaFormProvider.stdFormObj(name, schema, options); + f.key = options.path; + f.type = 'mos-treeselect2'; + options.lookup[sfPathProvider.stringify(options.path)] = f; + return f; + } + }; + schemaFormProvider.defaults.string.unshift(mostreeselect2); + schemaFormDecoratorsProvider.addMapping( + 'bootstrapDecorator', + 'mos-treeselect2', + base + 'mos-treeselect2.html' + ); + schemaFormDecoratorsProvider.createDirective( + 'mos-treeselect2', + base + 'mos-treeselect2.html' + ); + + //MOS-treeMultiselect2 + var mostreemultiselect2 = function(name, schema, options) { + if (schema.format === 'mos-treemultiselect2') { + var f = schemaFormProvider.stdFormObj(name, schema, options); + f.key = options.path; + f.type = 'mos-treemultiselect2'; + options.lookup[sfPathProvider.stringify(options.path)] = f; + return f; + } + }; + schemaFormProvider.defaults.string.unshift(mostreemultiselect2); + schemaFormDecoratorsProvider.addMapping( + 'bootstrapDecorator', + 'mos-treemultiselect2', + base + 'mos-treemultiselect2.html' + ); + schemaFormDecoratorsProvider.createDirective( + 'mos-treemultiselect2', + base + 'mos-treemultiselect2.html' + ); + var mostemplate = function(name, schema, options) { if (schema.format === 'mos-template') { var f = schemaFormProvider.stdFormObj(name, schema, options); @@ -567,6 +609,8 @@ 'mos-commit-info' : base + 'mos-commit-info.html',//自定义提交资料 'mos-select2' : base + 'mos-select2.html',//选择组件v2 'mos-multiselect2' : base + 'mos-multiselect2.html',//多选组件v2 + 'mos-treeselect2' : base + 'mos-treeselect2.html',//选择树形组件v2 + 'mos-treemultiselect2' : base + 'mos-treemultiselect2.html',//多选树形组件v2 'mos-template' : base + 'mos-template.html',//文本显示模板 'uploadpic' : base + 'uploadpic.html',//上传组件 'uploadpics' : base + 'uploadpics.html',//多文件上传组 diff --git a/src/cutuploadpics.html b/src/cutuploadpics.html index 78053b8..410051e 100644 --- a/src/cutuploadpics.html +++ b/src/cutuploadpics.html @@ -3,7 +3,7 @@
-
+
+ +
+
    +
  • +
  • +
    + +
  • +
+ +
+
    +
  • +
  • +
    + +
  • +
+
+
+ +
diff --git a/src/mos-treeselect2.html b/src/mos-treeselect2.html new file mode 100644 index 0000000..052ab4f --- /dev/null +++ b/src/mos-treeselect2.html @@ -0,0 +1,22 @@ +
+ + +
diff --git a/src/uploadfiles.html b/src/uploadfiles.html index 7ac45cf..f61bda6 100644 --- a/src/uploadfiles.html +++ b/src/uploadfiles.html @@ -8,7 +8,7 @@
-