@blueking/bkflow-canvas-editor 1.0.3 → 1.1.0-beta.1

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/dist/index.d.ts CHANGED
@@ -207,13 +207,25 @@ interface Variable {
207
207
  show_type: 'show' | 'hide';
208
208
  source_info: Record<string, string[]>;
209
209
  source_tag: string;
210
- source_type: 'custom' | 'component_inputs' | 'component_outputs' | 'system';
210
+ source_type: 'custom' | 'component_inputs' | 'component_outputs' | 'system' | 'space';
211
211
  validation: string;
212
- value?: string | number | boolean | Record<string, any>;
212
+ value?: string | number | boolean | Record<string, any> | any[];
213
213
  version?: string;
214
214
  form_schema?: Record<string, any>;
215
215
  pre_render_mako?: boolean;
216
216
  plugin_code?: string;
217
+ /**
218
+ * 全局变量改版后新增字段,前端自管。
219
+ * 用于存储「组件配置」区域的扩展字段(如 required、data_type、placeholder、validation_error_msg),
220
+ * 后端原样透传即可。
221
+ */
222
+ meta?: {
223
+ required?: boolean;
224
+ data_type?: string;
225
+ placeholder?: string;
226
+ validation_error_msg?: string;
227
+ [key: string]: any;
228
+ };
217
229
  }
218
230
 
219
231
  interface PipelineTree {
@@ -761,14 +773,14 @@ type __VLS_Props$5 = {
761
773
  enableVersion?: boolean;
762
774
  flowVersion?: string;
763
775
  };
764
- declare var __VLS_65: {
776
+ declare var __VLS_72: {
765
777
  formData: {
766
778
  name: string;
767
779
  };
768
780
  variablesValue: Record<string, any>;
769
781
  };
770
782
  type __VLS_Slots$4 = {} & {
771
- 'custom-form-content'?: (props: typeof __VLS_65) => any;
783
+ 'custom-form-content'?: (props: typeof __VLS_72) => any;
772
784
  };
773
785
  declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$5, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
774
786
  close: (...args: any[]) => void;