@cloudbase/weda-ui 3.7.2 → 3.7.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.
@@ -138,6 +138,10 @@ declare const config: {
138
138
  readonly name: "format";
139
139
  readonly label: "js格式化";
140
140
  readonly description: "目前仅支持js格式化组件值";
141
+ readonly params: import("@sinclair/typebox").TObject<{
142
+ isCustomVal: import("@sinclair/typebox").TBoolean;
143
+ value: import("@sinclair/typebox").TString;
144
+ }>;
141
145
  }];
142
146
  readonly events: readonly [{
143
147
  name: string;
@@ -146,6 +150,10 @@ declare const config: {
146
150
  value: import("@sinclair/typebox").TString;
147
151
  }>;
148
152
  description: string;
153
+ }, {
154
+ readonly name: "ready";
155
+ readonly title: "代码编辑器ready";
156
+ readonly description: "当前代码编辑器已完成实例初始化";
149
157
  }];
150
158
  readonly meta: {
151
159
  readonly description: "用于代码编辑。";
@@ -64,9 +64,26 @@ const config = defineConfig({
64
64
  name: 'format',
65
65
  label: 'js格式化',
66
66
  description: '目前仅支持js格式化组件值',
67
+ params: Type.Object({
68
+ isCustomVal: Type.Boolean({
69
+ title: '自定义入参',
70
+ default: false,
71
+ description: '是否使用传入的格式化内容进行格式化。默认格式化当前组件值,开启则使用传入的格式化内容进行格式化,方法执行后返回格式化结果。',
72
+ }),
73
+ value: Type.String({
74
+ title: '格式化内容',
75
+ }),
76
+ }),
77
+ },
78
+ ],
79
+ events: [
80
+ FORM_ITEM_EVENTS.change,
81
+ {
82
+ name: 'ready',
83
+ title: '代码编辑器ready',
84
+ description: '当前代码编辑器已完成实例初始化',
67
85
  },
68
86
  ],
69
- events: [FORM_ITEM_EVENTS.change],
70
87
  meta: {
71
88
  description: '用于代码编辑。',
72
89
  figureIcon: '../figureIcons/WdTextarea.svg',
@@ -712,7 +712,7 @@ const data = Type.Object({
712
712
  'x-index': 185,
713
713
  })),
714
714
  isSuspendFooter: Type.Optional(Type.Boolean({
715
- title: '分页器在页面顶部悬停',
715
+ title: '分页器在页面底部悬停',
716
716
  'x-index': 190,
717
717
  'x-group': '分页器',
718
718
  'x-runtime-default': true,
@@ -4,8 +4,8 @@ import { templateInitNameWithId } from './common/init-name-with-id';
4
4
  // 图片来源
5
5
  export const WD_TAG_CAPTURE_TYPE = [
6
6
  { label: '拍照与相册', value: 'both' },
7
- { label: '仅拍照', value: 'camera' },
8
- { label: '仅相册', value: 'album' },
7
+ { label: '拍照', value: 'camera' },
8
+ { label: '相册', value: 'album' },
9
9
  ];
10
10
  const SELECT = pickWithXCategory(FORM_ITEM_DATA, ['extra', 'showShape', 'borderedH5', 'isChooseAvatar'], X_CATEGORY.IMAGE_CONTENT);
11
11
  const TITLE = getFormItemDataTitle('图片上传');
@@ -64,7 +64,7 @@ const data = Type.Partial(Type.Object({
64
64
  'x-index': FORM_ITEM_DATA.isChooseAvatar['x-index'] - 1,
65
65
  enum: Tuple(WD_TAG_CAPTURE_TYPE),
66
66
  description: '图片选择的来源',
67
- 'x-helper-text': '仅拍照模式支持小程序、H5端;仅相册模式支持小程序、PC端',
67
+ 'x-helper-text': '受各端浏览器特性限制,选择「拍照」时,PC端将禁用上传;选择「相册」时,H5端将禁用上传;安卓端微信浏览器不支持批量选择照片。',
68
68
  }),
69
69
  // 状态校验
70
70
  acceptTypes: FORM_ITEM_DATA.acceptTypes,
@@ -108,6 +108,10 @@ export declare const components: {
108
108
  readonly name: "format";
109
109
  readonly label: "js格式化";
110
110
  readonly description: "目前仅支持js格式化组件值";
111
+ readonly params: import("@sinclair/typebox").TObject<{
112
+ isCustomVal: import("@sinclair/typebox").TBoolean;
113
+ value: import("@sinclair/typebox").TString;
114
+ }>;
111
115
  }];
112
116
  readonly events: readonly [{
113
117
  name: string;
@@ -116,6 +120,10 @@ export declare const components: {
116
120
  value: import("@sinclair/typebox").TString;
117
121
  }>;
118
122
  description: string;
123
+ }, {
124
+ readonly name: "ready";
125
+ readonly title: "代码编辑器ready";
126
+ readonly description: "当前代码编辑器已完成实例初始化";
119
127
  }];
120
128
  readonly meta: {
121
129
  readonly description: "用于代码编辑。";
@@ -20172,6 +20180,10 @@ declare const _default: {
20172
20180
  readonly name: "format";
20173
20181
  readonly label: "js格式化";
20174
20182
  readonly description: "目前仅支持js格式化组件值";
20183
+ readonly params: import("@sinclair/typebox").TObject<{
20184
+ isCustomVal: import("@sinclair/typebox").TBoolean;
20185
+ value: import("@sinclair/typebox").TString;
20186
+ }>;
20175
20187
  }];
20176
20188
  readonly events: readonly [{
20177
20189
  name: string;
@@ -20180,6 +20192,10 @@ declare const _default: {
20180
20192
  value: import("@sinclair/typebox").TString;
20181
20193
  }>;
20182
20194
  description: string;
20195
+ }, {
20196
+ readonly name: "ready";
20197
+ readonly title: "代码编辑器ready";
20198
+ readonly description: "当前代码编辑器已完成实例初始化";
20183
20199
  }];
20184
20200
  readonly meta: {
20185
20201
  readonly description: "用于代码编辑。";