@vue-start/pro 0.4.6 → 0.4.7
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.d.ts +4 -0
- package/dist/index.es.js +12 -7
- package/dist/index.js +12 -7
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1281,7 +1281,7 @@ var ProCurd = defineComponent({
|
|
|
1281
1281
|
params[_key - 1] = arguments[_key];
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
(_moduleRef$value2 = moduleRef.value) === null || _moduleRef$value2 === void 0 ? void 0 : _moduleRef$value2.
|
|
1284
|
+
(_moduleRef$value2 = moduleRef.value) === null || _moduleRef$value2 === void 0 ? void 0 : _moduleRef$value2.sendRequest.apply(_moduleRef$value2, [requestNameOrAction].concat(params));
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
1287
1287
|
return function () {
|
|
@@ -1744,6 +1744,11 @@ var proCurdAddOrEditProps = function proCurdAddOrEditProps() {
|
|
|
1744
1744
|
signName: {
|
|
1745
1745
|
type: String
|
|
1746
1746
|
},
|
|
1747
|
+
//form model 绑定的curdState中的对象
|
|
1748
|
+
modelName: {
|
|
1749
|
+
type: String,
|
|
1750
|
+
"default": "detailData"
|
|
1751
|
+
},
|
|
1747
1752
|
//是否使用operate bar
|
|
1748
1753
|
operateBar: {
|
|
1749
1754
|
type: Boolean,
|
|
@@ -1845,8 +1850,8 @@ var createCurdForm = function createCurdForm(Form, Button, convertFormProps, for
|
|
|
1845
1850
|
}, omit(attrs, "onFinish"), props, {
|
|
1846
1851
|
"elementMap": props.elementMap || elementMap,
|
|
1847
1852
|
"formElementMap": props.formElementMap || formElementMap,
|
|
1848
|
-
"columns": columns.value,
|
|
1849
|
-
"model": curdState.
|
|
1853
|
+
"columns": props.columns || columns.value,
|
|
1854
|
+
"model": props.model || curdState[props.modelName],
|
|
1850
1855
|
"readonly": curdState.mode === CurdCurrentMode.DETAIL,
|
|
1851
1856
|
"onFinish": handleFinish
|
|
1852
1857
|
}, convertFormProps === null || convertFormProps === void 0 ? void 0 : convertFormProps(curdState)), _objectSpread2({
|
|
@@ -1988,7 +1993,8 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
1988
1993
|
var tableProps = props.tableProps;
|
|
1989
1994
|
|
|
1990
1995
|
var rewriteTableProps = _objectSpread2(_objectSpread2({
|
|
1991
|
-
elementMap: elementMap
|
|
1996
|
+
elementMap: elementMap,
|
|
1997
|
+
columns: tableColumns.value
|
|
1992
1998
|
}, omit(tableProps, "slots", "operate")), {}, {
|
|
1993
1999
|
operate: mergeWith({
|
|
1994
2000
|
items: tableOperateItems
|
|
@@ -2001,7 +2007,6 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2001
2007
|
page: pageState.page,
|
|
2002
2008
|
pageSize: pageState.pageSize
|
|
2003
2009
|
},
|
|
2004
|
-
columns: tableColumns.value,
|
|
2005
2010
|
loading: curdState.listLoading,
|
|
2006
2011
|
dataSource: (_curdState$listData = curdState.listData) === null || _curdState$listData === void 0 ? void 0 : _curdState$listData.dataSource
|
|
2007
2012
|
});
|
|
@@ -2012,9 +2017,9 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2012
2017
|
return createVNode(Fragment, null, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), slots.search ? slots.search({
|
|
2013
2018
|
executeSearchWithResetPage: executeSearchWithResetPage
|
|
2014
2019
|
}) : createVNode(SearchForm, mergeProps({
|
|
2015
|
-
"formElementMap": formElementMap
|
|
2020
|
+
"formElementMap": formElementMap,
|
|
2021
|
+
"columns": searchColumns.value
|
|
2016
2022
|
}, omit(props.searchProps, "slots"), {
|
|
2017
|
-
"columns": searchColumns.value,
|
|
2018
2023
|
"onFinish": executeSearchWithResetPage
|
|
2019
2024
|
}), _objectSpread2({
|
|
2020
2025
|
"default": function _default() {
|
package/dist/index.js
CHANGED
|
@@ -1285,7 +1285,7 @@ var ProCurd = vue.defineComponent({
|
|
|
1285
1285
|
params[_key - 1] = arguments[_key];
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
|
-
(_moduleRef$value2 = moduleRef.value) === null || _moduleRef$value2 === void 0 ? void 0 : _moduleRef$value2.
|
|
1288
|
+
(_moduleRef$value2 = moduleRef.value) === null || _moduleRef$value2 === void 0 ? void 0 : _moduleRef$value2.sendRequest.apply(_moduleRef$value2, [requestNameOrAction].concat(params));
|
|
1289
1289
|
}
|
|
1290
1290
|
});
|
|
1291
1291
|
return function () {
|
|
@@ -1748,6 +1748,11 @@ var proCurdAddOrEditProps = function proCurdAddOrEditProps() {
|
|
|
1748
1748
|
signName: {
|
|
1749
1749
|
type: String
|
|
1750
1750
|
},
|
|
1751
|
+
//form model 绑定的curdState中的对象
|
|
1752
|
+
modelName: {
|
|
1753
|
+
type: String,
|
|
1754
|
+
"default": "detailData"
|
|
1755
|
+
},
|
|
1751
1756
|
//是否使用operate bar
|
|
1752
1757
|
operateBar: {
|
|
1753
1758
|
type: Boolean,
|
|
@@ -1849,8 +1854,8 @@ var createCurdForm = function createCurdForm(Form, Button, convertFormProps, for
|
|
|
1849
1854
|
}, lodash.omit(attrs, "onFinish"), props, {
|
|
1850
1855
|
"elementMap": props.elementMap || elementMap,
|
|
1851
1856
|
"formElementMap": props.formElementMap || formElementMap,
|
|
1852
|
-
"columns": columns.value,
|
|
1853
|
-
"model": curdState.
|
|
1857
|
+
"columns": props.columns || columns.value,
|
|
1858
|
+
"model": props.model || curdState[props.modelName],
|
|
1854
1859
|
"readonly": curdState.mode === exports.CurdCurrentMode.DETAIL,
|
|
1855
1860
|
"onFinish": handleFinish
|
|
1856
1861
|
}, convertFormProps === null || convertFormProps === void 0 ? void 0 : convertFormProps(curdState)), _objectSpread2({
|
|
@@ -1992,7 +1997,8 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
1992
1997
|
var tableProps = props.tableProps;
|
|
1993
1998
|
|
|
1994
1999
|
var rewriteTableProps = _objectSpread2(_objectSpread2({
|
|
1995
|
-
elementMap: elementMap
|
|
2000
|
+
elementMap: elementMap,
|
|
2001
|
+
columns: tableColumns.value
|
|
1996
2002
|
}, lodash.omit(tableProps, "slots", "operate")), {}, {
|
|
1997
2003
|
operate: lodash.mergeWith({
|
|
1998
2004
|
items: tableOperateItems
|
|
@@ -2005,7 +2011,6 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2005
2011
|
page: pageState.page,
|
|
2006
2012
|
pageSize: pageState.pageSize
|
|
2007
2013
|
},
|
|
2008
|
-
columns: tableColumns.value,
|
|
2009
2014
|
loading: curdState.listLoading,
|
|
2010
2015
|
dataSource: (_curdState$listData = curdState.listData) === null || _curdState$listData === void 0 ? void 0 : _curdState$listData.dataSource
|
|
2011
2016
|
});
|
|
@@ -2016,9 +2021,9 @@ var createCurdList = function createCurdList(SearchForm, Table) {
|
|
|
2016
2021
|
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
2022
|
executeSearchWithResetPage: executeSearchWithResetPage
|
|
2018
2023
|
}) : vue.createVNode(SearchForm, vue.mergeProps({
|
|
2019
|
-
"formElementMap": formElementMap
|
|
2024
|
+
"formElementMap": formElementMap,
|
|
2025
|
+
"columns": searchColumns.value
|
|
2020
2026
|
}, lodash.omit(props.searchProps, "slots"), {
|
|
2021
|
-
"columns": searchColumns.value,
|
|
2022
2027
|
"onFinish": executeSearchWithResetPage
|
|
2023
2028
|
}), _objectSpread2({
|
|
2024
2029
|
"default": function _default() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-start/pro",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
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": "797728f9f41829dae1311c7284d0bfbbdae6524f"
|
|
36
36
|
}
|