shineout 3.8.1-beta.2 → 3.8.1-beta.4
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/cjs/index.js +1 -1
- package/dist/shineout.js +27 -13
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.8.1-beta.
|
|
525
|
+
version: '3.8.1-beta.4'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.1-beta.
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.1-beta.4');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -26183,6 +26183,12 @@ var stepsStyle = {
|
|
|
26183
26183
|
'&:after': {
|
|
26184
26184
|
width: 1
|
|
26185
26185
|
}
|
|
26186
|
+
},
|
|
26187
|
+
'& $default': {
|
|
26188
|
+
display: 'flex',
|
|
26189
|
+
'& $content': {
|
|
26190
|
+
wordBreak: 'break-word'
|
|
26191
|
+
}
|
|
26186
26192
|
}
|
|
26187
26193
|
},
|
|
26188
26194
|
'&$horizontal': {
|
|
@@ -26843,7 +26849,10 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26843
26849
|
},
|
|
26844
26850
|
hasFilter: {
|
|
26845
26851
|
display: 'inline-flex',
|
|
26846
|
-
alignItems: 'center'
|
|
26852
|
+
alignItems: 'center',
|
|
26853
|
+
'$cellAlignRight &': {
|
|
26854
|
+
marginInlineEnd: -5
|
|
26855
|
+
}
|
|
26847
26856
|
},
|
|
26848
26857
|
filterIconContainer: {
|
|
26849
26858
|
'&:hover $filterIcon': {
|
|
@@ -42904,15 +42913,14 @@ var Cascader = function Cascader(props0) {
|
|
|
42904
42913
|
});
|
|
42905
42914
|
};
|
|
42906
42915
|
var renderEmpty = function renderEmpty() {
|
|
42907
|
-
if (
|
|
42908
|
-
return
|
|
42909
|
-
|
|
42910
|
-
children: emptyText
|
|
42916
|
+
if (renderOptionList) {
|
|
42917
|
+
return renderOptionList(null, {
|
|
42918
|
+
loading: !!loading
|
|
42911
42919
|
});
|
|
42912
42920
|
}
|
|
42913
42921
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
42914
42922
|
className: styles === null || styles === void 0 ? void 0 : styles.empty,
|
|
42915
|
-
children: getLocale(locale, 'noData')
|
|
42923
|
+
children: emptyText || getLocale(locale, 'noData')
|
|
42916
42924
|
});
|
|
42917
42925
|
};
|
|
42918
42926
|
var renderNormalList = function renderNormalList() {
|
|
@@ -42975,7 +42983,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42975
42983
|
return renderLoading();
|
|
42976
42984
|
}
|
|
42977
42985
|
if (isDataEmpty) {
|
|
42978
|
-
// todo: 空数据时 是否 支持一下也能走到renderOptionList
|
|
42979
42986
|
return renderEmpty();
|
|
42980
42987
|
}
|
|
42981
42988
|
if (!filterText || filterText && mode !== undefined || data && data.length === 0) {
|
|
@@ -51073,7 +51080,8 @@ function use_previous_usePrevious(value) {
|
|
|
51073
51080
|
|
|
51074
51081
|
|
|
51075
51082
|
|
|
51076
|
-
var form_schema_builder_excluded = ["required"]
|
|
51083
|
+
var form_schema_builder_excluded = ["required"],
|
|
51084
|
+
form_schema_builder_excluded2 = ["required"];
|
|
51077
51085
|
var SchemaBuilder = /*#__PURE__*/function () {
|
|
51078
51086
|
function SchemaBuilder(formName) {
|
|
51079
51087
|
classCallCheck_default()(this, SchemaBuilder);
|
|
@@ -51294,7 +51302,9 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51294
51302
|
type: 'string'
|
|
51295
51303
|
};
|
|
51296
51304
|
} else {
|
|
51297
|
-
|
|
51305
|
+
if (typeof componentElement.props.value !== 'undefined') {
|
|
51306
|
+
fieldSchemaInfo.type = typeof_default()(componentElement.props.value);
|
|
51307
|
+
}
|
|
51298
51308
|
}
|
|
51299
51309
|
break;
|
|
51300
51310
|
}
|
|
@@ -51370,7 +51380,11 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51370
51380
|
properties: {}
|
|
51371
51381
|
};
|
|
51372
51382
|
}
|
|
51373
|
-
|
|
51383
|
+
|
|
51384
|
+
// 过滤掉 required 属性,items 对象不应该包含 required
|
|
51385
|
+
var required = meta.required,
|
|
51386
|
+
itemsMeta = objectWithoutProperties_default()(meta, form_schema_builder_excluded);
|
|
51387
|
+
this.mergeSchema(currentSchema.items, remainingSegments, itemsMeta);
|
|
51374
51388
|
}
|
|
51375
51389
|
}, {
|
|
51376
51390
|
key: "handleObjectProperty",
|
|
@@ -51389,7 +51403,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51389
51403
|
if (remainingSegments.length === 0) {
|
|
51390
51404
|
// 叶子节点,应用元数据并处理 required
|
|
51391
51405
|
var required = meta.required,
|
|
51392
|
-
restMeta = objectWithoutProperties_default()(meta,
|
|
51406
|
+
restMeta = objectWithoutProperties_default()(meta, form_schema_builder_excluded2);
|
|
51393
51407
|
Object.assign(currentSchema.properties[propertyName], restMeta);
|
|
51394
51408
|
if (typeof required === 'boolean') {
|
|
51395
51409
|
this.handleRequired(currentSchema, propertyName, required);
|
|
@@ -73026,7 +73040,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73026
73040
|
|
|
73027
73041
|
|
|
73028
73042
|
/* harmony default export */ var src_0 = ({
|
|
73029
|
-
version: '3.8.1-beta.
|
|
73043
|
+
version: '3.8.1-beta.4'
|
|
73030
73044
|
});
|
|
73031
73045
|
}();
|
|
73032
73046
|
/******/ return __webpack_exports__;
|