liyu-pc-base 1.0.683 → 1.0.688

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.
@@ -22,12 +22,8 @@ var e = {
22
22
  notistartswith: "不以...开头,不区分大小写",
23
23
  notendswith: "不以...结尾(大小写)",
24
24
  notiendswith: "不以...结尾",
25
- json_list_not_blank_not_null: "非空",
26
- json_list_is_blank_is_null: "为空",
27
- not_blank_not_null: "非空",
28
- is_blank: "为空",
29
25
  _eq: "选择",
30
- is_or_not_blank_or_null: "是否为空",
26
+ is_or_not_blank_or_null: "是否为空字符串",
31
27
  is_or_not_null: "是否为空"
32
28
  }, t = { dropdown: "dropdown" }, n = {
33
29
  confirm: "确认提示框",
@@ -1 +1 @@
1
- {"version":3,"file":"typing.js","names":[],"sources":["../../src/api/typing.ts"],"sourcesContent":["export interface ResponseBody<T = any> {\n message: string;\n code: number;\n data?: T | T[];\n}\n\n/** 统一返回结构体 */\n\nexport interface PageResult<T = any> {\n data: T[];\n current?: number;\n pageSize?: number;\n total?: number;\n success: boolean;\n}\n\nexport interface RequestResult<T = any> {\n data: T;\n success: boolean;\n errorMessage: string;\n}\n\nexport const ConditionOperatorMap = {\n lt: '小于', // 小于\n lte: '小于等于', // 小于等于\n gt: '大于', // 大于\n gte: '大于等于', // 大于等于\n between: '介于', // 介于\n notbetween: '不介于', // 不介于\n in: '包含', // 包含,针对多个值\n eq: '等于', // 等于\n not_eq: '不等于', // 不等于\n contains: '包含(大小写)',\n icontains: '包含',\n startswith: '开头(大小写)',\n istartswith: '开头',\n endswith: '结尾(大小写)',\n iendswith: '结尾',\n notin: '不包含', // 不包含,针对多个值\n notcontains: '不包含(大小写)', // 不包含,针对字符串区分大小写\n noticontains: '不包含', // 不包含,针对字符串不区分大小写\n notstartswith: '不以...开头', // 不包含,针对字符串区分大小写\n notistartswith: '不以...开头,不区分大小写', // 不包含,针对字符串不区分大小写\n notendswith: '不以...结尾(大小写)',\n notiendswith: '不以...结尾',\n json_list_not_blank_not_null: '非空', // 是否非空\n json_list_is_blank_is_null: '为空', // 是否为空\n not_blank_not_null: '非空', // 是否非空\n is_blank: '为空', // 为空\n _eq: '选择', // 特殊日期\n is_or_not_blank_or_null: '是否为空',\n is_or_not_null: '是否为空',\n} as const;\nexport type ConditionOperator = keyof typeof ConditionOperatorMap;\n\nexport const BtnTypeMap = {\n dropdown: 'dropdown', // 下拉\n} as const;\ntype BtnType = keyof typeof BtnTypeMap;\n\nexport const ModelKindMap = {\n confirm: '确认提示框', // (定义显示的title 和 content,和ok 和 cancel 分别调用的接口)\n form: '通用表单', // 带有操作组件的表单\n custom_component: '自定义组件', // 自定义组件\n} as const;\ntype ModelKind = keyof typeof ModelKindMap;\n\nexport interface ConditionConfig {\n flag: string; //字段\n type: string; // 字段类型\n operator: ConditionOperator; // 操作符\n value: any[]; // 值\n}\n\nexport interface ConfirmModelConfig {\n title: string; // 标题\n content: string; // 内容\n ok_url?: string | null; // 确定按钮回调\n cancel_url?: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段, head_btn 无效\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\nexport interface ComponentModelConfig {\n title?: string | null; // 标题\n component: string; // 组件名称\n ok_url?: string | null; // 确定按钮回调\n cancel_url?: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段, head_btn 无效\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\n\nexport interface FormConfig {\n settings: Object;\n dynamicFieldList: Object[];\n model: Object;\n rules: Object;\n options: Object;\n}\nexport interface FormModelConfig {\n title: string; // 标题\n form: FormConfig;\n ok_url: string | null; // 确定按钮回调\n cancel_url: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\n\ntype BtnConfigBase = {\n name: string; // 按钮名称\n type?: BtnType | null; // 按钮类型\n authority?: string | null; // 按钮权限\n order?: number | null; // 按钮显示顺序\n clazz?: string | null; // 按钮样式\n children?: BtnConfigBase[]; // 子按钮\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n urls?: string[] | null; // 使用cb 时所需的urls,用于权限配置\n} & (\n | {\n model_kind?: ModelKind; // 模态框类型\n model_config?: ConfirmModelConfig | ComponentModelConfig | FormModelConfig; // 模态框配置\n cb?: never | null;\n }\n | {\n cb?: (Object) => void; // 按钮点击事件,特殊情况下使用,如果定义了model_kind,model_config,则该配置无效\n model_kind?: never | null;\n model_config?: never | null;\n }\n);\n\nexport type BtnConfig = BtnConfigBase & {\n is_show?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否显示, 配置了show_condition后,is_show无效\n is_disabled?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否禁用\n preProcessData?: ({ record }: { record: any }) => any; // 数据预处理函数\n beforeCommitProcessData?: ({ record, data }: { record: any; data: any }) => any; // 数据提交前预处理函数\n children?: BtnConfig[];\n};\nexport type HeadBtnConfig = BtnConfigBase & {\n is_show?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否显示\n is_disabled?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否禁用\n preProcessData?: ({\n dataSource,\n selectedRowKeys,\n }: {\n dataSource: any[];\n selectedRowKeys: any[];\n }) => any[]; // 数据预处理函数\n beforeCommitProcessData?: ({\n dataSource,\n selectedRowKeys,\n data,\n }: {\n dataSource: any[];\n selectedRowKeys: any[];\n data: any;\n }) => any[]; // 数据提交前预处理函数\n children?: HeadBtnConfig[];\n};\n\nexport type BtnListConfig = BtnConfig[];\nexport type HeadBtnListConfig = HeadBtnConfig[];\n\nexport type TitleListSubConfig = {\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n is_show?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否显示, 配置了show_condition后,is_show无效\n is_disabled?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否禁用\n};\nexport type TitleListCreateSubConfig = {\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n is_show?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否显示\n is_disabled?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否禁用\n};\nexport type TitleListConfig = {\n title: string; // 标题\n addModalTitle: string; // 新建按钮及模态框标题\n updateTitle: string; // 修改模态框标题\n is_create: boolean | string; // 创建按钮权限\n is_update: boolean | string; // 修改按钮权限\n is_remove: boolean | string; // 删除按钮权限\n is_recover: boolean | string; // 恢复按钮权限\n create_config?: TitleListCreateSubConfig;\n update_config?: TitleListSubConfig;\n remove_config?: TitleListSubConfig;\n recover_config?: TitleListSubConfig;\n};\n"],"mappings":";AAsBA,IAAa,IAAuB;CAClC,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,KAAK;CACL,SAAS;CACT,YAAY;CACZ,IAAI;CACJ,IAAI;CACJ,QAAQ;CACR,UAAU;CACV,WAAW;CACX,YAAY;CACZ,aAAa;CACb,UAAU;CACV,WAAW;CACX,OAAO;CACP,aAAa;CACb,cAAc;CACd,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,cAAc;CACd,8BAA8B;CAC9B,4BAA4B;CAC5B,oBAAoB;CACpB,UAAU;CACV,KAAK;CACL,yBAAyB;CACzB,gBAAgB;AAClB,GAGa,IAAa,EACxB,UAAU,WACZ,GAGa,IAAe;CAC1B,SAAS;CACT,MAAM;CACN,kBAAkB;AACpB"}
1
+ {"version":3,"file":"typing.js","names":[],"sources":["../../src/api/typing.ts"],"sourcesContent":["export interface ResponseBody<T = any> {\n message: string;\n code: number;\n data?: T | T[];\n}\n\n/** 统一返回结构体 */\n\nexport interface PageResult<T = any> {\n data: T[];\n current?: number;\n pageSize?: number;\n total?: number;\n success: boolean;\n}\n\nexport interface RequestResult<T = any> {\n data: T;\n success: boolean;\n errorMessage: string;\n}\n\nexport const ConditionOperatorMap = {\n lt: '小于', // 小于\n lte: '小于等于', // 小于等于\n gt: '大于', // 大于\n gte: '大于等于', // 大于等于\n between: '介于', // 介于\n notbetween: '不介于', // 不介于\n in: '包含', // 包含,针对多个值\n eq: '等于', // 等于\n not_eq: '不等于', // 不等于\n contains: '包含(大小写)',\n icontains: '包含',\n startswith: '开头(大小写)',\n istartswith: '开头',\n endswith: '结尾(大小写)',\n iendswith: '结尾',\n notin: '不包含', // 不包含,针对多个值\n notcontains: '不包含(大小写)', // 不包含,针对字符串区分大小写\n noticontains: '不包含', // 不包含,针对字符串不区分大小写\n notstartswith: '不以...开头', // 不包含,针对字符串区分大小写\n notistartswith: '不以...开头,不区分大小写', // 不包含,针对字符串不区分大小写\n notendswith: '不以...结尾(大小写)',\n notiendswith: '不以...结尾',\n _eq: '选择', // 特殊日期\n is_or_not_blank_or_null: '是否为空字符串',\n is_or_not_null: '是否为空',\n} as const;\nexport type ConditionOperator = keyof typeof ConditionOperatorMap;\n\nexport const BtnTypeMap = {\n dropdown: 'dropdown', // 下拉\n} as const;\ntype BtnType = keyof typeof BtnTypeMap;\n\nexport const ModelKindMap = {\n confirm: '确认提示框', // (定义显示的title 和 content,和ok 和 cancel 分别调用的接口)\n form: '通用表单', // 带有操作组件的表单\n custom_component: '自定义组件', // 自定义组件\n} as const;\ntype ModelKind = keyof typeof ModelKindMap;\n\nexport interface ConditionConfig {\n flag: string; //字段\n type: string; // 字段类型\n operator: ConditionOperator; // 操作符\n value: any[]; // 值\n}\n\nexport interface ConfirmModelConfig {\n title: string; // 标题\n content: string; // 内容\n ok_url?: string | null; // 确定按钮回调\n cancel_url?: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段, head_btn 无效\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\nexport interface ComponentModelConfig {\n title?: string | null; // 标题\n component: string; // 组件名称\n ok_url?: string | null; // 确定按钮回调\n cancel_url?: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段, head_btn 无效\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\n\nexport interface FormConfig {\n settings: Object;\n dynamicFieldList: Object[];\n model: Object;\n rules: Object;\n options: Object;\n}\nexport interface FormModelConfig {\n title: string; // 标题\n form: FormConfig;\n ok_url: string | null; // 确定按钮回调\n cancel_url: string | null; // 取消按钮回调\n method?: 'post' | 'get' | 'put' | 'delete' | null; // 请求方法,默认post\n init_data?: Record<string, any>; // 初始化数据\n api_fields?: Record<string, string>; // key为提交字段,value为数据来源字段\n batch_api_fields?: Record<string, string>; // 批量操作时, 从dataSource中获取数据\n}\n\ntype BtnConfigBase = {\n name: string; // 按钮名称\n type?: BtnType | null; // 按钮类型\n authority?: string | null; // 按钮权限\n order?: number | null; // 按钮显示顺序\n clazz?: string | null; // 按钮样式\n children?: BtnConfigBase[]; // 子按钮\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n urls?: string[] | null; // 使用cb 时所需的urls,用于权限配置\n} & (\n | {\n model_kind?: ModelKind; // 模态框类型\n model_config?: ConfirmModelConfig | ComponentModelConfig | FormModelConfig; // 模态框配置\n cb?: never | null;\n }\n | {\n cb?: (Object) => void; // 按钮点击事件,特殊情况下使用,如果定义了model_kind,model_config,则该配置无效\n model_kind?: never | null;\n model_config?: never | null;\n }\n);\n\nexport type BtnConfig = BtnConfigBase & {\n is_show?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否显示, 配置了show_condition后,is_show无效\n is_disabled?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否禁用\n preProcessData?: ({ record }: { record: any }) => any; // 数据预处理函数\n beforeCommitProcessData?: ({ record, data }: { record: any; data: any }) => any; // 数据提交前预处理函数\n children?: BtnConfig[];\n};\nexport type HeadBtnConfig = BtnConfigBase & {\n is_show?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否显示\n is_disabled?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否禁用\n preProcessData?: ({\n dataSource,\n selectedRowKeys,\n }: {\n dataSource: any[];\n selectedRowKeys: any[];\n }) => any[]; // 数据预处理函数\n beforeCommitProcessData?: ({\n dataSource,\n selectedRowKeys,\n data,\n }: {\n dataSource: any[];\n selectedRowKeys: any[];\n data: any;\n }) => any[]; // 数据提交前预处理函数\n children?: HeadBtnConfig[];\n};\n\nexport type BtnListConfig = BtnConfig[];\nexport type HeadBtnListConfig = HeadBtnConfig[];\n\nexport type TitleListSubConfig = {\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n is_show?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否显示, 配置了show_condition后,is_show无效\n is_disabled?: Boolean | (({ record }: { record: any }) => boolean) | null; // 按钮是否禁用\n};\nexport type TitleListCreateSubConfig = {\n show_condition?: ConditionConfig[][] | null; // 按钮显示条件\n disabled_condition?: ConditionConfig[][] | null; // 按钮禁用条件\n is_show?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否显示\n is_disabled?:\n | Boolean\n | (({ dataSource, selectedRowKeys }: { dataSource: any[]; selectedRowKeys: any[] }) => boolean)\n | null; // 按钮是否禁用\n};\nexport type TitleListConfig = {\n title: string; // 标题\n addModalTitle: string; // 新建按钮及模态框标题\n updateTitle: string; // 修改模态框标题\n is_create: boolean | string; // 创建按钮权限\n is_update: boolean | string; // 修改按钮权限\n is_remove: boolean | string; // 删除按钮权限\n is_recover: boolean | string; // 恢复按钮权限\n create_config?: TitleListCreateSubConfig;\n update_config?: TitleListSubConfig;\n remove_config?: TitleListSubConfig;\n recover_config?: TitleListSubConfig;\n};\n"],"mappings":";AAsBA,IAAa,IAAuB;CAClC,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,KAAK;CACL,SAAS;CACT,YAAY;CACZ,IAAI;CACJ,IAAI;CACJ,QAAQ;CACR,UAAU;CACV,WAAW;CACX,YAAY;CACZ,aAAa;CACb,UAAU;CACV,WAAW;CACX,OAAO;CACP,aAAa;CACb,cAAc;CACd,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,cAAc;CACd,KAAK;CACL,yBAAyB;CACzB,gBAAgB;AAClB,GAGa,IAAa,EACxB,UAAU,WACZ,GAGa,IAAe;CAC1B,SAAS;CACT,MAAM;CACN,kBAAkB;AACpB"}
@@ -64858,10 +64858,6 @@ var eZ = function(e, t, n, r) {
64858
64858
  }, a = (0, nZ.debounce)(i, 100);
64859
64859
  return Je(() => {
64860
64860
  window.addEventListener("resize", a), i();
64861
- }), We(() => {
64862
- window.removeEventListener("resize", a), window.addEventListener("resize", a), i();
64863
- }), qe(() => {
64864
- window.removeEventListener("resize", a);
64865
64861
  }), Ye(() => {
64866
64862
  window.removeEventListener("resize", a);
64867
64863
  }), ct(() => t.multiTab, () => {