@panpanzhao/component-ui 0.0.17 → 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 -77
- package/lib/components/crud.js +9 -6
- package/lib/components/form-dialog.js +3 -3
- 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 -6
- package/lib/components/table.js +11 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
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,
|