@vyr/element-plus 0.0.14 → 0.0.15
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/package.json +1 -22
- package/build/actor/ElButtonActor.d.ts +0 -11
- package/build/actor/ElButtonActor.js +0 -32
- package/build/actor/ElButtonActor.js.map +0 -1
- package/build/actor/ElCascaderActor.d.ts +0 -12
- package/build/actor/ElCascaderActor.js +0 -33
- package/build/actor/ElCascaderActor.js.map +0 -1
- package/build/actor/ElCheckboxActor.d.ts +0 -12
- package/build/actor/ElCheckboxActor.js +0 -34
- package/build/actor/ElCheckboxActor.js.map +0 -1
- package/build/actor/ElColActor.d.ts +0 -14
- package/build/actor/ElColActor.js +0 -25
- package/build/actor/ElColActor.js.map +0 -1
- package/build/actor/ElDatePickerActor.d.ts +0 -12
- package/build/actor/ElDatePickerActor.js +0 -31
- package/build/actor/ElDatePickerActor.js.map +0 -1
- package/build/actor/ElDialogActor.d.ts +0 -11
- package/build/actor/ElDialogActor.js +0 -28
- package/build/actor/ElDialogActor.js.map +0 -1
- package/build/actor/ElFormActor.d.ts +0 -12
- package/build/actor/ElFormActor.js +0 -33
- package/build/actor/ElFormActor.js.map +0 -1
- package/build/actor/ElFormItemActor.d.ts +0 -23
- package/build/actor/ElFormItemActor.js +0 -73
- package/build/actor/ElFormItemActor.js.map +0 -1
- package/build/actor/ElInputActor.d.ts +0 -25
- package/build/actor/ElInputActor.js +0 -36
- package/build/actor/ElInputActor.js.map +0 -1
- package/build/actor/ElInputNumberActor.d.ts +0 -12
- package/build/actor/ElInputNumberActor.js +0 -28
- package/build/actor/ElInputNumberActor.js.map +0 -1
- package/build/actor/ElMenuActor.d.ts +0 -11
- package/build/actor/ElMenuActor.js +0 -25
- package/build/actor/ElMenuActor.js.map +0 -1
- package/build/actor/ElMenuItemActor.d.ts +0 -17
- package/build/actor/ElMenuItemActor.js +0 -33
- package/build/actor/ElMenuItemActor.js.map +0 -1
- package/build/actor/ElPaginationActor.d.ts +0 -21
- package/build/actor/ElPaginationActor.js +0 -81
- package/build/actor/ElPaginationActor.js.map +0 -1
- package/build/actor/ElRadioActor.d.ts +0 -12
- package/build/actor/ElRadioActor.js +0 -34
- package/build/actor/ElRadioActor.js.map +0 -1
- package/build/actor/ElRowActor.d.ts +0 -14
- package/build/actor/ElRowActor.js +0 -26
- package/build/actor/ElRowActor.js.map +0 -1
- package/build/actor/ElSelectActor.d.ts +0 -12
- package/build/actor/ElSelectActor.js +0 -37
- package/build/actor/ElSelectActor.js.map +0 -1
- package/build/actor/ElSubMenuActor.d.ts +0 -17
- package/build/actor/ElSubMenuActor.js +0 -33
- package/build/actor/ElSubMenuActor.js.map +0 -1
- package/build/actor/ElSwitchActor.d.ts +0 -9
- package/build/actor/ElSwitchActor.js +0 -17
- package/build/actor/ElSwitchActor.js.map +0 -1
- package/build/actor/ElTableActor.d.ts +0 -11
- package/build/actor/ElTableActor.js +0 -25
- package/build/actor/ElTableActor.js.map +0 -1
- package/build/actor/ElTableColumnActor.d.ts +0 -26
- package/build/actor/ElTableColumnActor.js +0 -57
- package/build/actor/ElTableColumnActor.js.map +0 -1
- package/build/actor/index.d.ts +0 -20
- package/build/actor/index.js +0 -21
- package/build/actor/index.js.map +0 -1
- package/build/asset/index.d.ts +0 -1
- package/build/asset/index.js +0 -18
- package/build/asset/index.js.map +0 -1
- package/build/descriptor/ElButtonDescriptor.d.ts +0 -16
- package/build/descriptor/ElButtonDescriptor.js +0 -29
- package/build/descriptor/ElButtonDescriptor.js.map +0 -1
- package/build/descriptor/ElCascaderDescriptor.d.ts +0 -19
- package/build/descriptor/ElCascaderDescriptor.js +0 -35
- package/build/descriptor/ElCascaderDescriptor.js.map +0 -1
- package/build/descriptor/ElCheckboxDescriptor.d.ts +0 -18
- package/build/descriptor/ElCheckboxDescriptor.js +0 -33
- package/build/descriptor/ElCheckboxDescriptor.js.map +0 -1
- package/build/descriptor/ElColDescriptor.d.ts +0 -9
- package/build/descriptor/ElColDescriptor.js +0 -14
- package/build/descriptor/ElColDescriptor.js.map +0 -1
- package/build/descriptor/ElDatePickerDescriptor.d.ts +0 -19
- package/build/descriptor/ElDatePickerDescriptor.js +0 -35
- package/build/descriptor/ElDatePickerDescriptor.js.map +0 -1
- package/build/descriptor/ElDialogDescriptor.d.ts +0 -9
- package/build/descriptor/ElDialogDescriptor.js +0 -18
- package/build/descriptor/ElDialogDescriptor.js.map +0 -1
- package/build/descriptor/ElFormDescriptor.d.ts +0 -19
- package/build/descriptor/ElFormDescriptor.js +0 -44
- package/build/descriptor/ElFormDescriptor.js.map +0 -1
- package/build/descriptor/ElFormItemDescriptor.d.ts +0 -9
- package/build/descriptor/ElFormItemDescriptor.js +0 -5
- package/build/descriptor/ElFormItemDescriptor.js.map +0 -1
- package/build/descriptor/ElInputDescriptor.d.ts +0 -25
- package/build/descriptor/ElInputDescriptor.js +0 -47
- package/build/descriptor/ElInputDescriptor.js.map +0 -1
- package/build/descriptor/ElInputNumberDescriptor.d.ts +0 -17
- package/build/descriptor/ElInputNumberDescriptor.js +0 -31
- package/build/descriptor/ElInputNumberDescriptor.js.map +0 -1
- package/build/descriptor/ElMenuDescriptor.d.ts +0 -12
- package/build/descriptor/ElMenuDescriptor.js +0 -21
- package/build/descriptor/ElMenuDescriptor.js.map +0 -1
- package/build/descriptor/ElMenuItemDescriptor.d.ts +0 -10
- package/build/descriptor/ElMenuItemDescriptor.js +0 -16
- package/build/descriptor/ElMenuItemDescriptor.js.map +0 -1
- package/build/descriptor/ElPaginationDescriptor.d.ts +0 -21
- package/build/descriptor/ElPaginationDescriptor.js +0 -43
- package/build/descriptor/ElPaginationDescriptor.js.map +0 -1
- package/build/descriptor/ElRadioDescriptor.d.ts +0 -18
- package/build/descriptor/ElRadioDescriptor.js +0 -33
- package/build/descriptor/ElRadioDescriptor.js.map +0 -1
- package/build/descriptor/ElRowDescriptor.d.ts +0 -10
- package/build/descriptor/ElRowDescriptor.js +0 -16
- package/build/descriptor/ElRowDescriptor.js.map +0 -1
- package/build/descriptor/ElSelectDescriptor.d.ts +0 -19
- package/build/descriptor/ElSelectDescriptor.js +0 -35
- package/build/descriptor/ElSelectDescriptor.js.map +0 -1
- package/build/descriptor/ElSubMenuDescriptor.d.ts +0 -9
- package/build/descriptor/ElSubMenuDescriptor.js +0 -14
- package/build/descriptor/ElSubMenuDescriptor.js.map +0 -1
- package/build/descriptor/ElSwitchDescriptor.d.ts +0 -15
- package/build/descriptor/ElSwitchDescriptor.js +0 -27
- package/build/descriptor/ElSwitchDescriptor.js.map +0 -1
- package/build/descriptor/ElTableColumnDescriptor.d.ts +0 -19
- package/build/descriptor/ElTableColumnDescriptor.js +0 -34
- package/build/descriptor/ElTableColumnDescriptor.js.map +0 -1
- package/build/descriptor/ElTableDescriptor.d.ts +0 -12
- package/build/descriptor/ElTableDescriptor.js +0 -20
- package/build/descriptor/ElTableDescriptor.js.map +0 -1
- package/build/descriptor/index.d.ts +0 -20
- package/build/descriptor/index.js +0 -21
- package/build/descriptor/index.js.map +0 -1
- package/build/index.d.ts +0 -7
- package/build/index.js +0 -8
- package/build/index.js.map +0 -1
- package/build/interpreter/ElButtonInterpreter.d.ts +0 -8
- package/build/interpreter/ElButtonInterpreter.js +0 -13
- package/build/interpreter/ElButtonInterpreter.js.map +0 -1
- package/build/interpreter/ElCascaderInterpreter.d.ts +0 -8
- package/build/interpreter/ElCascaderInterpreter.js +0 -13
- package/build/interpreter/ElCascaderInterpreter.js.map +0 -1
- package/build/interpreter/ElCheckboxInterpreter.d.ts +0 -8
- package/build/interpreter/ElCheckboxInterpreter.js +0 -13
- package/build/interpreter/ElCheckboxInterpreter.js.map +0 -1
- package/build/interpreter/ElColInterpreter.d.ts +0 -8
- package/build/interpreter/ElColInterpreter.js +0 -13
- package/build/interpreter/ElColInterpreter.js.map +0 -1
- package/build/interpreter/ElDatePickerInterpreter.d.ts +0 -8
- package/build/interpreter/ElDatePickerInterpreter.js +0 -13
- package/build/interpreter/ElDatePickerInterpreter.js.map +0 -1
- package/build/interpreter/ElDialogInterpreter.d.ts +0 -8
- package/build/interpreter/ElDialogInterpreter.js +0 -13
- package/build/interpreter/ElDialogInterpreter.js.map +0 -1
- package/build/interpreter/ElFormInterpreter.d.ts +0 -8
- package/build/interpreter/ElFormInterpreter.js +0 -13
- package/build/interpreter/ElFormInterpreter.js.map +0 -1
- package/build/interpreter/ElInputInterpreter.d.ts +0 -8
- package/build/interpreter/ElInputInterpreter.js +0 -13
- package/build/interpreter/ElInputInterpreter.js.map +0 -1
- package/build/interpreter/ElInputNumberInterpreter.d.ts +0 -8
- package/build/interpreter/ElInputNumberInterpreter.js +0 -13
- package/build/interpreter/ElInputNumberInterpreter.js.map +0 -1
- package/build/interpreter/ElMenuInterpreter.d.ts +0 -8
- package/build/interpreter/ElMenuInterpreter.js +0 -13
- package/build/interpreter/ElMenuInterpreter.js.map +0 -1
- package/build/interpreter/ElMenuItemInterpreter.d.ts +0 -8
- package/build/interpreter/ElMenuItemInterpreter.js +0 -13
- package/build/interpreter/ElMenuItemInterpreter.js.map +0 -1
- package/build/interpreter/ElPaginationInterpreter.d.ts +0 -8
- package/build/interpreter/ElPaginationInterpreter.js +0 -13
- package/build/interpreter/ElPaginationInterpreter.js.map +0 -1
- package/build/interpreter/ElRadioInterpreter.d.ts +0 -8
- package/build/interpreter/ElRadioInterpreter.js +0 -13
- package/build/interpreter/ElRadioInterpreter.js.map +0 -1
- package/build/interpreter/ElRowInterpreter.d.ts +0 -8
- package/build/interpreter/ElRowInterpreter.js +0 -13
- package/build/interpreter/ElRowInterpreter.js.map +0 -1
- package/build/interpreter/ElSelectInterpreter.d.ts +0 -8
- package/build/interpreter/ElSelectInterpreter.js +0 -13
- package/build/interpreter/ElSelectInterpreter.js.map +0 -1
- package/build/interpreter/ElSubMenuInterpreter.d.ts +0 -8
- package/build/interpreter/ElSubMenuInterpreter.js +0 -13
- package/build/interpreter/ElSubMenuInterpreter.js.map +0 -1
- package/build/interpreter/ElSwitchInterpreter.d.ts +0 -8
- package/build/interpreter/ElSwitchInterpreter.js +0 -13
- package/build/interpreter/ElSwitchInterpreter.js.map +0 -1
- package/build/interpreter/ElTableColumnInterpreter.d.ts +0 -8
- package/build/interpreter/ElTableColumnInterpreter.js +0 -13
- package/build/interpreter/ElTableColumnInterpreter.js.map +0 -1
- package/build/interpreter/ElTableInterpreter.d.ts +0 -8
- package/build/interpreter/ElTableInterpreter.js +0 -13
- package/build/interpreter/ElTableInterpreter.js.map +0 -1
- package/build/interpreter/index.d.ts +0 -20
- package/build/interpreter/index.js +0 -33
- package/build/interpreter/index.js.map +0 -1
- package/build/locale/Language.d.ts +0 -3
- package/build/locale/Language.js +0 -6
- package/build/locale/Language.js.map +0 -1
- package/build/locale/LanguageProvider.d.ts +0 -21
- package/build/locale/LanguageProvider.js +0 -22
- package/build/locale/LanguageProvider.js.map +0 -1
- package/build/locale/index.d.ts +0 -2
- package/build/locale/index.js +0 -3
- package/build/locale/index.js.map +0 -1
- package/build/preset/execute/ElDialog/close.d.ts +0 -13
- package/build/preset/execute/ElDialog/close.js +0 -35
- package/build/preset/execute/ElDialog/close.js.map +0 -1
- package/build/preset/execute/ElDialog/index.d.ts +0 -2
- package/build/preset/execute/ElDialog/index.js +0 -3
- package/build/preset/execute/ElDialog/index.js.map +0 -1
- package/build/preset/execute/ElDialog/open.d.ts +0 -16
- package/build/preset/execute/ElDialog/open.js +0 -38
- package/build/preset/execute/ElDialog/open.js.map +0 -1
- package/build/preset/execute/ElForm/branch.d.ts +0 -13
- package/build/preset/execute/ElForm/branch.js +0 -34
- package/build/preset/execute/ElForm/branch.js.map +0 -1
- package/build/preset/execute/ElForm/create.d.ts +0 -13
- package/build/preset/execute/ElForm/create.js +0 -22
- package/build/preset/execute/ElForm/create.js.map +0 -1
- package/build/preset/execute/ElForm/edit.d.ts +0 -13
- package/build/preset/execute/ElForm/edit.js +0 -22
- package/build/preset/execute/ElForm/edit.js.map +0 -1
- package/build/preset/execute/ElForm/getData.d.ts +0 -16
- package/build/preset/execute/ElForm/getData.js +0 -41
- package/build/preset/execute/ElForm/getData.js.map +0 -1
- package/build/preset/execute/ElForm/index.d.ts +0 -5
- package/build/preset/execute/ElForm/index.js +0 -6
- package/build/preset/execute/ElForm/index.js.map +0 -1
- package/build/preset/execute/ElForm/reset.d.ts +0 -13
- package/build/preset/execute/ElForm/reset.js +0 -42
- package/build/preset/execute/ElForm/reset.js.map +0 -1
- package/build/preset/execute/ElPagination/getData.d.ts +0 -13
- package/build/preset/execute/ElPagination/getData.js +0 -37
- package/build/preset/execute/ElPagination/getData.js.map +0 -1
- package/build/preset/execute/ElPagination/index.d.ts +0 -2
- package/build/preset/execute/ElPagination/index.js +0 -3
- package/build/preset/execute/ElPagination/index.js.map +0 -1
- package/build/preset/execute/ElPagination/reset.d.ts +0 -13
- package/build/preset/execute/ElPagination/reset.js +0 -34
- package/build/preset/execute/ElPagination/reset.js.map +0 -1
- package/build/preset/execute/ElTable/create.d.ts +0 -9
- package/build/preset/execute/ElTable/create.js +0 -26
- package/build/preset/execute/ElTable/create.js.map +0 -1
- package/build/preset/execute/ElTable/delete.d.ts +0 -9
- package/build/preset/execute/ElTable/delete.js +0 -41
- package/build/preset/execute/ElTable/delete.js.map +0 -1
- package/build/preset/execute/ElTable/edit.d.ts +0 -9
- package/build/preset/execute/ElTable/edit.js +0 -27
- package/build/preset/execute/ElTable/edit.js.map +0 -1
- package/build/preset/execute/ElTable/index.d.ts +0 -3
- package/build/preset/execute/ElTable/index.js +0 -4
- package/build/preset/execute/ElTable/index.js.map +0 -1
- package/build/preset/execute/ElTableColumn/formatter.d.ts +0 -14
- package/build/preset/execute/ElTableColumn/formatter.js +0 -60
- package/build/preset/execute/ElTableColumn/formatter.js.map +0 -1
- package/build/preset/execute/ElTableColumn/index.d.ts +0 -1
- package/build/preset/execute/ElTableColumn/index.js +0 -2
- package/build/preset/execute/ElTableColumn/index.js.map +0 -1
- package/build/preset/execute/index.d.ts +0 -5
- package/build/preset/execute/index.js +0 -6
- package/build/preset/execute/index.js.map +0 -1
- package/build/preset/index.d.ts +0 -3
- package/build/preset/index.js +0 -4
- package/build/preset/index.js.map +0 -1
- package/build/preset/interaction/ElDialog/close.d.ts +0 -5
- package/build/preset/interaction/ElDialog/close.js +0 -19
- package/build/preset/interaction/ElDialog/close.js.map +0 -1
- package/build/preset/interaction/ElDialog/index.d.ts +0 -1
- package/build/preset/interaction/ElDialog/index.js +0 -2
- package/build/preset/interaction/ElDialog/index.js.map +0 -1
- package/build/preset/interaction/ElTable/create.d.ts +0 -7
- package/build/preset/interaction/ElTable/create.js +0 -23
- package/build/preset/interaction/ElTable/create.js.map +0 -1
- package/build/preset/interaction/ElTable/delete.d.ts +0 -7
- package/build/preset/interaction/ElTable/delete.js +0 -23
- package/build/preset/interaction/ElTable/delete.js.map +0 -1
- package/build/preset/interaction/ElTable/edit.d.ts +0 -8
- package/build/preset/interaction/ElTable/edit.js +0 -25
- package/build/preset/interaction/ElTable/edit.js.map +0 -1
- package/build/preset/interaction/ElTable/index.d.ts +0 -6
- package/build/preset/interaction/ElTable/index.js +0 -7
- package/build/preset/interaction/ElTable/index.js.map +0 -1
- package/build/preset/interaction/ElTable/list.d.ts +0 -8
- package/build/preset/interaction/ElTable/list.js +0 -25
- package/build/preset/interaction/ElTable/list.js.map +0 -1
- package/build/preset/interaction/ElTable/reset.d.ts +0 -7
- package/build/preset/interaction/ElTable/reset.js +0 -23
- package/build/preset/interaction/ElTable/reset.js.map +0 -1
- package/build/preset/interaction/ElTable/submit.d.ts +0 -12
- package/build/preset/interaction/ElTable/submit.js +0 -35
- package/build/preset/interaction/ElTable/submit.js.map +0 -1
- package/build/preset/interaction/index.d.ts +0 -2
- package/build/preset/interaction/index.js +0 -3
- package/build/preset/interaction/index.js.map +0 -1
- package/build/utils/form.d.ts +0 -13
- package/build/utils/form.js +0 -61
- package/build/utils/form.js.map +0 -1
- package/build/utils/index.d.ts +0 -3
- package/build/utils/index.js +0 -4
- package/build/utils/index.js.map +0 -1
- package/build/utils/style.d.ts +0 -3
- package/build/utils/style.js +0 -7
- package/build/utils/style.js.map +0 -1
- package/build/utils/validator.d.ts +0 -7
- package/build/utils/validator.js +0 -23
- package/build/utils/validator.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vyr/element-plus",
|
|
3
|
-
"version": "0.0.14",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"author": "",
|
|
7
|
-
"sideEffects": true,
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"element-plus": "2.10.1",
|
|
11
|
-
"vue": "3.5.22"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"src/",
|
|
15
|
-
"build/",
|
|
16
|
-
"package.json"
|
|
17
|
-
],
|
|
18
|
-
"vyr": {
|
|
19
|
-
"type": "universal",
|
|
20
|
-
"order": 11
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
{"name":"@vyr/element-plus","version":"0.0.15","description":"","main":"./src/index.ts","author":"","sideEffects":true,"license":"MIT","dependencies":{"element-plus":"2.10.1","vue":"3.5.22"},"files":["package.json","src/"],"vyr":{"type":"universal","order":11}}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElButtonDescriptor } from "../descriptor";
|
|
4
|
-
declare class ElButtonActor extends VueActor {
|
|
5
|
-
getProps(descriptor: ElButtonDescriptor): VyrVueProps;
|
|
6
|
-
getComponent(): VNode;
|
|
7
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElButtonDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
export { ElButtonActor };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent, Text } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
import { mergeStyle } from "../utils";
|
|
4
|
-
class ElButtonActor extends VueActor {
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
type: descriptor.buttonType,
|
|
10
|
-
plain: descriptor.plain,
|
|
11
|
-
circle: descriptor.circle,
|
|
12
|
-
round: descriptor.round,
|
|
13
|
-
size: descriptor.size,
|
|
14
|
-
text: descriptor.textMode,
|
|
15
|
-
disabled: descriptor.disabled,
|
|
16
|
-
loading: descriptor.loading,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
getComponent() {
|
|
20
|
-
return resolveDynamicComponent('el-button');
|
|
21
|
-
}
|
|
22
|
-
getContent(instance, children, descriptor) {
|
|
23
|
-
const component = this.getComponent();
|
|
24
|
-
const attrs = this.getComponentAttrs(instance, descriptor);
|
|
25
|
-
mergeStyle({ width: '100%' }, attrs);
|
|
26
|
-
if (descriptor.text)
|
|
27
|
-
children.default().push(h(Text, descriptor.text));
|
|
28
|
-
return h(component, attrs, children);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export { ElButtonActor };
|
|
32
|
-
//# sourceMappingURL=ElButtonActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElButtonActor.js","sourceRoot":"","sources":["../../src/actor/ElButtonActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAE,IAAI,EAAS,MAAM,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,aAAc,SAAQ,QAAQ;IAEhC,QAAQ,CAAC,UAA8B;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,UAAU;YAC3B,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,IAAI,EAAE,UAAU,CAAC,QAAQ;YACzB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,OAAO,EAAE,UAAU,CAAC,OAAO;SAC9B,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,WAAW,CAAU,CAAA;IACxD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA8B;QACzF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAC1D,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,CAAA;QAEpC,IAAI,UAAU,CAAC,IAAI;YAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;QAEtE,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;IACxC,CAAC;CACJ;AAED,OAAO,EACH,aAAa,EAChB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElCascaderDescriptor } from "../descriptor";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
declare class ElCascaderActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor: ElCascaderDescriptor): VyrVueProps;
|
|
7
|
-
getComponent(): VNode;
|
|
8
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElCascaderDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export { ElCascaderActor };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { resolveDynamicComponent, h } from "vue";
|
|
2
|
-
import { DatasetDescriptor } from "@vyr/engine";
|
|
3
|
-
import { mergeStyle } from "../utils";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
class ElCascaderActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor) {
|
|
7
|
-
const props = super.getProps(descriptor);
|
|
8
|
-
return {
|
|
9
|
-
...props,
|
|
10
|
-
placeholder: descriptor.placeholder,
|
|
11
|
-
props: {
|
|
12
|
-
label: descriptor.label,
|
|
13
|
-
value: descriptor.value,
|
|
14
|
-
},
|
|
15
|
-
clearable: descriptor.clearable,
|
|
16
|
-
disabled: descriptor.disabled,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
getComponent() {
|
|
20
|
-
return resolveDynamicComponent('el-cascader');
|
|
21
|
-
}
|
|
22
|
-
getContent(instance, children, descriptor) {
|
|
23
|
-
const options = DatasetDescriptor.getCollection(descriptor.options);
|
|
24
|
-
const inputComponent = this.getComponent();
|
|
25
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, this.getArrayByJoinValue(descriptor.modelValue));
|
|
26
|
-
mergeStyle({ width: '100%', 'min-width': '200px' }, inputAttrs);
|
|
27
|
-
const inputVnode = h(inputComponent, { ...inputAttrs, options }, { default: () => [] });
|
|
28
|
-
this.currentVnode = inputVnode;
|
|
29
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export { ElCascaderActor };
|
|
33
|
-
//# sourceMappingURL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AM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;QACvF,IAAI,CAAC,YAAY,GAAG,UAAU,CAAA;QAE9B,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACxD,CAAC;CACJ;AAED,OAAO,EACH,eAAe,EAClB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElCheckboxDescriptor } from "../descriptor";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
declare class ElCheckboxActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor: ElCheckboxDescriptor): VyrVueProps;
|
|
7
|
-
getComponent(): VNode;
|
|
8
|
-
getContent(instance: VyrVueInstance, _children: VyrVueChildren, descriptor: ElCheckboxDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export { ElCheckboxActor };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { DatasetDescriptor } from "@vyr/engine";
|
|
3
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
4
|
-
class ElCheckboxActor extends ElFormItemActor {
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
disabled: descriptor.disabled,
|
|
10
|
-
border: descriptor.border,
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
getComponent() {
|
|
14
|
-
return resolveDynamicComponent('el-checkbox-group');
|
|
15
|
-
}
|
|
16
|
-
getContent(instance, _children, descriptor) {
|
|
17
|
-
const children = [];
|
|
18
|
-
const options = DatasetDescriptor.getCollection(descriptor.options);
|
|
19
|
-
if (options.length > 0) {
|
|
20
|
-
for (const option of options) {
|
|
21
|
-
const checkbox = resolveDynamicComponent('el-checkbox');
|
|
22
|
-
const labelAttrs = { value: option[descriptor.value] };
|
|
23
|
-
children.push(h(checkbox, labelAttrs, () => option[descriptor.label]));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
const inputComponent = this.getComponent();
|
|
27
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, this.getArrayByJoinValue(descriptor.modelValue));
|
|
28
|
-
const inputVnode = h(inputComponent, inputAttrs, { default: () => children });
|
|
29
|
-
this.currentVnode = inputVnode;
|
|
30
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export { ElCheckboxActor };
|
|
34
|
-
//# sourceMappingURL=ElCheckboxActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElCheckboxActor.js","sourceRoot":"","sources":["../../src/actor/ElCheckboxActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,eAAgB,SAAQ,eAAe;IAEzC,QAAQ,CAAC,UAAgC;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,MAAM,EAAE,UAAU,CAAC,MAAM;SAC5B,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,mBAAmB,CAAU,CAAA;IAChE,CAAC;IAED,UAAU,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ElColActor extends VueActor {
|
|
5
|
-
getProps(descriptor: ElColDescriptor): VyrVueProps;
|
|
6
|
-
getWrapperVNode(instance: VyrVueInstance, content: VNode): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}>;
|
|
9
|
-
getComponent(): VNode;
|
|
10
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElColDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}>;
|
|
13
|
-
}
|
|
14
|
-
export { ElColActor };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
class ElColActor extends VueActor {
|
|
4
|
-
getProps(descriptor) {
|
|
5
|
-
const props = super.getProps(descriptor);
|
|
6
|
-
return {
|
|
7
|
-
...props,
|
|
8
|
-
span: descriptor.span,
|
|
9
|
-
offset: descriptor.offset,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
getWrapperVNode(instance, content) {
|
|
13
|
-
return content;
|
|
14
|
-
}
|
|
15
|
-
getComponent() {
|
|
16
|
-
return resolveDynamicComponent('el-col');
|
|
17
|
-
}
|
|
18
|
-
getContent(instance, children, descriptor) {
|
|
19
|
-
const component = this.getComponent();
|
|
20
|
-
const attrs = this.getComponentAttrs(instance, descriptor);
|
|
21
|
-
return h(component, attrs, children);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export { ElColActor };
|
|
25
|
-
//# sourceMappingURL=ElColActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElColActor.js","sourceRoot":"","sources":["../../src/actor/ElColActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AAGjF,MAAM,UAAW,SAAQ,QAAQ;IAE7B,QAAQ,CAAC,UAA2B;QAChC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,MAAM,EAAE,UAAU,CAAC,MAAM;SAC5B,CAAA;IACL,CAAC;IAED,eAAe,CAAC,QAAwB,EAAE,OAAc;QACpD,OAAO,OAAO,CAAA;IAClB,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,QAAQ,CAAU,CAAA;IACrD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA2B;QACtF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAE1D,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;IACxC,CAAC;CACJ;AAED,OAAO,EACH,UAAU,EACb,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElDatePickerDescriptor } from "../descriptor";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
declare class ElDatePickerActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor: ElDatePickerDescriptor): VyrVueProps;
|
|
7
|
-
getComponent(): VNode;
|
|
8
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElDatePickerDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export { ElDatePickerActor };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { mergeStyle } from "../utils";
|
|
3
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
4
|
-
class ElDatePickerActor extends ElFormItemActor {
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
type: descriptor.dateType,
|
|
10
|
-
placeholder: descriptor.placeholder,
|
|
11
|
-
readonly: descriptor.readonly,
|
|
12
|
-
disabled: descriptor.disabled,
|
|
13
|
-
clearable: descriptor.clearable,
|
|
14
|
-
format: descriptor.format,
|
|
15
|
-
valueFormat: descriptor.format,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
getComponent() {
|
|
19
|
-
return resolveDynamicComponent('el-datePicker');
|
|
20
|
-
}
|
|
21
|
-
getContent(instance, children, descriptor) {
|
|
22
|
-
const inputComponent = this.getComponent();
|
|
23
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, descriptor.modelValue);
|
|
24
|
-
mergeStyle({ width: '100%', 'min-width': '200px' }, inputAttrs);
|
|
25
|
-
const inputVnode = h(inputComponent, inputAttrs, { default: () => [] });
|
|
26
|
-
this.currentVnode = inputVnode;
|
|
27
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export { ElDatePickerActor };
|
|
31
|
-
//# sourceMappingURL=ElDatePickerActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElDatePickerActor.js","sourceRoot":"","sources":["../../src/actor/ElDatePickerActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,iBAAkB,SAAQ,eAAe;IAE3C,QAA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declare class ElDialogActor extends VueActor {
|
|
5
|
-
getProps(descriptor: ElDialogDescriptor): VyrVueProps;
|
|
6
|
-
getComponent(): VNode;
|
|
7
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElDialogDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
export { ElDialogActor };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
class ElDialogActor extends VueActor {
|
|
4
|
-
getProps(descriptor) {
|
|
5
|
-
const props = super.getProps(descriptor);
|
|
6
|
-
return {
|
|
7
|
-
...props,
|
|
8
|
-
title: descriptor.title,
|
|
9
|
-
modelValue: descriptor.visible,
|
|
10
|
-
width: descriptor.width + descriptor.wUnit,
|
|
11
|
-
closeOnClickModal: descriptor.closeOnClickModal,
|
|
12
|
-
onClose() {
|
|
13
|
-
descriptor.visible = false;
|
|
14
|
-
descriptor.setNeedsUpdate();
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
getComponent() {
|
|
19
|
-
return resolveDynamicComponent('el-dialog');
|
|
20
|
-
}
|
|
21
|
-
getContent(instance, children, descriptor) {
|
|
22
|
-
const component = this.getComponent();
|
|
23
|
-
const attrs = this.getComponentAttrs(instance, descriptor);
|
|
24
|
-
return h(component, attrs, children);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export { ElDialogActor };
|
|
28
|
-
//# sourceMappingURL=ElDialogActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElDialogActor.js","sourceRoot":"","sources":["../../src/actor/ElDialogActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AAGjF,MAAM,aAAc,SAAQ,QAAQ;IAEhC,QAAQ,CAAC,UAA8B;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,UAAU,EAAE,UAAU,CAAC,OAAO;YAC9B,KAAK,EAAE,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK;YAC1C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;YAC/C,OAAO;gBACH,UAAU,CAAC,OAAO,GAAG,KAAK,CAAA;gBAC1B,UAAU,CAAC,cAAc,EAAE,CAAA;YAC/B,CAAC;SACJ,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,WAAW,CAAU,CAAA;IACxD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA8B;QACzF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAE1D,OAAO,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;IACxC,CAAC;CACJ;AAED,OAAO,EACH,aAAa,EAChB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElFormDescriptor } from "../descriptor";
|
|
4
|
-
declare class ElFormActor extends VueActor {
|
|
5
|
-
methods: any;
|
|
6
|
-
getProps(descriptor: ElFormDescriptor): VyrVueProps;
|
|
7
|
-
getComponent(): VNode;
|
|
8
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElFormDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export { ElFormActor };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent, getCurrentInstance } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
class ElFormActor extends VueActor {
|
|
4
|
-
methods;
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
model: {},
|
|
10
|
-
labelWidth: descriptor.labelWidth,
|
|
11
|
-
labelPosition: descriptor.labelPosition,
|
|
12
|
-
inline: descriptor.inline,
|
|
13
|
-
disabled: descriptor.disabled,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
getComponent() {
|
|
17
|
-
return resolveDynamicComponent('el-form');
|
|
18
|
-
}
|
|
19
|
-
getContent(instance, children, descriptor) {
|
|
20
|
-
const self = this;
|
|
21
|
-
const component = this.getComponent();
|
|
22
|
-
const attrs = this.getComponentAttrs(instance, descriptor);
|
|
23
|
-
const formComponent = {
|
|
24
|
-
...component,
|
|
25
|
-
mounted() {
|
|
26
|
-
self.methods = getCurrentInstance()?.exposed ?? null;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
return h(formComponent, attrs, children);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export { ElFormActor };
|
|
33
|
-
//# sourceMappingURL=ElFormActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElFormActor.js","sourceRoot":"","sources":["../../src/actor/ElFormActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AAGjF,MAAM,WAAY,SAAQ,QAAQ;IAE9B,OAAO,CAAM;IAEb,QAAQ,CAAC,UAA4B;QACjC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,SAAS,CAAU,CAAA;IACtD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA4B;QACvF,MAAM,IAAI,GAAG,IAAI,CAAA;QACjB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;QAE1D,MAAM,aAAa,GAAG;YAClB,GAAG,SAAS;YACZ,OAAO;gBACH,IAAI,CAAC,OAAO,GAAG,kBAAkB,EAAE,EAAE,OAAO,IAAI,IAAI,CAAA;YACxD,CAAC;SACJ,CAAA;QAED,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAA;IAC5C,CAAC;CACJ;AAED,OAAO,EACH,WAAW,EACd,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElFormItemDescriptor } from "../descriptor";
|
|
4
|
-
declare abstract class ElFormItemActor extends VueActor {
|
|
5
|
-
private _modelValue;
|
|
6
|
-
protected currentVnode: VNode;
|
|
7
|
-
getItemComponentAttrs(descriptor: ElFormItemDescriptor): VyrVueProps;
|
|
8
|
-
getItemComponent(descriptor: ElFormItemDescriptor, inputVnode: VNode): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
getComponentAttrs(instance: VyrVueInstance, descriptor: ElFormItemDescriptor, modelValue?: any): {
|
|
12
|
-
modelValue: any;
|
|
13
|
-
'onUpdate:modelValue'(value: string): void;
|
|
14
|
-
class: string[];
|
|
15
|
-
};
|
|
16
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElFormItemDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}>;
|
|
19
|
-
formatModelValue(modelValue?: string | null): string | null;
|
|
20
|
-
getArrayByJoinValue(modelValue?: string): string[];
|
|
21
|
-
getModelValue(): string | number | boolean | null;
|
|
22
|
-
}
|
|
23
|
-
export { ElFormItemActor };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
import { ElFormDescriptor } from "../descriptor";
|
|
4
|
-
import { getValidators, mergeStyle } from "../utils";
|
|
5
|
-
class ElFormItemActor extends VueActor {
|
|
6
|
-
_modelValue = null;
|
|
7
|
-
currentVnode;
|
|
8
|
-
getItemComponentAttrs(descriptor) {
|
|
9
|
-
const rules = getValidators(descriptor, this);
|
|
10
|
-
const props = {
|
|
11
|
-
rules,
|
|
12
|
-
prop: descriptor.columnName,
|
|
13
|
-
label: descriptor.columnComment,
|
|
14
|
-
style: {
|
|
15
|
-
'margin-bottom': '0',
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
return props;
|
|
19
|
-
}
|
|
20
|
-
getItemComponent(descriptor, inputVnode) {
|
|
21
|
-
const ItemComponent = resolveDynamicComponent('el-form-item');
|
|
22
|
-
const attrs = this.getItemComponentAttrs(descriptor);
|
|
23
|
-
const { parent } = descriptor.traceAncestor(false);
|
|
24
|
-
if (parent instanceof ElFormDescriptor) {
|
|
25
|
-
if (parent.inline) {
|
|
26
|
-
let width = parseInt(parent.labelWidth.toString());
|
|
27
|
-
if (isNaN(width))
|
|
28
|
-
width = 80;
|
|
29
|
-
mergeStyle({ width: width + 200 + 'px' }, attrs);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return h(ItemComponent, attrs, () => inputVnode);
|
|
33
|
-
}
|
|
34
|
-
getComponentAttrs(instance, descriptor, modelValue) {
|
|
35
|
-
const self = this;
|
|
36
|
-
const formatValue = self.formatModelValue(modelValue);
|
|
37
|
-
self._modelValue = formatValue;
|
|
38
|
-
return {
|
|
39
|
-
...super.getComponentAttrs(instance, descriptor),
|
|
40
|
-
modelValue: modelValue,
|
|
41
|
-
'onUpdate:modelValue'(value) {
|
|
42
|
-
if (self.currentVnode.props)
|
|
43
|
-
self.currentVnode.props.modelValue = value;
|
|
44
|
-
if (self.currentVnode.component === undefined || self.currentVnode.component === null)
|
|
45
|
-
return;
|
|
46
|
-
self.currentVnode.component.props.modelValue = value;
|
|
47
|
-
self._modelValue = self.formatModelValue(value);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
getContent(instance, children, descriptor) {
|
|
52
|
-
const inputComponent = this.getComponent();
|
|
53
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, descriptor.modelValue);
|
|
54
|
-
const inputVnode = h(inputComponent, inputAttrs, children);
|
|
55
|
-
this.currentVnode = inputVnode;
|
|
56
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
57
|
-
}
|
|
58
|
-
formatModelValue(modelValue = null) {
|
|
59
|
-
return Array.isArray(modelValue) ? modelValue.filter(item => item !== '').join(',') : modelValue;
|
|
60
|
-
}
|
|
61
|
-
getArrayByJoinValue(modelValue) {
|
|
62
|
-
if (modelValue === undefined)
|
|
63
|
-
return [];
|
|
64
|
-
if (typeof modelValue !== 'string')
|
|
65
|
-
return [modelValue];
|
|
66
|
-
return modelValue.split(',').filter(item => item !== "");
|
|
67
|
-
}
|
|
68
|
-
getModelValue() {
|
|
69
|
-
return this._modelValue;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
export { ElFormItemActor };
|
|
73
|
-
//# sourceMappingURL=ElFormItemActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElFormItemActor.js","sourceRoot":"","sources":["../../src/actor/ElFormItemActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAwB,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,MAAe,eAAgB,SAAQ,QAAQ;IACnC,WAAW,GAAqC,IAAI,CAAA;IAClD,YAAY,CAAQ;IAE9B,qBAAqB,CAAC,UAAgC;QAClD,MAAM,KAAK,GAAG,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QAC7C,MAAM,KAAK,GAAgB;YACvB,KAAK;YACL,IAAI,EAAE,UAAU,CAAC,UAAU;YAC3B,KAAK,EAAE,UAAU,CAAC,aAAa;YAC/B,KAAK,EAAE;gBACH,eAAe,EAAE,GAAG;aACvB;SACJ,CAAA;QACD,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,gBAAgB,CAAC,UAAgC,EAAE,UAAiB;QAChE,MAAM,aAAa,GAAG,uBAAuB,CAAC,cAAc,CAAU,CAAA;QACtE,MAAM,KAAK,GAAG,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAA;QACpD,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAClD,IAAI,MAAM,YAAY,gBAAgB,EAAE,CAAC;YACrC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,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,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA;QACtF,MAAM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC1D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAA;QAE9B,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACxD,CAAC;IAED,gBAAgB,CAAC,aAA4B,IAAI;QAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAA;IACpG,CAAC;IAED,mBAAmB,CAAC,UAAmB;QACnC,IAAI,UAAU,KAAK,SAAS;YAAE,OAAO,EAAE,CAAA;QAEvC,IAAI,OAAO,UAAU,KAAK,QAAQ;YAAE,OAAO,CAAC,UAAU,CAAC,CAAA;QAEvD,OAAO,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAA;IAC5D,CAAC;IAED,aAAa;QACT,OAAO,IAAI,CAAC,WAAW,CAAA;IAC3B,CAAC;CACJ;AAED,OAAO,EACH,eAAe,EAClB,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VyrVueChildren, VyrVueInstance } from "@vyr/vue";
|
|
3
|
-
import { ElInputDescriptor } from "../descriptor";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
declare class ElInputActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor: ElInputDescriptor): {
|
|
7
|
-
type: string;
|
|
8
|
-
placeholder: string;
|
|
9
|
-
rows: number;
|
|
10
|
-
step: string | number;
|
|
11
|
-
readonly: boolean;
|
|
12
|
-
clearable: boolean;
|
|
13
|
-
showPassword: boolean;
|
|
14
|
-
showWordLimit: boolean;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
autofocus: boolean;
|
|
17
|
-
maxlength: string | number;
|
|
18
|
-
minlength: string | number;
|
|
19
|
-
};
|
|
20
|
-
getComponent(): VNode;
|
|
21
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElInputDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
export { ElInputActor };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { mergeStyle } from "../utils";
|
|
3
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
4
|
-
class ElInputActor extends ElFormItemActor {
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
type: descriptor.inputType,
|
|
10
|
-
placeholder: descriptor.placeholder,
|
|
11
|
-
rows: descriptor.rows,
|
|
12
|
-
step: descriptor.step,
|
|
13
|
-
readonly: descriptor.readonly,
|
|
14
|
-
clearable: descriptor.clearable,
|
|
15
|
-
showPassword: descriptor.showPassword,
|
|
16
|
-
showWordLimit: descriptor.showWordLimit,
|
|
17
|
-
disabled: descriptor.disabled,
|
|
18
|
-
autofocus: descriptor.autofocus,
|
|
19
|
-
maxlength: descriptor.maxlength,
|
|
20
|
-
minlength: descriptor.minlength,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
getComponent() {
|
|
24
|
-
return resolveDynamicComponent('el-input');
|
|
25
|
-
}
|
|
26
|
-
getContent(instance, children, descriptor) {
|
|
27
|
-
const inputComponent = this.getComponent();
|
|
28
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, descriptor.modelValue);
|
|
29
|
-
mergeStyle({ width: '100%' }, inputAttrs);
|
|
30
|
-
const inputVnode = h(inputComponent, inputAttrs, children);
|
|
31
|
-
this.currentVnode = inputVnode;
|
|
32
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export { ElInputActor };
|
|
36
|
-
//# sourceMappingURL=ElInputActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElInputActor.js","sourceRoot":"","sources":["../../src/actor/ElInputActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,YAAa,SAAQ,eAAe;IAEtC,QAAQ,CAAC,UAA6B;QAClC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,SAAS;YAC1B,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;SAClC,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,UAAU,CAAU,CAAA;IACvD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA6B;QACxF,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA;QACtF,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,CAAA;QACzC,MAAM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC1D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAA;QAE9B,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACxD,CAAC;CACJ;AAED,OAAO,EACH,YAAY,EACf,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElInputNumberDescriptor } from "../descriptor";
|
|
4
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
5
|
-
declare class ElInputNumberActor extends ElFormItemActor {
|
|
6
|
-
getProps(descriptor: ElInputNumberDescriptor): VyrVueProps;
|
|
7
|
-
getComponent(): VNode;
|
|
8
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElInputNumberDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export { ElInputNumberActor };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { mergeStyle } from "../utils";
|
|
3
|
-
import { ElFormItemActor } from "./ElFormItemActor";
|
|
4
|
-
class ElInputNumberActor extends ElFormItemActor {
|
|
5
|
-
getProps(descriptor) {
|
|
6
|
-
const props = super.getProps(descriptor);
|
|
7
|
-
return {
|
|
8
|
-
...props,
|
|
9
|
-
min: descriptor.min,
|
|
10
|
-
max: descriptor.max,
|
|
11
|
-
step: descriptor.step,
|
|
12
|
-
disabled: descriptor.disabled,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
getComponent() {
|
|
16
|
-
return resolveDynamicComponent('el-input-number');
|
|
17
|
-
}
|
|
18
|
-
getContent(instance, children, descriptor) {
|
|
19
|
-
const inputComponent = this.getComponent();
|
|
20
|
-
const inputAttrs = this.getComponentAttrs(instance, descriptor, descriptor.modelValue || null);
|
|
21
|
-
mergeStyle({ width: '100%', 'min-width': '200px' }, inputAttrs);
|
|
22
|
-
const inputVnode = h(inputComponent, inputAttrs, children);
|
|
23
|
-
this.currentVnode = inputVnode;
|
|
24
|
-
return this.getItemComponent(descriptor, inputVnode);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export { ElInputNumberActor };
|
|
28
|
-
//# sourceMappingURL=ElInputNumberActor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ElInputNumberActor.js","sourceRoot":"","sources":["../../src/actor/ElInputNumberActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,kBAAmB,SAAQ,eAAe;IAC5C,QAAQ,CAAC,UAAmC;QACxC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,GAAG,EAAE,UAAU,CAAC,GAAG;YACnB,GAAG,EAAE,UAAU,CAAC,GAAG;YACnB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,iBAAiB,CAAU,CAAA;IAC9D,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAAmC;QAC9F,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC,CAAA;QAC9F,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/D,MAAM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAA;QAC1D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAA;QAE9B,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACxD,CAAC;CACJ;AAED,OAAO,EACH,kBAAkB,EACrB,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
-
import { ElMenuDescriptor } from "../descriptor";
|
|
4
|
-
declare class ElMenuActor extends VueActor {
|
|
5
|
-
getProps(descriptor: ElMenuDescriptor): VyrVueProps;
|
|
6
|
-
getComponent(): VNode;
|
|
7
|
-
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElMenuDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
export { ElMenuActor };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { h, resolveDynamicComponent } from "vue";
|
|
2
|
-
import { VueActor } from "@vyr/vue";
|
|
3
|
-
class ElMenuActor extends VueActor {
|
|
4
|
-
getProps(descriptor) {
|
|
5
|
-
const props = super.getProps(descriptor);
|
|
6
|
-
return {
|
|
7
|
-
...props,
|
|
8
|
-
mode: descriptor.mode,
|
|
9
|
-
defaultActive: descriptor.defaultActive,
|
|
10
|
-
backgroundColor: descriptor.backgroundColor.getColor(),
|
|
11
|
-
textColor: descriptor.textColor,
|
|
12
|
-
activeTextColor: descriptor.activeTextColor,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
getComponent() {
|
|
16
|
-
return resolveDynamicComponent('el-menu');
|
|
17
|
-
}
|
|
18
|
-
getContent(instance, children, descriptor) {
|
|
19
|
-
const component = this.getComponent();
|
|
20
|
-
const attrs = this.getComponentAttrs(instance, descriptor);
|
|
21
|
-
return h(component, attrs, children);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export { ElMenuActor };
|
|
25
|
-
//# sourceMappingURL=ElMenuActor.js.map
|