@luck-design-biz/luckda 1.0.1-12 → 1.0.1-14

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.
Files changed (95) hide show
  1. package/es/components/LDActions/index.less +3 -1
  2. package/es/components/LdCard/index.js +154 -67
  3. package/es/components/LdTree/index.js +14 -8
  4. package/es/components/LdTree/index.less +2 -0
  5. package/es/helper/ldBuilder.js +1 -1
  6. package/es/locales/zh-CN.js +4 -2
  7. package/es/lowcode/engine/meta/cardlist.props.default.json +27 -7
  8. package/es/lowcode/engine/meta/cardlist.props.json +252 -71
  9. package/es/lowcode/engine/meta/components-list.json +24 -0
  10. package/es/lowcode/engine/meta/iframe.props.default.json +1 -2
  11. package/es/lowcode/engine/meta/iframe.props.json +2 -4
  12. package/es/lowcode/engine/meta/image.props.default.json +3 -3
  13. package/es/lowcode/engine/meta/image.props.json +50 -16
  14. package/es/lowcode/engine/meta/js-editor/auto-complete.json +14 -1
  15. package/es/lowcode/engine/meta/link.props.default.json +1 -2
  16. package/es/lowcode/engine/meta/link.props.json +8 -9
  17. package/es/lowcode/painter/DesignToolbar.js +1 -1
  18. package/es/lowcode/painter/Ribbon.js +12 -0
  19. package/es/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
  20. package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  21. package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +20 -2
  22. package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
  23. package/es/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
  24. package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
  25. package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
  26. package/es/lowcode/painter/style/action-bind-modal.less +5 -3
  27. package/es/lowcode/painter/style/design.less +10 -7
  28. package/es/lowcode/painter/style/list-editor.less +5 -3
  29. package/es/lowcode/painter/style/number-input.less +3 -1
  30. package/es/lowcode/painter/style/outline.less +3 -1
  31. package/es/lowcode/painter/style/panel-attrs.less +7 -3
  32. package/es/lowcode/painter/style/panel.less +9 -7
  33. package/es/lowcode/painter/style/radio.less +1 -1
  34. package/es/lowcode/painter/style/ribbon.less +4 -2
  35. package/es/lowcode/view/lc-components/CardList/index.js +476 -12
  36. package/es/lowcode/view/lc-components/CardList/meta.json +253 -72
  37. package/es/lowcode/view/lc-components/GroupTree/index.js +24 -8
  38. package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
  39. package/es/lowcode/view/lc-components/Iframe/meta.json +2 -4
  40. package/es/lowcode/view/lc-components/Image/index.js +82 -6
  41. package/es/lowcode/view/lc-components/Image/index.less +27 -0
  42. package/es/lowcode/view/lc-components/Image/meta.json +50 -16
  43. package/es/lowcode/view/lc-components/Link/index.js +53 -5
  44. package/es/lowcode/view/lc-components/Link/index.less +15 -0
  45. package/es/lowcode/view/lc-components/Link/meta.json +8 -9
  46. package/es/lowcode/view/lc-components/Table/index.js +3 -5
  47. package/es/lowcode/view/lc-components/Tree/index.js +18 -11
  48. package/lib/components/LDActions/index.less +3 -1
  49. package/lib/components/LdCard/index.js +153 -66
  50. package/lib/components/LdTree/index.js +14 -8
  51. package/lib/components/LdTree/index.less +2 -0
  52. package/lib/helper/ldBuilder.js +2 -2
  53. package/lib/locales/zh-CN.js +4 -2
  54. package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -7
  55. package/lib/lowcode/engine/meta/cardlist.props.json +252 -71
  56. package/lib/lowcode/engine/meta/components-list.json +24 -0
  57. package/lib/lowcode/engine/meta/iframe.props.default.json +1 -2
  58. package/lib/lowcode/engine/meta/iframe.props.json +2 -4
  59. package/lib/lowcode/engine/meta/image.props.default.json +3 -3
  60. package/lib/lowcode/engine/meta/image.props.json +50 -16
  61. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +14 -1
  62. package/lib/lowcode/engine/meta/link.props.default.json +1 -2
  63. package/lib/lowcode/engine/meta/link.props.json +8 -9
  64. package/lib/lowcode/painter/DesignToolbar.js +1 -1
  65. package/lib/lowcode/painter/Ribbon.js +12 -0
  66. package/lib/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
  67. package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
  68. package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +19 -1
  69. package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
  70. package/lib/lowcode/painter/panel-section/GroupClassSelector.js +1 -1
  71. package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
  72. package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
  73. package/lib/lowcode/painter/style/action-bind-modal.less +5 -3
  74. package/lib/lowcode/painter/style/design.less +10 -7
  75. package/lib/lowcode/painter/style/list-editor.less +5 -3
  76. package/lib/lowcode/painter/style/number-input.less +3 -1
  77. package/lib/lowcode/painter/style/outline.less +3 -1
  78. package/lib/lowcode/painter/style/panel-attrs.less +7 -3
  79. package/lib/lowcode/painter/style/panel.less +9 -7
  80. package/lib/lowcode/painter/style/radio.less +1 -1
  81. package/lib/lowcode/painter/style/ribbon.less +4 -2
  82. package/lib/lowcode/view/lc-components/CardList/index.js +475 -11
  83. package/lib/lowcode/view/lc-components/CardList/meta.json +253 -72
  84. package/lib/lowcode/view/lc-components/GroupTree/index.js +22 -6
  85. package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
  86. package/lib/lowcode/view/lc-components/Iframe/meta.json +2 -4
  87. package/lib/lowcode/view/lc-components/Image/index.js +80 -4
  88. package/lib/lowcode/view/lc-components/Image/index.less +27 -0
  89. package/lib/lowcode/view/lc-components/Image/meta.json +50 -16
  90. package/lib/lowcode/view/lc-components/Link/index.js +52 -4
  91. package/lib/lowcode/view/lc-components/Link/index.less +15 -0
  92. package/lib/lowcode/view/lc-components/Link/meta.json +8 -9
  93. package/lib/lowcode/view/lc-components/Table/index.js +3 -5
  94. package/lib/lowcode/view/lc-components/Tree/index.js +17 -10
  95. package/package.json +5 -5
