diff --git a/build/InputGroup/InputGroup.js b/build/InputGroup/InputGroup.js index 00cd611..a2bdd3f 100644 --- a/build/InputGroup/InputGroup.js +++ b/build/InputGroup/InputGroup.js @@ -1,12 +1,12 @@ import template from "./InputGroup.html"; angular.module("esNgAntd").directive("antdInputGroup", function () { - return { - controllerAs: "antdInputGroup", - restrict: "E", - transclude: true, - replace: true, - scope: { - compact: "@", - }, - }; -}); + return { + template: template, + restrict: "E", + replace: true, + transclude: true, + scope: { + compact: "=" + } + }; +}); \ No newline at end of file diff --git a/dist/ng-antd.js b/dist/ng-antd.js index 3895104..0b0438b 100644 --- a/dist/ng-antd.js +++ b/dist/ng-antd.js @@ -203,7 +203,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var antd /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _InputGroup_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InputGroup.html */ \"./build/InputGroup/InputGroup.html\");\n\nangular.module(\"esNgAntd\").directive(\"antdInputGroup\", function () {\n return {\n controllerAs: \"antdInputGroup\",\n restrict: \"E\",\n transclude: true,\n replace: true,\n scope: {\n compact: \"@\",\n },\n };\n});\n\n\n//# sourceURL=webpack://ng-antd/./build/InputGroup/InputGroup.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _InputGroup_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InputGroup.html */ \"./build/InputGroup/InputGroup.html\");\n\nangular.module(\"esNgAntd\").directive(\"antdInputGroup\", function () {\n return {\n template: _InputGroup_html__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n restrict: \"E\",\n replace: true,\n transclude: true,\n scope: {\n compact: \"=\"\n }\n };\n});\n\n//# sourceURL=webpack://ng-antd/./build/InputGroup/InputGroup.js?"); /***/ }), diff --git a/src/InputGroup/InputGroup.js b/src/InputGroup/InputGroup.js index 3708603..d33f9c3 100644 --- a/src/InputGroup/InputGroup.js +++ b/src/InputGroup/InputGroup.js @@ -1,7 +1,11 @@ import template from "./InputGroup.html"; class InputGroup { - props = { - compact: Boolean + render() { + return template; } +} + +InputGroup.propTypes = { + compact: PropTypes.boolean } \ No newline at end of file -- libgit2 0.21.2