@fangzhongya/fang-ui 0.1.48 → 0.1.49
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/components/common/compons/components.cjs +15 -15
- package/dist/components/common/compons/components.js +15 -15
- package/dist/components/dates-picker/src/util.cjs +4 -55
- package/dist/components/dates-picker/src/util.js +4 -55
- package/dist/components/double/src/index2.cjs +39 -36
- package/dist/components/double/src/index2.js +39 -36
- package/dist/components/forms-div/src/index2.cjs +3 -5
- package/dist/components/forms-div/src/index2.js +3 -5
- package/dist/components/index.cjs +72 -88
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.js +0 -16
- package/dist/components/list/src/index2.cjs +2 -3
- package/dist/components/list/src/index2.js +2 -3
- package/dist/components/list/src/util.cjs +14 -10
- package/dist/components/list/src/util.d.ts +2 -7
- package/dist/components/list/src/util.js +6 -2
- package/dist/expand/{chunk-PBGPF77Y.cjs → chunk-A7IW6WRD.cjs} +0 -8
- package/dist/expand/{chunk-S57QISTZ.js → chunk-L4FI5HCY.js} +0 -8
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/compons/index.cjs +1 -1
- package/dist/hooks/compons/index.d.ts +1 -1
- package/dist/hooks/compons/index.js +1 -1
- package/dist/hooks/compons/load.d.ts +1 -0
- package/dist/hooks/event-aliass/index.cjs +1 -1
- package/dist/hooks/event-aliass/index.js +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +94 -110
- package/dist/index.js +0 -16
- package/package.json +2 -2
- package/dist/components/choice-select/index.cjs +0 -8
- package/dist/components/choice-select/index.d.ts +0 -5
- package/dist/components/choice-select/index.js +0 -8
- package/dist/components/choice-select/src/data.cjs +0 -26
- package/dist/components/choice-select/src/data.d.ts +0 -34
- package/dist/components/choice-select/src/data.js +0 -26
- package/dist/components/choice-select/src/index.cjs +0 -4
- package/dist/components/choice-select/src/index.js +0 -4
- package/dist/components/choice-select/src/index2.cjs +0 -30
- package/dist/components/choice-select/src/index2.js +0 -30
- package/dist/components/company-select/index.cjs +0 -8
- package/dist/components/company-select/index.d.ts +0 -5
- package/dist/components/company-select/index.js +0 -8
- package/dist/components/company-select/src/data.cjs +0 -76
- package/dist/components/company-select/src/data.d.ts +0 -109
- package/dist/components/company-select/src/data.js +0 -76
- package/dist/components/company-select/src/index.cjs +0 -4
- package/dist/components/company-select/src/index.js +0 -4
- package/dist/components/company-select/src/index2.cjs +0 -201
- package/dist/components/company-select/src/index2.js +0 -201
- package/dist/components/department-select/index.cjs +0 -8
- package/dist/components/department-select/index.d.ts +0 -5
- package/dist/components/department-select/index.js +0 -8
- package/dist/components/department-select/src/data.cjs +0 -88
- package/dist/components/department-select/src/data.d.ts +0 -128
- package/dist/components/department-select/src/data.js +0 -88
- package/dist/components/department-select/src/index.cjs +0 -4
- package/dist/components/department-select/src/index.js +0 -4
- package/dist/components/department-select/src/index2.cjs +0 -60
- package/dist/components/department-select/src/index2.js +0 -60
- package/dist/components/role-select/index.cjs +0 -8
- package/dist/components/role-select/index.d.ts +0 -5
- package/dist/components/role-select/index.js +0 -8
- package/dist/components/role-select/src/data.cjs +0 -79
- package/dist/components/role-select/src/data.d.ts +0 -107
- package/dist/components/role-select/src/data.js +0 -79
- package/dist/components/role-select/src/index.cjs +0 -4
- package/dist/components/role-select/src/index.js +0 -4
- package/dist/components/role-select/src/index2.cjs +0 -215
- package/dist/components/role-select/src/index2.js +0 -215
- package/dist/components/select-dialog/index.cjs +0 -8
- package/dist/components/select-dialog/index.d.ts +0 -5
- package/dist/components/select-dialog/index.js +0 -8
- package/dist/components/select-dialog/src/data.cjs +0 -92
- package/dist/components/select-dialog/src/data.d.ts +0 -131
- package/dist/components/select-dialog/src/data.js +0 -92
- package/dist/components/select-dialog/src/index.cjs +0 -4
- package/dist/components/select-dialog/src/index.js +0 -4
- package/dist/components/select-dialog/src/index2.cjs +0 -226
- package/dist/components/select-dialog/src/index2.js +0 -226
- package/dist/components/select-popover/index.cjs +0 -8
- package/dist/components/select-popover/index.d.ts +0 -5
- package/dist/components/select-popover/index.js +0 -8
- package/dist/components/select-popover/src/data.cjs +0 -38
- package/dist/components/select-popover/src/data.d.ts +0 -41
- package/dist/components/select-popover/src/data.js +0 -38
- package/dist/components/select-popover/src/index.cjs +0 -4
- package/dist/components/select-popover/src/index.js +0 -4
- package/dist/components/select-popover/src/index2.cjs +0 -177
- package/dist/components/select-popover/src/index2.js +0 -177
- package/dist/components/tree-select-box/index.cjs +0 -8
- package/dist/components/tree-select-box/index.d.ts +0 -5
- package/dist/components/tree-select-box/index.js +0 -8
- package/dist/components/tree-select-box/src/data.cjs +0 -100
- package/dist/components/tree-select-box/src/data.d.ts +0 -143
- package/dist/components/tree-select-box/src/data.js +0 -100
- package/dist/components/tree-select-box/src/index.cjs +0 -4
- package/dist/components/tree-select-box/src/index.js +0 -4
- package/dist/components/tree-select-box/src/index2.cjs +0 -255
- package/dist/components/tree-select-box/src/index2.js +0 -255
- package/dist/components/user-select/index.cjs +0 -8
- package/dist/components/user-select/index.d.ts +0 -5
- package/dist/components/user-select/index.js +0 -8
- package/dist/components/user-select/src/data.cjs +0 -99
- package/dist/components/user-select/src/data.d.ts +0 -144
- package/dist/components/user-select/src/data.js +0 -99
- package/dist/components/user-select/src/index.cjs +0 -4
- package/dist/components/user-select/src/index.js +0 -4
- package/dist/components/user-select/src/index2.cjs +0 -381
- package/dist/components/user-select/src/index2.js +0 -381
- /package/dist/components/{keep-com → texts}/index.css +0 -0
- /package/dist/css/{keep-com.css → texts.css} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
-
const definePropType = require("../../../utils/vues/definePropType.cjs");
|
|
5
|
-
const roleSelect = {
|
|
6
|
-
value: "value",
|
|
7
|
-
//指定选项标签为选项对象的某个属性值
|
|
8
|
-
label: "label",
|
|
9
|
-
//指定选项的子选项为选项对象的某个属性值
|
|
10
|
-
children: "children",
|
|
11
|
-
//指定选项的禁用为选项对象的某个属性值
|
|
12
|
-
disabled: "disabled",
|
|
13
|
-
// 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组
|
|
14
|
-
// 若设置 false,则只返回该节点的值
|
|
15
|
-
emitPath: true,
|
|
16
|
-
// 是否严格的遵守父子节点不互相关联
|
|
17
|
-
checkStrictly: true,
|
|
18
|
-
// 是否动态加载子节点,需与 lazyLoad 方法结合使用
|
|
19
|
-
lazy: false
|
|
20
|
-
// // 是否多选
|
|
21
|
-
// multiple: false,
|
|
22
|
-
};
|
|
23
|
-
const name = "department-select";
|
|
24
|
-
const dataProps = buildProps.buildProps({
|
|
25
|
-
/**
|
|
26
|
-
* @props { Array} modelValue=
|
|
27
|
-
* 值
|
|
28
|
-
*/
|
|
29
|
-
modelValue: {
|
|
30
|
-
type: [Array]
|
|
31
|
-
},
|
|
32
|
-
appendToBody: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
title: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "选择部门"
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* @props { String, Number} width= ( )
|
|
42
|
-
* 弹框宽度
|
|
43
|
-
*/
|
|
44
|
-
width: {
|
|
45
|
-
type: [String, Number]
|
|
46
|
-
},
|
|
47
|
-
placeholder: {
|
|
48
|
-
type: String
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* @props { Array } options=[] ( )
|
|
52
|
-
* 选项的数据源, value 和 label 可以通过 props 自定义.
|
|
53
|
-
*/
|
|
54
|
-
options: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default() {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* @props { Boolean } disabled= ( )
|
|
62
|
-
* 是否禁用
|
|
63
|
-
*/
|
|
64
|
-
disabled: {
|
|
65
|
-
type: [Boolean]
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* @props { Object } props={} ( )
|
|
69
|
-
* 配置选项
|
|
70
|
-
*/
|
|
71
|
-
props: {
|
|
72
|
-
type: definePropType.definePropType(Object),
|
|
73
|
-
default() {
|
|
74
|
-
return {};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
const dataEmits = ["update:modelValue"];
|
|
79
|
-
const dataSlot = {
|
|
80
|
-
default: "default"
|
|
81
|
-
};
|
|
82
|
-
const dataExpose = {};
|
|
83
|
-
exports.dataEmits = dataEmits;
|
|
84
|
-
exports.dataExpose = dataExpose;
|
|
85
|
-
exports.dataProps = dataProps;
|
|
86
|
-
exports.dataSlot = dataSlot;
|
|
87
|
-
exports.name = name;
|
|
88
|
-
exports.roleSelect = roleSelect;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
export type ModelValue = string | number;
|
|
3
|
-
export type ObjStrAny = {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export declare const roleSelect: {
|
|
7
|
-
value: string;
|
|
8
|
-
label: string;
|
|
9
|
-
children: string;
|
|
10
|
-
disabled: string;
|
|
11
|
-
emitPath: boolean;
|
|
12
|
-
checkStrictly: boolean;
|
|
13
|
-
lazy: boolean;
|
|
14
|
-
};
|
|
15
|
-
export type RoleSelect = {
|
|
16
|
-
father?: string;
|
|
17
|
-
inpuIabel?: string;
|
|
18
|
-
explain?: string;
|
|
19
|
-
value: string;
|
|
20
|
-
label: string;
|
|
21
|
-
children: string;
|
|
22
|
-
disabled: string;
|
|
23
|
-
emitPath: boolean;
|
|
24
|
-
lazy: boolean;
|
|
25
|
-
lazyLoad: Function;
|
|
26
|
-
multiple: boolean;
|
|
27
|
-
checkStrictly: boolean;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @title {h3} department-select
|
|
31
|
-
*/
|
|
32
|
-
export declare const name = "department-select";
|
|
33
|
-
export declare const dataProps: {
|
|
34
|
-
/**
|
|
35
|
-
* @props { Array} modelValue=
|
|
36
|
-
* 值
|
|
37
|
-
*/
|
|
38
|
-
modelValue: {
|
|
39
|
-
type: {
|
|
40
|
-
(arrayLength: number): ModelValue[];
|
|
41
|
-
(...items: ModelValue[]): ModelValue[];
|
|
42
|
-
new (arrayLength: number): ModelValue[];
|
|
43
|
-
new (...items: ModelValue[]): ModelValue[];
|
|
44
|
-
isArray(arg: any): arg is any[];
|
|
45
|
-
readonly prototype: any[];
|
|
46
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
48
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
49
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
50
|
-
of<T>(...items: T[]): T[];
|
|
51
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
52
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
53
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
54
|
-
}[];
|
|
55
|
-
};
|
|
56
|
-
appendToBody: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
title: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @props { String, Number} width= ( )
|
|
66
|
-
* 弹框宽度
|
|
67
|
-
*/
|
|
68
|
-
width: {
|
|
69
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
70
|
-
};
|
|
71
|
-
placeholder: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* @props { Array } options=[] ( )
|
|
76
|
-
* 选项的数据源, value 和 label 可以通过 props 自定义.
|
|
77
|
-
*/
|
|
78
|
-
options: {
|
|
79
|
-
type: {
|
|
80
|
-
(arrayLength: number): ObjStrAny[];
|
|
81
|
-
(...items: ObjStrAny[]): ObjStrAny[];
|
|
82
|
-
new (arrayLength: number): ObjStrAny[];
|
|
83
|
-
new (...items: ObjStrAny[]): ObjStrAny[];
|
|
84
|
-
isArray(arg: any): arg is any[];
|
|
85
|
-
readonly prototype: any[];
|
|
86
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
87
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
88
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
89
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
90
|
-
of<T>(...items: T[]): T[];
|
|
91
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
92
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
93
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
94
|
-
};
|
|
95
|
-
default(): never[];
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @props { Boolean } disabled= ( )
|
|
99
|
-
* 是否禁用
|
|
100
|
-
*/
|
|
101
|
-
disabled: {
|
|
102
|
-
type: BooleanConstructor[];
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @props { Object } props={} ( )
|
|
106
|
-
* 配置选项
|
|
107
|
-
*/
|
|
108
|
-
props: {
|
|
109
|
-
type: PropType<RoleSelect>;
|
|
110
|
-
default(): {};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
114
|
-
/**
|
|
115
|
-
*/
|
|
116
|
-
export declare const dataEmits: string[];
|
|
117
|
-
export type DataEmits = typeof dataEmits;
|
|
118
|
-
/**
|
|
119
|
-
* @slot default 默认插槽
|
|
120
|
-
*/
|
|
121
|
-
export declare const dataSlot: {
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* @expose setValue (val:<string>设置的数据 )
|
|
126
|
-
* 设置值
|
|
127
|
-
*/
|
|
128
|
-
export declare const dataExpose: {};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
-
import { definePropType } from "../../../utils/vues/definePropType.js";
|
|
3
|
-
const roleSelect = {
|
|
4
|
-
value: "value",
|
|
5
|
-
//指定选项标签为选项对象的某个属性值
|
|
6
|
-
label: "label",
|
|
7
|
-
//指定选项的子选项为选项对象的某个属性值
|
|
8
|
-
children: "children",
|
|
9
|
-
//指定选项的禁用为选项对象的某个属性值
|
|
10
|
-
disabled: "disabled",
|
|
11
|
-
// 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组
|
|
12
|
-
// 若设置 false,则只返回该节点的值
|
|
13
|
-
emitPath: true,
|
|
14
|
-
// 是否严格的遵守父子节点不互相关联
|
|
15
|
-
checkStrictly: true,
|
|
16
|
-
// 是否动态加载子节点,需与 lazyLoad 方法结合使用
|
|
17
|
-
lazy: false
|
|
18
|
-
// // 是否多选
|
|
19
|
-
// multiple: false,
|
|
20
|
-
};
|
|
21
|
-
const name = "department-select";
|
|
22
|
-
const dataProps = buildProps({
|
|
23
|
-
/**
|
|
24
|
-
* @props { Array} modelValue=
|
|
25
|
-
* 值
|
|
26
|
-
*/
|
|
27
|
-
modelValue: {
|
|
28
|
-
type: [Array]
|
|
29
|
-
},
|
|
30
|
-
appendToBody: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: true
|
|
33
|
-
},
|
|
34
|
-
title: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "选择部门"
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* @props { String, Number} width= ( )
|
|
40
|
-
* 弹框宽度
|
|
41
|
-
*/
|
|
42
|
-
width: {
|
|
43
|
-
type: [String, Number]
|
|
44
|
-
},
|
|
45
|
-
placeholder: {
|
|
46
|
-
type: String
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* @props { Array } options=[] ( )
|
|
50
|
-
* 选项的数据源, value 和 label 可以通过 props 自定义.
|
|
51
|
-
*/
|
|
52
|
-
options: {
|
|
53
|
-
type: Array,
|
|
54
|
-
default() {
|
|
55
|
-
return [];
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* @props { Boolean } disabled= ( )
|
|
60
|
-
* 是否禁用
|
|
61
|
-
*/
|
|
62
|
-
disabled: {
|
|
63
|
-
type: [Boolean]
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* @props { Object } props={} ( )
|
|
67
|
-
* 配置选项
|
|
68
|
-
*/
|
|
69
|
-
props: {
|
|
70
|
-
type: definePropType(Object),
|
|
71
|
-
default() {
|
|
72
|
-
return {};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
const dataEmits = ["update:modelValue"];
|
|
77
|
-
const dataSlot = {
|
|
78
|
-
default: "default"
|
|
79
|
-
};
|
|
80
|
-
const dataExpose = {};
|
|
81
|
-
export {
|
|
82
|
-
dataEmits,
|
|
83
|
-
dataExpose,
|
|
84
|
-
dataProps,
|
|
85
|
-
dataSlot,
|
|
86
|
-
name,
|
|
87
|
-
roleSelect
|
|
88
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const data = require("./data.cjs");
|
|
5
|
-
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
7
|
-
const index = require("../../../hooks/locale/index.cjs");
|
|
8
|
-
const index$4 = require("../../tree-select-box/index.cjs");
|
|
9
|
-
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
-
...{ inheritAttrs: false },
|
|
12
|
-
__name: "index",
|
|
13
|
-
props: index$3.getProps(data.dataProps),
|
|
14
|
-
emits: data.dataEmits,
|
|
15
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
-
const { getLocale } = index.useLocale();
|
|
17
|
-
const attrs = index$1.useInherit();
|
|
18
|
-
const cs = index$2.useCssName(data.name);
|
|
19
|
-
const props = __props;
|
|
20
|
-
const propss = index$3.usePropsDefault(data.name, props, data.dataProps);
|
|
21
|
-
const emit = __emit;
|
|
22
|
-
const psprops = vue.computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
...data.roleSelect,
|
|
25
|
-
...props.props
|
|
26
|
-
};
|
|
27
|
-
});
|
|
28
|
-
const value = vue.computed({
|
|
29
|
-
get() {
|
|
30
|
-
let v = propss.modelValue;
|
|
31
|
-
return v;
|
|
32
|
-
},
|
|
33
|
-
set(value2) {
|
|
34
|
-
emit("update:modelValue", value2);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
__expose({
|
|
38
|
-
...data.dataExpose
|
|
39
|
-
});
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
42
|
-
class: vue.unref(cs).z()
|
|
43
|
-
}, vue.unref(attrs).root), [
|
|
44
|
-
vue.createVNode(vue.unref(index$4.TreeSelectBox), vue.mergeProps({ ...vue.unref(attrs).assem, ...vue.unref(propss) }, {
|
|
45
|
-
modelValue: value.value,
|
|
46
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
47
|
-
width: _ctx.width,
|
|
48
|
-
props: psprops.value,
|
|
49
|
-
title: _ctx.title
|
|
50
|
-
}), {
|
|
51
|
-
suffix: vue.withCtx(() => [
|
|
52
|
-
vue.renderSlot(_ctx.$slots, "suffix")
|
|
53
|
-
]),
|
|
54
|
-
_: 3
|
|
55
|
-
}, 16, ["modelValue", "width", "props", "title"])
|
|
56
|
-
], 16);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
exports.default = _sfc_main;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, mergeProps, unref, createVNode, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { name, dataProps, roleSelect, dataExpose, dataEmits } from "./data.js";
|
|
3
|
-
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
-
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
5
|
-
import { useLocale } from "../../../hooks/locale/index.js";
|
|
6
|
-
import { TreeSelectBox } from "../../tree-select-box/index.js";
|
|
7
|
-
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
...{ inheritAttrs: false },
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: getProps(dataProps),
|
|
12
|
-
emits: dataEmits,
|
|
13
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14
|
-
const { getLocale } = useLocale();
|
|
15
|
-
const attrs = useInherit();
|
|
16
|
-
const cs = useCssName(name);
|
|
17
|
-
const props = __props;
|
|
18
|
-
const propss = usePropsDefault(name, props, dataProps);
|
|
19
|
-
const emit = __emit;
|
|
20
|
-
const psprops = computed(() => {
|
|
21
|
-
return {
|
|
22
|
-
...roleSelect,
|
|
23
|
-
...props.props
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
const value = computed({
|
|
27
|
-
get() {
|
|
28
|
-
let v = propss.modelValue;
|
|
29
|
-
return v;
|
|
30
|
-
},
|
|
31
|
-
set(value2) {
|
|
32
|
-
emit("update:modelValue", value2);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
__expose({
|
|
36
|
-
...dataExpose
|
|
37
|
-
});
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
40
|
-
class: unref(cs).z()
|
|
41
|
-
}, unref(attrs).root), [
|
|
42
|
-
createVNode(unref(TreeSelectBox), mergeProps({ ...unref(attrs).assem, ...unref(propss) }, {
|
|
43
|
-
modelValue: value.value,
|
|
44
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
45
|
-
width: _ctx.width,
|
|
46
|
-
props: psprops.value,
|
|
47
|
-
title: _ctx.title
|
|
48
|
-
}), {
|
|
49
|
-
suffix: withCtx(() => [
|
|
50
|
-
renderSlot(_ctx.$slots, "suffix")
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
}, 16, ["modelValue", "width", "props", "title"])
|
|
54
|
-
], 16);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
_sfc_main as default
|
|
60
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
require("./src/index.cjs");
|
|
4
|
-
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
5
|
-
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
6
|
-
const RoleSelect = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "RoleSelect");
|
|
7
|
-
exports.RoleSelect = RoleSelect;
|
|
8
|
-
exports.default = RoleSelect;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
-
const definePropType = require("../../../utils/vues/definePropType.cjs");
|
|
5
|
-
const roleSelect = {
|
|
6
|
-
searchPlaceholder: "请输入字段进行查询",
|
|
7
|
-
value: "value",
|
|
8
|
-
//指定选项标签为选项对象的某个属性值
|
|
9
|
-
label: "label",
|
|
10
|
-
//指定选项的子选项为选项对象的某个属性值
|
|
11
|
-
children: "children",
|
|
12
|
-
//指定选项的禁用为选项对象的某个属性值
|
|
13
|
-
disabled: "disabled",
|
|
14
|
-
// 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组
|
|
15
|
-
// 若设置 false,则只返回该节点的值
|
|
16
|
-
emitPath: true,
|
|
17
|
-
// 是否严格的遵守父子节点不互相关联
|
|
18
|
-
checkStrictly: true,
|
|
19
|
-
// 是否动态加载子节点,需与 lazyLoad 方法结合使用
|
|
20
|
-
lazy: false
|
|
21
|
-
// // 是否多选
|
|
22
|
-
// multiple: false,
|
|
23
|
-
};
|
|
24
|
-
const name = "role-select";
|
|
25
|
-
const dataProps = buildProps.buildProps({
|
|
26
|
-
/**
|
|
27
|
-
* @props { Array} modelValue=
|
|
28
|
-
* 值
|
|
29
|
-
*/
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: [Array]
|
|
32
|
-
},
|
|
33
|
-
appendToBody: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* @props { String, Number} width= ( )
|
|
39
|
-
* 弹框宽度
|
|
40
|
-
*/
|
|
41
|
-
width: {
|
|
42
|
-
type: [String, Number]
|
|
43
|
-
},
|
|
44
|
-
title: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "选择角色"
|
|
47
|
-
},
|
|
48
|
-
placeholder: {
|
|
49
|
-
type: String
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* @props { Boolean } disabled= ( )
|
|
53
|
-
* 是否禁用
|
|
54
|
-
*/
|
|
55
|
-
disabled: {
|
|
56
|
-
type: [Boolean]
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* @props { Object } props={} ( )
|
|
60
|
-
* 配置选项
|
|
61
|
-
*/
|
|
62
|
-
props: {
|
|
63
|
-
type: definePropType.definePropType(Object),
|
|
64
|
-
default() {
|
|
65
|
-
return {};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const dataEmits = ["change", "update:modelValue"];
|
|
70
|
-
const dataSlot = {
|
|
71
|
-
default: "default"
|
|
72
|
-
};
|
|
73
|
-
const dataExpose = {};
|
|
74
|
-
exports.dataEmits = dataEmits;
|
|
75
|
-
exports.dataExpose = dataExpose;
|
|
76
|
-
exports.dataProps = dataProps;
|
|
77
|
-
exports.dataSlot = dataSlot;
|
|
78
|
-
exports.name = name;
|
|
79
|
-
exports.roleSelect = roleSelect;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
export type ModelValue = string | number;
|
|
3
|
-
export type ObjStrAny = {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export declare const roleSelect: {
|
|
7
|
-
searchPlaceholder: string;
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
|
-
children: string;
|
|
11
|
-
disabled: string;
|
|
12
|
-
emitPath: boolean;
|
|
13
|
-
checkStrictly: boolean;
|
|
14
|
-
lazy: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type RoleSelect = {
|
|
17
|
-
searchPlaceholder?: string;
|
|
18
|
-
explain?: string;
|
|
19
|
-
value: string;
|
|
20
|
-
label: string;
|
|
21
|
-
children: string;
|
|
22
|
-
disabled: string;
|
|
23
|
-
emitPath: boolean;
|
|
24
|
-
lazy: boolean;
|
|
25
|
-
lazyLoad: Function;
|
|
26
|
-
multiple: boolean;
|
|
27
|
-
checkStrictly: boolean;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @title {h3}
|
|
31
|
-
*/
|
|
32
|
-
export declare const name = "role-select";
|
|
33
|
-
export declare const dataProps: {
|
|
34
|
-
/**
|
|
35
|
-
* @props { Array} modelValue=
|
|
36
|
-
* 值
|
|
37
|
-
*/
|
|
38
|
-
modelValue: {
|
|
39
|
-
type: {
|
|
40
|
-
(arrayLength: number): ModelValue[];
|
|
41
|
-
(...items: ModelValue[]): ModelValue[];
|
|
42
|
-
new (arrayLength: number): ModelValue[];
|
|
43
|
-
new (...items: ModelValue[]): ModelValue[];
|
|
44
|
-
isArray(arg: any): arg is any[];
|
|
45
|
-
readonly prototype: any[];
|
|
46
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
48
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
49
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
50
|
-
of<T>(...items: T[]): T[];
|
|
51
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
52
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
53
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
54
|
-
}[];
|
|
55
|
-
};
|
|
56
|
-
appendToBody: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* @props { String, Number} width= ( )
|
|
62
|
-
* 弹框宽度
|
|
63
|
-
*/
|
|
64
|
-
width: {
|
|
65
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
66
|
-
};
|
|
67
|
-
title: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
placeholder: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* @props { Boolean } disabled= ( )
|
|
76
|
-
* 是否禁用
|
|
77
|
-
*/
|
|
78
|
-
disabled: {
|
|
79
|
-
type: BooleanConstructor[];
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @props { Object } props={} ( )
|
|
83
|
-
* 配置选项
|
|
84
|
-
*/
|
|
85
|
-
props: {
|
|
86
|
-
type: PropType<RoleSelect>;
|
|
87
|
-
default(): {};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
91
|
-
/**
|
|
92
|
-
* @emits change (val:[String, Array])
|
|
93
|
-
* 选择的时间
|
|
94
|
-
*/
|
|
95
|
-
export declare const dataEmits: string[];
|
|
96
|
-
export type DataEmits = typeof dataEmits;
|
|
97
|
-
/**
|
|
98
|
-
* @slot default 默认插槽
|
|
99
|
-
*/
|
|
100
|
-
export declare const dataSlot: {
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @expose setValue (val:<string>设置的数据 )
|
|
105
|
-
* 设置值
|
|
106
|
-
*/
|
|
107
|
-
export declare const dataExpose: {};
|