mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-12-08 20:48:46 +00:00
Added dist to git
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|||||||
0
build/.gkeep
Normal file
0
build/.gkeep
Normal file
3
dist/vue-modal.js
vendored
Normal file
3
dist/vue-modal.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -13,6 +13,7 @@
|
|||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import VueModal from './modal';
|
import VueModal from './modal';
|
||||||
@@ -107,6 +108,7 @@
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.vue-modal-overlay {
|
.vue-modal-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
10
src/modal.js
10
src/modal.js
@@ -15,13 +15,17 @@ const VueModal = {
|
|||||||
const opts = typeof state === 'object' && typeof params === 'undefined'
|
const opts = typeof state === 'object' && typeof params === 'undefined'
|
||||||
? state
|
? state
|
||||||
: params;
|
: params;
|
||||||
VueModal.event.$emit('toggle', name, state);
|
|
||||||
|
VueModal.event
|
||||||
|
.$emit('toggle', name, state);
|
||||||
},
|
},
|
||||||
show(name, params = {}) {
|
show(name, params = {}) {
|
||||||
VueModal.event.$emit('toggle', name, true);
|
VueModal.event
|
||||||
|
.$emit('toggle', name, true);
|
||||||
},
|
},
|
||||||
hide(name, params = {}) {
|
hide(name, params = {}) {
|
||||||
VueModal.event.$emit('toggle', name, false);
|
VueModal.event
|
||||||
|
.$emit('toggle', name, false);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user