Skip to content

Commit a033eae

Browse files
'deploy'
1 parent 4eaa229 commit a033eae

8 files changed

+37
-39
lines changed

dist/vuecode.common.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5203,13 +5203,6 @@ module.exports = function(hljs) {
52035203

52045204
/***/ }),
52055205

5206-
/***/ "9hxm":
5207-
/***/ (function(module, exports) {
5208-
5209-
// removed by extract-text-webpack-plugin
5210-
5211-
/***/ }),
5212-
52135206
/***/ "9v3E":
52145207
/***/ (function(module, exports, __webpack_require__) {
52155208

@@ -20664,10 +20657,9 @@ var highlight_md = __webpack_require__("jgMU")({
2066420657
},
2066520658
data: function data() {
2066620659
return {
20667-
code: false,
20660+
code: false || this.open || this.$vcoptions.open || !this.$slots.demo,
2066820661
options: false,
20669-
theme: 'shadow',
20670-
color: 'rgb(90, 224, 95)'
20662+
theme: this.$vcoptions.theme || 'shadow'
2067120663
};
2067220664
},
2067320665
mounted: function mounted() {
@@ -20719,8 +20711,8 @@ var highlight_md = __webpack_require__("jgMU")({
2071920711
}
2072020712
}
2072120713
});
20722-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-edadad54","hasScoped":false,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/vuecode/vuecode.vue
20723-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con-vuecode shadow-vc"},[_c('div',{staticClass:"con-demo"},[_c('header',{staticClass:"header"},[_c('div',{staticClass:"con-h2"},[_c('h2',{domProps:{"innerHTML":_vm._s(_vm.title)}})]),_c('div',{staticClass:"con-menu-vc"},[_c('ul',[(_vm.$slots.code)?_c('li',{staticClass:"btn-code flaticon-code",class:{'activo-vc':_vm.code},on:{"click":function($event){_vm.code=!_vm.code}}}):_vm._e(),(_vm.codepen)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-3d-outlined-shape",attrs:{"target":"_blank","href":_vm.codepen}})]):_vm._e(),(_vm.jsfiddle)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-jsfiddle-logo",attrs:{"target":"_blank","href":_vm.jsfiddle}})]):_vm._e(),(_vm.github)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-github-logo",attrs:{"target":"_blank","href":_vm.github}})]):_vm._e()])])]),(_vm.$slots.demo)?_c('div',{staticClass:"demo"},[_vm._t("demo")],2):_vm._e(),_c('transition',{on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"leave":_vm.leave}},[(_vm.$slots.code)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.code),expression:"code"}],ref:"code",staticClass:"con-code content-vc"},[_vm._t("code")],2):_vm._e()])],1)])}
20714+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-4b016abd","hasScoped":false,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/vuecode/vuecode.vue
20715+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con-vuecode",class:{'shadow-vc':_vm.theme=='shadow','flat-vc':_vm.theme=='flat','line-vc':_vm.theme=='line'}},[_c('div',{staticClass:"con-demo"},[_c('header',{staticClass:"header"},[_c('div',{staticClass:"con-h2"},[_c('h2',{domProps:{"innerHTML":_vm._s(_vm.title)}})]),_c('div',{staticClass:"con-menu-vc"},[_c('ul',[(_vm.$slots.code)?_c('li',{staticClass:"btn-code flaticon-code",class:{'activo-vc':_vm.code},on:{"click":function($event){_vm.code=!_vm.code}}}):_vm._e(),(_vm.codepen)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-3d-outlined-shape",attrs:{"target":"_blank","href":_vm.codepen}})]):_vm._e(),(_vm.jsfiddle)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-jsfiddle-logo",attrs:{"target":"_blank","href":_vm.jsfiddle}})]):_vm._e(),(_vm.github)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-github-logo",attrs:{"target":"_blank","href":_vm.github}})]):_vm._e()])])]),(_vm.$slots.demo)?_c('div',{staticClass:"demo"},[_vm._t("demo")],2):_vm._e(),_c('transition',{on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"leave":_vm.leave}},[(_vm.$slots.code)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.code),expression:"code"}],ref:"code",staticClass:"con-code content-vc"},[_vm._t("code")],2):_vm._e()])],1)])}
2072420716
var staticRenderFns = []
2072520717

