@vtx/components 4.0.0-beta.63 → 4.0.0-beta.64
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/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +0 -1
- package/es/vtx-datagrid/ToolBar/components/Density/index.js +0 -2
- package/es/vtx-form-layout/FormItem.js +0 -3
- package/es/vtx-image/style/index.js +0 -1
- package/es/vtx-import2/style/index.js +0 -1
- package/es/vtx-search/index.js +0 -3
- package/es/vtx-select/index.js +0 -1
- package/es/vtx-tree-select/index.js +0 -2
- package/es/vtx-tree-select/style/index.js +0 -1
- package/es/vtx-wang-editor/index.js +0 -1
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +0 -1
- package/lib/vtx-datagrid/ToolBar/components/Density/index.js +0 -2
- package/lib/vtx-form-layout/FormItem.js +0 -3
- package/lib/vtx-image/style/index.js +0 -1
- package/lib/vtx-import2/style/index.js +0 -1
- package/lib/vtx-search/index.js +0 -3
- package/lib/vtx-select/index.js +0 -1
- package/lib/vtx-tree-select/index.js +0 -2
- package/lib/vtx-tree-select/style/index.js +0 -1
- package/lib/vtx-wang-editor/index.js +0 -1
- package/package.json +1 -1
|
@@ -244,7 +244,6 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
244
244
|
var dropPosition = info.dropPosition,
|
|
245
245
|
dropToGap = info.dropToGap;
|
|
246
246
|
var position = dropPosition === -1 || !dropToGap ? dropPosition + 1 : dropPosition;
|
|
247
|
-
console.log('newMap info', dragKey, dropKey, position);
|
|
248
247
|
move(dragKey, dropKey, position);
|
|
249
248
|
},
|
|
250
249
|
treeIcon: false,
|
|
@@ -7,7 +7,6 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
7
7
|
function Density() {
|
|
8
8
|
var counter = useContext(TableContext);
|
|
9
9
|
var TextEnum = counter.TextEnum;
|
|
10
|
-
console.log('tableSize', counter.tableSize);
|
|
11
10
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
12
11
|
children: /*#__PURE__*/_jsx(Dropdown, {
|
|
13
12
|
menu: {
|
|
@@ -24,7 +23,6 @@ function Density() {
|
|
|
24
23
|
onClick: function onClick(_ref) {
|
|
25
24
|
var _counter$setTableSize;
|
|
26
25
|
var key = _ref.key;
|
|
27
|
-
console.log('counter', counter, key);
|
|
28
26
|
(_counter$setTableSize = counter.setTableSize) === null || _counter$setTableSize === void 0 || _counter$setTableSize.call(counter, key);
|
|
29
27
|
},
|
|
30
28
|
selectedKeys: [counter.tableSize]
|
|
@@ -61,7 +61,6 @@ export default function FormItem(props) {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var initPlaceholder = function initPlaceholder(placeholder, label, type) {
|
|
64
|
-
console.log('label, placeholder', placeholder, type === null || type === void 0 ? void 0 : type.displayName);
|
|
65
64
|
if (placeholder) {
|
|
66
65
|
return placeholder;
|
|
67
66
|
}
|
|
@@ -81,14 +80,12 @@ export default function FormItem(props) {
|
|
|
81
80
|
var renderItem = function renderItem(child) {
|
|
82
81
|
if ( /*#__PURE__*/isValidElement(child)) {
|
|
83
82
|
var _child$props;
|
|
84
|
-
console.log('initPlaceholder', child, label);
|
|
85
83
|
return /*#__PURE__*/React.cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
86
84
|
placeholder: initPlaceholder(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
87
85
|
}));
|
|
88
86
|
}
|
|
89
87
|
return child;
|
|
90
88
|
};
|
|
91
|
-
console.log('disableHtmlFor', disableHtmlFor, props.children);
|
|
92
89
|
return /*#__PURE__*/_jsx(Col, {
|
|
93
90
|
span: SPAN * weights / cols,
|
|
94
91
|
className: "".concat(prefixCls, "-col"),
|
|
@@ -20,7 +20,6 @@ var center = function center() {
|
|
|
20
20
|
};
|
|
21
21
|
var genVtxImageStyle = function genVtxImageStyle(token) {
|
|
22
22
|
var componentCls = token.componentCls;
|
|
23
|
-
console.log('componentCls', componentCls);
|
|
24
23
|
return _defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-aspectFit', {
|
|
25
24
|
position: 'relative',
|
|
26
25
|
height: '100%',
|
|
@@ -7,7 +7,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { useStyle as useAntdStyle } from "../../vtx-provider";
|
|
8
8
|
var genVtxImport2Style = function genVtxImport2Style(token) {
|
|
9
9
|
var componentCls = token.componentCls;
|
|
10
|
-
console.log('componentCls', componentCls);
|
|
11
10
|
return _defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-modal-header-title', {
|
|
12
11
|
color: token.colorText
|
|
13
12
|
}), '&-modal-header-text', {
|
package/es/vtx-search/index.js
CHANGED
|
@@ -251,9 +251,6 @@ function VtxSearch(props) {
|
|
|
251
251
|
return (realColumn - grid.len - 1) * (24 / realColumn);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
|
-
console.log('grid.lenWeight', grid.lenWeight);
|
|
255
|
-
console.log('realColumn', realColumn);
|
|
256
|
-
console.log('showPosition', showPosition);
|
|
257
254
|
if (grid.lenWeight > realColumn - 1) {
|
|
258
255
|
var _total = Math.ceil((grid.lenWeight + 1) / realColumn);
|
|
259
256
|
return (_total * realColumn - grid.lenWeight - 1) * (24 / realColumn);
|
package/es/vtx-select/index.js
CHANGED
|
@@ -93,7 +93,6 @@ var VtxSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}, [mode]);
|
|
96
|
-
console.log(props.options, props.children);
|
|
97
96
|
var newChildren = props.children ? Array.isArray(props.children) ? props.children : [props.children] : ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.map(function (v) {
|
|
98
97
|
return _objectSpread(_objectSpread({}, v), {}, {
|
|
99
98
|
key: v.value,
|
|
@@ -106,7 +106,6 @@ var VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
106
106
|
return [];
|
|
107
107
|
}
|
|
108
108
|
}(value);
|
|
109
|
-
console.log('value_arr', value_arr, keyNodesMapping);
|
|
110
109
|
var selectedNodes = value_arr.filter(function (k) {
|
|
111
110
|
if (_labelInValue) {
|
|
112
111
|
return k.value in keyNodesMapping;
|
|
@@ -122,7 +121,6 @@ var VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
122
121
|
return selectedNodes;
|
|
123
122
|
};
|
|
124
123
|
var selectedNodes = useMemo(function () {
|
|
125
|
-
console.log('selectedNodes', props);
|
|
126
124
|
return getSelectedNodes(props.value);
|
|
127
125
|
}, [props.value, keyNodesMapping]);
|
|
128
126
|
useEffect(function () {
|
|
@@ -7,7 +7,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { useStyle as useAntdStyle } from "../../vtx-provider";
|
|
8
8
|
var genVtxTreeSelectStyle = function genVtxTreeSelectStyle(token) {
|
|
9
9
|
var componentCls = token.componentCls;
|
|
10
|
-
console.log('token.controlHeight', token.controlHeight);
|
|
11
10
|
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-popover', {
|
|
12
11
|
minWidth: '200px',
|
|
13
12
|
height: '300px',
|
|
@@ -342,7 +342,6 @@ var VtxWangEditor = function VtxWangEditor(props) {
|
|
|
342
342
|
try {
|
|
343
343
|
if (res.result == 0) {
|
|
344
344
|
res.data.map(function (item) {
|
|
345
|
-
console.log('插入附件:', item, insertFn);
|
|
346
345
|
insertFn(item.fileName, "".concat(downloadUrl).concat(item.id));
|
|
347
346
|
});
|
|
348
347
|
} else {
|
|
@@ -248,7 +248,6 @@ var CheckboxList = function CheckboxList(_ref3) {
|
|
|
248
248
|
var dropPosition = info.dropPosition,
|
|
249
249
|
dropToGap = info.dropToGap;
|
|
250
250
|
var position = dropPosition === -1 || !dropToGap ? dropPosition + 1 : dropPosition;
|
|
251
|
-
console.log('newMap info', dragKey, dropKey, position);
|
|
252
251
|
move(dragKey, dropKey, position);
|
|
253
252
|
},
|
|
254
253
|
treeIcon: false,
|
|
@@ -13,7 +13,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
function Density() {
|
|
14
14
|
var counter = (0, _react.useContext)(_Provide.TableContext);
|
|
15
15
|
var TextEnum = counter.TextEnum;
|
|
16
|
-
console.log('tableSize', counter.tableSize);
|
|
17
16
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
18
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Dropdown, {
|
|
19
18
|
menu: {
|
|
@@ -30,7 +29,6 @@ function Density() {
|
|
|
30
29
|
onClick: function onClick(_ref) {
|
|
31
30
|
var _counter$setTableSize;
|
|
32
31
|
var key = _ref.key;
|
|
33
|
-
console.log('counter', counter, key);
|
|
34
32
|
(_counter$setTableSize = counter.setTableSize) === null || _counter$setTableSize === void 0 || _counter$setTableSize.call(counter, key);
|
|
35
33
|
},
|
|
36
34
|
selectedKeys: [counter.tableSize]
|
|
@@ -67,7 +67,6 @@ function FormItem(props) {
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
var initPlaceholder = function initPlaceholder(placeholder, label, type) {
|
|
70
|
-
console.log('label, placeholder', placeholder, type === null || type === void 0 ? void 0 : type.displayName);
|
|
71
70
|
if (placeholder) {
|
|
72
71
|
return placeholder;
|
|
73
72
|
}
|
|
@@ -87,14 +86,12 @@ function FormItem(props) {
|
|
|
87
86
|
var renderItem = function renderItem(child) {
|
|
88
87
|
if ( /*#__PURE__*/(0, _react.isValidElement)(child)) {
|
|
89
88
|
var _child$props;
|
|
90
|
-
console.log('initPlaceholder', child, label);
|
|
91
89
|
return /*#__PURE__*/_react.default.cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
92
90
|
placeholder: initPlaceholder(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
93
91
|
}));
|
|
94
92
|
}
|
|
95
93
|
return child;
|
|
96
94
|
};
|
|
97
|
-
console.log('disableHtmlFor', disableHtmlFor, props.children);
|
|
98
95
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Col, {
|
|
99
96
|
span: SPAN * weights / cols,
|
|
100
97
|
className: "".concat(prefixCls, "-col"),
|
|
@@ -26,7 +26,6 @@ var center = function center() {
|
|
|
26
26
|
};
|
|
27
27
|
var genVtxImageStyle = function genVtxImageStyle(token) {
|
|
28
28
|
var componentCls = token.componentCls;
|
|
29
|
-
console.log('componentCls', componentCls);
|
|
30
29
|
return _defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-aspectFit', {
|
|
31
30
|
position: 'relative',
|
|
32
31
|
height: '100%',
|
|
@@ -13,7 +13,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
var genVtxImport2Style = function genVtxImport2Style(token) {
|
|
15
15
|
var componentCls = token.componentCls;
|
|
16
|
-
console.log('componentCls', componentCls);
|
|
17
16
|
return _defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-modal-header-title', {
|
|
18
17
|
color: token.colorText
|
|
19
18
|
}), '&-modal-header-text', {
|
package/lib/vtx-search/index.js
CHANGED
|
@@ -257,9 +257,6 @@ function VtxSearch(props) {
|
|
|
257
257
|
return (realColumn - grid.len - 1) * (24 / realColumn);
|
|
258
258
|
}
|
|
259
259
|
} else {
|
|
260
|
-
console.log('grid.lenWeight', grid.lenWeight);
|
|
261
|
-
console.log('realColumn', realColumn);
|
|
262
|
-
console.log('showPosition', showPosition);
|
|
263
260
|
if (grid.lenWeight > realColumn - 1) {
|
|
264
261
|
var _total = Math.ceil((grid.lenWeight + 1) / realColumn);
|
|
265
262
|
return (_total * realColumn - grid.lenWeight - 1) * (24 / realColumn);
|
package/lib/vtx-select/index.js
CHANGED
|
@@ -101,7 +101,6 @@ var VtxSelect = exports.VtxSelect = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
}, [mode]);
|
|
104
|
-
console.log(props.options, props.children);
|
|
105
104
|
var newChildren = props.children ? Array.isArray(props.children) ? props.children : [props.children] : ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.map(function (v) {
|
|
106
105
|
return _objectSpread(_objectSpread({}, v), {}, {
|
|
107
106
|
key: v.value,
|
|
@@ -113,7 +113,6 @@ var VtxTreeSelect = exports.VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
113
113
|
return [];
|
|
114
114
|
}
|
|
115
115
|
}(value);
|
|
116
|
-
console.log('value_arr', value_arr, keyNodesMapping);
|
|
117
116
|
var selectedNodes = value_arr.filter(function (k) {
|
|
118
117
|
if (_labelInValue) {
|
|
119
118
|
return k.value in keyNodesMapping;
|
|
@@ -129,7 +128,6 @@ var VtxTreeSelect = exports.VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
129
128
|
return selectedNodes;
|
|
130
129
|
};
|
|
131
130
|
var selectedNodes = (0, _react.useMemo)(function () {
|
|
132
|
-
console.log('selectedNodes', props);
|
|
133
131
|
return getSelectedNodes(props.value);
|
|
134
132
|
}, [props.value, keyNodesMapping]);
|
|
135
133
|
(0, _react.useEffect)(function () {
|
|
@@ -13,7 +13,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
var genVtxTreeSelectStyle = function genVtxTreeSelectStyle(token) {
|
|
15
15
|
var componentCls = token.componentCls;
|
|
16
|
-
console.log('token.controlHeight', token.controlHeight);
|
|
17
16
|
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, '&-popover', {
|
|
18
17
|
minWidth: '200px',
|
|
19
18
|
height: '300px',
|
|
@@ -347,7 +347,6 @@ var VtxWangEditor = exports.VtxWangEditor = function VtxWangEditor(props) {
|
|
|
347
347
|
try {
|
|
348
348
|
if (res.result == 0) {
|
|
349
349
|
res.data.map(function (item) {
|
|
350
|
-
console.log('插入附件:', item, insertFn);
|
|
351
350
|
insertFn(item.fileName, "".concat(downloadUrl).concat(item.id));
|
|
352
351
|
});
|
|
353
352
|
} else {
|