Skip to content

Commit

Permalink
feat: neoui-kero支持按照组件产出对应的js文件以方便项目使用
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYueKai committed Mar 20, 2017
1 parent 9d67ed0 commit f0bc2b9
Show file tree
Hide file tree
Showing 119 changed files with 50,833 additions and 27,486 deletions.
24 changes: 22 additions & 2 deletions .babelrc
@@ -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
}]
]
}
1,376 changes: 1,376 additions & 0 deletions dist/keroa-baseAdapter.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/keroa-baseAdapter.min.js

Large diffs are not rendered by default.

939 changes: 939 additions & 0 deletions dist/keroa-checkbox.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/keroa-checkbox.min.js

Large diffs are not rendered by default.

88 changes: 88 additions & 0 deletions dist/keroa-ckeditor.js
@@ -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"
});
} ]);
8 changes: 8 additions & 0 deletions dist/keroa-ckeditor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0bc2b9

Please sign in to comment.