diff --git a/.eslintignore b/.eslintignore index 892603d56..f3b51f5c5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,6 @@ -popper.js -fecha.js -release.sh +src/utils/popper.js +src/utils/date.js +*.sh node_modules lib coverage diff --git a/build/bin/new.js b/build/bin/new.js index a26851195..ddf56f008 100644 --- a/build/bin/new.js +++ b/build/bin/new.js @@ -23,6 +23,7 @@ const Files = [ content: `const ${ComponentName} = require('./src/main'); ${ComponentName}.install = function(Vue) { + /* istanbul ignore next */ Vue.component(${ComponentName}.name, ${ComponentName}); }; @@ -41,21 +42,9 @@ cooking.set({ template: false, format: 'umd', moduleName: 'El${ComponentName}', - extends: ['vue2'] -}); - -cooking.add('resolve.alias', { - 'main': path.join(__dirname, '../../src'), - 'packages': path.join(__dirname, '../../packages') -}); - -cooking.add('externals', { - vue: { - root: 'Vue', - commonjs: 'vue', - commonjs2: 'vue', - amd: 'vue' - } + extends: ['vue2'], + alias: config.alias, + externals: { vue: config.vue } }); module.exports = cooking.resolve();` diff --git a/packages/alert/index.js b/packages/alert/index.js index 0242beae3..5785e7862 100644 --- a/packages/alert/index.js +++ b/packages/alert/index.js @@ -1,5 +1,6 @@ const Alert = require('./src/main'); +/* istanbul ignore next */ Alert.install = function(Vue) { Vue.component(Alert.name, Alert); }; diff --git a/packages/autocomplete/index.js b/packages/autocomplete/index.js index 1f923d5da..324a5b79e 100644 --- a/packages/autocomplete/index.js +++ b/packages/autocomplete/index.js @@ -1,5 +1,6 @@ const ElAutocomplete = require('./src/autocomplete'); +/* istanbul ignore next */ ElAutocomplete.install = function(Vue) { Vue.component(ElAutocomplete.name, ElAutocomplete); }; diff --git a/packages/badge/index.js b/packages/badge/index.js index 114c31467..381d62a6f 100644 --- a/packages/badge/index.js +++ b/packages/badge/index.js @@ -1,5 +1,6 @@ const Badge = require('./src/main'); +/* istanbul ignore next */ Badge.install = function(Vue) { Vue.component(Badge.name, Badge); }; diff --git a/packages/breadcrumb-item/index.js b/packages/breadcrumb-item/index.js index 17263c0c3..4698cdee7 100644 --- a/packages/breadcrumb-item/index.js +++ b/packages/breadcrumb-item/index.js @@ -1,5 +1,6 @@ const ElBreadcrumbItem = require('../breadcrumb/src/breadcrumb-item'); +/* istanbul ignore next */ ElBreadcrumbItem.install = function(Vue) { Vue.component(ElBreadcrumbItem.name, ElBreadcrumbItem); }; diff --git a/packages/breadcrumb/index.js b/packages/breadcrumb/index.js index 18b86ab4a..f9d1ed4d1 100644 --- a/packages/breadcrumb/index.js +++ b/packages/breadcrumb/index.js @@ -1,5 +1,6 @@ const ElBreadcrumb = require('./src/breadcrumb'); +/* istanbul ignore next */ ElBreadcrumb.install = function(Vue) { Vue.component(ElBreadcrumb.name, ElBreadcrumb); }; diff --git a/packages/button-group/index.js b/packages/button-group/index.js index 40a81a4fa..bbe8741b8 100644 --- a/packages/button-group/index.js +++ b/packages/button-group/index.js @@ -1,5 +1,6 @@ const ElButtonGroup = require('../button/src/button-group'); +/* istanbul ignore next */ ElButtonGroup.install = function(Vue) { Vue.component(ElButtonGroup.name, ElButtonGroup); }; diff --git a/packages/button/index.js b/packages/button/index.js index d71e7b3d6..565eb9d4d 100644 --- a/packages/button/index.js +++ b/packages/button/index.js @@ -1,6 +1,7 @@ const ElButton = require('./src/button'); const ElButtonGroup = require('./src/button-group'); +/* istanbul ignore next */ ElButton.install = function(Vue) { Vue.component(ElButton.name, ElButton); Vue.component(ElButtonGroup.name, ElButtonGroup); diff --git a/packages/card/index.js b/packages/card/index.js index b1e85bec3..dba937292 100644 --- a/packages/card/index.js +++ b/packages/card/index.js @@ -1,5 +1,6 @@ const Card = require('./src/main'); +/* istanbul ignore next */ Card.install = function(Vue) { Vue.component(Card.name, Card); }; diff --git a/packages/checkbox-group/index.js b/packages/checkbox-group/index.js index 85c120a81..3a5c12203 100644 --- a/packages/checkbox-group/index.js +++ b/packages/checkbox-group/index.js @@ -1,5 +1,6 @@ const ElCheckboxGroup = require('../checkbox/src/checkbox-group.vue'); +/* istanbul ignore next */ ElCheckboxGroup.install = function(Vue) { Vue.component(ElCheckboxGroup.name, ElCheckboxGroup); }; diff --git a/packages/checkbox/_index.js b/packages/checkbox/_index.js index 610bab8ef..b472a412c 100644 --- a/packages/checkbox/_index.js +++ b/packages/checkbox/_index.js @@ -1,6 +1,7 @@ const ElCheckbox = require('./src/checkbox'); const ElCheckboxGroup = require('./src/checkbox-group.vue'); +/* istanbul ignore next */ module.exports = function install(Vue) { Vue.component(ElCheckboxGroup.name, ElCheckboxGroup); Vue.component(ElCheckbox.name, ElCheckbox); diff --git a/packages/checkbox/index.js b/packages/checkbox/index.js index 6cecf5549..63367878d 100644 --- a/packages/checkbox/index.js +++ b/packages/checkbox/index.js @@ -1,5 +1,6 @@ const ElCheckbox = require('./src/checkbox'); +/* istanbul ignore next */ ElCheckbox.install = function(Vue) { Vue.component(ElCheckbox.name, ElCheckbox); }; diff --git a/packages/col/index.js b/packages/col/index.js index ee09e61ad..8c1d323a7 100644 --- a/packages/col/index.js +++ b/packages/col/index.js @@ -1,7 +1,8 @@ const ElCol = require('./src/col'); +/* istanbul ignore next */ ElCol.install = function(Vue) { - Vue.component('el-col', ElCol); + Vue.component(ElCol.name, ElCol); }; module.exports = ElCol; diff --git a/packages/date-picker/_index.js b/packages/date-picker/_index.js index 77c7e9b80..5ace8811f 100644 --- a/packages/date-picker/_index.js +++ b/packages/date-picker/_index.js @@ -2,6 +2,7 @@ import DatePicker from './src/picker/date-picker'; import TimePicker from './src/picker/time-picker'; import TimeSelect from './src/picker/time-select'; +/* istanbul ignore next */ module.exports = function install(Vue) { Vue.component(DatePicker.name, DatePicker); Vue.component(TimePicker.name, TimePicker); diff --git a/packages/date-picker/index.js b/packages/date-picker/index.js index f8fbb16e6..83d126258 100644 --- a/packages/date-picker/index.js +++ b/packages/date-picker/index.js @@ -1,2 +1,8 @@ -import Picker from './src/picker/date-picker'; -module.exports = Picker; +import DatePicker from './src/picker/date-picker'; + +/* istanbul ignore next */ +module.exports = function install(Vue) { + Vue.component(DatePicker.name, DatePicker); +}; + +module.exports = DatePicker; diff --git a/packages/dialog/index.js b/packages/dialog/index.js index cfb83b3dc..cdf4529a0 100644 --- a/packages/dialog/index.js +++ b/packages/dialog/index.js @@ -1,5 +1,6 @@ const ElDialog = require('./src/component'); +/* istanbul ignore next */ ElDialog.install = function(Vue) { Vue.component(ElDialog.name, ElDialog); }; diff --git a/packages/dropdown-item/index.js b/packages/dropdown-item/index.js index 4a6dfc24a..6104ca063 100644 --- a/packages/dropdown-item/index.js +++ b/packages/dropdown-item/index.js @@ -1,5 +1,6 @@ const ElDropdownItem = require('../dropdown/src/dropdown-item'); +/* istanbul ignore next */ ElDropdownItem.install = function(Vue) { Vue.component(ElDropdownItem.name, ElDropdownItem); }; diff --git a/packages/dropdown-menu/index.js b/packages/dropdown-menu/index.js index 72ff1af84..78d3ba4a8 100644 --- a/packages/dropdown-menu/index.js +++ b/packages/dropdown-menu/index.js @@ -1,5 +1,6 @@ const ElDropdownMenu = require('../dropdown/src/dropdown-menu'); +/* istanbul ignore next */ ElDropdownMenu.install = function(Vue) { Vue.component(ElDropdownMenu.name, ElDropdownMenu); }; diff --git a/packages/dropdown/index.js b/packages/dropdown/index.js index 1e760ce91..4e447f827 100644 --- a/packages/dropdown/index.js +++ b/packages/dropdown/index.js @@ -1,5 +1,6 @@ const ElDropdown = require('./src/dropdown'); +/* istanbul ignore next */ ElDropdown.install = function(Vue) { Vue.component(ElDropdown.name, ElDropdown); }; diff --git a/packages/form-item/index.js b/packages/form-item/index.js index 294bca194..86c901045 100644 --- a/packages/form-item/index.js +++ b/packages/form-item/index.js @@ -1,5 +1,6 @@ const ElFormItem = require('../form/src/form-item'); +/* istanbul ignore next */ ElFormItem.install = function(Vue) { Vue.component(ElFormItem.name, ElFormItem); }; diff --git a/packages/form/_index.js b/packages/form/_index.js index ec6c927c9..43db3f6ca 100644 --- a/packages/form/_index.js +++ b/packages/form/_index.js @@ -1,6 +1,7 @@ const ElFormItem = require('./src/form-item'); const ElForm = require('./src/form'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElForm.name, ElForm); Vue.component(ElFormItem.name, ElFormItem); diff --git a/packages/form/index.js b/packages/form/index.js index bccc57732..c1f99de98 100644 --- a/packages/form/index.js +++ b/packages/form/index.js @@ -1,5 +1,6 @@ const ElForm = require('./src/form'); +/* istanbul ignore next */ ElForm.install = function(Vue) { Vue.component(ElForm.name, ElForm); }; diff --git a/packages/group/index.js b/packages/group/index.js deleted file mode 100644 index 979f21c67..000000000 --- a/packages/group/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./src/group.vue'); diff --git a/packages/group/src/group.vue b/packages/group/src/group.vue deleted file mode 100644 index 25fa1e17c..000000000 --- a/packages/group/src/group.vue +++ /dev/null @@ -1,26 +0,0 @@ - - - diff --git a/packages/icon/index.js b/packages/icon/index.js index 2b43b70df..e94dcc114 100644 --- a/packages/icon/index.js +++ b/packages/icon/index.js @@ -1 +1,8 @@ -module.exports = require('./src/icon.vue'); +const ElIcon = require('./src/icon.vue'); + +/* istanbul ignore next */ +ElIcon.install = function(Vue) { + Vue.component(ElIcon.name, ElIcon); +}; + +module.exports = ElIcon; diff --git a/packages/input-number/index.js b/packages/input-number/index.js index cded5e786..a159a154f 100644 --- a/packages/input-number/index.js +++ b/packages/input-number/index.js @@ -1,5 +1,6 @@ const ElInputNumber = require('./src/input-number'); +/* istanbul ignore next */ ElInputNumber.install = function(Vue) { Vue.component(ElInputNumber.name, ElInputNumber); }; diff --git a/packages/input/index.js b/packages/input/index.js index d57c96661..2e24b75f2 100644 --- a/packages/input/index.js +++ b/packages/input/index.js @@ -1,5 +1,6 @@ const ElInput = require('./src/input'); +/* istanbul ignore next */ ElInput.install = function(Vue) { Vue.component(ElInput.name, ElInput); }; diff --git a/packages/loading/index.js b/packages/loading/index.js index 1ca14c6cc..7a049eebd 100644 --- a/packages/loading/index.js +++ b/packages/loading/index.js @@ -1,2 +1 @@ -import Loading from './src/directive'; -module.exports = Loading; +module.exports = require('./src/directive'); diff --git a/packages/menu-item-group/index.js b/packages/menu-item-group/index.js index d883cdef9..c538f3c8c 100644 --- a/packages/menu-item-group/index.js +++ b/packages/menu-item-group/index.js @@ -1,5 +1,6 @@ const ElMenuItemGroup = require('../menu/src/menu-item-group'); +/* istanbul ignore next */ ElMenuItemGroup.install = function(Vue) { Vue.component(ElMenuItemGroup.name, ElMenuItemGroup); }; diff --git a/packages/menu-item/index.js b/packages/menu-item/index.js index 6bf758618..77fb13ac5 100644 --- a/packages/menu-item/index.js +++ b/packages/menu-item/index.js @@ -1,5 +1,6 @@ const ElMenuItem = require('../menu/src/menu-item'); +/* istanbul ignore next */ ElMenuItem.install = function(Vue) { Vue.component(ElMenuItem.name, ElMenuItem); }; diff --git a/packages/menu/_index.js b/packages/menu/_index.js index c726a6c55..1978d01e1 100644 --- a/packages/menu/_index.js +++ b/packages/menu/_index.js @@ -3,6 +3,7 @@ const ElMenuItem = require('./src/menu-item'); const ElMenuItemGroup = require('./src/menu-item-group'); const ElSubmenu = require('./src/submenu'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElMenuItem.name, ElMenuItem); Vue.component(ElMenuItemGroup.name, ElMenuItemGroup); diff --git a/packages/menu/index.js b/packages/menu/index.js index 06fb8b6d6..bd85c2b23 100644 --- a/packages/menu/index.js +++ b/packages/menu/index.js @@ -1,5 +1,6 @@ const ElMenu = require('./src/menu'); +/* istanbul ignore next */ ElMenu.install = function(Vue) { Vue.component(ElMenu.name, ElMenu); }; diff --git a/packages/message-box/index.js b/packages/message-box/index.js index 02d321500..b13851833 100644 --- a/packages/message-box/index.js +++ b/packages/message-box/index.js @@ -1,2 +1 @@ -import MessageBox from './src/main.js'; -module.exports = MessageBox; +module.exports = require('./src/main.js'); diff --git a/packages/message/index.js b/packages/message/index.js index e452ee669..b13851833 100644 --- a/packages/message/index.js +++ b/packages/message/index.js @@ -1,2 +1 @@ -import Message from './src/main.js'; -module.exports = Message; +module.exports = require('./src/main.js'); diff --git a/packages/notification/index.js b/packages/notification/index.js index dd9d333aa..b13851833 100644 --- a/packages/notification/index.js +++ b/packages/notification/index.js @@ -1,2 +1 @@ -import Notification from './src/main.js'; -module.exports = Notification; +module.exports = require('./src/main.js'); diff --git a/packages/option-group/index.js b/packages/option-group/index.js index 7d6f845e4..4524de2d3 100644 --- a/packages/option-group/index.js +++ b/packages/option-group/index.js @@ -1,5 +1,6 @@ const ElOptionGroup = require('../select/src/option-group'); +/* istanbul ignore next */ ElOptionGroup.install = function(Vue) { Vue.component(ElOptionGroup.name, ElOptionGroup); }; diff --git a/packages/option/index.js b/packages/option/index.js index 05970c6aa..0302a8013 100644 --- a/packages/option/index.js +++ b/packages/option/index.js @@ -1,5 +1,6 @@ const ElOption = require('../select/src/option'); +/* istanbul ignore next */ ElOption.install = function(Vue) { Vue.component(ElOption.name, ElOption); }; diff --git a/packages/pagination/index.js b/packages/pagination/index.js index 1085962d3..b09c15732 100644 --- a/packages/pagination/index.js +++ b/packages/pagination/index.js @@ -1,5 +1,6 @@ const Pagination = require('./src/pagination'); +/* istanbul ignore next */ Pagination.install = function(Vue) { Vue.component(Pagination.name, Pagination); }; diff --git a/packages/popover/index.js b/packages/popover/index.js index c09e2e33f..b1cf846e2 100644 --- a/packages/popover/index.js +++ b/packages/popover/index.js @@ -1,5 +1,6 @@ const Popover = require('./src/main'); +/* istanbul ignore next */ Popover.install = function(Vue) { Vue.component(Popover.name, Popover); }; diff --git a/packages/progress/index.js b/packages/progress/index.js index ae7767fc8..e96c49578 100644 --- a/packages/progress/index.js +++ b/packages/progress/index.js @@ -1,5 +1,6 @@ const ElProgress = require('./src/progress'); +/* istanbul ignore next */ ElProgress.install = function(Vue) { Vue.component(ElProgress.name, ElProgress); }; diff --git a/packages/radio-button/index.js b/packages/radio-button/index.js index 828a1a18a..ec6048dbe 100644 --- a/packages/radio-button/index.js +++ b/packages/radio-button/index.js @@ -1,5 +1,6 @@ const RadioButton = require('../radio/src/radio-button.vue'); +/* istanbul ignore next */ RadioButton.install = function(Vue) { Vue.component(RadioButton.name, RadioButton); }; diff --git a/packages/radio-group/index.js b/packages/radio-group/index.js index 917f236bd..de7419d45 100644 --- a/packages/radio-group/index.js +++ b/packages/radio-group/index.js @@ -1,5 +1,6 @@ const RadioGroup = require('../radio/src/radio-group.vue'); +/* istanbul ignore next */ RadioGroup.install = function(Vue) { Vue.component(RadioGroup.name, RadioGroup); }; diff --git a/packages/radio/_index.js b/packages/radio/_index.js index e2d954b50..d1355e70f 100644 --- a/packages/radio/_index.js +++ b/packages/radio/_index.js @@ -2,6 +2,7 @@ const ElRadio = require('./src/radio'); const RadioButton = require('./src/radio-button.vue'); const RadioGroup = require('./src/radio-group.vue'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElRadio.name, ElRadio); Vue.component(RadioButton.name, RadioButton); diff --git a/packages/radio/index.js b/packages/radio/index.js index 38273264a..edbb513d8 100644 --- a/packages/radio/index.js +++ b/packages/radio/index.js @@ -1,5 +1,6 @@ const ElRadio = require('./src/radio'); +/* istanbul ignore next */ ElRadio.install = function(Vue) { Vue.component('el-radio', ElRadio); }; diff --git a/packages/rate/index.js b/packages/rate/index.js index ca7d3d916..c49b715d2 100644 --- a/packages/rate/index.js +++ b/packages/rate/index.js @@ -1,5 +1,6 @@ const Rate = require('./src/main'); +/* istanbul ignore next */ Rate.install = function(Vue) { Vue.component(Rate.name, Rate); }; diff --git a/packages/row/index.js b/packages/row/index.js index 33da006ed..5198e2dd1 100644 --- a/packages/row/index.js +++ b/packages/row/index.js @@ -1,5 +1,6 @@ const ElRow = require('./src/row'); +/* istanbul ignore next */ ElRow.install = function(Vue) { Vue.component(ElRow.name, ElRow); }; diff --git a/packages/select/_index.js b/packages/select/_index.js index c371d2ebe..e7d355e88 100644 --- a/packages/select/_index.js +++ b/packages/select/_index.js @@ -2,6 +2,7 @@ const ElSelect = require('./src/select'); const ElOption = require('./src/option'); const ElOptionGroup = require('./src/option-group'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElSelect.name, ElSelect); Vue.component(ElOption.name, ElOption); diff --git a/packages/select/index.js b/packages/select/index.js index 6c130d151..c1fc8e265 100644 --- a/packages/select/index.js +++ b/packages/select/index.js @@ -1,5 +1,6 @@ var ElSelect = require('./src/select'); +/* istanbul ignore next */ ElSelect.install = function(Vue) { Vue.component(ElSelect.name, ElSelect); }; diff --git a/packages/slider/index.js b/packages/slider/index.js index f39136b4e..7fffc0a2f 100644 --- a/packages/slider/index.js +++ b/packages/slider/index.js @@ -1,5 +1,6 @@ const Slider = require('./src/main'); +/* istanbul ignore next */ Slider.install = function(Vue) { Vue.component(Slider.name, Slider); }; diff --git a/packages/spinner/index.js b/packages/spinner/index.js index de2419e39..d3a0aae85 100644 --- a/packages/spinner/index.js +++ b/packages/spinner/index.js @@ -1,5 +1,6 @@ const ElSpinner = require('./src/spinner'); +/* istanbul ignore next */ ElSpinner.install = function(Vue) { Vue.component(ElSpinner.name, ElSpinner); }; diff --git a/packages/step/index.js b/packages/step/index.js index 99a8499ca..93682456f 100644 --- a/packages/step/index.js +++ b/packages/step/index.js @@ -1,5 +1,6 @@ const Step = require('../steps/src/step'); +/* istanbul ignore next */ Step.install = function(Vue) { Vue.component(Step.name, Step); }; diff --git a/packages/steps/_index.js b/packages/steps/_index.js index e4dc6ab8c..3dc8b33c2 100644 --- a/packages/steps/_index.js +++ b/packages/steps/_index.js @@ -1,6 +1,7 @@ const Steps = require('./src/steps'); const Step = require('./src/step'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(Steps.name, Steps); Vue.component(Step.name, Step); diff --git a/packages/steps/index.js b/packages/steps/index.js index 1e2bf55fe..de64528e9 100644 --- a/packages/steps/index.js +++ b/packages/steps/index.js @@ -1,5 +1,6 @@ const Steps = require('./src/steps'); +/* istanbul ignore next */ Steps.install = function(Vue) { Vue.component(Steps.name, Steps); }; diff --git a/packages/submenu/index.js b/packages/submenu/index.js index 486650ea0..79cbfbcff 100644 --- a/packages/submenu/index.js +++ b/packages/submenu/index.js @@ -1,5 +1,6 @@ const ElSubmenu = require('../menu/src/submenu'); +/* istanbul ignore next */ ElSubmenu.install = function(Vue) { Vue.component(ElSubmenu.name, ElSubmenu); }; diff --git a/packages/switch/index.js b/packages/switch/index.js index 808cfd436..9cf89d796 100644 --- a/packages/switch/index.js +++ b/packages/switch/index.js @@ -1,5 +1,6 @@ const ElSwitch = require('./src/component'); +/* istanbul ignore next */ ElSwitch.install = function(Vue) { Vue.component(ElSwitch.name, ElSwitch); }; diff --git a/packages/tab-pane/index.js b/packages/tab-pane/index.js index 3ddfa853a..a7897a5d3 100644 --- a/packages/tab-pane/index.js +++ b/packages/tab-pane/index.js @@ -1,5 +1,6 @@ const TabPane = require('../tabs/src/tab-pane.vue'); +/* istanbul ignore next */ TabPane.install = function(Vue) { Vue.component(TabPane.name, TabPane); }; diff --git a/packages/table-column/index.js b/packages/table-column/index.js index 0f0651b3f..673c45393 100644 --- a/packages/table-column/index.js +++ b/packages/table-column/index.js @@ -1,5 +1,6 @@ const ElTableColumn = require('../table/src/table-column'); +/* istanbul ignore next */ ElTableColumn.install = function(Vue) { Vue.component(ElTableColumn.name, ElTableColumn); }; diff --git a/packages/table/_index.js b/packages/table/_index.js index 360c07979..a0a0cbe59 100644 --- a/packages/table/_index.js +++ b/packages/table/_index.js @@ -1,6 +1,7 @@ const ElTableColumn = require('./src/table-column'); const ElTable = require('./src/table'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElTable.name, ElTable); Vue.component(ElTableColumn.name, ElTableColumn); diff --git a/packages/table/index.js b/packages/table/index.js index c43d8ff10..c06416554 100644 --- a/packages/table/index.js +++ b/packages/table/index.js @@ -1,5 +1,6 @@ const ElTable = require('./src/table'); +/* istanbul ignore next */ ElTable.install = function(Vue) { Vue.component(ElTable.name, ElTable); }; diff --git a/packages/tabs/_index.js b/packages/tabs/_index.js index 11a5a1569..9b71d722a 100644 --- a/packages/tabs/_index.js +++ b/packages/tabs/_index.js @@ -1,6 +1,7 @@ const ElTabs = require('./src/tabs'); const ElTabPane = require('./src/tab-pane'); +/* istanbul ignore next */ module.exports = function(Vue) { Vue.component(ElTabs.name, ElTabs); Vue.component(ElTabPane.name, ElTabPane); diff --git a/packages/tabs/index.js b/packages/tabs/index.js index bb1614f66..d30b8ccbc 100644 --- a/packages/tabs/index.js +++ b/packages/tabs/index.js @@ -1,5 +1,6 @@ const ElTabs = require('./src/tabs'); +/* istanbul ignore next */ ElTabs.install = function(Vue) { Vue.component(ElTabs.name, ElTabs); }; diff --git a/packages/tag/index.js b/packages/tag/index.js index 029de5b9a..8ef89145a 100644 --- a/packages/tag/index.js +++ b/packages/tag/index.js @@ -1,5 +1,6 @@ const ElTag = require('./src/tag'); +/* istanbul ignore next */ ElTag.install = function(Vue) { Vue.component(ElTag.name, ElTag); }; diff --git a/packages/time-picker/index.js b/packages/time-picker/index.js index 60af80fb7..bf9d8cfef 100644 --- a/packages/time-picker/index.js +++ b/packages/time-picker/index.js @@ -1,2 +1,8 @@ -import Picker from '../date-picker/src/picker/time-picker'; -module.exports = Picker; +const TimePicker = require('../date-picker/src/picker/time-picker'); + +/* istanbul ignore next */ +TimePicker.install = function(Vue) { + Vue.component(TimePicker.name, TimePicker); +}; + +module.exports = TimePicker; diff --git a/packages/time-select/index.js b/packages/time-select/index.js index 6363ddc4c..0744d19a2 100644 --- a/packages/time-select/index.js +++ b/packages/time-select/index.js @@ -1,2 +1,8 @@ -import Picker from '../date-picker/src/picker/time-select'; -module.exports = Picker; +const TimeSelect = require('../date-picker/src/picker/time-select'); + +/* istanbul ignore next */ +TimeSelect.install = function(Vue) { + Vue.component(TimeSelect.name, TimeSelect); +}; + +module.exports = TimeSelect; diff --git a/packages/tooltip/index.js b/packages/tooltip/index.js index 2ee1ba5a0..7f991642b 100644 --- a/packages/tooltip/index.js +++ b/packages/tooltip/index.js @@ -1,5 +1,6 @@ const Tooltip = require('./src/main'); +/* istanbul ignore next */ Tooltip.install = function(Vue) { Vue.component(Tooltip.name, Tooltip); }; diff --git a/packages/tree/index.js b/packages/tree/index.js index 1f6ebac9b..e65b4a0d7 100644 --- a/packages/tree/index.js +++ b/packages/tree/index.js @@ -1,5 +1,6 @@ const Tree = require('./src/tree.vue'); +/* istanbul ignore next */ Tree.install = function(Vue) { Vue.component(Tree.name, Tree); }; diff --git a/packages/upload/index.js b/packages/upload/index.js index 479df11f1..2b723041b 100644 --- a/packages/upload/index.js +++ b/packages/upload/index.js @@ -1,5 +1,6 @@ -const Upload = require('./src/index'); +const Upload = require('./src'); +/* istanbul ignore next */ Upload.install = function(Vue) { Vue.component(Upload.name, Upload); };