Permalink
Browse files

feat: neoui-kero支持按照组件产出对应的js文件以方便项目使用

  • Loading branch information...
LiuYueKai committed Mar 20, 2017
1 parent 9d67ed0 commit f0bc2b939f47799209ddfcbc4e8ee6281cd8a9c4
Showing with 50,833 additions and 27,486 deletions.
  1. +22 −2 .babelrc
  2. +1,376 −0 dist/keroa-baseAdapter.js
  3. +8 −0 dist/keroa-baseAdapter.min.js
  4. +939 −0 dist/keroa-checkbox.js
  5. +8 −0 dist/keroa-checkbox.min.js
  6. +88 −0 dist/keroa-ckeditor.js
  7. +8 −0 dist/keroa-ckeditor.min.js
  8. +1,051 −0 dist/keroa-combo.js
  9. +8 −0 dist/keroa-combo.min.js
  10. +2,597 −0 dist/keroa-currency.js
  11. +8 −0 dist/keroa-currency.min.js
  12. +3,390 −0 dist/keroa-datetimepicker.js
  13. +8 −0 dist/keroa-datetimepicker.min.js
  14. +935 −0 dist/keroa-float.js
  15. +8 −0 dist/keroa-float.min.js
  16. +6,301 −0 dist/keroa-grid.js
  17. +8 −0 dist/keroa-grid.min.js
  18. +701 −0 dist/keroa-integer.js
  19. +8 −0 dist/keroa-integer.min.js
  20. +672 −0 dist/keroa-landLine.js
  21. +8 −0 dist/keroa-landLine.min.js
  22. +1,145 −0 dist/keroa-month.js
  23. +8 −0 dist/keroa-month.min.js
  24. +1,194 −0 dist/keroa-monthdate.js
  25. +8 −0 dist/keroa-monthdate.min.js
  26. +887 −0 dist/keroa-multilang.js
  27. +8 −0 dist/keroa-multilang.min.js
  28. +902 −0 dist/keroa-pagination.js
  29. +8 −0 dist/keroa-pagination.min.js
  30. +371 −0 dist/keroa-password.js
  31. +8 −0 dist/keroa-password.min.js
  32. +957 −0 dist/keroa-percent.js
  33. +8 −0 dist/keroa-percent.min.js
  34. +672 −0 dist/keroa-phoneNumber.js
  35. +8 −0 dist/keroa-phoneNumber.min.js
  36. +656 −0 dist/keroa-progress.js
  37. +8 −0 dist/keroa-progress.min.js
  38. +881 −0 dist/keroa-radio.js
  39. +8 −0 dist/keroa-radio.min.js
  40. +328 −0 dist/keroa-string.js
  41. +8 −0 dist/keroa-string.min.js
  42. +793 −0 dist/keroa-switch.js
  43. +8 −0 dist/keroa-switch.min.js
  44. +318 −0 dist/keroa-textarea.js
  45. +8 −0 dist/keroa-textarea.min.js
  46. +1,409 −0 dist/keroa-textfield.js
  47. +8 −0 dist/keroa-textfield.min.js
  48. +1,319 −0 dist/keroa-time.js
  49. +8 −0 dist/keroa-time.min.js
  50. +2,190 −0 dist/keroa-tree.js
  51. +8 −0 dist/keroa-tree.min.js
  52. +383 −0 dist/keroa-url.js
  53. +8 −0 dist/keroa-url.min.js
  54. +837 −0 dist/keroa-year.js
  55. +8 −0 dist/keroa-year.min.js
  56. +1,181 −0 dist/keroa-yearmonth.js
  57. +8 −0 dist/keroa-yearmonth.min.js
  58. +7,717 −19,232 dist/neoui-kero.js
  59. +1 −10 dist/neoui-kero.min.js
  60. +84 −0 gulpfile.js
  61. +73 −59 lib/index.js
  62. +72 −86 lib/keroa-baseAdapter.js
  63. +255 −269 lib/keroa-checkbox.js
  64. +66 −85 lib/keroa-ckeditor.js
  65. +108 −117 lib/keroa-combo.js
  66. +74 −87 lib/keroa-currency.js
  67. +362 −365 lib/keroa-datetimepicker.js
  68. +137 −140 lib/keroa-float.js
  69. +1,767 −1,751 lib/keroa-grid.js
  70. +89 −96 lib/keroa-integer.js
  71. +41 −55 lib/keroa-landLine.js
  72. +39 −54 lib/keroa-month.js
  73. +44 −59 lib/keroa-monthdate.js
  74. +173 −185 lib/keroa-multilang.js
  75. +102 −104 lib/keroa-pagination.js
  76. +54 −68 lib/keroa-password.js
  77. +29 −46 lib/keroa-percent.js
  78. +41 −54 lib/keroa-phoneNumber.js
  79. +24 −42 lib/keroa-progress.js
  80. +218 −230 lib/keroa-radio.js
  81. +53 −67 lib/keroa-string.js
  82. +57 −75 lib/keroa-switch.js
  83. +32 −49 lib/keroa-textarea.js
  84. +52 −65 lib/keroa-textfield.js
  85. +76 −89 lib/keroa-time.js
  86. +442 −459 lib/keroa-tree.js
  87. +50 −68 lib/keroa-url.js
  88. +41 −57 lib/keroa-year.js
  89. +40 −56 lib/keroa-yearmonth.js
  90. +7 −5 package.json
  91. +3 −2 src/keroa-baseAdapter.js
  92. +100 −88 src/keroa-checkbox.js
  93. +26 −23 src/keroa-ckeditor.js
  94. +49 −28 src/keroa-combo.js
  95. +41 −21 src/keroa-currency.js
  96. +372 −341 src/keroa-datetimepicker.js
  97. +77 −50 src/keroa-float.js
  98. +1,865 −1,801 src/keroa-grid.js
  99. +33 −14 src/keroa-integer.js
  100. +25 −11 src/keroa-landLine.js
  101. +22 −15 src/keroa-month.js
  102. +24 −16 src/keroa-monthdate.js
  103. +79 −69 src/keroa-multilang.js
  104. +59 −38 src/keroa-pagination.js
  105. +32 −21 src/keroa-password.js
  106. +5 −7 src/keroa-percent.js
  107. +25 −11 src/keroa-phoneNumber.js
  108. +17 −12 src/keroa-progress.js
  109. +105 −87 src/keroa-radio.js
  110. +26 −22 src/keroa-string.js
  111. +27 −22 src/keroa-switch.js
  112. +11 −15 src/keroa-textarea.js
  113. +34 −23 src/keroa-textfield.js
  114. +51 −38 src/keroa-time.js
  115. +450 −439 src/keroa-tree.js
  116. +24 −15 src/keroa-url.js
  117. +22 −15 src/keroa-year.js
  118. +22 −15 src/keroa-yearmonth.js
  119. +68 −41 webpack.config.js
