@cniot/mdd-editor 0.2.0-beta.54 → 0.2.0-beta.56
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/README.MD +11 -1
- package/build/index.cjs.js +9 -9
- package/build/index.es.js +164 -125
- package/package.json +1 -1
- package/src/template/ftp/Table.jsx +13 -0
package/build/index.es.js
CHANGED
|
@@ -2009,7 +2009,7 @@ var buildSwaggerApiJson = (api2, apiMeta) => {
|
|
|
2009
2009
|
const propFields = {
|
|
2010
2010
|
cncard: ["icon", "transparent"],
|
|
2011
2011
|
"cncard-sub": ["icon", "transparent"],
|
|
2012
|
-
batchInput: ["defaultValue", "placeholder", "name", "hasClear", "inputProps", "trim"],
|
|
2012
|
+
batchInput: ["defaultValue", "placeholder", "name", "hasClear", "inputProps", "trim", "valueType"],
|
|
2013
2013
|
input: ["defaultValue", "placeholder", "maxLength", "name", "hasClear", "trim"],
|
|
2014
2014
|
"input-textarea": ["defaultValue", "placeholder", "maxLength", "name", "hasClear", "rows"],
|
|
2015
2015
|
"input-password": ["defaultValue", "placeholder", "maxLength", "name", "hasClear"],
|
|
@@ -2069,7 +2069,7 @@ const propFields = {
|
|
|
2069
2069
|
"iso"
|
|
2070
2070
|
],
|
|
2071
2071
|
"global-phone-picker": ["name", "defaultValue", "placeholder", "hasClear", "defaultCountryCode", "hasFlag"],
|
|
2072
|
-
|
|
2072
|
+
message: ["name"],
|
|
2073
2073
|
upload: [
|
|
2074
2074
|
"name",
|
|
2075
2075
|
"defaultValue",
|
|
@@ -4101,7 +4101,7 @@ function shouldUseNative() {
|
|
|
4101
4101
|
return false;
|
|
4102
4102
|
}
|
|
4103
4103
|
}
|
|
4104
|
-
var
|
|
4104
|
+
var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
4105
4105
|
var from;
|
|
4106
4106
|
var to = toObject(target);
|
|
4107
4107
|
var symbols;
|
|
@@ -5493,7 +5493,7 @@ function createSingletonDndContext(backend, context = getGlobalContext(), option
|
|
|
5493
5493
|
function getGlobalContext() {
|
|
5494
5494
|
return typeof global !== "undefined" ? global : window;
|
|
5495
5495
|
}
|
|
5496
|
-
var
|
|
5496
|
+
var fastDeepEqual = function equal(a, b) {
|
|
5497
5497
|
if (a === b)
|
|
5498
5498
|
return true;
|
|
5499
5499
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -5538,7 +5538,7 @@ function useCollector(monitor, collect, onUpdate) {
|
|
|
5538
5538
|
);
|
|
5539
5539
|
const updateCollected = useCallback(() => {
|
|
5540
5540
|
const nextValue = collect(monitor);
|
|
5541
|
-
if (!
|
|
5541
|
+
if (!fastDeepEqual(collected, nextValue)) {
|
|
5542
5542
|
setCollected(nextValue);
|
|
5543
5543
|
if (onUpdate) {
|
|
5544
5544
|
onUpdate();
|
|
@@ -7254,121 +7254,136 @@ const mapStatus$1 = (props, field) => {
|
|
|
7254
7254
|
state: takeState(props.state) || takeStatus()
|
|
7255
7255
|
};
|
|
7256
7256
|
};
|
|
7257
|
-
function
|
|
7258
|
-
(
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
function _defineProperty$1(e, r, t) {
|
|
7268
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7269
|
-
value: t,
|
|
7270
|
-
enumerable: true,
|
|
7271
|
-
configurable: true,
|
|
7272
|
-
writable: true
|
|
7273
|
-
}) : e[r] = t, e;
|
|
7274
|
-
}
|
|
7275
|
-
function _iterableToArrayLimit(r, l2) {
|
|
7276
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7277
|
-
if (null != t) {
|
|
7278
|
-
var e, n2, i, u, a = [], f2 = true, o = false;
|
|
7279
|
-
try {
|
|
7280
|
-
if (i = (t = t.call(r)).next, 0 === l2)
|
|
7281
|
-
;
|
|
7282
|
-
else
|
|
7283
|
-
for (; !(f2 = (e = i.call(t)).done) && (a.push(e.value), a.length !== l2); f2 = true)
|
|
7284
|
-
;
|
|
7285
|
-
} catch (r2) {
|
|
7286
|
-
o = true, n2 = r2;
|
|
7287
|
-
} finally {
|
|
7288
|
-
try {
|
|
7289
|
-
if (!f2 && null != t.return && (u = t.return(), Object(u) !== u))
|
|
7290
|
-
return;
|
|
7291
|
-
} finally {
|
|
7292
|
-
if (o)
|
|
7293
|
-
throw n2;
|
|
7294
|
-
}
|
|
7295
|
-
}
|
|
7296
|
-
return a;
|
|
7257
|
+
function _defineProperty$1(obj, key, value) {
|
|
7258
|
+
if (key in obj) {
|
|
7259
|
+
Object.defineProperty(obj, key, {
|
|
7260
|
+
value,
|
|
7261
|
+
enumerable: true,
|
|
7262
|
+
configurable: true,
|
|
7263
|
+
writable: true
|
|
7264
|
+
});
|
|
7265
|
+
} else {
|
|
7266
|
+
obj[key] = value;
|
|
7297
7267
|
}
|
|
7268
|
+
return obj;
|
|
7298
7269
|
}
|
|
7299
|
-
function
|
|
7300
|
-
|
|
7301
|
-
}
|
|
7302
|
-
function ownKeys$1(e, r) {
|
|
7303
|
-
var t = Object.keys(e);
|
|
7270
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
7271
|
+
var keys2 = Object.keys(object);
|
|
7304
7272
|
if (Object.getOwnPropertySymbols) {
|
|
7305
|
-
var
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
}
|
|
7312
|
-
function _objectSpread2$1(e) {
|
|
7313
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
7314
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
7315
|
-
r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
|
|
7316
|
-
_defineProperty$1(e, r2, t[r2]);
|
|
7317
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r2) {
|
|
7318
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
7319
|
-
});
|
|
7273
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
7274
|
+
if (enumerableOnly)
|
|
7275
|
+
symbols = symbols.filter(function(sym) {
|
|
7276
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
7277
|
+
});
|
|
7278
|
+
keys2.push.apply(keys2, symbols);
|
|
7320
7279
|
}
|
|
7321
|
-
return
|
|
7280
|
+
return keys2;
|
|
7322
7281
|
}
|
|
7323
|
-
function
|
|
7324
|
-
|
|
7282
|
+
function _objectSpread2$1(target) {
|
|
7283
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7284
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
7285
|
+
if (i % 2) {
|
|
7286
|
+
ownKeys$1(Object(source), true).forEach(function(key) {
|
|
7287
|
+
_defineProperty$1(target, key, source[key]);
|
|
7288
|
+
});
|
|
7289
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
7290
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7291
|
+
} else {
|
|
7292
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
7293
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7294
|
+
});
|
|
7295
|
+
}
|
|
7296
|
+
}
|
|
7297
|
+
return target;
|
|
7298
|
+
}
|
|
7299
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
7300
|
+
if (source == null)
|
|
7325
7301
|
return {};
|
|
7326
|
-
var
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7302
|
+
var target = {};
|
|
7303
|
+
var sourceKeys = Object.keys(source);
|
|
7304
|
+
var key, i;
|
|
7305
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
7306
|
+
key = sourceKeys[i];
|
|
7307
|
+
if (excluded.indexOf(key) >= 0)
|
|
7308
|
+
continue;
|
|
7309
|
+
target[key] = source[key];
|
|
7331
7310
|
}
|
|
7332
|
-
return
|
|
7311
|
+
return target;
|
|
7333
7312
|
}
|
|
7334
|
-
function
|
|
7335
|
-
if (
|
|
7313
|
+
function _objectWithoutProperties(source, excluded) {
|
|
7314
|
+
if (source == null)
|
|
7336
7315
|
return {};
|
|
7337
|
-
var
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7316
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
7317
|
+
var key, i;
|
|
7318
|
+
if (Object.getOwnPropertySymbols) {
|
|
7319
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
7320
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
7321
|
+
key = sourceSymbolKeys[i];
|
|
7322
|
+
if (excluded.indexOf(key) >= 0)
|
|
7323
|
+
continue;
|
|
7324
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
7341
7325
|
continue;
|
|
7342
|
-
|
|
7326
|
+
target[key] = source[key];
|
|
7343
7327
|
}
|
|
7344
|
-
|
|
7328
|
+
}
|
|
7329
|
+
return target;
|
|
7345
7330
|
}
|
|
7346
|
-
function _slicedToArray(
|
|
7347
|
-
return _arrayWithHoles(
|
|
7331
|
+
function _slicedToArray(arr, i) {
|
|
7332
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
7348
7333
|
}
|
|
7349
|
-
function
|
|
7350
|
-
if (
|
|
7351
|
-
return
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7334
|
+
function _arrayWithHoles(arr) {
|
|
7335
|
+
if (Array.isArray(arr))
|
|
7336
|
+
return arr;
|
|
7337
|
+
}
|
|
7338
|
+
function _iterableToArrayLimit(arr, i) {
|
|
7339
|
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr)))
|
|
7340
|
+
return;
|
|
7341
|
+
var _arr = [];
|
|
7342
|
+
var _n = true;
|
|
7343
|
+
var _d = false;
|
|
7344
|
+
var _e = void 0;
|
|
7345
|
+
try {
|
|
7346
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
7347
|
+
_arr.push(_s.value);
|
|
7348
|
+
if (i && _arr.length === i)
|
|
7349
|
+
break;
|
|
7350
|
+
}
|
|
7351
|
+
} catch (err) {
|
|
7352
|
+
_d = true;
|
|
7353
|
+
_e = err;
|
|
7354
|
+
} finally {
|
|
7355
|
+
try {
|
|
7356
|
+
if (!_n && _i["return"] != null)
|
|
7357
|
+
_i["return"]();
|
|
7358
|
+
} finally {
|
|
7359
|
+
if (_d)
|
|
7360
|
+
throw _e;
|
|
7361
|
+
}
|
|
7358
7362
|
}
|
|
7359
|
-
return
|
|
7363
|
+
return _arr;
|
|
7360
7364
|
}
|
|
7361
|
-
function
|
|
7362
|
-
|
|
7363
|
-
|
|
7365
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
7366
|
+
if (!o)
|
|
7367
|
+
return;
|
|
7368
|
+
if (typeof o === "string")
|
|
7369
|
+
return _arrayLikeToArray(o, minLen);
|
|
7370
|
+
var n2 = Object.prototype.toString.call(o).slice(8, -1);
|
|
7371
|
+
if (n2 === "Object" && o.constructor)
|
|
7372
|
+
n2 = o.constructor.name;
|
|
7373
|
+
if (n2 === "Map" || n2 === "Set")
|
|
7374
|
+
return Array.from(o);
|
|
7375
|
+
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
7376
|
+
return _arrayLikeToArray(o, minLen);
|
|
7377
|
+
}
|
|
7378
|
+
function _arrayLikeToArray(arr, len) {
|
|
7379
|
+
if (len == null || len > arr.length)
|
|
7380
|
+
len = arr.length;
|
|
7381
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
7382
|
+
arr2[i] = arr[i];
|
|
7383
|
+
return arr2;
|
|
7364
7384
|
}
|
|
7365
|
-
function
|
|
7366
|
-
|
|
7367
|
-
if ("string" == typeof r)
|
|
7368
|
-
return _arrayLikeToArray(r, a);
|
|
7369
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
7370
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
7371
|
-
}
|
|
7385
|
+
function _nonIterableRest() {
|
|
7386
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7372
7387
|
}
|
|
7373
7388
|
function _defineProperty(obj, key, value) {
|
|
7374
7389
|
if (key in obj) {
|
|
@@ -7540,7 +7555,7 @@ var index$2 = {
|
|
|
7540
7555
|
};
|
|
7541
7556
|
var config$1 = {
|
|
7542
7557
|
paths: {
|
|
7543
|
-
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.
|
|
7558
|
+
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
|
|
7544
7559
|
}
|
|
7545
7560
|
};
|
|
7546
7561
|
function curry(fn) {
|
|
@@ -7627,7 +7642,6 @@ function makeCancelable(promise) {
|
|
|
7627
7642
|
return hasCanceled_ = true;
|
|
7628
7643
|
}, wrappedPromise;
|
|
7629
7644
|
}
|
|
7630
|
-
var _excluded = ["monaco"];
|
|
7631
7645
|
var _state$create = index$2.create({
|
|
7632
7646
|
config: config$1,
|
|
7633
7647
|
isInitialized: false,
|
|
@@ -7636,7 +7650,7 @@ var _state$create = index$2.create({
|
|
|
7636
7650
|
monaco: null
|
|
7637
7651
|
}), _state$create2 = _slicedToArray(_state$create, 2), getState = _state$create2[0], setState = _state$create2[1];
|
|
7638
7652
|
function config(globalConfig) {
|
|
7639
|
-
var _validators$config = validators.config(globalConfig), monaco = _validators$config.monaco, config2 = _objectWithoutProperties(_validators$config,
|
|
7653
|
+
var _validators$config = validators.config(globalConfig), monaco = _validators$config.monaco, config2 = _objectWithoutProperties(_validators$config, ["monaco"]);
|
|
7640
7654
|
setState(function(state) {
|
|
7641
7655
|
return {
|
|
7642
7656
|
config: merge(state.config, config2),
|
|
@@ -7703,8 +7717,7 @@ function configureLoader() {
|
|
|
7703
7717
|
});
|
|
7704
7718
|
var require2 = window.require;
|
|
7705
7719
|
require2.config(state.config);
|
|
7706
|
-
require2(["vs/editor/editor.main"], function(
|
|
7707
|
-
var monaco = loaded.m || loaded;
|
|
7720
|
+
require2(["vs/editor/editor.main"], function(monaco) {
|
|
7708
7721
|
storeMonacoInstance(monaco);
|
|
7709
7722
|
state.resolve(monaco);
|
|
7710
7723
|
}, function(error) {
|
|
@@ -7984,7 +7997,7 @@ const schemaScenarioList = async (params) => {
|
|
|
7984
7997
|
return null;
|
|
7985
7998
|
return res;
|
|
7986
7999
|
};
|
|
7987
|
-
var
|
|
8000
|
+
var hox = {};
|
|
7988
8001
|
var createModel$2 = {};
|
|
7989
8002
|
var container$1 = {};
|
|
7990
8003
|
var __values$1 = commonjsGlobal && commonjsGlobal.__values || function(o) {
|
|
@@ -8049,9 +8062,9 @@ function Executor(props) {
|
|
|
8049
8062
|
}
|
|
8050
8063
|
executor.Executor = Executor;
|
|
8051
8064
|
var renderer = {};
|
|
8052
|
-
var
|
|
8065
|
+
var reactReconciler = { exports: {} };
|
|
8053
8066
|
var reactReconciler_production_min = { exports: {} };
|
|
8054
|
-
var
|
|
8067
|
+
var scheduler = { exports: {} };
|
|
8055
8068
|
var scheduler_production_min = {};
|
|
8056
8069
|
/** @license React v0.20.2
|
|
8057
8070
|
* scheduler.production.min.js
|
|
@@ -8335,7 +8348,7 @@ var scheduler_production_min = {};
|
|
|
8335
8348
|
};
|
|
8336
8349
|
})(scheduler_production_min);
|
|
8337
8350
|
{
|
|
8338
|
-
|
|
8351
|
+
scheduler.exports = scheduler_production_min;
|
|
8339
8352
|
}
|
|
8340
8353
|
/** @license React v0.26.2
|
|
8341
8354
|
* react-reconciler.production.min.js
|
|
@@ -8348,7 +8361,7 @@ var scheduler_production_min = {};
|
|
|
8348
8361
|
(function(module) {
|
|
8349
8362
|
module.exports = function $$$reconciler($$$hostConfig) {
|
|
8350
8363
|
var exports = {};
|
|
8351
|
-
var aa =
|
|
8364
|
+
var aa = objectAssign, ba = React$1, m2 = scheduler.exports;
|
|
8352
8365
|
function q2(a) {
|
|
8353
8366
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
|
|
8354
8367
|
b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -12991,13 +13004,13 @@ var scheduler_production_min = {};
|
|
|
12991
13004
|
};
|
|
12992
13005
|
})(reactReconciler_production_min);
|
|
12993
13006
|
{
|
|
12994
|
-
|
|
13007
|
+
reactReconciler.exports = reactReconciler_production_min.exports;
|
|
12995
13008
|
}
|
|
12996
13009
|
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
12997
13010
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12998
13011
|
};
|
|
12999
13012
|
Object.defineProperty(renderer, "__esModule", { value: true });
|
|
13000
|
-
var react_reconciler_1 = __importDefault$1(
|
|
13013
|
+
var react_reconciler_1 = __importDefault$1(reactReconciler.exports);
|
|
13001
13014
|
var reconciler = react_reconciler_1.default({
|
|
13002
13015
|
now: Date.now,
|
|
13003
13016
|
getRootHostContext: function() {
|
|
@@ -13242,12 +13255,12 @@ function withModel(useModelOrUseModels, mapModelToProps) {
|
|
|
13242
13255
|
};
|
|
13243
13256
|
}
|
|
13244
13257
|
withModel$1.withModel = withModel;
|
|
13245
|
-
Object.defineProperty(
|
|
13258
|
+
Object.defineProperty(hox, "__esModule", { value: true });
|
|
13246
13259
|
var create_model_1 = createModel$2;
|
|
13247
|
-
var createModel =
|
|
13248
|
-
|
|
13260
|
+
var createModel = hox.createModel = create_model_1.createModel;
|
|
13261
|
+
hox.createLazyModel = create_model_1.createLazyModel;
|
|
13249
13262
|
var with_model_1 = withModel$1;
|
|
13250
|
-
|
|
13263
|
+
hox.withModel = with_model_1.withModel;
|
|
13251
13264
|
function useSwagger() {
|
|
13252
13265
|
const [apiList, setApiList] = useState([]);
|
|
13253
13266
|
const [swaggerInfo, setSwaggerInfo] = useState(null);
|
|
@@ -23056,6 +23069,24 @@ var BatchInputSchema = {
|
|
|
23056
23069
|
type: "object",
|
|
23057
23070
|
properties: {
|
|
23058
23071
|
...more,
|
|
23072
|
+
valueType: {
|
|
23073
|
+
type: "string",
|
|
23074
|
+
title: "\u8FD4\u56DE\u503C\u7C7B\u578B",
|
|
23075
|
+
"x-decorator": "CnFormItem",
|
|
23076
|
+
"x-component": "CnRadioGroup",
|
|
23077
|
+
"x-validator": [],
|
|
23078
|
+
"x-component-props": {},
|
|
23079
|
+
"x-decorator-props": {
|
|
23080
|
+
tip: 'string: \u8FD4\u56DE "a,b,c" \u683C\u5F0F; list: \u8FD4\u56DE ["a","b","c"] \u683C\u5F0F'
|
|
23081
|
+
},
|
|
23082
|
+
default: "string",
|
|
23083
|
+
enum: [
|
|
23084
|
+
{ label: "string", value: "string" },
|
|
23085
|
+
{ label: "list", value: "list" }
|
|
23086
|
+
],
|
|
23087
|
+
name: "valueType",
|
|
23088
|
+
"x-designable-id": "valueType001"
|
|
23089
|
+
},
|
|
23059
23090
|
defaultValue: {
|
|
23060
23091
|
type: "string",
|
|
23061
23092
|
title: "\u9ED8\u8BA4\u503C",
|
|
@@ -27101,6 +27132,7 @@ function TablePanel$3({ schema, swaggerFields = [] }) {
|
|
|
27101
27132
|
setVisibleRowDetail(value);
|
|
27102
27133
|
if (!value) {
|
|
27103
27134
|
onChangeHandle({}, "rowDetailModule");
|
|
27135
|
+
onBaseInfoChange("rowDetailDefaultOpenAll", false);
|
|
27104
27136
|
}
|
|
27105
27137
|
};
|
|
27106
27138
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -27227,7 +27259,14 @@ function TablePanel$3({ schema, swaggerFields = [] }) {
|
|
|
27227
27259
|
type: "moduleImport",
|
|
27228
27260
|
title: "\u914D\u7F6E\u884C\u8BE6\u60C5",
|
|
27229
27261
|
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "rowDetailModule")
|
|
27230
|
-
}), /* @__PURE__ */ React$1.createElement("div", {
|
|
27262
|
+
}), visibleRowDetail && /* @__PURE__ */ React$1.createElement("div", {
|
|
27263
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
27264
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u884C\u8BE6\u60C5\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u5168\u90E8\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27265
|
+
autoWidth: true,
|
|
27266
|
+
checked: schema.get("rowDetailDefaultOpenAll"),
|
|
27267
|
+
size: "small",
|
|
27268
|
+
onChange: (v2) => onBaseInfoChange("rowDetailDefaultOpenAll", v2)
|
|
27269
|
+
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
27231
27270
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
27232
27271
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6811\u5F62\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27233
27272
|
autoWidth: true,
|
|
@@ -27373,7 +27412,7 @@ function hackRowDetail$1(schema) {
|
|
|
27373
27412
|
schema.set("rowDetail", void 0);
|
|
27374
27413
|
}
|
|
27375
27414
|
}
|
|
27376
|
-
var
|
|
27415
|
+
var immutabilityHelper = { exports: {} };
|
|
27377
27416
|
(function(module, exports) {
|
|
27378
27417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27379
27418
|
function stringifiable(obj) {
|
|
@@ -27619,8 +27658,8 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
27619
27658
|
return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
|
|
27620
27659
|
});
|
|
27621
27660
|
}
|
|
27622
|
-
})(
|
|
27623
|
-
var update = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
27661
|
+
})(immutabilityHelper, immutabilityHelper.exports);
|
|
27662
|
+
var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
|
|
27624
27663
|
const mddTableArray$1 = "_mddTableArray_16ght_1";
|
|
27625
27664
|
const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
|
|
27626
27665
|
const tableArrayContent$1 = "_tableArrayContent_16ght_18";
|
|
@@ -30479,7 +30518,7 @@ function getDefaultIndexStyle() {
|
|
|
30479
30518
|
`;
|
|
30480
30519
|
}
|
|
30481
30520
|
const name = "@cniot/mdd-editor";
|
|
30482
|
-
const version = "0.2.0-beta.
|
|
30521
|
+
const version = "0.2.0-beta.56";
|
|
30483
30522
|
const description = "\u6A21\u578B\u9A71\u52A8\u7F16\u8F91\u5668";
|
|
30484
30523
|
const scripts = {
|
|
30485
30524
|
build: "vite build"
|
package/package.json
CHANGED
|
@@ -162,6 +162,7 @@ export default function TablePanel({ schema, swaggerFields = [] }) {
|
|
|
162
162
|
if (!value) {
|
|
163
163
|
// 关闭直接初始化rowDetailModule字段
|
|
164
164
|
onChangeHandle({}, 'rowDetailModule');
|
|
165
|
+
onBaseInfoChange('rowDetailDefaultOpenAll', false);
|
|
165
166
|
}
|
|
166
167
|
};
|
|
167
168
|
|
|
@@ -285,6 +286,17 @@ export default function TablePanel({ schema, swaggerFields = [] }) {
|
|
|
285
286
|
onChange={({ index, record }) => onChangeHandle({ index, record }, 'rowDetailModule')}
|
|
286
287
|
/>
|
|
287
288
|
)}
|
|
289
|
+
{visibleRowDetail && (
|
|
290
|
+
<div style={{ marginLeft: '10px', marginBottom: 8 }}>
|
|
291
|
+
<label>行详情是否默认展开全部:</label>
|
|
292
|
+
<Switch
|
|
293
|
+
autoWidth
|
|
294
|
+
checked={schema.get('rowDetailDefaultOpenAll')}
|
|
295
|
+
size="small"
|
|
296
|
+
onChange={(v) => onBaseInfoChange('rowDetailDefaultOpenAll', v)}
|
|
297
|
+
/>
|
|
298
|
+
</div>
|
|
299
|
+
)}
|
|
288
300
|
<div style={{ marginLeft: '10px', marginBottom: 8 }}>
|
|
289
301
|
<label>树形:</label>
|
|
290
302
|
<Switch autoWidth checked={tree} size="small" onChange={(v) => onBaseInfoChange('tree', v)} />
|
|
@@ -293,6 +305,7 @@ export default function TablePanel({ schema, swaggerFields = [] }) {
|
|
|
293
305
|
开启后也可通过下面的懒加载设置改成懒加载模式,不配置则需要一次性返回树形数据
|
|
294
306
|
</span>
|
|
295
307
|
</div>
|
|
308
|
+
|
|
296
309
|
{tree && (
|
|
297
310
|
<div style={{ marginLeft: '20px', marginBottom: 8, display: 'flex' }}>
|
|
298
311
|
<label>父子节点级联勾选:</label>
|