diff --git a/build/..js b/build/..js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build/..js diff --git a/build/Alert/Alert.html b/build/Alert/Alert.html index 6bacdfe..677cfd3 100644 --- a/build/Alert/Alert.html +++ b/build/Alert/Alert.html @@ -1,10 +1,10 @@
- - - - + + + +
{{message}}
-
+
\ No newline at end of file diff --git a/build/Alert/Alert.js b/build/Alert/Alert.js index a6a6acd..21afbdb 100644 --- a/build/Alert/Alert.js +++ b/build/Alert/Alert.js @@ -1,8 +1,8 @@ import template from "./Alert.html"; import style from "antd/lib/alert/style/index.css"; -angular.module("esNgAntd").directive("esAlert", function (esNgAntd) { +angular.module("esNgAntd").directive("antdAlert", function (esNgAntd) { return { - controllerAs: "esAlert", + controllerAs: "antdAlert", restrict: "E", transclude: true, replace: true, diff --git a/build/Breadcrumb/Breadcrumb.js b/build/Breadcrumb/Breadcrumb.js index b633a8e..fc70848 100644 --- a/build/Breadcrumb/Breadcrumb.js +++ b/build/Breadcrumb/Breadcrumb.js @@ -1,8 +1,8 @@ import template from "./Breadcrumb.html"; import style from "antd/lib/breadcrumb/style/index.css"; -angular.module("esNgAntd").directive("esBreadcrumb", function (esNgAntd) { +angular.module("esNgAntd").directive("antdBreadcrumb", function (esNgAntd) { return { - controllerAs: "esBreadcrumb", + controllerAs: "antdBreadcrumb", restrict: "E", transclude: true, replace: true, diff --git a/build/BreadcrumbItem/BreadcrumbItem.js b/build/BreadcrumbItem/BreadcrumbItem.js index b858602..726ebd4 100644 --- a/build/BreadcrumbItem/BreadcrumbItem.js +++ b/build/BreadcrumbItem/BreadcrumbItem.js @@ -1,7 +1,7 @@ import template from "./BreadcrumbItem.html"; -angular.module("esNgAntd").directive("esBreadcrumbItem", function () { +angular.module("esNgAntd").directive("antdBreadcrumbItem", function () { return { - controllerAs: "esBreadcrumbItem", + controllerAs: "antdBreadcrumbItem", restrict: "E", transclude: true, replace: true, diff --git a/build/Button/Button.html b/build/Button/Button.html index c94b759..4555abf 100644 --- a/build/Button/Button.html +++ b/build/Button/Button.html @@ -1,7 +1,7 @@
@@ -15,12 +15,12 @@
diff --git a/build/Modal/Modal.js b/build/Modal/Modal.js index f749206..33f90e8 100644 --- a/build/Modal/Modal.js +++ b/build/Modal/Modal.js @@ -1,8 +1,8 @@ import template from "./Modal.html"; import style from "antd/lib/modal/style/index.css"; -angular.module("esNgAntd").directive("esModal", function (esNgAntd) { +angular.module("esNgAntd").directive("antdModal", function (esNgAntd) { return { - controllerAs: "esModal", + controllerAs: "antdModal", restrict: "E", transclude: true, replace: true, @@ -17,7 +17,7 @@ angular.module("esNgAntd").directive("esModal", function (esNgAntd) { footer: "@", }, template: template, - controller: function ($scope, $element) { + controller: function ($scope, $element, $attrs) { this.getContext = function () { return $scope; }; diff --git a/build/Pagination/Pagination.html b/build/Pagination/Pagination.html index de9752c..d4f1836 100644 --- a/build/Pagination/Pagination.html +++ b/build/Pagination/Pagination.html @@ -2,31 +2,31 @@
  • {{handleShowTotal()}}
  • {{value}}
    - - + + •••
  • - - 10 条/页 - 20 条/页 - 50 条/页 - 100 条/页 - + + 10 条/页 + 20 条/页 + 50 条/页 + 100 条/页 +
    跳至
    diff --git a/build/Pagination/Pagination.js b/build/Pagination/Pagination.js index 28cf7d7..f6c8909 100644 --- a/build/Pagination/Pagination.js +++ b/build/Pagination/Pagination.js @@ -1,8 +1,8 @@ import template from "./Pagination.html"; import style from "antd/lib/pagination/style/index.css"; -angular.module("esNgAntd").directive("esPagination", function (esNgAntd) { +angular.module("esNgAntd").directive("antdPagination", function (esNgAntd) { return { - controllerAs: "esPagination", + controllerAs: "antdPagination", restrict: "E", transclude: true, replace: true, diff --git a/build/Popover/Popover.js b/build/Popover/Popover.js index e7e11e5..4c1852d 100644 --- a/build/Popover/Popover.js +++ b/build/Popover/Popover.js @@ -2,9 +2,9 @@ import template from "./Popover.html"; import style from "antd/lib/popover/style/index.css"; angular .module("esNgAntd") - .directive("esPopover", function ($compile, $timeout, esNgAntd) { + .directive("antdPopover", function ($compile, $timeout, esNgAntd) { return { - controllerAs: "esPopover", + controllerAs: "antdPopover", restrict: "E", transclude: true, replace: true, @@ -160,7 +160,7 @@ angular } }; }, - require: ["?^esTable"], + require: ["?^antdTable"], link: function ( $scope, $element, @@ -168,7 +168,7 @@ angular $controllers, $transclude ) { - let [esTable] = $controllers; + let [antdTable] = $controllers; esNgAntd.createStyle("ant-popover", style); $scope.state.target = $element[0]; let title = $scope.title @@ -216,7 +216,7 @@ angular div.querySelector(".ant-popover-inner-content").innerHTML = $scope.state.content; - if (!esTable) { + if (!antdTable) { $compile(div.querySelector(".ant-popover-inner-content"))( $scope.$parent ); diff --git a/build/Radio/Radio.js b/build/Radio/Radio.js index 61611b0..274a55b 100644 --- a/build/Radio/Radio.js +++ b/build/Radio/Radio.js @@ -1,8 +1,8 @@ import template from "./Radio.html"; import style from "antd/lib/radio/style/index.css"; -angular.module("esNgAntd").directive("esRadio", function (esNgAntd) { +angular.module("esNgAntd").directive("antdRadio", function (esNgAntd) { return { - controllerAs: "esRadio", + controllerAs: "antdRadio", restrict: "E", transclude: true, replace: true, @@ -12,7 +12,7 @@ angular.module("esNgAntd").directive("esRadio", function (esNgAntd) { disabled: "@", }, template: template, - controller: function ($scope, $element) { + controller: function ($scope, $element, $attrs) { this.getContext = function () { return $scope; }; @@ -23,14 +23,14 @@ angular.module("esNgAntd").directive("esRadio", function (esNgAntd) { $scope.handleClick = function (event) { event.preventDefault(); - $scope.esRadioGroup.setValue(event); + $scope.antdRadioGroup.setValue(event); }; }, - require: ["?^esRadioGroup"], + require: ["?^antdRadioGroup"], link: function ($scope, $element, $attrs, $controllers, $transclude) { - let [esRadioGroup] = $controllers; - $scope.esRadioGroup = esRadioGroup.getContext(); - $scope.esRadioGroup.state.childrens.push($scope); + let [antdRadioGroup] = $controllers; + $scope.antdRadioGroup = antdRadioGroup.getContext(); + $scope.antdRadioGroup.state.childrens.push($scope); esNgAntd.createStyle("ant-radio", style); }, }; diff --git a/build/RadioButton/RadioButton.html b/build/RadioButton/RadioButton.html index 3c38995..e7b9126 100644 --- a/build/RadioButton/RadioButton.html +++ b/build/RadioButton/RadioButton.html @@ -1,4 +1,4 @@ -
  • {handleShowTotal()}
  • }
  • {state.pageNumList.map(function (value, key) { @@ -10,8 +10,8 @@ {(value!=='prev'&&value!=='next')&&{value}} {(value==='prev'||value==='next')&&
    - {value==="prev"&&} - {value==="next"&&} + {value==="prev"&&} + {value==="next"&&} •••
    } @@ -19,16 +19,16 @@ })}
  • - {showSizeChanger === 'true' && - 10 条/页 - 20 条/页 - 50 条/页 - 100 条/页 - } + {showSizeChanger === 'true' && + 10 条/页 + 20 条/页 + 50 条/页 + 100 条/页 + } {showQuickJumper === 'true' &&
    跳至
    } diff --git a/src/Popover/Popover.js b/src/Popover/Popover.js index de87b53..f5b5255 100644 --- a/src/Popover/Popover.js +++ b/src/Popover/Popover.js @@ -23,7 +23,7 @@ class Popover { closing: false, }; - constructor(esTable) { + constructor(antdTable) { esNgAntd.createStyle("ant-popover", style); this.state.target = $element[0]; let title = this.props.title @@ -67,7 +67,7 @@ class Popover { $compile(div)($scope); div.querySelector(".ant-popover-inner-content").innerHTML = this.state.content; - if (!esTable) { + if (!antdTable) { $compile(div.querySelector(".ant-popover-inner-content"))( $scope.$parent ); diff --git a/src/Radio/Radio.js b/src/Radio/Radio.js index 58938a5..349e47d 100644 --- a/src/Radio/Radio.js +++ b/src/Radio/Radio.js @@ -19,12 +19,12 @@ class Radio { handleClick(event) { event.preventDefault(); - this.esRadioGroup.setValue(event); + this.antdRadioGroup.setValue(event); } - constructor(esRadioGroup) { - this.esRadioGroup = esRadioGroup.getContext(); - this.esRadioGroup.state.childrens.push($scope); + constructor(antdRadioGroup) { + this.antdRadioGroup = antdRadioGroup.getContext(); + this.antdRadioGroup.state.childrens.push($scope); esNgAntd.createStyle("ant-radio", style); } } diff --git a/src/RadioButton/RadioButton.html b/src/RadioButton/RadioButton.html index 5532176..12d821f 100644 --- a/src/RadioButton/RadioButton.html +++ b/src/RadioButton/RadioButton.html @@ -1,4 +1,4 @@ -