Removing the media drop area and add styles to upload button

parent 7c078895
<template> <template>
<div> <div>
<upload-zone></upload-zone>
<media-list></media-list> <media-list></media-list>
</div> </div>
</template> </template>
......
<style>
.el-upload__input {
display: none !important;
}
.el-upload--text {
display: block;
}
.el-upload-dragger {
width: 100%;
}
.media-upload {
margin-bottom: 10px;
}
</style>
<template> <template>
<el-upload <el-upload
class="upload-demo" class="upload-demo"
......
...@@ -94269,13 +94269,17 @@ if (false) { ...@@ -94269,13 +94269,17 @@ if (false) {
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
var disposed = false var disposed = false
function injectStyle (ssrContext) {
if (disposed) return
__webpack_require__(195)
}
var Component = __webpack_require__(2)( var Component = __webpack_require__(2)(
/* script */ /* script */
__webpack_require__(173), __webpack_require__(173),
/* template */ /* template */
__webpack_require__(174), __webpack_require__(174),
/* styles */ /* styles */
null, injectStyle,
/* scopeId */ /* scopeId */
null, null,
/* moduleIdentifier (server only) */ /* moduleIdentifier (server only) */
...@@ -94327,6 +94331,21 @@ Object.defineProperty(exports, "__esModule", { ...@@ -94327,6 +94331,21 @@ Object.defineProperty(exports, "__esModule", {
// //
// //
// //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
exports.default = { exports.default = {
data: function data() { data: function data() {
...@@ -94810,7 +94829,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de ...@@ -94810,7 +94829,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
// //
// //
// //
//
exports.default = { exports.default = {
components: { components: {
...@@ -94830,7 +94848,7 @@ exports.default = { ...@@ -94830,7 +94848,7 @@ exports.default = {
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [_c('upload-zone'), _vm._v(" "), _c('media-list')], 1) return _c('div', [_c('media-list')], 1)
},staticRenderFns: []} },staticRenderFns: []}
module.exports.render._withStripped = true module.exports.render._withStripped = true
if (false) { if (false) {
...@@ -94846,5 +94864,56 @@ if (false) { ...@@ -94846,5 +94864,56 @@ if (false) {
// removed by extract-text-webpack-plugin // removed by extract-text-webpack-plugin
/***/ }),
/* 184 */,
/* 185 */,
/* 186 */,
/* 187 */,
/* 188 */,
/* 189 */,
/* 190 */,
/* 191 */,
/* 192 */,
/* 193 */,
/* 194 */,
/* 195 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(196);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(21)("73255f32", content, false);
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ce23c2de\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./UploadButton.vue", function() {
var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-ce23c2de\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./UploadButton.vue");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/* 196 */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(20)(undefined);
// imports
// module
exports.push([module.i, "\n.el-upload__input {\n display: none !important;\n}\n.el-upload--text {\n display: block;\n}\n.el-upload-dragger {\n width: 100%;\n}\n.media-upload {\n margin-bottom: 10px;\n}\n", ""]);
// exports
/***/ }) /***/ })
/******/ ]); /******/ ]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment