@panpanzhao/component-ui 0.0.14 → 0.0.16
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.
|
@@ -107,19 +107,19 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
107
107
|
/* 3 */
|
|
108
108
|
/***/ (function(module, exports) {
|
|
109
109
|
|
|
110
|
-
module.exports = require("
|
|
110
|
+
module.exports = require("element-ui/lib/table-column");
|
|
111
111
|
|
|
112
112
|
/***/ }),
|
|
113
113
|
/* 4 */
|
|
114
114
|
/***/ (function(module, exports) {
|
|
115
115
|
|
|
116
|
-
module.exports = require("element-ui/lib/
|
|
116
|
+
module.exports = require("element-ui/lib/button");
|
|
117
117
|
|
|
118
118
|
/***/ }),
|
|
119
119
|
/* 5 */
|
|
120
120
|
/***/ (function(module, exports) {
|
|
121
121
|
|
|
122
|
-
module.exports = require("
|
|
122
|
+
module.exports = require("@panpanzhao/component-ui/lib/utils/index");
|
|
123
123
|
|
|
124
124
|
/***/ }),
|
|
125
125
|
/* 6 */
|
|
@@ -478,6 +478,9 @@ module.exports = require("codemirror/addon/mode/multiplex");
|
|
|
478
478
|
// ESM COMPAT FLAG
|
|
479
479
|
__webpack_require__.r(__webpack_exports__);
|
|
480
480
|
|
|
481
|
+
// EXPORTS
|
|
482
|
+
__webpack_require__.d(__webpack_exports__, "API", function() { return /* binding */ API; });
|
|
483
|
+
|
|
481
484
|
// 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=dfeb985e&
|
|
482
485
|
var formvue_type_template_id_dfeb985e_render = function render() {
|
|
483
486
|
var _vm = this,
|
|
@@ -2832,7 +2835,7 @@ var dialog_ = __webpack_require__(11);
|
|
|
2832
2835
|
var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
|
|
2833
2836
|
|
|
2834
2837
|
// EXTERNAL MODULE: external "element-ui/lib/button"
|
|
2835
|
-
var button_ = __webpack_require__(
|
|
2838
|
+
var button_ = __webpack_require__(4);
|
|
2836
2839
|
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
2837
2840
|
|
|
2838
2841
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form-dialog/src/index.vue?vue&type=script&lang=js&
|
|
@@ -3027,6 +3030,15 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
3027
3030
|
}, {
|
|
3028
3031
|
button: button
|
|
3029
3032
|
});
|
|
3033
|
+
if (typeof _this3.on.success === "function") {
|
|
3034
|
+
_this3.on.success.call(_this3, {
|
|
3035
|
+
request: _this3.requester,
|
|
3036
|
+
reqData: reqData,
|
|
3037
|
+
expandData: _this3.expandModel
|
|
3038
|
+
}, {
|
|
3039
|
+
button: button
|
|
3040
|
+
});
|
|
3041
|
+
}
|
|
3030
3042
|
return false;
|
|
3031
3043
|
}
|
|
3032
3044
|
button.loading = true;
|
|
@@ -3045,6 +3057,14 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
3045
3057
|
resData: res,
|
|
3046
3058
|
expandData: _this3.expandModel
|
|
3047
3059
|
});
|
|
3060
|
+
if (typeof _this3.on.success === "function") {
|
|
3061
|
+
_this3.on.success.call(_this3, {
|
|
3062
|
+
request: _this3.requester,
|
|
3063
|
+
reqData: reqData,
|
|
3064
|
+
resData: res,
|
|
3065
|
+
expandData: _this3.expandModel
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
3048
3068
|
}).catch(function (error) {
|
|
3049
3069
|
button.loading = false;
|
|
3050
3070
|
_this3.$emit("error", {
|
|
@@ -3053,6 +3073,14 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
3053
3073
|
resError: error,
|
|
3054
3074
|
expandData: _this3.expandModel
|
|
3055
3075
|
});
|
|
3076
|
+
if (typeof _this3.on.error === "function") {
|
|
3077
|
+
_this3.on.error.call(_this3, {
|
|
3078
|
+
request: _this3.requester,
|
|
3079
|
+
reqData: reqData,
|
|
3080
|
+
resError: error,
|
|
3081
|
+
expandData: _this3.expandModel
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3056
3084
|
});
|
|
3057
3085
|
});
|
|
3058
3086
|
},
|
|
@@ -4116,7 +4144,7 @@ var table_ = __webpack_require__(16);
|
|
|
4116
4144
|
var table_default = /*#__PURE__*/__webpack_require__.n(table_);
|
|
4117
4145
|
|
|
4118
4146
|
// EXTERNAL MODULE: external "element-ui/lib/table-column"
|
|
4119
|
-
var table_column_ = __webpack_require__(
|
|
4147
|
+
var table_column_ = __webpack_require__(3);
|
|
4120
4148
|
var table_column_default = /*#__PURE__*/__webpack_require__.n(table_column_);
|
|
4121
4149
|
|
|
4122
4150
|
// EXTERNAL MODULE: external "element-ui/lib/pagination"
|
|
@@ -4764,8 +4792,8 @@ var date_component = normalizeComponent(
|
|
|
4764
4792
|
)
|
|
4765
4793
|
|
|
4766
4794
|
/* harmony default export */ var date = (date_component.exports);
|
|
4767
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=template&id=
|
|
4768
|
-
var
|
|
4795
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=template&id=1a393e81&
|
|
4796
|
+
var dictvue_type_template_id_1a393e81_render = function render() {
|
|
4769
4797
|
var _vm = this,
|
|
4770
4798
|
_c = _vm._self._c
|
|
4771
4799
|
return _c(
|
|
@@ -4803,11 +4831,11 @@ var dictvue_type_template_id_512d00c0_render = function render() {
|
|
|
4803
4831
|
)
|
|
4804
4832
|
)
|
|
4805
4833
|
}
|
|
4806
|
-
var
|
|
4807
|
-
|
|
4834
|
+
var dictvue_type_template_id_1a393e81_staticRenderFns = []
|
|
4835
|
+
dictvue_type_template_id_1a393e81_render._withStripped = true
|
|
4808
4836
|
|
|
4809
4837
|
|
|
4810
|
-
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=template&id=
|
|
4838
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=template&id=1a393e81&
|
|
4811
4839
|
|
|
4812
4840
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=script&lang=js&
|
|
4813
4841
|
|
|
@@ -4819,8 +4847,7 @@ dictvue_type_template_id_512d00c0_render._withStripped = true
|
|
|
4819
4847
|
props: {
|
|
4820
4848
|
dictCode: String,
|
|
4821
4849
|
options: {
|
|
4822
|
-
type: Array
|
|
4823
|
-
required: true
|
|
4850
|
+
type: Array
|
|
4824
4851
|
},
|
|
4825
4852
|
optionProp: {
|
|
4826
4853
|
type: [Object, Function],
|
|
@@ -4886,8 +4913,8 @@ dictvue_type_template_id_512d00c0_render._withStripped = true
|
|
|
4886
4913
|
|
|
4887
4914
|
var dict_component = normalizeComponent(
|
|
4888
4915
|
column_dictvue_type_script_lang_js_,
|
|
4889
|
-
|
|
4890
|
-
|
|
4916
|
+
dictvue_type_template_id_1a393e81_render,
|
|
4917
|
+
dictvue_type_template_id_1a393e81_staticRenderFns,
|
|
4891
4918
|
false,
|
|
4892
4919
|
null,
|
|
4893
4920
|
null,
|
|
@@ -4913,7 +4940,7 @@ var link_ = __webpack_require__(23);
|
|
|
4913
4940
|
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
4914
4941
|
|
|
4915
4942
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/index"
|
|
4916
|
-
var index_ = __webpack_require__(
|
|
4943
|
+
var index_ = __webpack_require__(5);
|
|
4917
4944
|
|
|
4918
4945
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/operate.vue?vue&type=script&lang=js&
|
|
4919
4946
|
|
|
@@ -9986,8 +10013,9 @@ drawer_src.install = function (Vue) {
|
|
|
9986
10013
|
|
|
9987
10014
|
|
|
9988
10015
|
|
|
10016
|
+
var API = index_;
|
|
9989
10017
|
var components = [components_form, components_form_input, components_form_item, form_group, form_dialog, form_drawer, form_view, form_view_group, form_view_dialog, components_table, components_table_column, table_search, table_editable, table_operate, crud, formula, dialog, drawer];
|
|
9990
|
-
var
|
|
10018
|
+
var install = function install(Vue, opts) {
|
|
9991
10019
|
if (opts === void 0) {
|
|
9992
10020
|
opts = {};
|
|
9993
10021
|
}
|
|
@@ -9995,7 +10023,7 @@ var src_install = function install(Vue, opts) {
|
|
|
9995
10023
|
Vue.component(component.name, component);
|
|
9996
10024
|
});
|
|
9997
10025
|
Vue.prototype.$COMPONENT = opts;
|
|
9998
|
-
Vue.prototype.$API =
|
|
10026
|
+
Vue.prototype.$API = API;
|
|
9999
10027
|
Vue.prototype.$ELEMENT = {
|
|
10000
10028
|
size: opts.size || 'small',
|
|
10001
10029
|
zIndex: opts.zIndex || 2000
|
|
@@ -10004,12 +10032,12 @@ var src_install = function install(Vue, opts) {
|
|
|
10004
10032
|
|
|
10005
10033
|
/* istanbul ignore if */
|
|
10006
10034
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
10007
|
-
|
|
10035
|
+
install(window.Vue);
|
|
10008
10036
|
}
|
|
10009
10037
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
10010
10038
|
version: '0.0.1',
|
|
10011
|
-
install:
|
|
10012
|
-
API:
|
|
10039
|
+
install: install,
|
|
10040
|
+
API: API,
|
|
10013
10041
|
Form: components_form,
|
|
10014
10042
|
FormInput: components_form_input,
|
|
10015
10043
|
FormItem: components_form_item,
|
package/lib/components/crud.js
CHANGED
|
@@ -1610,6 +1610,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1610
1610
|
}, {
|
|
1611
1611
|
button: button
|
|
1612
1612
|
});
|
|
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
|
+
}
|
|
1613
1622
|
return false;
|
|
1614
1623
|
}
|
|
1615
1624
|
button.loading = true;
|
|
@@ -1628,6 +1637,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1628
1637
|
resData: res,
|
|
1629
1638
|
expandData: _this3.expandModel
|
|
1630
1639
|
});
|
|
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
|
+
}
|
|
1631
1648
|
}).catch(function (error) {
|
|
1632
1649
|
button.loading = false;
|
|
1633
1650
|
_this3.$emit("error", {
|
|
@@ -1636,6 +1653,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1636
1653
|
resError: error,
|
|
1637
1654
|
expandData: _this3.expandModel
|
|
1638
1655
|
});
|
|
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
|
+
}
|
|
1639
1664
|
});
|
|
1640
1665
|
});
|
|
1641
1666
|
},
|
|
@@ -1165,6 +1165,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1165
1165
|
}, {
|
|
1166
1166
|
button: button
|
|
1167
1167
|
});
|
|
1168
|
+
if (typeof _this3.on.success === "function") {
|
|
1169
|
+
_this3.on.success.call(_this3, {
|
|
1170
|
+
request: _this3.requester,
|
|
1171
|
+
reqData: reqData,
|
|
1172
|
+
expandData: _this3.expandModel
|
|
1173
|
+
}, {
|
|
1174
|
+
button: button
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1168
1177
|
return false;
|
|
1169
1178
|
}
|
|
1170
1179
|
button.loading = true;
|
|
@@ -1183,6 +1192,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1183
1192
|
resData: res,
|
|
1184
1193
|
expandData: _this3.expandModel
|
|
1185
1194
|
});
|
|
1195
|
+
if (typeof _this3.on.success === "function") {
|
|
1196
|
+
_this3.on.success.call(_this3, {
|
|
1197
|
+
request: _this3.requester,
|
|
1198
|
+
reqData: reqData,
|
|
1199
|
+
resData: res,
|
|
1200
|
+
expandData: _this3.expandModel
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1186
1203
|
}).catch(function (error) {
|
|
1187
1204
|
button.loading = false;
|
|
1188
1205
|
_this3.$emit("error", {
|
|
@@ -1191,6 +1208,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1191
1208
|
resError: error,
|
|
1192
1209
|
expandData: _this3.expandModel
|
|
1193
1210
|
});
|
|
1211
|
+
if (typeof _this3.on.error === "function") {
|
|
1212
|
+
_this3.on.error.call(_this3, {
|
|
1213
|
+
request: _this3.requester,
|
|
1214
|
+
reqData: reqData,
|
|
1215
|
+
resError: error,
|
|
1216
|
+
expandData: _this3.expandModel
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1194
1219
|
});
|
|
1195
1220
|
});
|
|
1196
1221
|
},
|
|
@@ -601,8 +601,8 @@ var date_component = Object(componentNormalizer["a" /* default */])(
|
|
|
601
601
|
)
|
|
602
602
|
|
|
603
603
|
/* harmony default export */ var date = (date_component.exports);
|
|
604
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=template&id=
|
|
605
|
-
var
|
|
604
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=template&id=1a393e81&
|
|
605
|
+
var dictvue_type_template_id_1a393e81_render = function render() {
|
|
606
606
|
var _vm = this,
|
|
607
607
|
_c = _vm._self._c
|
|
608
608
|
return _c(
|
|
@@ -640,11 +640,11 @@ var dictvue_type_template_id_512d00c0_render = function render() {
|
|
|
640
640
|
)
|
|
641
641
|
)
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
|
|
643
|
+
var dictvue_type_template_id_1a393e81_staticRenderFns = []
|
|
644
|
+
dictvue_type_template_id_1a393e81_render._withStripped = true
|
|
645
645
|
|
|
646
646
|
|
|
647
|
-
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=template&id=
|
|
647
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=template&id=1a393e81&
|
|
648
648
|
|
|
649
649
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=script&lang=js&
|
|
650
650
|
|
|
@@ -656,8 +656,7 @@ dictvue_type_template_id_512d00c0_render._withStripped = true
|
|
|
656
656
|
props: {
|
|
657
657
|
dictCode: String,
|
|
658
658
|
options: {
|
|
659
|
-
type: Array
|
|
660
|
-
required: true
|
|
659
|
+
type: Array
|
|
661
660
|
},
|
|
662
661
|
optionProp: {
|
|
663
662
|
type: [Object, Function],
|
|
@@ -723,8 +722,8 @@ dictvue_type_template_id_512d00c0_render._withStripped = true
|
|
|
723
722
|
|
|
724
723
|
var dict_component = Object(componentNormalizer["a" /* default */])(
|
|
725
724
|
column_dictvue_type_script_lang_js_,
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
dictvue_type_template_id_1a393e81_render,
|
|
726
|
+
dictvue_type_template_id_1a393e81_staticRenderFns,
|
|
728
727
|
false,
|
|
729
728
|
null,
|
|
730
729
|
null,
|
|
@@ -1610,6 +1610,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1610
1610
|
}, {
|
|
1611
1611
|
button: button
|
|
1612
1612
|
});
|
|
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
|
+
}
|
|
1613
1622
|
return false;
|
|
1614
1623
|
}
|
|
1615
1624
|
button.loading = true;
|
|
@@ -1628,6 +1637,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1628
1637
|
resData: res,
|
|
1629
1638
|
expandData: _this3.expandModel
|
|
1630
1639
|
});
|
|
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
|
+
}
|
|
1631
1648
|
}).catch(function (error) {
|
|
1632
1649
|
button.loading = false;
|
|
1633
1650
|
_this3.$emit("error", {
|
|
@@ -1636,6 +1653,14 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1636
1653
|
resError: error,
|
|
1637
1654
|
expandData: _this3.expandModel
|
|
1638
1655
|
});
|
|
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
|
+
}
|
|
1639
1664
|
});
|
|
1640
1665
|
});
|
|
1641
1666
|
},
|