Commit a77e7b1a89b0343ad3293e1ae1e5ab5de7d0446e
1 parent
6674355b
优化InputGroup组件
Showing
3 changed files
with
17 additions
and
13 deletions
Show diff stats
build/InputGroup/InputGroup.js
1 | 1 | import template from "./InputGroup.html"; |
2 | 2 | angular.module("esNgAntd").directive("antdInputGroup", function () { |
3 | - return { | |
4 | - controllerAs: "antdInputGroup", | |
5 | - restrict: "E", | |
6 | - transclude: true, | |
7 | - replace: true, | |
8 | - scope: { | |
9 | - compact: "@", | |
10 | - }, | |
11 | - }; | |
12 | -}); | |
3 | + return { | |
4 | + template: template, | |
5 | + restrict: "E", | |
6 | + replace: true, | |
7 | + transclude: true, | |
8 | + scope: { | |
9 | + compact: "=" | |
10 | + } | |
11 | + }; | |
12 | +}); | |
13 | 13 | \ No newline at end of file | ... | ... |
dist/ng-antd.js
... | ... | @@ -203,7 +203,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var antd |
203 | 203 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
204 | 204 | |
205 | 205 | "use strict"; |
206 | -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?"); | |
206 | +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?"); | |
207 | 207 | |
208 | 208 | /***/ }), |
209 | 209 | ... | ... |
src/InputGroup/InputGroup.js