2072620718
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/component-normalizer.js
@@ -20828,7 +20820,7 @@ function normalizeComponent (
2082820820

2082920821
// CONCATENATED MODULE: ./src/vuecode/vuecode.vue
2083020822
function injectStyle (context) {
20831-
__webpack_require__("9hxm")
20823+
__webpack_require__("jmn8")
2083220824
}
2083320825
/* script */
2083420826

@@ -21412,6 +21404,13 @@ module.exports = function(hljs) {
2141221404

2141321405
/***/ }),
2141421406

21407+
/***/ "jmn8":
21408+
/***/ (function(module, exports) {
21409+
21410+
// removed by extract-text-webpack-plugin
21411+
21412+
/***/ }),
21413+
2141521414
/***/ "k+sj":
2141621415
/***/ (function(module, exports) {
2141721416

dist/vuecode.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuecode.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuecode.umd.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5212,6 +5212,13 @@ module.exports = function(hljs) {
52125212

52135213
/***/ }),
52145214

5215+
/***/ "9hxm":
5216+
/***/ (function(module, exports) {
5217+
5218+
// removed by extract-text-webpack-plugin
5219+
5220+
/***/ }),
5221+
52155222
/***/ "9v3E":
52165223
/***/ (function(module, exports, __webpack_require__) {
52175224

@@ -20666,10 +20673,9 @@ var highlight_md = __webpack_require__("jgMU")({
2066620673
},
2066720674
data: function data() {
2066820675
return {
20669-
code: false,
20676+
code: false || this.open || this.$vcoptions.open || !this.$slots.demo,
2067020677
options: false,
20671-
theme: 'shadow',
20672-
color: 'rgb(90, 224, 95)'
20678+
theme: this.$vcoptions.theme || 'shadow'
2067320679
};
2067420680
},
2067520681
mounted: function mounted() {
@@ -20721,8 +20727,8 @@ var highlight_md = __webpack_require__("jgMU")({
2072120727
}
2072220728
}
2072320729
});
20724-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-edadad54","hasScoped":false,"optionsId":"1","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/vuecode/vuecode.vue
20725-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con-vuecode shadow-vc"},[_c('div',{staticClass:"con-demo"},[_c('header',{staticClass:"header"},[_c('div',{staticClass:"con-h2"},[_c('h2',{domProps:{"innerHTML":_vm._s(_vm.title)}})]),_c('div',{staticClass:"con-menu-vc"},[_c('ul',[(_vm.$slots.code)?_c('li',{staticClass:"btn-code flaticon-code",class:{'activo-vc':_vm.code},on:{"click":function($event){_vm.code=!_vm.code}}}):_vm._e(),(_vm.codepen)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-3d-outlined-shape",attrs:{"target":"_blank","href":_vm.codepen}})]):_vm._e(),(_vm.jsfiddle)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-jsfiddle-logo",attrs:{"target":"_blank","href":_vm.jsfiddle}})]):_vm._e(),(_vm.github)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-github-logo",attrs:{"target":"_blank","href":_vm.github}})]):_vm._e()])])]),(_vm.$slots.demo)?_c('div',{staticClass:"demo"},[_vm._t("demo")],2):_vm._e(),_c('transition',{on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"leave":_vm.leave}},[(_vm.$slots.code)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.code),expression:"code"}],ref:"code",staticClass:"con-code content-vc"},[_vm._t("code")],2):_vm._e()])],1)])}
20730+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-4b016abd","hasScoped":false,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/vuecode/vuecode.vue
20731+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"con-vuecode",class:{'shadow-vc':_vm.theme=='shadow','flat-vc':_vm.theme=='flat','line-vc':_vm.theme=='line'}},[_c('div',{staticClass:"con-demo"},[_c('header',{staticClass:"header"},[_c('div',{staticClass:"con-h2"},[_c('h2',{domProps:{"innerHTML":_vm._s(_vm.title)}})]),_c('div',{staticClass:"con-menu-vc"},[_c('ul',[(_vm.$slots.code)?_c('li',{staticClass:"btn-code flaticon-code",class:{'activo-vc':_vm.code},on:{"click":function($event){_vm.code=!_vm.code}}}):_vm._e(),(_vm.codepen)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-3d-outlined-shape",attrs:{"target":"_blank","href":_vm.codepen}})]):_vm._e(),(_vm.jsfiddle)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-jsfiddle-logo",attrs:{"target":"_blank","href":_vm.jsfiddle}})]):_vm._e(),(_vm.github)?_c('li',{staticClass:"btn-code"},[_c('a',{staticClass:"flaticon-github-logo",attrs:{"target":"_blank","href":_vm.github}})]):_vm._e()])])]),(_vm.$slots.demo)?_c('div',{staticClass:"demo"},[_vm._t("demo")],2):_vm._e(),_c('transition',{on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"leave":_vm.leave}},[(_vm.$slots.code)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.code),expression:"code"}],ref:"code",staticClass:"con-code content-vc"},[_vm._t("code")],2):_vm._e()])],1)])}
2072620732
var staticRenderFns = []
2072720733

