joy-admin-components 0.2.105 → 0.2.106

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,46 +1,32 @@
1
- import { DefineComponent } from 'vue';
2
- import { SelectProps } from 'element-plus';
3
- /**
4
- * 字典选择器组件 - 基于 Element Plus Select 封装
5
- * 支持 API 请求数据、全选、多语言等功能
6
- */
7
- export interface CmpDictionaryProps extends Partial<SelectProps> {
8
- /** 获取下拉数据的 API 函数 */
9
- api?: () => Promise<{ data: any[] }>;
10
- /** 是否显示全选复选框(仅多选模式),默认 true */
11
- showCheckAll?: boolean;
12
- /** 选项点击回调函数 */
13
- optionClick?: (item: any) => void;
14
- /** 多选模式下的最大选择数量 */
15
- maxLimit?: number;
16
- /** 多选模式下的最小选择数量 */
17
- minLimit?: number;
18
- /** 静态数据源(如果提供则不使用 api) */
19
- data?: any[];
20
- /** 字段映射配置 */
21
- labelValue?: {
22
- label?: string;
23
- labelEn?: string;
24
- value?: string;
25
- };
26
- /** 是否使用本地 i18n 翻译 label,默认 false */
27
- changeLocal?: boolean;
28
- /** v-model 绑定值 */
29
- modelValue?: any;
30
- }
31
-
32
- export interface CmpDictionaryEmits {
33
- /** API 请求成功后触发 */
34
- (e: 'success', data: any[]): void;
35
- /** 选择值变化时触发 */
36
- (e: 'change', value: any): void;
37
- /** v-model 更新事件 */
38
- (e: 'update:modelValue', value: any): void;
39
- }
40
-
41
- declare const CmpDictionary: DefineComponent<CmpDictionaryProps>;
42
- export default CmpDictionary;
43
- Partial<{}>;
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
3
+ export default _default;
4
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
5
+ $slots: S;
6
+ });
7
+ declare const __VLS_component: DefineComponent<{}, {
8
+ $emit: (event: "change" | "success" | "changeAll", ...args: any[]) => void;
9
+ showCheckAll: boolean;
10
+ optionClick: Function;
11
+ labelValue: Record<string, any>;
12
+ changeLocal: boolean;
13
+ data?: unknown[] | undefined;
14
+ api?: Function | undefined;
15
+ maxLimit?: number | undefined;
16
+ minLimit?: number | undefined;
17
+ $props: {
18
+ readonly showCheckAll?: boolean | undefined;
19
+ readonly optionClick?: Function | undefined;
20
+ readonly labelValue?: Record<string, any> | undefined;
21
+ readonly changeLocal?: boolean | undefined;
22
+ readonly data?: unknown[] | undefined;
23
+ readonly api?: Function | undefined;
24
+ readonly maxLimit?: number | undefined;
25
+ readonly minLimit?: number | undefined;
26
+ };
27
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
28
+ type __VLS_TemplateResult = {
29
+ attrs: Partial<{}>;
44
30
  slots: {
45
31
  header?(_: {}): any;
46
32
  header?(_: {}): any;
@@ -1,24 +1,13 @@
1
- import { DefineComponent } from 'vue';
2
- /**
3
- * 图标组件 - 基于 Element Plus Icon 封装
4
- * 简化图标的使用,通过 name 属性指定图标名称
5
- *
6
- * @example
7
- * ```vue
8
- * <CmpIcon name="Edit" />
9
- * <CmpIcon name="Delete" />
10
- * <CmpIcon name="Search" />
11
- * ```
12
- */
13
- export interface CmpIconProps {
14
- /**
15
- * 图标名称
16
- * 支持 Element Plus 所有图标名称
17
- * @see https://element-plus.org/zh-CN/component/icon.html
18
- */
19
- name: string;
20
- }
21
-
22
- declare const CmpIcon: DefineComponent<CmpIconProps>;
23
- export default CmpIcon;
24
- default _default;
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ tyepe: StringConstructor;
5
+ required: true;
6
+ };
7
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
8
+ name: {
9
+ tyepe: StringConstructor;
10
+ required: true;
11
+ };
12
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
@@ -1,2 +1,2 @@
1
- .cmp-icon[data-v-7b9ec6d8],.cmp-icon[data-v-733f9daa]{padding:0!important}.confirm-button-wrapper[data-v-24cb35fd],.ImportButton[data-v-b8f856ea]{vertical-align:middle;line-height:1;display:inline-block}.searchBar-container .searchBar[data-v-db6f71dd]{transition:all .3s;overflow:hidden}.searchBar-container[data-v-db6f71dd] .el-form-item{margin-bottom:8px!important}.searchBar-container .btns[data-v-db6f71dd]{justify-content:space-between;align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd]{align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd] .el-tabs__header{margin:0}.searchBar-container .btns .right[data-v-db6f71dd]{text-align:right;align-items:center;display:flex}[data-v-d87fbf92] .vxe-table-custom-wrapper.placement--top-right.is--active{max-height:400px!important}.cell-copy-enabled .vxe-body--column{-webkit-user-select:none;user-select:none}.cell-copy-enabled .vxe-body--column.cell-selected{position:relative;background-color:#409eff26!important}.cell-copy-enabled .vxe-body--column.cell-border-top:before{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;top:0;left:0;right:0}.cell-copy-enabled .vxe-body--column.cell-border-bottom:after{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;bottom:0;left:0;right:0}.cell-copy-enabled .vxe-body--column.cell-border-left{border-left:1px solid #409eff!important}.cell-copy-enabled .vxe-body--column.cell-border-right{border-right:1px solid #409eff!important}.drawer-content .drawer-btn{box-sizing:border-box;text-align:right;z-index:10;background-color:#fff;width:100%;padding:10px 60px 20px 20px;position:absolute;bottom:0}
1
+ .cmp-icon[data-v-7b9ec6d8],.cmp-icon[data-v-733f9daa]{padding:0!important}.confirm-button-wrapper[data-v-24cb35fd],.ImportButton[data-v-b8f856ea]{vertical-align:middle;line-height:1;display:inline-block}.searchBar-container .searchBar[data-v-db6f71dd]{transition:all .3s;overflow:hidden}.searchBar-container[data-v-db6f71dd] .el-form-item{margin-bottom:8px!important}.searchBar-container .btns[data-v-db6f71dd]{justify-content:space-between;align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd]{align-items:center;display:flex}.searchBar-container .btns .left[data-v-db6f71dd] .el-tabs__header{margin:0}.searchBar-container .btns .right[data-v-db6f71dd]{text-align:right;align-items:center;display:flex}[data-v-c80f0191] .vxe-table-custom-wrapper.placement--top-right.is--active{max-height:400px!important}.cell-copy-enabled .vxe-body--column{-webkit-user-select:none;user-select:none}.cell-copy-enabled .vxe-body--column.cell-selected{position:relative;background-color:#409eff26!important}.cell-copy-enabled .vxe-body--column.cell-border-top:before{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;top:0;left:0;right:0}.cell-copy-enabled .vxe-body--column.cell-border-bottom:after{content:"";pointer-events:none;z-index:10;background-color:#409eff;height:1px;position:absolute;bottom:0;left:0;right:0}.cell-copy-enabled .vxe-body--column.cell-border-left{border-left:1px solid #409eff!important}.cell-copy-enabled .vxe-body--column.cell-border-right{border-right:1px solid #409eff!important}.drawer-content .drawer-btn{box-sizing:border-box;text-align:right;z-index:10;background-color:#fff;width:100%;padding:10px 60px 20px 20px;position:absolute;bottom:0}
2
2
  /*$vite$:1*/