Showing
3 changed files
with
7 additions
and
7 deletions
@@ -747,7 +747,7 @@ var VirtualList = function VirtualList(_ref) { | @@ -747,7 +747,7 @@ var VirtualList = function VirtualList(_ref) { | ||
747 | 747 | ||
748 | var handleExport = /*#__PURE__*/function () { | 748 | var handleExport = /*#__PURE__*/function () { |
749 | var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | 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 | return regeneratorRuntime.wrap(function _callee$(_context) { | 751 | return regeneratorRuntime.wrap(function _callee$(_context) { |
752 | while (1) { | 752 | while (1) { |
753 | switch (_context.prev = _context.next) { | 753 | switch (_context.prev = _context.next) { |
@@ -759,9 +759,9 @@ var VirtualList = function VirtualList(_ref) { | @@ -759,9 +759,9 @@ var VirtualList = function VirtualList(_ref) { | ||
759 | queryParams = _defineProperty({ | 759 | queryParams = _defineProperty({ |
760 | dataId: props.dataId | 760 | dataId: props.dataId |
761 | }, searchKey, keyWord); | 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 | _context.next = 5; | 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 | case 5: | 766 | case 5: |
767 | result = _context.sent; | 767 | result = _context.sent; |
@@ -810,7 +810,7 @@ var VirtualList = function VirtualList(_ref) { | @@ -810,7 +810,7 @@ var VirtualList = function VirtualList(_ref) { | ||
810 | 810 | ||
811 | var handleExport = /*#__PURE__*/function () { | 811 | var handleExport = /*#__PURE__*/function () { |
812 | var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | 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 | return regeneratorRuntime.wrap(function _callee$(_context) { | 814 | return regeneratorRuntime.wrap(function _callee$(_context) { |
815 | while (1) { | 815 | while (1) { |
816 | switch (_context.prev = _context.next) { | 816 | switch (_context.prev = _context.next) { |
@@ -822,9 +822,9 @@ var VirtualList = function VirtualList(_ref) { | @@ -822,9 +822,9 @@ var VirtualList = function VirtualList(_ref) { | ||
822 | queryParams = _defineProperty({ | 822 | queryParams = _defineProperty({ |
823 | dataId: props.dataId | 823 | dataId: props.dataId |
824 | }, searchKey, keyWord); | 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 | _context.next = 5; | 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 | case 5: | 829 | case 5: |
830 | result = _context.sent; | 830 | result = _context.sent; |
1 | { | 1 | { |
2 | "name": "@qx/form-render", | 2 | "name": "@qx/form-render", |
3 | - "version": "0.1.5", | 3 | + "version": "0.1.6", |
4 | "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成", | 4 | "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成", |
5 | "repository": { | 5 | "repository": { |
6 | "type": "git", | 6 | "type": "git", |