Commit ae02246a2eee2046fecf6057f8c8dc6876b685b0

Authored by 梁灏
1 parent 0f0e311e

fixed #4718

examples/routers/color-picker.vue
1 1 <template>
2   - <div style="margin: 100px;">
3   - {{ color1 }}
4   - <ColorPicker v-model="color1" />
5   - <ColorPicker v-model="color2" :editable="false"/>
6   - </div>
  2 + <ColorPicker v-model="color1" transfer />
7 3 </template>
8 4 <script>
9 5 export default {
... ... @@ -11,7 +7,7 @@
11 7 return {
12 8 color1: '#19be6b',
13 9 color2: ''
14   - };
  10 + }
15 11 }
16   - };
  12 + }
17 13 </script>
... ...
package-lock.json
1 1 {
2 2 "name": "iview",
3   - "version": "3.1.2",
  3 + "version": "3.1.4",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
... ... @@ -13082,9 +13082,9 @@
13082 13082 "optional": true
13083 13083 },
13084 13084 "v-click-outside-x": {
13085   - "version": "3.0.0",
13086   - "resolved": "https://registry.npmjs.org/v-click-outside-x/-/v-click-outside-x-3.0.0.tgz",
13087   - "integrity": "sha512-VKm35tQ1tlZFXZc527v05sRXbyoQ8KKT1aeefZrcRCW+mPU4KuTiPy4pe1AH8Pibjzx80iU3pNJ4gNUFSXekUQ=="
  13085 + "version": "3.5.0",
  13086 + "resolved": "https://registry.npmjs.org/v-click-outside-x/-/v-click-outside-x-3.5.0.tgz",
  13087 + "integrity": "sha512-JkF3uurCszLjuCTqyQEaWRTJleZf+3jrW8kTN5k4I3Rz/IwYgrCWCAugDBs3K71TX13tiSDBtJbnVmlnogc15A=="
13088 13088 },
13089 13089 "v8flags": {
13090 13090 "version": "2.1.1",
... ...
package.json
... ... @@ -50,7 +50,7 @@
50 50 "lodash.throttle": "^4.1.1",
51 51 "popper.js": "^1.14.1",
52 52 "tinycolor2": "^1.4.1",
53   - "v-click-outside-x": "^3.0.0"
  53 + "v-click-outside-x": "^3.5.0"
54 54 },
55 55 "peerDependencies": {
56 56 "vue": "^2.5.2"
... ...
src/components/color-picker/color-picker.vue
1 1 <template>
2 2 <div
3 3 v-click-outside.capture="handleClose"
4   - v-click-outside:mousedown.capture="handleClose"
5 4 :class="classes">
6 5 <div
7 6 ref="reference"
... ...