@panpanzhao/component-ui 0.0.7 → 0.0.9
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 +27 -12
- package/lib/components/form-input.js +4 -0
- package/lib/components/formula.js +8 -2
- package/lib/components/table-editable.js +13 -8
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +1 -1
- package/lib/styles/form-dialog.css +1 -0
- package/lib/styles/index.css +1 -1
- package/lib/styles/table-editable.css +1 -1
- package/lib/styles/table.css +1 -1
- package/package.json +2 -2
|
@@ -2066,12 +2066,16 @@ var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
|
2066
2066
|
},
|
|
2067
2067
|
props: {
|
|
2068
2068
|
control: String,
|
|
2069
|
+
render: Function,
|
|
2069
2070
|
slots: {
|
|
2070
2071
|
type: Object
|
|
2071
2072
|
}
|
|
2072
2073
|
},
|
|
2073
2074
|
render: function render(h) {
|
|
2074
2075
|
var _this = this;
|
|
2076
|
+
if (typeof this.render === "function") {
|
|
2077
|
+
return this.render.call(this, h, this.$attrs);
|
|
2078
|
+
}
|
|
2075
2079
|
var param = {
|
|
2076
2080
|
attrs: Object.assign({}, this.$attrs),
|
|
2077
2081
|
on: this.$listeners,
|
|
@@ -5142,8 +5146,8 @@ table_search_src.install = function (Vue) {
|
|
|
5142
5146
|
Vue.component(table_search_src.name, table_search_src);
|
|
5143
5147
|
};
|
|
5144
5148
|
/* harmony default export */ var table_search = (table_search_src);
|
|
5145
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table-editable/src/index.vue?vue&type=template&id=
|
|
5146
|
-
var
|
|
5149
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table-editable/src/index.vue?vue&type=template&id=2cd18efc&
|
|
5150
|
+
var srcvue_type_template_id_2cd18efc_render = function render() {
|
|
5147
5151
|
var _vm = this,
|
|
5148
5152
|
_c = _vm._self._c
|
|
5149
5153
|
return _c(
|
|
@@ -5164,7 +5168,9 @@ var srcvue_type_template_id_6b872934_render = function render() {
|
|
|
5164
5168
|
_vm._g(
|
|
5165
5169
|
_vm._b(
|
|
5166
5170
|
{
|
|
5167
|
-
key: `${column.control}_${
|
|
5171
|
+
key: `${column.config && column.config.control}_${
|
|
5172
|
+
column.prop
|
|
5173
|
+
}`,
|
|
5168
5174
|
attrs: { actions: _vm.actionItem[column.prop] },
|
|
5169
5175
|
},
|
|
5170
5176
|
"ColumnItem",
|
|
@@ -5183,11 +5189,11 @@ var srcvue_type_template_id_6b872934_render = function render() {
|
|
|
5183
5189
|
1
|
|
5184
5190
|
)
|
|
5185
5191
|
}
|
|
5186
|
-
var
|
|
5187
|
-
|
|
5192
|
+
var srcvue_type_template_id_2cd18efc_staticRenderFns = []
|
|
5193
|
+
srcvue_type_template_id_2cd18efc_render._withStripped = true
|
|
5188
5194
|
|
|
5189
5195
|
|
|
5190
|
-
// CONCATENATED MODULE: ./src/components/table-editable/src/index.vue?vue&type=template&id=
|
|
5196
|
+
// CONCATENATED MODULE: ./src/components/table-editable/src/index.vue?vue&type=template&id=2cd18efc&
|
|
5191
5197
|
|
|
5192
5198
|
// EXTERNAL MODULE: external "element-ui/lib/popover"
|
|
5193
5199
|
var popover_ = __webpack_require__(47);
|
|
@@ -5437,8 +5443,11 @@ var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
5437
5443
|
render: function render(h) {
|
|
5438
5444
|
var _this2 = this;
|
|
5439
5445
|
var param = {
|
|
5440
|
-
attrs: Object.assign({
|
|
5441
|
-
|
|
5446
|
+
attrs: Object.assign({
|
|
5447
|
+
render: this.render
|
|
5448
|
+
}, this.inputConfig, {
|
|
5449
|
+
value: this.value,
|
|
5450
|
+
rowData: this.rowData
|
|
5442
5451
|
}),
|
|
5443
5452
|
on: Object.assign({}, this.eventOn, this.actionEventOn, {
|
|
5444
5453
|
focus: function focus() {
|
|
@@ -5842,8 +5851,8 @@ var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
5842
5851
|
|
|
5843
5852
|
var table_editable_src_component = normalizeComponent(
|
|
5844
5853
|
components_table_editable_srcvue_type_script_lang_js_,
|
|
5845
|
-
|
|
5846
|
-
|
|
5854
|
+
srcvue_type_template_id_2cd18efc_render,
|
|
5855
|
+
srcvue_type_template_id_2cd18efc_staticRenderFns,
|
|
5847
5856
|
false,
|
|
5848
5857
|
null,
|
|
5849
5858
|
null,
|
|
@@ -6273,9 +6282,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
6273
6282
|
methods: {
|
|
6274
6283
|
setValue: function setValue(value) {
|
|
6275
6284
|
var doc = this.editor.getDoc();
|
|
6276
|
-
if (value
|
|
6285
|
+
if (value !== doc.getValue()) {
|
|
6277
6286
|
var cursor = doc.getCursor();
|
|
6278
|
-
doc.setValue(value);
|
|
6287
|
+
doc.setValue(value || "");
|
|
6279
6288
|
doc.setCursor(cursor);
|
|
6280
6289
|
}
|
|
6281
6290
|
},
|
|
@@ -6459,6 +6468,12 @@ var badge_default = /*#__PURE__*/__webpack_require__.n(badge_);
|
|
|
6459
6468
|
filterVars: []
|
|
6460
6469
|
};
|
|
6461
6470
|
},
|
|
6471
|
+
watch: {
|
|
6472
|
+
data: function data(value) {
|
|
6473
|
+
this.searchVal = null;
|
|
6474
|
+
this.filterVars = value;
|
|
6475
|
+
}
|
|
6476
|
+
},
|
|
6462
6477
|
created: function created() {
|
|
6463
6478
|
this.filterVars = this.data || [];
|
|
6464
6479
|
},
|
|
@@ -1627,12 +1627,16 @@ var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
|
1627
1627
|
},
|
|
1628
1628
|
props: {
|
|
1629
1629
|
control: String,
|
|
1630
|
+
render: Function,
|
|
1630
1631
|
slots: {
|
|
1631
1632
|
type: Object
|
|
1632
1633
|
}
|
|
1633
1634
|
},
|
|
1634
1635
|
render: function render(h) {
|
|
1635
1636
|
var _this = this;
|
|
1637
|
+
if (typeof this.render === "function") {
|
|
1638
|
+
return this.render.call(this, h, this.$attrs);
|
|
1639
|
+
}
|
|
1636
1640
|
var param = {
|
|
1637
1641
|
attrs: Object.assign({}, this.$attrs),
|
|
1638
1642
|
on: this.$listeners,
|
|
@@ -627,9 +627,9 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
627
627
|
methods: {
|
|
628
628
|
setValue: function setValue(value) {
|
|
629
629
|
var doc = this.editor.getDoc();
|
|
630
|
-
if (value
|
|
630
|
+
if (value !== doc.getValue()) {
|
|
631
631
|
var cursor = doc.getCursor();
|
|
632
|
-
doc.setValue(value);
|
|
632
|
+
doc.setValue(value || "");
|
|
633
633
|
doc.setCursor(cursor);
|
|
634
634
|
}
|
|
635
635
|
},
|
|
@@ -836,6 +836,12 @@ var utils = __webpack_require__(19);
|
|
|
836
836
|
filterVars: []
|
|
837
837
|
};
|
|
838
838
|
},
|
|
839
|
+
watch: {
|
|
840
|
+
data: function data(value) {
|
|
841
|
+
this.searchVal = null;
|
|
842
|
+
this.filterVars = value;
|
|
843
|
+
}
|
|
844
|
+
},
|
|
839
845
|
created: function created() {
|
|
840
846
|
this.filterVars = this.data || [];
|
|
841
847
|
},
|
|
@@ -588,8 +588,8 @@ module.exports = require("async-validator");
|
|
|
588
588
|
// ESM COMPAT FLAG
|
|
589
589
|
__webpack_require__.r(__webpack_exports__);
|
|
590
590
|
|
|
591
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table-editable/src/index.vue?vue&type=template&id=
|
|
592
|
-
var
|
|
591
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table-editable/src/index.vue?vue&type=template&id=2cd18efc&
|
|
592
|
+
var srcvue_type_template_id_2cd18efc_render = function render() {
|
|
593
593
|
var _vm = this,
|
|
594
594
|
_c = _vm._self._c
|
|
595
595
|
return _c(
|
|
@@ -610,7 +610,9 @@ var srcvue_type_template_id_6b872934_render = function render() {
|
|
|
610
610
|
_vm._g(
|
|
611
611
|
_vm._b(
|
|
612
612
|
{
|
|
613
|
-
key: `${column.control}_${
|
|
613
|
+
key: `${column.config && column.config.control}_${
|
|
614
|
+
column.prop
|
|
615
|
+
}`,
|
|
614
616
|
attrs: { actions: _vm.actionItem[column.prop] },
|
|
615
617
|
},
|
|
616
618
|
"ColumnItem",
|
|
@@ -630,10 +632,10 @@ var srcvue_type_template_id_6b872934_render = function render() {
|
|
|
630
632
|
)
|
|
631
633
|
}
|
|
632
634
|
var staticRenderFns = []
|
|
633
|
-
|
|
635
|
+
srcvue_type_template_id_2cd18efc_render._withStripped = true
|
|
634
636
|
|
|
635
637
|
|
|
636
|
-
// CONCATENATED MODULE: ./src/components/table-editable/src/index.vue?vue&type=template&id=
|
|
638
|
+
// CONCATENATED MODULE: ./src/components/table-editable/src/index.vue?vue&type=template&id=2cd18efc&
|
|
637
639
|
|
|
638
640
|
// EXTERNAL MODULE: external "element-ui/lib/table"
|
|
639
641
|
var table_ = __webpack_require__(26);
|
|
@@ -899,8 +901,11 @@ var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
899
901
|
render: function render(h) {
|
|
900
902
|
var _this2 = this;
|
|
901
903
|
var param = {
|
|
902
|
-
attrs: Object.assign({
|
|
903
|
-
|
|
904
|
+
attrs: Object.assign({
|
|
905
|
+
render: this.render
|
|
906
|
+
}, this.inputConfig, {
|
|
907
|
+
value: this.value,
|
|
908
|
+
rowData: this.rowData
|
|
904
909
|
}),
|
|
905
910
|
on: Object.assign({}, this.eventOn, this.actionEventOn, {
|
|
906
911
|
focus: function focus() {
|
|
@@ -1310,7 +1315,7 @@ var componentNormalizer = __webpack_require__(1);
|
|
|
1310
1315
|
|
|
1311
1316
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
1312
1317
|
table_editable_srcvue_type_script_lang_js_,
|
|
1313
|
-
|
|
1318
|
+
srcvue_type_template_id_2cd18efc_render,
|
|
1314
1319
|
staticRenderFns,
|
|
1315
1320
|
false,
|
|
1316
1321
|
null,
|