|
1 | 1 | /*! |
2 | | - * Vue-html5-editor 0.5.0 |
| 2 | + * Vue-html5-editor 0.5.1 |
3 | 3 | * https://github.com/PeakTai/vue-html5-editor |
4 | 4 | */ |
5 | 5 | (function webpackUniversalModuleDefinition(root, factory) { |
@@ -200,7 +200,7 @@ return /******/ (function(modules) { // webpackBootstrap |
200 | 200 | if (module.dashboard) { |
201 | 201 | //$options.module |
202 | 202 | module.dashboard.module = module; |
203 | | - components[module.name] = module.dashboard; |
| 203 | + components['dashboard-' + module.name] = module.dashboard; |
204 | 204 | } |
205 | 205 | if (options.icons && options.icons[module.name]) { |
206 | 206 | module.icon = options.icons[module.name]; |
@@ -1067,10 +1067,12 @@ return /******/ (function(modules) { // webpackBootstrap |
1067 | 1067 | // <div class="vue-html5-editor" :style="{'z-index':zIndex}" :class="{'full-screen':fullScreen}"> |
1068 | 1068 | // <div class="toolbar" :style="{'z-index':zIndex+1}" v-el:toolbar> |
1069 | 1069 | // <ul> |
1070 | | - // <li v-for="module in modules" v-if="module.show" :title="locale[module.i18n]" |
1071 | | - // @click="activeModule(module)"> |
1072 | | - // <span class="icon" :class="module.icon"></span> |
1073 | | - // </li> |
| 1070 | + // <template v-for="module in modules"> |
| 1071 | + // <li v-if="module.show" :title="locale[module.i18n]" |
| 1072 | + // @click="activeModule(module)"> |
| 1073 | + // <span class="icon" :class="module.icon"></span> |
| 1074 | + // </li> |
| 1075 | + // </template> |
1074 | 1076 | // </ul> |
1075 | 1077 | // <div class="dashboard" v-show="dashboard" :style="dashboardStyle"> |
1076 | 1078 | // <div v-if="dashboard" :is="dashboard" keep-alive></div> |
@@ -1215,7 +1217,7 @@ return /******/ (function(modules) { // webpackBootstrap |
1215 | 1217 | return; |
1216 | 1218 | } |
1217 | 1219 | if (module.hasDashboard) { |
1218 | | - this.toggleDashboard(module.name); |
| 1220 | + this.toggleDashboard('dashboard-' + module.name); |
1219 | 1221 | } |
1220 | 1222 | } |
1221 | 1223 | }, |
@@ -1262,7 +1264,7 @@ return /******/ (function(modules) { // webpackBootstrap |
1262 | 1264 | /* 42 */ |
1263 | 1265 | /***/ function(module, exports) { |
1264 | 1266 |
|
1265 | | - module.exports = "\n<div class=\"vue-html5-editor\" :style=\"{'z-index':zIndex}\" :class=\"{'full-screen':fullScreen}\">\n <div class=\"toolbar\" :style=\"{'z-index':zIndex+1}\" v-el:toolbar>\n <ul>\n <li v-for=\"module in modules\" v-if=\"module.show\" :title=\"locale[module.i18n]\"\n @click=\"activeModule(module)\">\n <span class=\"icon\" :class=\"module.icon\"></span>\n </li>\n </ul>\n <div class=\"dashboard\" v-show=\"dashboard\" :style=\"dashboardStyle\">\n <div v-if=\"dashboard\" :is=\"dashboard\" keep-alive></div>\n </div>\n </div>\n <div class=\"content\" v-el:content contenteditable=\"true\" @click=\"toggleDashboard(dashboard)\"\n :style=\"contentStyle\">\n </div>\n</div>\n"; |
| 1267 | + module.exports = "\n<div class=\"vue-html5-editor\" :style=\"{'z-index':zIndex}\" :class=\"{'full-screen':fullScreen}\">\n <div class=\"toolbar\" :style=\"{'z-index':zIndex+1}\" v-el:toolbar>\n <ul>\n <template v-for=\"module in modules\">\n <li v-if=\"module.show\" :title=\"locale[module.i18n]\"\n @click=\"activeModule(module)\">\n <span class=\"icon\" :class=\"module.icon\"></span>\n </li>\n </template>\n </ul>\n <div class=\"dashboard\" v-show=\"dashboard\" :style=\"dashboardStyle\">\n <div v-if=\"dashboard\" :is=\"dashboard\" keep-alive></div>\n </div>\n </div>\n <div class=\"content\" v-el:content contenteditable=\"true\" @click=\"toggleDashboard(dashboard)\"\n :style=\"contentStyle\">\n </div>\n</div>\n"; |
1266 | 1268 |
|
1267 | 1269 | /***/ }, |
1268 | 1270 | /* 43 */ |
@@ -2162,7 +2164,8 @@ return /******/ (function(modules) { // webpackBootstrap |
2162 | 2164 |
|
2163 | 2165 | var file = this.$els.file.files[0]; |
2164 | 2166 | if (file.size > config.size_limit) { |
2165 | | - alert("文件过大"); |
| 2167 | + var prompt = component.$parent.locale["exceed size limit"]; |
| 2168 | + alert(prompt); |
2166 | 2169 | return; |
2167 | 2170 | } |
2168 | 2171 | component.$els.file.value = null; |
@@ -4062,7 +4065,7 @@ return /******/ (function(modules) { // webpackBootstrap |
4062 | 4065 | exports.default = { |
4063 | 4066 | data: function data() { |
4064 | 4067 | return { |
4065 | | - version: ("0.5.0") |
| 4068 | + version: ("0.5.1") |
4066 | 4069 | }; |
4067 | 4070 | } |
4068 | 4071 | }; |
@@ -4126,7 +4129,8 @@ return /******/ (function(modules) { // webpackBootstrap |
4126 | 4129 | "reset": "重置", |
4127 | 4130 | "hr": "分隔线", |
4128 | 4131 | "undo": "撤消", |
4129 | | - "line height": "行高" |
| 4132 | + "line height": "行高", |
| 4133 | + "exceed size limit": "超出大小限制" |
4130 | 4134 | }; |
4131 | 4135 |
|
4132 | 4136 | /***/ }, |
@@ -4181,7 +4185,8 @@ return /******/ (function(modules) { // webpackBootstrap |
4181 | 4185 | "reset": "reset", |
4182 | 4186 | "hr": "horizontal rule", |
4183 | 4187 | "undo": "undo", |
4184 | | - "line height": "line height" |
| 4188 | + "line height": "line height", |
| 4189 | + "exceed size limit": "exceed size limit" |
4185 | 4190 | }; |
4186 | 4191 |
|
4187 | 4192 | /***/ }, |
|
0 commit comments