common-ui
Posted Exception+
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了common-ui相关的知识,希望对你有一定的参考价值。
angular.module("common.ui.tpls", ["template/window/common-window.html", "template/window/common-loading.html", "template/tree/common-tree.html", "template/tree/common-popup-tree.html", "template/autocomplete/common-autocomplete.html"]); angular.module("template/window/common-window.html", []).run(["$templateCache", function ($templateCache) { $templateCache.put("template/window/common-window.html", "<div ng-show=\"showWindow\" class=\"panel panel-primary\" ng-class=\"windowCls\"\n" + " ng-style=\"{width: windowWidth, zIndex:modalZIndex}\"\n" + " style=\"position:absolute; display: none;\">\n" + " <div class=\"panel-heading window-title\" style=\"cursor:move;\">\n" + " <span ng-bind-html=\"windowTitle\"></span>\n" + " <button ng-if=\"showClose\" title=\"{{closeLabel}}\" ng-click=\"closeWindow()\" class=\"bootbox-close-button close\"\n" + " type=\"button\">×\n" + " </button>\n" + " </div>\n" + " <div class=\"panel-body\" ng-style=\"{height : windowHeight, ‘overflow-y‘: windowHeight!=‘auto‘?‘auto‘:‘‘}\"\n" + " ng-transclude>\n" + " </div>\n" + " <div class=\"panel-footer\" ng-if=\"showOk||showCancel||(windowConfig.buttons && windowConfig.buttons.length>0)\">\n" + " <div class=\"center-block\" style=\"text-align: center;\">\n" + " <span style=\"padding: 5px;\">\n" + " <input type=\"button\" class=\"btn btn-primary\"\n" + " ng-disabled=\"currentWindowForm && !currentWindowForm.$valid\" ng-value=\"okLabel\" ng-if=\"showOk\"\n" + " ng-click=\"ok()\">\n" + " </span>\n" + " <span style=\"padding: 5px;\">\n" + " <input type=\"button\" class=\"btn btn-default\" ng-value=\"cancelLabel\" ng-if=\"showCancel\"\n" + " ng-click=\"cancel()\">\n" + " </span>\n" + " <span style=\"padding: 5px;\" ng-repeat=\"button in windowConfig.buttons\">\n" + " <input type=\"button\" class=\"btn btn-default\" ng-class=\"button.className?button.className:‘btn-default‘\"\n" + " ng-value=\"button.label\" ng-if=\"button.enabled\"\n" + " ng-click=\"button.buttonClick()\">\n" + " </span>\n" + " </div>\n" + " </div>\n" + "</div>"); }]); angular.module("template/window/common-loading.html", []).run(["$templateCache", function ($templateCache) { $templateCache.put("template/window/common-loading.html", "<div ng-show=\"showWindow\" class=\"panel panel-primary c_loading\" ng-class=\"windowCls\"\n" + " ng-style=\"{width: windowWidth, zIndex:modalZIndex}\"\n" + " style=\"position:absolute;display: none;\">\n" + " <div class=\"panel-body\" ng-style=\"{height : windowHeight, ‘overflow-y‘: windowHeight!=‘auto‘?‘scroll‘:‘‘}\"\n" + " ng-transclude>\n" + " </div>\n" + "</div>"); }]); angular.module("template/tree/common-tree.html", []).run(["$templateCache", function ($templateCache) { $templateCache.put("template/tree/common-tree.html", "<ul class=\"ztree\" ng-style=\"{width: treeWidth, height: treeHeight, overflow : ‘auto‘}\"></ul>"); }]); angular.module("template/tree/common-popup-tree.html", []).run(["$templateCache", function ($templateCache) { $templateCache.put("template/tree/common-popup-tree.html", "<div ng-style=\"{display: ‘inline-block‘,position: ‘relative‘, width: fieldWidth}\">\n" + " <input type=\"hidden\" ng-model=\"ngModel\">\n" + " <input type=\"text\" ng-disabled=\"ngDisabled\" readonly=\"readonly\" ng-model=\"treeLabel\" placeholder=\"{{placeholder}}\"\n" + " class=\"form-control js-value-field\">\n" + "\n" + " <div class=\"popover\" style=\"max-width:inherit;\">\n" + " <div class=\"popover-inner\" ng-style=\"{width: treeWidth}\">\n" + " <h3 class=\"popover-title\">{{treeTitle}}\n" + " <span class=\"pull-right\">\n" + " <a ng-if=\"!singleSelectFlag\" class=\"btn btn-primary btn-xs allButton\">{{allLabel}}</a>\n" + " <a class=\"btn btn-primary btn-xs clearButton\">{{clearLabel}}</a>\n" + " <a class=\"btn btn-primary btn-xs okButton\">{{okLabel}}</a>\n" + " </span>\n" + " </h3>\n" + " <div class=\"popover-content\">\n" + " <ul class=\"ztree\" ng-style=\"{width: ‘100%‘, height: treeHeight, overflow : ‘auto‘}\"></ul>\n" + " </div>\n" + " </div>\n" + " </div>\n" + "</div>"); }]); angular.module("template/autocomplete/common-autocomplete.html", []).run(["$templateCache", function ($templateCache) { $templateCache.put("template/autocomplete/common-autocomplete.html", "<div class=\"autocomplete\" ng-style=\"{width: fieldWidth}\">\n"+ " <input type=\"hidden\" ng-model=\"ngModel\">\n"+ " <input type=\"text\" ng-disabled=\"ngDisabled\" ng-focus=\"doShowAutocomplete($event)\" ng-change=\"doLoadPageData()\"\n"+ " ng-model=\"autocompleteLabel\" placeholder=\"{{placeholder}}\"\n"+ " class=\"form-control js-value-field\">\n"+ "\n"+ " <div class=\"popover\" ng-style=\"{width : autocompleteWidth}\">\n"+ " <div class=\"popover-inner\">\n"+ " <div class=\"popover-title\" ng-bind-html=\"autocompleteTitle\"\n"+ " ng-if=\"autocompleteTitle && showSelectPage && (!autocompleteLabel || !autocompleteConfig)\"></div>\n"+ " <div class=\"popover-inner\">\n"+ " <div class=\"popover-content\" ng-if=\"showSelectPage && (!autocompleteLabel || !autocompleteConfig)\">\n"+ " <div uib-tabset justified=\"justified\">\n"+ " <div uib-tab active=\"sTab.active\" select=\"doLoadSelectPageData(sTab)\"\n"+ " ng-repeat=\"sTab in selectPageConfig.tabs track by sTab.id\"\n"+ " heading=\"{{sTab.label||sTab.id}}\">\n"+ " <span class=\"col-sm-12 text-info\"\n"+ " ng-if=\"currentSelectPageData.length==0 && selectPageConfigLoading\">\n"+ " <i class=\"fa fa-spinner fa-pulse\"></i> <span\n"+ " ng-bind=\"autocompleteConfig.errorMessage||‘Loading‘\"></span>\n"+ " </span>\n"+ " <span ng-class=\"‘col-sm-‘ + 12/rowSize\"\n"+ " class=\"auto_padding\"\n"+ " ng-repeat=\"data in currentSelectPageData\">\n"+ " <a href=\"javascript:void(0)\"\n"+ " title=\"{{data[labelKey]}}\"\n"+ " ng-bind-html=\"data[labelKey]\"\n"+ " ng-click=\"selectData(data)\"></a></span>\n"+ "\n"+ " <div class=\"col-sm-12 text-center\">\n"+ " <div class=\"pagination-xs\"\n"+ " uib-pagination\n"+ " ng-change=\"parsePagedSelectData(selectPage, selectPageData)\"\n"+ " items-per-page=\"selectPage.pageSize\"\n"+ " ng-if=\"selectPage.totalCount>selectPage.pageSize\"\n"+ " total-items=\"selectPage.totalCount\"\n"+ " max-size=\"5\"\n"+ " boundary-links=\"false\"\n"+ " direction-links=\"true\"\n"+ " ng-model=\"selectPage.pageNumber\"></div>\n"+ " </div>\n"+ " </div>\n"+ " </div>\n"+ " </div>\n"+ " <div class=\"popover-content\" ng-if=\"!showSelectPage || (autocompleteConfig && autocompleteLabel)\">\n"+ " <table class=\"table table-hover text-info\">\n"+ " <thead>\n"+ " <tr>\n"+ " <th ng-repeat=\"column in autocompleteConfig.columns\" width=\"{{column.width}}\">\n"+ " <span ng-bind-html=\"column.label\"></span>\n"+ " </th>\n"+ " </tr>\n"+ " </thead>\n"+ " <tbody>\n"+ " <tr ng-repeat=\"data in items\" ng-click=\"selectData(data)\"\n"+ " ng-class=\"{‘active‘: $odd, ‘info‘: selectedData==data}\"\n"+ " ng-mouseover=\"markSelectData(data)\">\n"+ " <td ng-repeat=\"column in autocompleteConfig.columns\">\n"+ " <span ng-bind-html=\"data[column.key]\"></span>\n"+ " </td>\n"+ " </tr>\n"+ " <tr ng-if=\"!items||items.length==0\">\n"+ " <td colspan=\"{{autocompleteConfig.columns.length}}\">\n"+ " <span ng-if=\"autocompleteConfigLoading\">\n"+ " <i class=\"fa fa-spinner fa-pulse\"></i> <span\n"+ " ng-bind=\"autocompleteConfig.loadingMessage||‘Loading‘\"></span>\n"+ " </span>\n"+ " <span ng-bind=\"autocompleteConfig.emptyMessage\"\n"+ " ng-if=\"!autocompleteConfigLoading\"></span>\n"+ " </td>\n"+ " </tr>\n"+ " </tbody>\n"+ " </table>\n"+ " <div class=\"col-sm-12 text-center\">\n"+ " <div class=\"pagination-xs\"\n"+ " uib-pagination\n"+ " ng-if=\"page.totalCount>page.pageSize\"\n"+ " ng-change=\"doLoadPageData()\"\n"+ " items-per-page=\"page.pageSize\"\n"+ " total-items=\"page.totalCount\"\n"+ " max-size=\"5\"\n"+ " boundary-links=\"false\"\n"+ " ng-model=\"page.pageNumber\"></div>\n"+ " </div>\n"+ " </div>\n"+ " </div>\n"+ " </div>\n"+ " </div>\n"+ "</div>"); }]);
以上是关于common-ui的主要内容,如果未能解决你的问题,请参考以下文章