@@ -5,7 +5,6 @@
5
5
  "icon": "icon-cardlist",
6
6
  "group": "advance",
7
7
  "groupName": "高级",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "props": [
11
10
  {
@@ -32,77 +31,265 @@
32
31
  },
33
32
  {
34
33
  "key": "autoLoad",
35
- "name": "首次数据自动加载",
34
+ "name": "自动加载",
36
35
  "desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
37
- "type": "boolean",
36
+ "type": "switch",
38
37
  "default": true
39
38
  },
40
39
  {
41
40
  "key": "readOnly",
42
- "name": "是否只读",
43
- "desc": "卡片列表是否只读",
44
- "type": "boolean",
41
+ "name": "只读",
42
+ "type": "switch",
45
43
  "default": false
46
44
  },
47
45
  {
48
- "key": "isFlow",
49
- "name": "是否流式",
50
- "desc": "是否流式(不分页)",
51
- "type": "boolean",
46
+ "key": "draggable",
47
+ "name": "拖拽排序",
48
+ "type": "switch",
52
49
  "default": false
53
50
  },
54
51
  {
55
- "key": "defaultPageSize",
56
- "name": "默认分页数",
57
- "desc": "isFlow为false时设置,默认单页分页数",
52
+ "key": "col",
53
+ "name": "列数",
58
54
  "type": "number",
59
- "default": 30
55
+ "default": 4
60
56
  },
61
57
  {
62
- "key": "batchOperations",
63
- "name": "批量操作",
64
- "desc": "批量操作配置",
65
- "type": "_CardListActionSelector"
66
- },
67
- {
68
- "key": "actionTitle",
69
- "name": "操作列标题",
70
- "desc": "操作列的标题",
71
- "type": "_I18nInput",
72
- "default": "操作列"
58
+ "key": "paginationSetting",
59
+ "name": "分页设置",
60
+ "type": "group",
61
+ "props": [
62
+ {
63
+ "key": "pagination",
64
+ "name": "开启分页",
65
+ "type": "switch",
66
+ "default": true
67
+ },
68
+ {
69
+ "key": "pageSize",
70
+ "name": "每页行数",
71
+ "type": "number",
72
+ "default": 40
73
+ }
74
+ ]
73
75
  },
74
76
  {
75
- "key": "actionWidth",
76
- "name": "操作列宽度",
77
- "desc": "操作列宽度设置",
78
- "type": "number",
79
- "default": 100
77
+ "key": "styleSetting",
78
+ "name": "视觉设置",
79
+ "type": "group",
80
+ "default": true,
81
+ "next": {
82
+ "name": "视觉设置",
83
+ "props": [
84
+ {
85
+ "key": "nocardBoxborder",
86
+ "name": "无边框风格",
87
+ "type": "switch",
88
+ "default": false
89
+ },
90
+ {
91
+ "key": "showAvatar",
92
+ "name": "显示图标",
93
+ "type": "switch",
94
+ "default": true
95
+ },
96
+ {
97
+ "key": "avatarUrl",
98
+ "name": "图标地址",
99
+ "type": "_JSEditor",
100
+ "defaultCode": "function avatarUrl(record) { \n return null; \n}",
101
+ "mustConfirm": true,
102
+ "wrapper": "collapse",
103
+ "wrapperProps": {
104
+ "suppressIcon": true
105
+ }
106
+ },
107
+ {
108
+ "key": "showTitle",
109
+ "name": "显示标题",
110
+ "type": "switch",
111
+ "default": true
112
+ },
113
+ {
114
+ "key": "renderTitle",
115
+ "name": "标题内容",
116
+ "type": "_JSEditor",
117
+ "defaultCode": "function renderTitle(record) { \n return record.sname; \n}",
118
+ "mustConfirm": true,
119
+ "wrapper": "collapse",
120
+ "wrapperProps": {
121
+ "suppressIcon": true
122
+ }
123
+ },
124
+ {
125
+ "key": "showDesc",
126
+ "name": "显示描述",
127
+ "type": "switch",
128
+ "default": true
129
+ },
130
+ {
131
+ "key": "describeLines",
132
+ "name": "描述最大展示行",
133
+ "type": "number",
134
+ "default": 2
135
+ },
136
+ {
137
+ "key": "renderDescribe",
138
+ "name": "描述内容",
139
+ "type": "_JSEditor",
140
+ "defaultCode": "function renderDescribe(record) { \n return record.describe; \n}",
141
+ "mustConfirm": true,
142
+ "wrapper": "collapse",
143
+ "wrapperProps": {
144
+ "suppressIcon": true
145
+ }
146
+ },
147
+ {
148
+ "key": "renderContent",
149
+ "name": "自定义",
150
+ "type": "_JSEditor",
151
+ "defaultCode": "function renderContent(record) { \n return null; \n}",
152
+ "mustConfirm": true,
153
+ "wrapper": "collapse",
154
+ "wrapperProps": {
155
+ "suppressIcon": true
156
+ }
157
+ }
158
+ ]
159
+ }
80
160
  },
81
161
  {
82
- "key": "actionHidden",
83
- "name": "操作列是否隐藏",
84
- "desc": "操作列是否隐藏",
85
- "type": "boolean",
86
- "default": false
162
+ "key": "addCard",
163
+ "name": "新增卡片设置",
164
+ "type": "group",
165
+ "props": [
166
+ {
167
+ "key": "showAddCard",
168
+ "name": "展示新增卡片",
169
+ "type": "switch",
170
+ "default": false
171
+ },
172
+ {
173
+ "key": "addCardHeight",
174
+ "name": "新增卡片高度",
175
+ "type": "number",
176
+ "default": 240
177
+ },
178
+ {
179
+ "key": "addCardWords",
180
+ "name": "新增卡片内容",
181
+ "type": "string",
182
+ "default": "新建"
183
+ }
184
+ ]
87
185
  },
88
186
  {
89
- "key": "maxWebShownActionCount",
90
- "name": "操作列最大展示数",
91
- "desc": "操作列最大展示数,超出最大数变为最大展示数-1+更多",
92
- "type": "number",
93
- "default": 2
187
+ "key": "topSetting",
188
+ "name": "顶部操作",
189
+ "type": "group",
190
+ "default": true,
191
+ "next": {
192
+ "name": "顶部操作",
193
+ "props": [
194
+ {
195
+ "key": "topActionGroup",
196
+ "name": "顶部按钮组",
197
+ "type": "_ActionsEditor",
198
+ "default": {
199
+ "display": "button",
200
+ "max": 2,
201
+ "moreText": "操作",
202
+ "todoList": []
203
+ },
204
+ "defaultCode": "function todo() { \n \n}",
205
+ "wrapper": "collapse"
206
+ },
207
+ {
208
+ "key": "topFilter",
209
+ "name": "顶部过滤器",
210
+ "type": "_TableTopFilter",
211
+ "wrapper": "collapse"
212
+ }
213
+ ]
214
+ }
94
215
  },
95
216
  {
96
- "key": "actions",
97
- "name": "操作项",
98
- "desc": "单行操作项",
99
- "type": "_ActionSelector"
217
+ "key": "batchOperations_group",
218
+ "name": "批量操作",
219
+ "type": "group",
220
+ "default": true,
221
+ "next": {
222
+ "name": "批量操作",
223
+ "props": [
224
+ {
225
+ "key": "rowSelection",
226
+ "name": "开启选择器",
227
+ "type": "switch",
228
+ "default": false
229
+ },
230
+ {
231
+ "key": "disabledCheckbox",
232
+ "name": "不可选卡片",
233
+ "type": "_JSEditor",
234
+ "defaultCode": "function disabledCheckbox(record) { \n return false; \n}",
235
+ "mustConfirm": true,
236
+ "wrapper": "collapse",
237
+ "wrapperProps": {
238
+ "suppressIcon": true
239
+ }
240
+ },
241
+ {
242
+ "key": "batchOperations",
243
+ "name": "卡片操作项",
244
+ "type": "_ActionsEditor",
245
+ "default": {
246
+ "todoList": []
247
+ },
248
+ "suppressDisplay": true,
249
+ "suppressMore": true,
250
+ "suppressMax": true,
251
+ "defaultCode": "function onActionClick(data, params) {\n\n}",
252
+ "wrapper": "collapse",
253
+ "wrapperProps": {
254
+ "suppressIcon": true
255
+ }
256
+ }
257
+ ]
258
+ }
100
259
  },
101
260
  {
102
- "key": "batchActions",
103
- "name": "批量操作项",
104
- "desc": "批量操作项",
105
- "type": "_ActionSelector"
261
+ "key": "actionsColumn",
262
+ "name": "操作列",
263
+ "type": "group",
264
+ "default": true,
265
+ "next": {
266
+ "name": "操作列",
267
+ "props": [
268
+ {
269
+ "key": "suppressActions",
270
+ "name": "隐藏操作列",
271
+ "type": "switch",
272
+ "default": false
273
+ },
274
+ {
275
+ "key": "actions",
276
+ "name": "卡片操作项",
277
+ "type": "_ActionsEditor",
278
+ "default": {
279
+ "max": 3,
280
+ "todoList": []
281
+ },
282
+ "suppressDisplay": true,
283
+ "suppressMore": true,
284
+ "suppressIcon": false,
285
+ "defaultCode": "function onActionClick(data, params) {\n\n}",
286
+ "wrapper": "collapse",
287
+ "wrapperProps": {
288
+ "suppressIcon": true
289
+ }
290
+ }
291
+ ]
292
+ }
106
293
  }
107
294
  ],
