@vue-start/pro 0.4.5 → 0.4.6
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/dist/index.es.js +16 -5
- package/dist/index.js +16 -5
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1119,6 +1119,11 @@ var Curd = defineComponent({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
return;
|
|
1122
|
+
} //非 CurdAction 五种操作的其他请求
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
if (action && type === CurdSubAction.EXECUTE) {
|
|
1126
|
+
sendRequest(action, values);
|
|
1122
1127
|
}
|
|
1123
1128
|
});
|
|
1124
1129
|
var operateMap = reduce(props.operates, function (pair, item) {
|
|
@@ -1244,9 +1249,13 @@ var ProCurd = defineComponent({
|
|
|
1244
1249
|
}), _curdOperateOpts);
|
|
1245
1250
|
/****************************** columns分类 *************************************/
|
|
1246
1251
|
|
|
1247
|
-
var
|
|
1252
|
+
var operates = map(props.operates, function (item) {
|
|
1248
1253
|
var curdOpts = get(curdOperateOpts, item.action);
|
|
1249
1254
|
return _objectSpread2(_objectSpread2({}, curdOpts), item);
|
|
1255
|
+
}); //只取配置actor的项
|
|
1256
|
+
|
|
1257
|
+
var requests = filter$1(operates, function (item) {
|
|
1258
|
+
return item.actor;
|
|
1250
1259
|
});
|
|
1251
1260
|
var moduleKeys = keys(omit(ProModule.props, "state", "requests"));
|
|
1252
1261
|
expose({
|
|
@@ -1286,7 +1295,7 @@ var ProCurd = defineComponent({
|
|
|
1286
1295
|
return [createVNode(Curd, mergeProps({
|
|
1287
1296
|
"ref": curdRef
|
|
1288
1297
|
}, omit.apply(void 0, [props].concat(_toConsumableArray(moduleKeys), ["curdState", "operates"])), {
|
|
1289
|
-
"operates":
|
|
1298
|
+
"operates": operates
|
|
1290
1299
|
}), slots)];
|
|
1291
1300
|
}
|
|
1292
1301
|
});
|
|
@@ -1974,7 +1983,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
1974
1983
|
};
|
|
1975
1984
|
|
|
1976
1985
|
return function () {
|
|
1977
|
-
var _curdState$listData, _props$searchProps, _slots$divide, _slots$divide2, _slots$footerStart, _slots$pagination, _curdState$listData2, _slots$footerEnd;
|
|
1986
|
+
var _curdState$listData, _slots$start, _props$searchProps, _slots$divide, _slots$divide2, _slots$footerStart, _slots$pagination, _curdState$listData2, _slots$footerEnd, _slots$end;
|
|
1978
1987
|
|
|
1979
1988
|
var tableProps = props.tableProps;
|
|
1980
1989
|
|
|
@@ -2000,7 +2009,9 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2000
2009
|
var extra = slots.extra ? createVNode("div", {
|
|
2001
2010
|
"class": "pro-curd-list-extra"
|
|
2002
2011
|
}, [slots.extra()]) : null;
|
|
2003
|
-
return createVNode(Fragment, null, [
|
|
2012
|
+
return createVNode(Fragment, null, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), slots.search ? slots.search({
|
|
2013
|
+
executeSearchWithResetPage: executeSearchWithResetPage
|
|
2014
|
+
}) : createVNode(SearchForm, mergeProps({
|
|
2004
2015
|
"formElementMap": formElementMap
|
|
2005
2016
|
}, omit(props.searchProps, "slots"), {
|
|
2006
2017
|
"columns": searchColumns.value,
|
|
@@ -2011,7 +2022,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2011
2022
|
}
|
|
2012
2023
|
}, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), createVNode("div", {
|
|
2013
2024
|
"class": "pro-curd-list-footer"
|
|
2014
|
-
}, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)])]);
|
|
2025
|
+
}, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)]), (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
|
|
2015
2026
|
};
|
|
2016
2027
|
}
|
|
2017
2028
|
});
|
package/dist/index.js
CHANGED
|
@@ -1123,6 +1123,11 @@ var Curd = vue.defineComponent({
|
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
return;
|
|
1126
|
+
} //非 CurdAction 五种操作的其他请求
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
if (action && type === exports.CurdSubAction.EXECUTE) {
|
|
1130
|
+
sendRequest(action, values);
|
|
1126
1131
|
}
|
|
1127
1132
|
});
|
|
1128
1133
|
var operateMap = lodash.reduce(props.operates, function (pair, item) {
|
|
@@ -1248,9 +1253,13 @@ var ProCurd = vue.defineComponent({
|
|
|
1248
1253
|
}), _curdOperateOpts);
|
|
1249
1254
|
/****************************** columns分类 *************************************/
|
|
1250
1255
|
|
|
1251
|
-
var
|
|
1256
|
+
var operates = lodash.map(props.operates, function (item) {
|
|
1252
1257
|
var curdOpts = lodash.get(curdOperateOpts, item.action);
|
|
1253
1258
|
return _objectSpread2(_objectSpread2({}, curdOpts), item);
|
|
1259
|
+
}); //只取配置actor的项
|
|
1260
|
+
|
|
1261
|
+
var requests = lodash.filter(operates, function (item) {
|
|
1262
|
+
return item.actor;
|
|
1254
1263
|
});
|
|
1255
1264
|
var moduleKeys = lodash.keys(lodash.omit(ProModule.props, "state", "requests"));
|
|
1256
1265
|
expose({
|
|
@@ -1290,7 +1299,7 @@ var ProCurd = vue.defineComponent({
|
|
|
1290
1299
|
return [vue.createVNode(Curd, vue.mergeProps({
|
|
1291
1300
|
"ref": curdRef
|
|
1292
1301
|
}, lodash.omit.apply(void 0, [props].concat(_toConsumableArray(moduleKeys), ["curdState", "operates"])), {
|
|
1293
|
-
"operates":
|
|
1302
|
+
"operates": operates
|
|
1294
1303
|
}), slots)];
|
|
1295
1304
|
}
|
|
1296
1305
|
});
|
|
@@ -1978,7 +1987,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
1978
1987
|
};
|
|
1979
1988
|
|
|
1980
1989
|
return function () {
|
|
1981
|
-
var _curdState$listData, _props$searchProps, _slots$divide, _slots$divide2, _slots$footerStart, _slots$pagination, _curdState$listData2, _slots$footerEnd;
|
|
1990
|
+
var _curdState$listData, _slots$start, _props$searchProps, _slots$divide, _slots$divide2, _slots$footerStart, _slots$pagination, _curdState$listData2, _slots$footerEnd, _slots$end;
|
|
1982
1991
|
|
|
1983
1992
|
var tableProps = props.tableProps;
|
|
1984
1993
|
|
|
@@ -2004,7 +2013,9 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2004
2013
|
var extra = slots.extra ? vue.createVNode("div", {
|
|
2005
2014
|
"class": "pro-curd-list-extra"
|
|
2006
2015
|
}, [slots.extra()]) : null;
|
|
2007
|
-
return vue.createVNode(vue.Fragment, null, [
|
|
2016
|
+
return vue.createVNode(vue.Fragment, null, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), slots.search ? slots.search({
|
|
2017
|
+
executeSearchWithResetPage: executeSearchWithResetPage
|
|
2018
|
+
}) : vue.createVNode(SearchForm, vue.mergeProps({
|
|
2008
2019
|
"formElementMap": formElementMap
|
|
2009
2020
|
}, lodash.omit(props.searchProps, "slots"), {
|
|
2010
2021
|
"columns": searchColumns.value,
|
|
@@ -2015,7 +2026,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2015
2026
|
}
|
|
2016
2027
|
}, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : vue.createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), vue.createVNode("div", {
|
|
2017
2028
|
"class": "pro-curd-list-footer"
|
|
2018
|
-
}, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)])]);
|
|
2029
|
+
}, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)]), (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
|
|
2019
2030
|
};
|
|
2020
2031
|
}
|
|
2021
2032
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-start/pro",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "zx <zxpstudy@163.com>",
|
|
6
6
|
"homepage": "https://github.com/zxeryu/vue-start#readme",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"vue": ">=3.x",
|
|
33
33
|
"vue-router": ">=4.x"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "402c2cfa12b15d009ff6cb6cc46f672178ef21f0"
|
|
36
36
|
}
|