Commit a85fa49bc229fa95b419531ff0e1790406c7ddf0

Authored by 乔启韬
1 parent 8fb229e1

安装钉钉

... ... @@ -747,7 +747,7 @@ var VirtualList = function VirtualList(_ref) {
747 747
748 748 var handleExport = /*#__PURE__*/function () {
749 749 var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
750   - var queryParams, currentAppCode, currentFunCode, fieldName, result;
  750 + var queryParams, currentAppCode, currentFunCode, appCode, funCode, fieldName, result;
751 751 return regeneratorRuntime.wrap(function _callee$(_context) {
752 752 while (1) {
753 753 switch (_context.prev = _context.next) {
... ... @@ -759,9 +759,9 @@ var VirtualList = function VirtualList(_ref) {
759 759 queryParams = _defineProperty({
760 760 dataId: props.dataId
761 761 }, searchKey, keyWord);
762   - currentAppCode = qxProps.currentAppCode, currentFunCode = qxProps.currentFunCode, fieldName = qxProps.fieldName;
  762 + currentAppCode = qxProps.currentAppCode, currentFunCode = qxProps.currentFunCode, appCode = qxProps.appCode, funCode = qxProps.funCode, fieldName = qxProps.fieldName;
763 763 _context.next = 5;
764   - return props.exportChild(currentAppCode, currentFunCode, fieldName, queryParams);
  764 + return props.exportChild(props.originWidget === 'subform' ? appCode : currentAppCode, props.originWidget === 'subform' ? funCode : currentFunCode, fieldName, queryParams);
765 765
766 766 case 5:
767 767 result = _context.sent;
... ...
... ... @@ -810,7 +810,7 @@ var VirtualList = function VirtualList(_ref) {
810 810
811 811 var handleExport = /*#__PURE__*/function () {
812 812 var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
813   - var queryParams, currentAppCode, currentFunCode, fieldName, result;
  813 + var queryParams, currentAppCode, currentFunCode, appCode, funCode, fieldName, result;
814 814 return regeneratorRuntime.wrap(function _callee$(_context) {
815 815 while (1) {
816 816 switch (_context.prev = _context.next) {
... ... @@ -822,9 +822,9 @@ var VirtualList = function VirtualList(_ref) {
822 822 queryParams = _defineProperty({
823 823 dataId: props.dataId
824 824 }, searchKey, keyWord);
825   - currentAppCode = qxProps.currentAppCode, currentFunCode = qxProps.currentFunCode, fieldName = qxProps.fieldName;
  825 + currentAppCode = qxProps.currentAppCode, currentFunCode = qxProps.currentFunCode, appCode = qxProps.appCode, funCode = qxProps.funCode, fieldName = qxProps.fieldName;
826 826 _context.next = 5;
827   - return props.exportChild(currentAppCode, currentFunCode, fieldName, queryParams);
  827 + return props.exportChild(props.originWidget === 'subform' ? appCode : currentAppCode, props.originWidget === 'subform' ? funCode : currentFunCode, fieldName, queryParams);
828 828
829 829 case 5:
830 830 result = _context.sent;
... ...
1 1 {
2 2 "name": "@qx/form-render",
3   - "version": "0.1.5",
  3 + "version": "0.1.6",
4 4 "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5 5 "repository": {
6 6 "type": "git",
... ...