108
295
  "advance": {
@@ -117,37 +304,31 @@
117
304
  "key": "onUnmount",
118
305
  "name": "组件卸载时",
119
306
  "desc": "在组件卸载时,执行方法。",
120
- "func": "(params)=>{\n\t\n}"
121
- },
122
- {
123
- "key": "onBatchOperationsClick",
124
- "name": "批量操作点击",
125
- "desc": "点击操作的回调函数",
126
- "func": "(key, selectedRows)=>{\n\t\n}"
307
+ "func": "()=>{\n\t\n}"
127
308
  },
128
309
  {
129
- "key": "onActionClick",
130
- "name": "操作列点击",
131
- "desc": "点击操作的回调函数",
132
- "func": "(itemData)=>{\n\t\n}"
310
+ "key": "onAddCardClick",
311
+ "name": "新增卡片点击",
312
+ "desc": "点击新增卡片行时,执行方法",
313
+ "func": "()=>{\n\t\n}"
133
314
  },
134
315
  {
135
- "key": "actionRender",
136
- "name": "操作列定制渲染",
137
- "desc": "返回为false时,该操作不可见",
138
- "func": "(title, rowData)=>{\n\t\n}"
316
+ "key": "onCardClick",
317
+ "name": "卡片单击",
318
+ "desc": "单击卡片行时,执行方法",
319
+ "func": "(data, e)=>{\n\t\n}"
139
320
  },
