@panpanzhao/component-ui 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component-ui.common.js +18 -9
- package/lib/components/dialog.js +13 -4
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +1 -1
- package/lib/styles/dialog.css +1 -1
- package/lib/styles/index.css +2 -2
- package/package.json +1 -1
|
@@ -8133,8 +8133,8 @@ formula_src.install = function (Vue) {
|
|
|
8133
8133
|
Vue.component(formula_src.name, formula_src);
|
|
8134
8134
|
};
|
|
8135
8135
|
/* harmony default export */ var formula = (formula_src);
|
|
8136
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/src/index.vue?vue&type=template&id=
|
|
8137
|
-
var
|
|
8136
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/src/index.vue?vue&type=template&id=fdae84a0&
|
|
8137
|
+
var srcvue_type_template_id_fdae84a0_render = function render() {
|
|
8138
8138
|
var _vm = this,
|
|
8139
8139
|
_c = _vm._self._c
|
|
8140
8140
|
return _c(
|
|
@@ -8155,7 +8155,10 @@ var srcvue_type_template_id_f33d57c0_render = function render() {
|
|
|
8155
8155
|
expression: "visible",
|
|
8156
8156
|
},
|
|
8157
8157
|
],
|
|
8158
|
-
|
|
8158
|
+
class: [
|
|
8159
|
+
"el-dialog__wrapper",
|
|
8160
|
+
{ "is-middle": _vm.middle && _vm.scroll },
|
|
8161
|
+
],
|
|
8159
8162
|
on: {
|
|
8160
8163
|
click: function ($event) {
|
|
8161
8164
|
if ($event.target !== $event.currentTarget) return null
|
|
@@ -8239,11 +8242,11 @@ var srcvue_type_template_id_f33d57c0_render = function render() {
|
|
|
8239
8242
|
]
|
|
8240
8243
|
)
|
|
8241
8244
|
}
|
|
8242
|
-
var
|
|
8243
|
-
|
|
8245
|
+
var srcvue_type_template_id_fdae84a0_staticRenderFns = []
|
|
8246
|
+
srcvue_type_template_id_fdae84a0_render._withStripped = true
|
|
8244
8247
|
|
|
8245
8248
|
|
|
8246
|
-
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=
|
|
8249
|
+
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=fdae84a0&
|
|
8247
8250
|
|
|
8248
8251
|
// EXTERNAL MODULE: external "element-ui/src/utils/popup"
|
|
8249
8252
|
var popup_ = __webpack_require__(55);
|
|
@@ -8273,6 +8276,10 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
8273
8276
|
type: Boolean,
|
|
8274
8277
|
default: true
|
|
8275
8278
|
},
|
|
8279
|
+
middle: {
|
|
8280
|
+
type: Boolean,
|
|
8281
|
+
default: true
|
|
8282
|
+
},
|
|
8276
8283
|
scroll: {
|
|
8277
8284
|
type: Boolean,
|
|
8278
8285
|
default: true
|
|
@@ -8352,7 +8359,9 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
8352
8359
|
style: function style() {
|
|
8353
8360
|
var style = {};
|
|
8354
8361
|
if (!this.fullscreen) {
|
|
8355
|
-
|
|
8362
|
+
if (!(this.middle && this.scroll)) {
|
|
8363
|
+
style.marginTop = this.top;
|
|
8364
|
+
}
|
|
8356
8365
|
if (this.width) {
|
|
8357
8366
|
style.width = this.width;
|
|
8358
8367
|
}
|
|
@@ -8428,8 +8437,8 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
8428
8437
|
|
|
8429
8438
|
var dialog_src_component = normalizeComponent(
|
|
8430
8439
|
components_dialog_srcvue_type_script_lang_js_,
|
|
8431
|
-
|
|
8432
|
-
|
|
8440
|
+
srcvue_type_template_id_fdae84a0_render,
|
|
8441
|
+
srcvue_type_template_id_fdae84a0_staticRenderFns,
|
|
8433
8442
|
false,
|
|
8434
8443
|
null,
|
|
8435
8444
|
null,
|
package/lib/components/dialog.js
CHANGED
|
@@ -220,7 +220,7 @@ module.exports = require("element-ui/src/mixins/emitter");
|
|
|
220
220
|
// ESM COMPAT FLAG
|
|
221
221
|
__webpack_require__.r(__webpack_exports__);
|
|
222
222
|
|
|
223
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/src/index.vue?vue&type=template&id=
|
|
223
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/src/index.vue?vue&type=template&id=fdae84a0&
|
|
224
224
|
var render = function render() {
|
|
225
225
|
var _vm = this,
|
|
226
226
|
_c = _vm._self._c
|
|
@@ -242,7 +242,10 @@ var render = function render() {
|
|
|
242
242
|
expression: "visible",
|
|
243
243
|
},
|
|
244
244
|
],
|
|
245
|
-
|
|
245
|
+
class: [
|
|
246
|
+
"el-dialog__wrapper",
|
|
247
|
+
{ "is-middle": _vm.middle && _vm.scroll },
|
|
248
|
+
],
|
|
246
249
|
on: {
|
|
247
250
|
click: function ($event) {
|
|
248
251
|
if ($event.target !== $event.currentTarget) return null
|
|
@@ -330,7 +333,7 @@ var staticRenderFns = []
|
|
|
330
333
|
render._withStripped = true
|
|
331
334
|
|
|
332
335
|
|
|
333
|
-
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=
|
|
336
|
+
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=fdae84a0&
|
|
334
337
|
|
|
335
338
|
// EXTERNAL MODULE: external "element-ui/src/utils/popup"
|
|
336
339
|
var popup_ = __webpack_require__(62);
|
|
@@ -360,6 +363,10 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
360
363
|
type: Boolean,
|
|
361
364
|
default: true
|
|
362
365
|
},
|
|
366
|
+
middle: {
|
|
367
|
+
type: Boolean,
|
|
368
|
+
default: true
|
|
369
|
+
},
|
|
363
370
|
scroll: {
|
|
364
371
|
type: Boolean,
|
|
365
372
|
default: true
|
|
@@ -439,7 +446,9 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
439
446
|
style: function style() {
|
|
440
447
|
var style = {};
|
|
441
448
|
if (!this.fullscreen) {
|
|
442
|
-
|
|
449
|
+
if (!(this.middle && this.scroll)) {
|
|
450
|
+
style.marginTop = this.top;
|
|
451
|
+
}
|
|
443
452
|
if (this.width) {
|
|
444
453
|
style.width = this.width;
|
|
445
454
|
}
|