@cniot/mdd-editor 0.2.0-beta.52 → 0.2.0-beta.53
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 +4 -0
- package/build/index.cjs.js +17 -17
- package/build/index.es.js +176 -2
- package/package.json +1 -1
- package/src/template/const.js +4 -0
package/build/index.es.js
CHANGED
|
@@ -22610,6 +22610,175 @@ var EditCascaderSelectSchema = {
|
|
|
22610
22610
|
"x-designable-id": "edit-table-j744a1rk494"
|
|
22611
22611
|
}
|
|
22612
22612
|
};
|
|
22613
|
+
const uploadSchema$1 = {
|
|
22614
|
+
...editCommonItem,
|
|
22615
|
+
service: {
|
|
22616
|
+
type: "string",
|
|
22617
|
+
title: "\u83B7\u53D6OSS\u51ED\u8BC1\u63A5\u53E3\u5730\u5740",
|
|
22618
|
+
"x-decorator": "CnFormItem",
|
|
22619
|
+
"x-component": "Input",
|
|
22620
|
+
"x-validator": [],
|
|
22621
|
+
"x-component-props": {
|
|
22622
|
+
placeholder: "\u8BF7\u8F93\u5165,eg: https://example/getOssUploadParams"
|
|
22623
|
+
},
|
|
22624
|
+
"x-decorator-props": {
|
|
22625
|
+
tip: "\u63A5\u53E3\u89C4\u8303\u8BE6\u89C1: https://yuque.antfin.com/cn-ui/cn-ui-data-structure/cn-upload"
|
|
22626
|
+
},
|
|
22627
|
+
name: "service",
|
|
22628
|
+
"x-designable-id": "hso2ft3bll3"
|
|
22629
|
+
},
|
|
22630
|
+
shape: {
|
|
22631
|
+
type: "string",
|
|
22632
|
+
title: "\u4E0A\u4F20\u6837\u5F0F",
|
|
22633
|
+
"x-decorator": "CnFormItem",
|
|
22634
|
+
"x-component": "Select",
|
|
22635
|
+
"x-validator": [],
|
|
22636
|
+
"x-component-props": {
|
|
22637
|
+
style: {
|
|
22638
|
+
width: "200px"
|
|
22639
|
+
},
|
|
22640
|
+
size: "small"
|
|
22641
|
+
},
|
|
22642
|
+
"x-decorator-props": {},
|
|
22643
|
+
name: "shape",
|
|
22644
|
+
default: "normal",
|
|
22645
|
+
enum: [
|
|
22646
|
+
{
|
|
22647
|
+
label: "\u666E\u901A\u4E0A\u4F20",
|
|
22648
|
+
value: "normal"
|
|
22649
|
+
},
|
|
22650
|
+
{
|
|
22651
|
+
label: "\u7B80\u6D01\u4E0A\u4F20",
|
|
22652
|
+
value: "mini"
|
|
22653
|
+
},
|
|
22654
|
+
{
|
|
22655
|
+
label: "\u62D6\u62FD\u4E0A\u4F20",
|
|
22656
|
+
value: "dragger"
|
|
22657
|
+
}
|
|
22658
|
+
],
|
|
22659
|
+
"x-designable-id": "sxb8qjzzmzk"
|
|
22660
|
+
},
|
|
22661
|
+
showUploadList: {
|
|
22662
|
+
type: "boolean",
|
|
22663
|
+
title: "\u662F\u5426\u6709\u6587\u4EF6\u5217\u8868",
|
|
22664
|
+
"x-decorator": "CnFormItem",
|
|
22665
|
+
"x-component": "Switch",
|
|
22666
|
+
"x-validator": [],
|
|
22667
|
+
"x-component-props": {},
|
|
22668
|
+
"x-decorator-props": {},
|
|
22669
|
+
name: "showUploadList",
|
|
22670
|
+
default: true,
|
|
22671
|
+
"x-designable-id": "1oxz0inalmf"
|
|
22672
|
+
},
|
|
22673
|
+
showPreview: {
|
|
22674
|
+
type: "boolean",
|
|
22675
|
+
title: "\u662F\u5426\u5C55\u793A\u6587\u4EF6\u9884\u89C8ICON",
|
|
22676
|
+
"x-decorator": "CnFormItem",
|
|
22677
|
+
"x-component": "Switch",
|
|
22678
|
+
"x-validator": [],
|
|
22679
|
+
default: false,
|
|
22680
|
+
"x-component-props": {},
|
|
22681
|
+
"x-decorator-props": {},
|
|
22682
|
+
name: "showPreview",
|
|
22683
|
+
"x-designable-id": "hgrh67bvlwc"
|
|
22684
|
+
},
|
|
22685
|
+
showRemove: {
|
|
22686
|
+
type: "boolean",
|
|
22687
|
+
title: "\u662F\u5426\u5C55\u793A\u5220\u9664\u6587\u4EF6",
|
|
22688
|
+
"x-decorator": "CnFormItem",
|
|
22689
|
+
"x-component": "Switch",
|
|
22690
|
+
"x-validator": [],
|
|
22691
|
+
default: true,
|
|
22692
|
+
"x-component-props": {},
|
|
22693
|
+
"x-decorator-props": {},
|
|
22694
|
+
name: "showRemove",
|
|
22695
|
+
"x-designable-id": "vbylh6fa2mb"
|
|
22696
|
+
},
|
|
22697
|
+
showDownload: {
|
|
22698
|
+
type: "boolean",
|
|
22699
|
+
title: "\u662F\u5426\u5C55\u793A\u4E0B\u8F7D\u6587\u4EF6",
|
|
22700
|
+
"x-decorator": "CnFormItem",
|
|
22701
|
+
"x-component": "Switch",
|
|
22702
|
+
"x-validator": [],
|
|
22703
|
+
default: true,
|
|
22704
|
+
"x-component-props": {},
|
|
22705
|
+
"x-decorator-props": {},
|
|
22706
|
+
name: "showDownload",
|
|
22707
|
+
"x-designable-id": "5tb55oy67tw"
|
|
22708
|
+
},
|
|
22709
|
+
multiple: {
|
|
22710
|
+
type: "boolean",
|
|
22711
|
+
title: "\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",
|
|
22712
|
+
"x-decorator": "CnFormItem",
|
|
22713
|
+
"x-component": "Switch",
|
|
22714
|
+
"x-validator": [],
|
|
22715
|
+
"x-component-props": {},
|
|
22716
|
+
"x-decorator-props": {},
|
|
22717
|
+
name: "multiple",
|
|
22718
|
+
"x-designable-id": "jyl8akeqpkr"
|
|
22719
|
+
},
|
|
22720
|
+
accept: {
|
|
22721
|
+
type: "string",
|
|
22722
|
+
title: "\u63A5\u53D7\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B",
|
|
22723
|
+
"x-decorator": "CnFormItem",
|
|
22724
|
+
"x-component": "Input",
|
|
22725
|
+
"x-validator": [],
|
|
22726
|
+
"x-component-props": {},
|
|
22727
|
+
"x-decorator-props": {
|
|
22728
|
+
tip: "\u8BE6\u89C1https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"
|
|
22729
|
+
},
|
|
22730
|
+
name: "accept",
|
|
22731
|
+
description: "",
|
|
22732
|
+
"x-designable-id": "wdi2j6qqy17"
|
|
22733
|
+
},
|
|
22734
|
+
limit: {
|
|
22735
|
+
type: "number",
|
|
22736
|
+
title: "\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\u9650\u5236",
|
|
22737
|
+
"x-decorator": "CnFormItem",
|
|
22738
|
+
"x-component": "CnNumberPicker",
|
|
22739
|
+
"x-validator": [],
|
|
22740
|
+
"x-component-props": {},
|
|
22741
|
+
"x-decorator-props": {},
|
|
22742
|
+
name: "limit",
|
|
22743
|
+
"x-designable-id": "auj6iuyrk8v"
|
|
22744
|
+
},
|
|
22745
|
+
tooltip: {
|
|
22746
|
+
type: "string",
|
|
22747
|
+
title: "\u63D0\u793A",
|
|
22748
|
+
"x-decorator": "CnFormItem",
|
|
22749
|
+
"x-component": "Input",
|
|
22750
|
+
"x-validator": [],
|
|
22751
|
+
"x-component-props": {},
|
|
22752
|
+
"x-decorator-props": {
|
|
22753
|
+
tip: "\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"
|
|
22754
|
+
},
|
|
22755
|
+
name: "tooltip",
|
|
22756
|
+
"x-designable-id": "sxbtip2222mzk"
|
|
22757
|
+
}
|
|
22758
|
+
};
|
|
22759
|
+
var EditUploadSchema = {
|
|
22760
|
+
form: {
|
|
22761
|
+
labelCol: 6,
|
|
22762
|
+
wrapperCol: 16
|
|
22763
|
+
},
|
|
22764
|
+
schema: {
|
|
22765
|
+
type: "object",
|
|
22766
|
+
properties: {
|
|
22767
|
+
...getEditCommonColumnProps(),
|
|
22768
|
+
decoratorProps: {
|
|
22769
|
+
type: "object",
|
|
22770
|
+
"x-validator": [],
|
|
22771
|
+
name: "decoratorProps",
|
|
22772
|
+
title: "\u7F16\u8F91\u5668\u5C5E\u6027",
|
|
22773
|
+
"x-designable-id": "xoirvxpflgk",
|
|
22774
|
+
properties: {
|
|
22775
|
+
...uploadSchema$1
|
|
22776
|
+
}
|
|
22777
|
+
}
|
|
22778
|
+
},
|
|
22779
|
+
"x-designable-id": "loa7444w8t3"
|
|
22780
|
+
}
|
|
22781
|
+
};
|
|
22613
22782
|
var EditColumns = {
|
|
22614
22783
|
"edit-custom": EditCustomSchema,
|
|
22615
22784
|
"edit-input": EditInputSchema,
|
|
@@ -22619,7 +22788,8 @@ var EditColumns = {
|
|
|
22619
22788
|
"edit-date-picker": EditDatePickerSchema,
|
|
22620
22789
|
"edit-time-picker": EditTimePickerSchema,
|
|
22621
22790
|
"edit-address-select": EditAddressSelectSchema,
|
|
22622
|
-
"edit-cascader-select": EditCascaderSelectSchema
|
|
22791
|
+
"edit-cascader-select": EditCascaderSelectSchema,
|
|
22792
|
+
"upload": EditUploadSchema
|
|
22623
22793
|
};
|
|
22624
22794
|
var ModuleImport = {
|
|
22625
22795
|
form: {
|
|
@@ -26539,6 +26709,10 @@ const columnsTypeOptionsWithEditCnTable = [
|
|
|
26539
26709
|
value: "edit-cascader-select",
|
|
26540
26710
|
label: "\u7EA7\u8054\u9009\u62E9\u5668"
|
|
26541
26711
|
},
|
|
26712
|
+
{
|
|
26713
|
+
value: "upload",
|
|
26714
|
+
label: "OSS\u4E0A\u4F20"
|
|
26715
|
+
},
|
|
26542
26716
|
{
|
|
26543
26717
|
value: "blocks-table",
|
|
26544
26718
|
label: "\u5217\u8868\u533A\u5757"
|
|
@@ -30279,7 +30453,7 @@ function getDefaultIndexStyle() {
|
|
|
30279
30453
|
`;
|
|
30280
30454
|
}
|
|
30281
30455
|
const name = "@cniot/mdd-editor";
|
|
30282
|
-
const version = "0.2.0-beta.
|
|
30456
|
+
const version = "0.2.0-beta.53";
|
|
30283
30457
|
const description = "\u6A21\u578B\u9A71\u52A8\u7F16\u8F91\u5668";
|
|
30284
30458
|
const scripts = {
|
|
30285
30459
|
build: "vite build"
|
package/package.json
CHANGED
package/src/template/const.js
CHANGED