140
321
  {
141
- "key": "onRowClick",
142
- "name": "行单击",
143
- "desc": "单击表格行时,执行方法",
144
- "func": "(data, rowIndex, params)=>{\n\t\n}"
322
+ "key": "onCardDelete",
323
+ "name": "卡片删除",
324
+ "desc": "单击卡片删除图标,执行方法",
325
+ "func": "(data, e)=>{\n\t\n}"
145
326
  },
146
327
  {
147
- "key": "onCardRender",
148
- "name": "操作列点击",
149
- "desc": "点击操作的回调函数",
150
- "func": "(itemData)=>{\n\t\n}"
328
+ "key": "onDrop",
329
+ "name": "拖拽事件",
330
+ "desc": "节点拖拽事件",
331
+ "func": "function onDrop(dragNodeProps, targetNodeProps, evt) {\n\t\n}"
151
332
  }
152
333
  ]
153
334
  }
@@ -63,6 +63,18 @@
63
63
  "desc": "抽屉从父窗体边缘滑入,覆盖住部分父窗体内容。用户在抽屉内操作时不必离开当前任务,操作完成后,可以平滑地回到原任务。",
64
64
  "icon": "icon-drawer"
65
65
  },
66
+ {
67
+ "component": "Iframe",
68
+ "name": "Iframe",
69
+ "desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
70
+ "icon": "icon-iframe"
71
+ },
72
+ {
73
+ "component": "Image",
74
+ "name": "图片",
75
+ "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
76
+ "icon": "icon-image"
77
+ },
66
78
  {
67
79
  "component": "ImEx",
68
80
  "name": "导入导出",
@@ -75,6 +87,12 @@
75
87
  "desc": "通过编写JSX代码实现React组件的动态渲染。",
76
88
  "icon": "icon-jsx"
77
89
  },
