File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
import ColorPicker from '../../dist/vue-color-picker.esm.js' ;
2
2
import '../../dist/vue-color-picker.css' ;
3
3
4
- ColorPicker . install = function ( Vue ) {
5
- Vue . component ( 'color-picker' , ColorPicker ) ;
6
- } ;
7
-
8
4
export default ( { Vue } ) => {
9
5
Vue . use ( ColorPicker ) ;
10
6
} ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const basePath = 'dist/vue-color-picker';
11
11
12
12
const build = async ( { format, minify = false } ) => {
13
13
const inputOptions = {
14
- input : './src/ColorPicker.vue ' ,
14
+ input : './src/wrapper.js ' ,
15
15
external : [ 'vue' ] ,
16
16
plugins : [
17
17
// Replace env variable with 'production' for umd.min.js and 'development' for 'umd.js'
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import Rotator from '@radial-color-picker/rotator';
40
40
41
41
export default {
42
42
rcp: null ,
43
- name: ' vue-color-picker ' ,
43
+ name: ' ColorPicker ' ,
44
44
props: {
45
45
hue: {
46
46
default: 0 ,
Original file line number Diff line number Diff line change
1
+ import ColorPicker from './ColorPicker.vue' ;
2
+
3
+ ColorPicker . install = function ( Vue ) {
4
+ Vue . component ( 'ColorPicker' , ColorPicker ) ;
5
+ } ;
6
+
7
+ export default ColorPicker ;
You can’t perform that action at this time.
0 commit comments