2072820734
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/component-normalizer.js
@@ -20830,7 +20836,7 @@ function normalizeComponent (
2083020836

2083120837
// CONCATENATED MODULE: ./src/vuecode/vuecode.vue
2083220838
function injectStyle (context) {
20833-
__webpack_require__("jmn8")
20839+
__webpack_require__("9hxm")
2083420840
}
2083520841
/* script */
2083620842

@@ -21414,13 +21420,6 @@ module.exports = function(hljs) {
2141421420

2141521421
/***/ }),
2141621422

21417-
/***/ "jmn8":
21418-
/***/ (function(module, exports) {
21419-
21420-
// removed by extract-text-webpack-plugin
21421-
21422-
/***/ }),
21423-
2142421423
/***/ "k+sj":
2142521424
/***/ (function(module, exports) {
2142621425

dist/vuecode.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuecode.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuecode.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vuecode/vuecode.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="html">
2-
<div class="con-vuecode shadow-vc">
2+
<div :class="{'shadow-vc':theme=='shadow','flat-vc':theme=='flat','line-vc':theme=='line'}" class="con-vuecode">
33
<div class="con-demo">
44
<header class="header">
55
<div class="con-h2">
@@ -92,10 +92,9 @@ export default {
9292
},
9393
data(){
9494
return {
95-
code:false,
95+
code:false || this.open || this.$vcoptions.open || !this.$slots.demo,
9696
options:false,
97-
theme:'shadow',
98-
color:'rgb(90, 224, 95)'
97+
theme:this.$vcoptions.theme || 'shadow',
9998
}
10099
},
101100
mounted(){
@@ -171,21 +170,22 @@ export default {
171170
.shadow-vc
172171
.con-demo
173172
box-shadow: 0px 5px 17px 0px rgba(0, 0, 0, 0.080);
173+
width: calc(100% - 20px)
174+
margin-left: 10px;
174175
.con-code
175176
box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.250);
176177
border-radius: 6px;
177178
display: block;
178179
179-
.line {
180-
background: rgb(25, 12, 208);
180+
.flat {
181+
background: rgb(255, 255, 255);
182+
width: 100% !important;
181183
}
182184
183185
184186
//defaul values
185187
186188
.con-code
187-
width: calc(100% - 20px)
188-
margin-left: 10px;
189189
display: block;
190190
margin-bottom: 10px;
191191
transition: all .250s ease;

0 commit comments

Comments
 (0)