90
+ {
91
+ "component": "Link",
92
+ "name": "超链",
93
+ "desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
94
+ "icon": "icon-link"
95
+ },
78
96
  {
79
97
  "component": "Text",
80
98
  "name": "文本",
@@ -87,6 +105,12 @@
87
105
  "group": "advance",
88
106
  "groupName": "高级",
89
107
  "components": [
108
+ {
109
+ "component": "CardList",
110
+ "name": "卡片列表",
111
+ "desc": "用于以卡片的形式展示相关的信息或内容列表。它提供了一种可视化的方式来呈现多个项目,每个项目通常由一个卡片表示,包含相关的文本、图像和其他元素。",
112
+ "icon": "icon-cardlist"
113
+ },
90
114
  {
91
115
  "component": "Form",
92
116
  "name": "复杂表单",
@@ -5,8 +5,7 @@
5
5
  "icon": "icon-iframe",
6
6
  "group": "basic",
7
7
  "groupName": "基础",
8
- "hidden": true,
9
8
  "order": 1,
10
- "css": "",
9
+ "css": "background: white; width: 100%; height: 100%",
11
10
  "supportFullScreen": true
12
11
  }
@@ -5,7 +5,6 @@
5
5
  "icon": "icon-iframe",
6
6
  "group": "basic",
7
7
  "groupName": "基础",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "props": [
11
10
  {
@@ -24,10 +23,9 @@
24
23
  "key": "supportFullScreen",
25
24
  "name": "支持全屏",
26
25
  "desc": "是否支持全屏展示",
27
- "type": "boolean",
26
+ "type": "switch",
28
27
  "default": true
29
28
  }
30
29
  ],
31
- "css": "",
32
- "advance": {}
30
+ "css": "background: white; width: 100%; height: 100%"
33
31
  }
@@ -5,14 +5,14 @@
5
5
  "group": "basic",
6
6
  "groupName": "基础",
7
7
  "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "css": "",
11
10
  "width": 350,
12
- "height": 200,
13
11
  "autoWidth": false,
12
+ "height": 200,
13
+ "autoHeight": false,
14
14
  "fit": "fill",
15
- "roundRadios": "0",
15
+ "roundRadios": "",
16
16
  "preview": false,
17
17
  "advance": {
18
18
  "events": {}
@@ -5,7 +5,6 @@
5
5
  "group": "basic",
6
6
  "groupName": "基础",
7
7
  "desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "props": [
11
10
  {
@@ -18,7 +17,7 @@
18
17
  "key": "src",
19
18
  "name": "图片地址",
20
19
  "desc": "图片地址",
21
- "type": "_ImageUploder"
20
+ "type": "string"
22
21
  },
23
22
  {
24
23
  "key": "width",
@@ -27,6 +26,13 @@
27
26
  "type": "number",
28
27
  "default": 350
29
28
  },
29
+ {
30
+ "key": "autoWidth",
31
+ "name": "宽度自适应",
32
+ "desc": "是否图片宽度自适应",
33
+ "type": "switch",
34
+ "default": false
35
+ },
30
36
  {
31
37
  "key": "height",
32
38
  "name": "高度",
@@ -35,10 +41,10 @@
35
41
  "default": 200
36
42
  },
37
43
  {
38
- "key": "autoWidth",
39
- "name": "宽度自适应",
40
- "desc": "是否图片宽度自适应",
41
- "type": "boolean",
44
+ "key": "autoHeight",
45
+ "name": "高度自适应",
46
+ "desc": "是否图片高度自适应",
47
+ "type": "switch",
42
48
  "default": false
43
49
  },
44
50
  {
@@ -48,16 +54,16 @@
48
54
  "type": "select",
49
55
  "options": [
50
56
  {
51
- "label": "铺满",
52
- "value": "fill"
57
+ "label": "铺满(Cover)",
58
+ "value": "cover"
53
59
  },
54
60
  {
55
- "label": "适合",
56
- "value": "fit"
61
+ "label": "适合(Contain)",
62
+ "value": "contain"
57
63
  },
58
64
  {
59
- "label": "拉伸",
60
- "value": "Stretch"
65
+ "label": "拉伸(Fill)",
66
+ "value": "fill"
61
67
  }
62
68
  ],
63
69
  "default": "fill"
@@ -66,8 +72,36 @@
66
72
  "key": "roundRadios",
67
73
  "name": "圆角",
68
74
  "desc": "图片四周圆角大小,可设置“0 1px 2px 3px",
69
- "type": "string",
70
- "default": "0"
75
+ "type": "select",
76
+ "options": [
77
+ {
78
+ "label": "大(16px)",
79
+ "value": "16px"
80
+ },
81
+ {
82
+ "label": "中(8px)",
83
+ "value": "8px"
84
+ },
85
+ {
86
+ "label": "小(4px)",
87
+ "value": "4px"
88
+ },
89
+ {
90
+ "label": "无(0px)",
91
+ "value": "0px"
92
+ },
93
+ {
94
+ "label": "自定义",
95
+ "value": ""
96
+ }
97
+ ],
98
+ "default": ""
99
+ },
100
+ {
101
+ "key": "borderRadios",
102
+ "name": "圆角大小",
103
+ "desc": "自定义圆角大小",
104
+ "type": "string"
71
105
  },
72
106
  {
73
107
  "key": "title",
@@ -85,7 +119,7 @@
85
119
  "key": "preview",
86
120
  "name": "开启图片预览",
87
121
  "desc": "是否开启点击打开图片预览",
88
- "type": "boolean",
122
+ "type": "switch",
89
123
  "default": false
90
124
  }
91
125
  ],
@@ -107,7 +141,7 @@
107
141
  {
108
142
  "key": "onClick",
109
143
  "name": "点击事件",
110
- "desc": "点击文本时,执行方法",
144
+ "desc": "点击图片时,执行方法",
111
145
  "func": "(e)=>{\n\t\n}"
112
146
  }
113
147
  ]
