From b096555b6816dd1eb3e26840fceb3b6a6b04c75a Mon Sep 17 00:00:00 2001 From: Jeff Sagal Date: Tue, 24 Jan 2017 22:23:15 -0800 Subject: [PATCH] component - switch to `v-if` (#98) - update array string filter to be case-insensitve testing - update karma to hide output from skipped tests - skip scroll down test until http://github.com/vuejs/vue-loader/issues/434 is resolved build - add dev.html to be used as entry point for development --- build/webpack.dev.conf.js | 2 +- dev.html | 29 +++++++ src/components/Select.vue | 29 +++++-- src/mixins/pointerScroll.js | 18 +++-- test/unit/karma.conf.js | 3 + test/unit/specs/Select.spec.js | 139 +++++++++++++++++++++++++++------ 6 files changed, 178 insertions(+), 42 deletions(-) create mode 100644 dev.html diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 662df01..76e93fc 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -27,7 +27,7 @@ module.exports = merge(baseWebpackConfig, { // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ filename: 'index.html', - template: 'index.html', + template: 'dev.html', inject: true }) ] diff --git a/dev.html b/dev.html new file mode 100644 index 0000000..f50547b --- /dev/null +++ b/dev.html @@ -0,0 +1,29 @@ + + + + + Vue Select Dev + + + + + +
+ + + +
+ + diff --git a/src/components/Select.vue b/src/components/Select.vue index 2c8b953..9505315 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -176,7 +176,7 @@ {{ getOptionLabel(option) }} - @@ -199,14 +199,14 @@ :style="{ width: isValueEmpty ? '100%' : 'auto' }" > - +
Loading...
-