@kengic/vue 0.13.4 → 0.13.6-beta.0

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.
@@ -1,9 +1,11 @@
1
1
  import { Rule } from 'ant-design-vue/es/form';
2
- import { ComputedRef } from 'vue';
2
+ import { ComputedRef, Ref } from 'vue';
3
3
  import { IKgFormItemProps } from './index.vm';
4
4
  export declare type IUseRules = {
5
5
  /** 表单验证规则. */
6
- rules: ComputedRef<Rule[]>;
6
+ rules: Ref<Rule[]>;
7
+ /** 正在计算表单验证规则. */
8
+ isRulesLoading: Ref<boolean>;
7
9
  };
8
10
  export declare function _useRules(props: IKgFormItemProps): IUseRules;
9
11
  export declare type IUseKgFormItem<T = Record<string, any>> = {
@@ -0,0 +1,23 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ export interface IUseDragModal {
3
+ draggable: Ref<boolean> | ComputedRef<boolean>;
4
+ visible: Ref<boolean> | ComputedRef<boolean>;
5
+ destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
6
+ /**
7
+ * @default '.ant-modal-wrap'
8
+ */
9
+ containerElementSelector: string;
10
+ /**
11
+ * @default '.ant-modal-header'
12
+ */
13
+ handleElementSelector: string;
14
+ /**
15
+ * @default '.ant-modal'
16
+ */
17
+ contentElementSelector: string;
18
+ }
19
+ /**
20
+ * 拖拽移动.
21
+ * @param param 参数.
22
+ */
23
+ export declare function _useDragModal(param: IUseDragModal): void;
@@ -1,4 +1,4 @@
1
- import { Ref, UnwrapRef } from 'vue';
1
+ import { ComputedRef, Ref, UnwrapRef } from 'vue';
2
2
  import { IKgSubmitHeaderProps } from './components/KgSubmit.Header';
3
3
  import { IKgSubmitProps } from './KgSubmit';
4
4
  export declare function _useFormModel(): {
@@ -18,3 +18,9 @@ export declare function _useLayout(): {
18
18
  export declare function _useDefaultWidth(): {
19
19
  getDefaultWidth: Ref<number>;
20
20
  };
21
+ export interface UseModalDragMoveContext {
22
+ draggable: Ref<boolean> | ComputedRef<boolean>;
23
+ destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
24
+ visible: Ref<boolean> | ComputedRef<boolean>;
25
+ }
26
+ export declare function _useDragModal(context: UseModalDragMoveContext): void;
@@ -292,8 +292,9 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
292
292
  * @param frm_id 界面标识.
293
293
  * @param var_nam 变量名称
294
294
  * @param properties 要修改的部分属性.
295
+ * @param isTriggerEvent 是否触发变更事件.
295
296
  */
296
- patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField): void;
297
+ patchVarSubmitField(frm_id: string | null | undefined, var_nam: string | null | undefined, properties: VarSubmitField, isTriggerEvent?: boolean): void;
297
298
  /**
298
299
  * 修改 VarPossibility 的接口参数 cmd_prm 的部分属性.
299
300
  * @param frm_id 界面标识.
@@ -14,6 +14,16 @@ export declare type IKgStateOption = {
14
14
  /** 默认为 '/sys/index'. */
15
15
  [KG_APP.SYS]?: string;
16
16
  };
17
+ KgModal?: {
18
+ /** 拖拽移动. */
19
+ drag?: {
20
+ /**
21
+ * 是否启用功能.
22
+ * @default false
23
+ */
24
+ on?: boolean;
25
+ };
26
+ };
17
27
  KgSearch?: {
18
28
  /** 高级查询. */
19
29
  dynamicQuery?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.4",
3
+ "version": "0.13.6-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",