View
@@ -1,10 +1,30 @@
{
"presets": [
- "es2015","stage-0"
+ "stage-0"
],
"plugins": [
"transform-es3-property-literals",
"transform-es3-member-expression-literals",
- "babel-plugin-transform-es2015-modules-umd"
+ "transform-es2015-template-literals",
+ "transform-es2015-literals",
+ "transform-es2015-function-name",
+ "transform-es2015-arrow-functions",
+ "transform-es2015-block-scoped-functions",
+ "transform-es2015-classes",
+ "transform-es2015-object-super",
+ "transform-es2015-shorthand-properties",
+ "transform-es2015-computed-properties",
+ "transform-es2015-for-of",
+ "transform-es2015-sticky-regex",
+ "transform-es2015-unicode-regex",
+ "check-es2015-constants",
+ "transform-es2015-spread",
+ "transform-es2015-parameters",
+ "transform-es2015-destructuring",
+ "transform-es2015-block-scoping",
+ "transform-es2015-typeof-symbol", ["transform-regenerator", {
+ "async": false,
+ "asyncGenerators": false
+ }]
]
}
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,88 @@
+/*!
+ * neoui-kero v3.1.27
+ * neoui kero
+ * author : yonyou FED
+ * homepage : https://github.com/iuap-design/neoui-kero#readme
+ * bugs : https://github.com/iuap-design/neoui-kero/issues
+ */
+!function(modules) {
+ function __webpack_require__(moduleId) {
+ if (installedModules[moduleId]) return installedModules[moduleId].exports;
+ var module = installedModules[moduleId] = {
+ i: moduleId,
+ l: !1,
+ exports: {}
+ };
+ return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__),
+ module.l = !0, module.exports;
+ }
+ var installedModules = {};
+ __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.i = function(value) {
+ return value;
+ }, __webpack_require__.d = function(exports, name, getter) {
+ __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
+ configurable: !1,
+ enumerable: !0,
+ get: getter
+ });
+ }, __webpack_require__.n = function(module) {
+ var getter = module && module.__esModule ? function() {
+ return module.default;
+ } : function() {
+ return module;
+ };
+ return __webpack_require__.d(getter, "a", getter), getter;
+ }, __webpack_require__.o = function(object, property) {
+ return Object.prototype.hasOwnProperty.call(object, property);
+ }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 0);
+}([ function(module, __webpack_exports__, __webpack_require__) {
+ "use strict";
+ Object.defineProperty(__webpack_exports__, "__esModule", {
+ value: !0
+ }), __webpack_require__.d(__webpack_exports__, "CkEditorAdapter", function() {
+ return CkEditorAdapter;
+ });
+ var CkEditorAdapter = u.BaseAdapter.extend({
+ init: function() {
+ this.e_editor = this.id + "-ckeditor", this.render(this.options);
+ },
+ render: function(data) {
+ var cols = data.cols || 80, rows = data.rows || 10, self = this, tpls = '<textarea cols="' + cols + '" id="' + this.e_editor + '" name="' + this.e_editor + '_name" rows="' + rows + '"></textarea>';
+ $(this.element).append(tpls), CKEDITOR.replace(this.e_editor + "_name");
+ var tmpeditor = CKEDITOR.instances[this.e_editor];
+ this.tmpeditor = tmpeditor, this.tmpeditor.on("blur", function() {
+ self.setValue(tmpeditor.getData());
+ }), this.tmpeditor.on("focus", function() {
+ self.setShowValue(self.getValue());
+ });
+ },
+ modelValueChange: function(value) {
+ this.slice || (value = value || "", this.trueValue = value, this.showValue = value,
+ this.setShowValue(this.showValue));
+ },
+ getValue: function() {
+ return this.trueValue;
+ },
+ setShowValue: function(showValue) {
+ var self = this;
+ this.showValue = showValue, this.element.value = showValue, this.tmpeditor.setData(showValue),
+ self.setShowValueInter && clearInterval(self.setShowValueInter), self.setShowValueInter = setInterval(function() {
+ self.tmpeditor.document && self.tmpeditor.document.$ && self.tmpeditor.document.$.body && (self.tmpeditor.document.$.body.innerHTML = showValue,
+ clearInterval(self.setShowValueInter));
+ }, 100);
+ },
+ getShowValue: function() {
+ return this.showValue;
+ },
+ getContent: function() {
+ return $("#" + this.e_editor).html();
+ },
+ setContent: function(txt) {
+ $("#" + this.e_editor).html(txt);
+ }
+ });
+ u.compMgr && u.compMgr.addDataAdapter({
+ adapter: CkEditorAdapter,
+ name: "u-ckeditor"
+ });
+} ]);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit f0bc2b9

Please sign in to comment.