@@ -12,7 +12,20 @@
12
12
  {
13
13
  "name": "CardList",
14
14
  "triggerWord": "cardlist",
15
- "completions": []
15
+ "completions": [
16
+ {
17
+ "label": "getInstance",
18
+ "kind": "method",
19
+ "insertText": "getInstance",
20
+ "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
21
+ },
22
+ {
23
+ "label": "refresh",
24
+ "kind": "method",
25
+ "insertText": "refresh",
26
+ "documentation": " /**\r\n * 刷新表格\r\n * @method\r\n */\r"
27
+ }
28
+ ]
16
29
  },
17
30
  {
18
31
  "name": "Dialog",
@@ -5,12 +5,11 @@
5
5
  "group": "basic",
6
6
  "groupName": "基础",
7
7
  "desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "css": "",
11
10
  "textOverflow": false,
12
11
  "type": "page",
13
- "isLayer": false,
12
+ "isBlank": true,
14
13
  "effect": "hidden",
15
14
  "advance": {
16
15
  "events": {}
@@ -5,7 +5,6 @@
5
5
  "group": "basic",
6
6
  "groupName": "基础",
7
7
  "desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
8
- "hidden": true,
9
8
  "order": 1,
10
9
  "props": [
11
10
  {
@@ -23,8 +22,8 @@
23
22
  {
24
23
  "key": "textOverflow",
25
24
  "name": "单行截断",
26
- "desc": "文字超过一行,使甲...显示;开后此项后,同时会显示html标签的title",
27
- "type": "boolean",
25
+ "desc": "文字超过一行,使用...显示;开后此项后,同时会显示html标签的title",
26
+ "type": "switch",
28
27
  "default": false
29
28
  },
30
29
  {
@@ -51,16 +50,16 @@
51
50
  "type": "string"
52
51
  },
53
52
  {
54
- "key": "isLayer",
55
- "name": "弹窗打开",
56
- "desc": "是否以弹窗形式打开",
57
- "type": "boolean",
58
- "default": false
53
+ "key": "isBlank",
54
+ "name": "新开页面",
55
+ "desc": "是否新开页面",
56
+ "type": "switch",
57
+ "default": true
59
58
  },
60
59
  {
61
60
  "key": "params",
62
61
  "name": "携带参数",
63
- "desc": "超链的携带参数",
62
+ "desc": "超链的携带参数,key=value形式,多个参数中间用&拼接,例如:pageNo=1&pageSize=20",
64
63
  "type": "string"
65
64
  },
66
65
  {