urit-qf-ui 0.0.3 → 0.0.5
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/USelect/USelect.vue.d.ts +50 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2565 -2945
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/ufrom/URender.vue.d.ts +10 -36
- package/dist/ufrom/types.d.ts +6 -0
- package/package.json +3 -2
- package/dist/ufrom/UDesigner.vue.d.ts +0 -32
- package/dist/ufrom/designer-components.d.ts +0 -22
- /package/dist/components/{UInput.vue.d.ts → UInput/UInput.vue.d.ts} +0 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.u-input[data-v-
|
|
1
|
+
.u-input[data-v-52ab7cd5]{display:flex;width:100%}.u-input.u-input-label-left .u-input-label[data-v-52ab7cd5]{padding-top:10px;flex-shrink:0;text-align:right;padding-right:12px;font-size:14px;color:#606266}.u-input.u-input-label-left .u-input-field[data-v-52ab7cd5]{flex:1}.u-input.u-input-label-top[data-v-52ab7cd5]{flex-direction:column}.u-input.u-input-label-top .u-input-label[data-v-52ab7cd5]{font-size:14px;color:#606266;margin-bottom:4px}.u-select[data-v-71f6d35a]{display:flex;width:100%}.u-select.u-select-label-left .u-select-label[data-v-71f6d35a]{padding-top:10px;flex-shrink:0;text-align:right;padding-right:12px;font-size:14px;color:#606266}.u-select.u-select-label-left .u-select-field[data-v-71f6d35a]{flex:1}.u-select.u-select-label-top[data-v-71f6d35a]{flex-direction:column}.u-select.u-select-label-top .u-select-label[data-v-71f6d35a]{font-size:14px;color:#606266;margin-bottom:4px}
|
|
@@ -1,43 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
field: string;
|
|
5
|
-
label: string;
|
|
6
|
-
props: Record<string, any>;
|
|
7
|
-
}
|
|
8
|
-
interface FormConfig {
|
|
9
|
-
labelWidth: number;
|
|
10
|
-
labelPosition: 'left' | 'top';
|
|
11
|
-
}
|
|
12
|
-
interface UFormJson {
|
|
13
|
-
formConfig: FormConfig;
|
|
14
|
-
widgetList: LayoutWidget[];
|
|
15
|
-
}
|
|
1
|
+
import { WidgetConfig } from './types';
|
|
16
2
|
interface Props {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
widgetList?: WidgetConfig[];
|
|
4
|
+
componentMap?: Record<string, string>;
|
|
5
|
+
modelValue?: Record<string, any>;
|
|
20
6
|
}
|
|
21
7
|
declare const _default: import('vue').DefineComponent<Props, {
|
|
22
|
-
getFormData: () =>
|
|
23
|
-
|
|
24
|
-
getFormJson: () => {
|
|
25
|
-
formConfig: {
|
|
26
|
-
labelWidth: number;
|
|
27
|
-
labelPosition: "left" | "top";
|
|
28
|
-
};
|
|
29
|
-
widgetList: {
|
|
30
|
-
id: string;
|
|
31
|
-
type: string;
|
|
32
|
-
field: string;
|
|
33
|
-
label: string;
|
|
34
|
-
props: Record<string, any>;
|
|
35
|
-
}[];
|
|
8
|
+
getFormData: () => {
|
|
9
|
+
[x: string]: any;
|
|
36
10
|
};
|
|
37
|
-
|
|
11
|
+
setFormData: (data: Record<string, any>) => void;
|
|
38
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
13
|
+
modelValue: Record<string, any>;
|
|
14
|
+
widgetList: WidgetConfig[];
|
|
15
|
+
componentMap: Record<string, string>;
|
|
42
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
43
17
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "urit-qf-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"require": "./dist/index.umd.cjs"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"./style.css": "./dist/style.css"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"dist"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ComponentRegister } from './designer-components';
|
|
2
|
-
interface LayoutWidget {
|
|
3
|
-
id: string;
|
|
4
|
-
type: string;
|
|
5
|
-
field: string;
|
|
6
|
-
label: string;
|
|
7
|
-
props: Record<string, any>;
|
|
8
|
-
}
|
|
9
|
-
interface FormConfig {
|
|
10
|
-
labelWidth: number;
|
|
11
|
-
labelPosition: 'left' | 'top';
|
|
12
|
-
}
|
|
13
|
-
interface UFormJson {
|
|
14
|
-
formConfig: FormConfig;
|
|
15
|
-
widgetList: LayoutWidget[];
|
|
16
|
-
}
|
|
17
|
-
interface Props {
|
|
18
|
-
modelValue?: UFormJson;
|
|
19
|
-
components?: ComponentRegister[];
|
|
20
|
-
}
|
|
21
|
-
declare const _default: import('vue').DefineComponent<Props, {
|
|
22
|
-
getFormJson: () => UFormJson;
|
|
23
|
-
setFormJson: (json: UFormJson) => void;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
"update:modelValue": (value: UFormJson) => any;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((value: UFormJson) => any) | undefined;
|
|
28
|
-
}>, {
|
|
29
|
-
modelValue: UFormJson;
|
|
30
|
-
components: ComponentRegister[];
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UForm 设计器组件注册表 - 类型定义
|
|
3
|
-
* 具体组件配置由使用方通过 prop 传入
|
|
4
|
-
*/
|
|
5
|
-
export interface PropertyConfig {
|
|
6
|
-
name: string;
|
|
7
|
-
label: string;
|
|
8
|
-
type: 'string' | 'number' | 'boolean' | 'select' | 'keyValueArray' | 'function';
|
|
9
|
-
options?: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
defaultValue?: any;
|
|
14
|
-
}
|
|
15
|
-
export interface ComponentRegister {
|
|
16
|
-
type: string;
|
|
17
|
-
label: string;
|
|
18
|
-
icon: string;
|
|
19
|
-
defaultProps: Record<string, any>;
|
|
20
|
-
propertyConfig: PropertyConfig[];
|
|
21
|
-
}
|
|
22
|
-
export declare function generateId(): string;
|
|
File without changes
|