@panpanzhao/component-ui 0.0.16 → 0.0.18
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 +125 -102
- package/lib/components/crud.js +9 -31
- package/lib/components/form-dialog.js +3 -28
- package/lib/components/form-drawer.js +40 -25
- package/lib/components/form-group.js +3 -3
- package/lib/components/form-item.js +27 -8
- package/lib/components/form-view-dialog.js +6 -3
- package/lib/components/form-view-group.js +6 -3
- package/lib/components/form-view.js +6 -3
- package/lib/components/form.js +3 -3
- package/lib/components/table-column.js +41 -25
- package/lib/components/table-operate.js +9 -31
- package/lib/components/table.js +11 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -215,7 +215,7 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
215
215
|
// ESM COMPAT FLAG
|
|
216
216
|
__webpack_require__.r(__webpack_exports__);
|
|
217
217
|
|
|
218
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=
|
|
218
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/form.vue?vue&type=template&id=1aadb63c&
|
|
219
219
|
var render = function render() {
|
|
220
220
|
var _vm = this,
|
|
221
221
|
_c = _vm._self._c
|
|
@@ -286,7 +286,7 @@ var staticRenderFns = []
|
|
|
286
286
|
render._withStripped = true
|
|
287
287
|
|
|
288
288
|
|
|
289
|
-
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=
|
|
289
|
+
// CONCATENATED MODULE: ./src/components/form/src/form.vue?vue&type=template&id=1aadb63c&
|
|
290
290
|
|
|
291
291
|
// EXTERNAL MODULE: external "element-ui/lib/form"
|
|
292
292
|
var form_ = __webpack_require__(12);
|
|
@@ -382,7 +382,7 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
382
382
|
if (item.show === false) {
|
|
383
383
|
return false;
|
|
384
384
|
}
|
|
385
|
-
if (typeof item.show === "function" && !item.show.call(_this, {
|
|
385
|
+
if (typeof item.show === "function" && !item.show.call(_this, _this.formModel, {
|
|
386
386
|
form: _this,
|
|
387
387
|
formModel: _this.formModel,
|
|
388
388
|
config: item
|
|
@@ -552,7 +552,7 @@ module.exports = require("element-ui/lib/collapse-item");
|
|
|
552
552
|
// ESM COMPAT FLAG
|
|
553
553
|
__webpack_require__.r(__webpack_exports__);
|
|
554
554
|
|
|
555
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form-view/src/index.vue?vue&type=template&id=
|
|
555
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form-view/src/index.vue?vue&type=template&id=32454b68&
|
|
556
556
|
var render = function render() {
|
|
557
557
|
var _vm = this,
|
|
558
558
|
_c = _vm._self._c
|
|
@@ -599,7 +599,7 @@ var staticRenderFns = []
|
|
|
599
599
|
render._withStripped = true
|
|
600
600
|
|
|
601
601
|
|
|
602
|
-
// CONCATENATED MODULE: ./src/components/form-view/src/index.vue?vue&type=template&id=
|
|
602
|
+
// CONCATENATED MODULE: ./src/components/form-view/src/index.vue?vue&type=template&id=32454b68&
|
|
603
603
|
|
|
604
604
|
// EXTERNAL MODULE: external "element-ui/lib/descriptions"
|
|
605
605
|
var descriptions_ = __webpack_require__(18);
|
|
@@ -630,6 +630,7 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
630
630
|
props: {
|
|
631
631
|
prop: String,
|
|
632
632
|
labelWidth: String,
|
|
633
|
+
labelPosition: String,
|
|
633
634
|
formItems: {
|
|
634
635
|
type: Array,
|
|
635
636
|
default: function _default() {
|
|
@@ -647,8 +648,10 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
647
648
|
formProps: function formProps() {
|
|
648
649
|
return Object.assign({
|
|
649
650
|
border: true,
|
|
651
|
+
direction: this.labelPosition === "top" ? "vertical" : "horizontal",
|
|
650
652
|
labelStyle: {
|
|
651
|
-
width: this.labelWidth
|
|
653
|
+
width: this.labelWidth,
|
|
654
|
+
textAlign: this.labelPosition
|
|
652
655
|
}
|
|
653
656
|
}, this.$attrs);
|
|
654
657
|
},
|
|
@@ -1610,15 +1613,6 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1610
1613
|
}, {
|
|
1611
1614
|
button: button
|
|
1612
1615
|
});
|
|
1613
|
-
if (typeof _this3.on.success === "function") {
|
|
1614
|
-
_this3.on.success.call(_this3, {
|
|
1615
|
-
request: _this3.requester,
|
|
1616
|
-
reqData: reqData,
|
|
1617
|
-
expandData: _this3.expandModel
|
|
1618
|
-
}, {
|
|
1619
|
-
button: button
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
1616
|
return false;
|
|
1623
1617
|
}
|
|
1624
1618
|
button.loading = true;
|
|
@@ -1637,14 +1631,6 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1637
1631
|
resData: res,
|
|
1638
1632
|
expandData: _this3.expandModel
|
|
1639
1633
|
});
|
|
1640
|
-
if (typeof _this3.on.success === "function") {
|
|
1641
|
-
_this3.on.success.call(_this3, {
|
|
1642
|
-
request: _this3.requester,
|
|
1643
|
-
reqData: reqData,
|
|
1644
|
-
resData: res,
|
|
1645
|
-
expandData: _this3.expandModel
|
|
1646
|
-
});
|
|
1647
|
-
}
|
|
1648
1634
|
}).catch(function (error) {
|
|
1649
1635
|
button.loading = false;
|
|
1650
1636
|
_this3.$emit("error", {
|
|
@@ -1653,14 +1639,6 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1653
1639
|
resError: error,
|
|
1654
1640
|
expandData: _this3.expandModel
|
|
1655
1641
|
});
|
|
1656
|
-
if (typeof _this3.on.error === "function") {
|
|
1657
|
-
_this3.on.error.call(_this3, {
|
|
1658
|
-
request: _this3.requester,
|
|
1659
|
-
reqData: reqData,
|
|
1660
|
-
resError: error,
|
|
1661
|
-
expandData: _this3.expandModel
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
1642
|
});
|
|
1665
1643
|
});
|
|
1666
1644
|
},
|
package/lib/components/table.js
CHANGED
|
@@ -255,8 +255,8 @@ module.exports = require("element-ui/lib/pagination");
|
|
|
255
255
|
// ESM COMPAT FLAG
|
|
256
256
|
__webpack_require__.r(__webpack_exports__);
|
|
257
257
|
|
|
258
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=
|
|
259
|
-
var
|
|
258
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=0a336d65&
|
|
259
|
+
var tablevue_type_template_id_0a336d65_render = function render() {
|
|
260
260
|
var _vm = this,
|
|
261
261
|
_c = _vm._self._c
|
|
262
262
|
return _c("div", { staticClass: "table" }, [
|
|
@@ -335,10 +335,10 @@ var tablevue_type_template_id_a8e62da6_render = function render() {
|
|
|
335
335
|
])
|
|
336
336
|
}
|
|
337
337
|
var staticRenderFns = []
|
|
338
|
-
|
|
338
|
+
tablevue_type_template_id_0a336d65_render._withStripped = true
|
|
339
339
|
|
|
340
340
|
|
|
341
|
-
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=
|
|
341
|
+
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=0a336d65&
|
|
342
342
|
|
|
343
343
|
// EXTERNAL MODULE: external "@vue/babel-helper-vue-jsx-merge-props"
|
|
344
344
|
var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
|
|
@@ -395,7 +395,7 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
395
395
|
props: {
|
|
396
396
|
label: String,
|
|
397
397
|
show: {
|
|
398
|
-
type: [Boolean, Function],
|
|
398
|
+
type: [Boolean, String, Function],
|
|
399
399
|
default: true
|
|
400
400
|
},
|
|
401
401
|
on: Object,
|
|
@@ -419,6 +419,11 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
419
419
|
if (this.show === false) {
|
|
420
420
|
return null;
|
|
421
421
|
}
|
|
422
|
+
if (typeof this.show === "string" && !Object(formula_["evaluate"])(this.show, this.$parent.selection[0], {
|
|
423
|
+
evalMode: true
|
|
424
|
+
})) {
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
422
427
|
if (typeof this.show === "function" && !this.show.call(this, this.$parent.selection, this)) {
|
|
423
428
|
return null;
|
|
424
429
|
}
|
|
@@ -683,7 +688,7 @@ var componentNormalizer = __webpack_require__(1);
|
|
|
683
688
|
|
|
684
689
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
685
690
|
src_tablevue_type_script_lang_js_,
|
|
686
|
-
|
|
691
|
+
tablevue_type_template_id_0a336d65_render,
|
|
687
692
|
staticRenderFns,
|
|
688
693
|
false,
|
|
689
694
|
null,
|