@vyr/element-plus 0.0.9 → 0.0.11
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/build/actor/ElButtonActor.d.ts +11 -0
- package/build/actor/ElButtonActor.js +32 -0
- package/build/actor/ElButtonActor.js.map +1 -0
- package/build/actor/ElCascaderActor.d.ts +12 -0
- package/build/actor/ElCascaderActor.js +33 -0
- package/build/actor/ElCascaderActor.js.map +1 -0
- package/build/actor/ElCheckboxActor.d.ts +12 -0
- package/build/actor/ElCheckboxActor.js +34 -0
- package/build/actor/ElCheckboxActor.js.map +1 -0
- package/build/actor/ElColActor.d.ts +14 -0
- package/build/actor/ElColActor.js +25 -0
- package/build/actor/ElColActor.js.map +1 -0
- package/build/actor/ElDatePickerActor.d.ts +12 -0
- package/build/actor/ElDatePickerActor.js +31 -0
- package/build/actor/ElDatePickerActor.js.map +1 -0
- package/build/actor/ElDialogActor.d.ts +11 -0
- package/build/actor/ElDialogActor.js +28 -0
- package/build/actor/ElDialogActor.js.map +1 -0
- package/build/actor/ElFormActor.d.ts +12 -0
- package/build/actor/ElFormActor.js +33 -0
- package/build/actor/ElFormActor.js.map +1 -0
- package/build/actor/ElFormItemActor.d.ts +23 -0
- package/build/actor/ElFormItemActor.js +73 -0
- package/build/actor/ElFormItemActor.js.map +1 -0
- package/build/actor/ElInputActor.d.ts +25 -0
- package/build/actor/ElInputActor.js +36 -0
- package/build/actor/ElInputActor.js.map +1 -0
- package/build/actor/ElInputNumberActor.d.ts +12 -0
- package/build/actor/ElInputNumberActor.js +28 -0
- package/build/actor/ElInputNumberActor.js.map +1 -0
- package/build/actor/ElMenuActor.d.ts +11 -0
- package/build/actor/ElMenuActor.js +25 -0
- package/build/actor/ElMenuActor.js.map +1 -0
- package/build/actor/ElMenuItemActor.d.ts +17 -0
- package/build/actor/ElMenuItemActor.js +33 -0
- package/build/actor/ElMenuItemActor.js.map +1 -0
- package/build/actor/ElPaginationActor.d.ts +21 -0
- package/build/actor/ElPaginationActor.js +81 -0
- package/build/actor/ElPaginationActor.js.map +1 -0
- package/build/actor/ElRadioActor.d.ts +12 -0
- package/build/actor/ElRadioActor.js +34 -0
- package/build/actor/ElRadioActor.js.map +1 -0
- package/build/actor/ElRowActor.d.ts +14 -0
- package/build/actor/ElRowActor.js +26 -0
- package/build/actor/ElRowActor.js.map +1 -0
- package/build/actor/ElSelectActor.d.ts +12 -0
- package/build/actor/ElSelectActor.js +37 -0
- package/build/actor/ElSelectActor.js.map +1 -0
- package/build/actor/ElSubMenuActor.d.ts +17 -0
- package/build/actor/ElSubMenuActor.js +33 -0
- package/build/actor/ElSubMenuActor.js.map +1 -0
- package/build/actor/ElSwitchActor.d.ts +9 -0
- package/build/actor/ElSwitchActor.js +17 -0
- package/build/actor/ElSwitchActor.js.map +1 -0
- package/build/actor/ElTableActor.d.ts +11 -0
- package/build/actor/ElTableActor.js +25 -0
- package/build/actor/ElTableActor.js.map +1 -0
- package/build/actor/ElTableColumnActor.d.ts +26 -0
- package/build/actor/ElTableColumnActor.js +57 -0
- package/build/actor/ElTableColumnActor.js.map +1 -0
- package/build/actor/index.d.ts +20 -0
- package/build/actor/index.js +21 -0
- package/build/actor/index.js.map +1 -0
- package/build/asset/index.d.ts +1 -0
- package/build/asset/index.js +18 -0
- package/build/asset/index.js.map +1 -0
- package/build/descriptor/ElButtonDescriptor.d.ts +16 -0
- package/build/descriptor/ElButtonDescriptor.js +29 -0
- package/build/descriptor/ElButtonDescriptor.js.map +1 -0
- package/build/descriptor/ElCascaderDescriptor.d.ts +19 -0
- package/build/descriptor/ElCascaderDescriptor.js +35 -0
- package/build/descriptor/ElCascaderDescriptor.js.map +1 -0
- package/build/descriptor/ElCheckboxDescriptor.d.ts +18 -0
- package/build/descriptor/ElCheckboxDescriptor.js +33 -0
- package/build/descriptor/ElCheckboxDescriptor.js.map +1 -0
- package/build/descriptor/ElColDescriptor.d.ts +9 -0
- package/build/descriptor/ElColDescriptor.js +14 -0
- package/build/descriptor/ElColDescriptor.js.map +1 -0
- package/build/descriptor/ElDatePickerDescriptor.d.ts +19 -0
- package/build/descriptor/ElDatePickerDescriptor.js +35 -0
- package/build/descriptor/ElDatePickerDescriptor.js.map +1 -0
- package/build/descriptor/ElDialogDescriptor.d.ts +9 -0
- package/build/descriptor/ElDialogDescriptor.js +18 -0
- package/build/descriptor/ElDialogDescriptor.js.map +1 -0
- package/build/descriptor/ElFormDescriptor.d.ts +19 -0
- package/build/descriptor/ElFormDescriptor.js +44 -0
- package/build/descriptor/ElFormDescriptor.js.map +1 -0
- package/build/descriptor/ElFormItemDescriptor.d.ts +9 -0
- package/build/descriptor/ElFormItemDescriptor.js +5 -0
- package/build/descriptor/ElFormItemDescriptor.js.map +1 -0
- package/build/descriptor/ElInputDescriptor.d.ts +25 -0
- package/build/descriptor/ElInputDescriptor.js +47 -0
- package/build/descriptor/ElInputDescriptor.js.map +1 -0
- package/build/descriptor/ElInputNumberDescriptor.d.ts +17 -0
- package/build/descriptor/ElInputNumberDescriptor.js +31 -0
- package/build/descriptor/ElInputNumberDescriptor.js.map +1 -0
- package/build/descriptor/ElMenuDescriptor.d.ts +12 -0
- package/build/descriptor/ElMenuDescriptor.js +21 -0
- package/build/descriptor/ElMenuDescriptor.js.map +1 -0
- package/build/descriptor/ElMenuItemDescriptor.d.ts +10 -0
- package/build/descriptor/ElMenuItemDescriptor.js +16 -0
- package/build/descriptor/ElMenuItemDescriptor.js.map +1 -0
- package/build/descriptor/ElPaginationDescriptor.d.ts +21 -0
- package/build/descriptor/ElPaginationDescriptor.js +43 -0
- package/build/descriptor/ElPaginationDescriptor.js.map +1 -0
- package/build/descriptor/ElRadioDescriptor.d.ts +18 -0
- package/build/descriptor/ElRadioDescriptor.js +33 -0
- package/build/descriptor/ElRadioDescriptor.js.map +1 -0
- package/build/descriptor/ElRowDescriptor.d.ts +10 -0
- package/build/descriptor/ElRowDescriptor.js +16 -0
- package/build/descriptor/ElRowDescriptor.js.map +1 -0
- package/build/descriptor/ElSelectDescriptor.d.ts +19 -0
- package/build/descriptor/ElSelectDescriptor.js +35 -0
- package/build/descriptor/ElSelectDescriptor.js.map +1 -0
- package/build/descriptor/ElSubMenuDescriptor.d.ts +9 -0
- package/build/descriptor/ElSubMenuDescriptor.js +14 -0
- package/build/descriptor/ElSubMenuDescriptor.js.map +1 -0
- package/build/descriptor/ElSwitchDescriptor.d.ts +15 -0
- package/build/descriptor/ElSwitchDescriptor.js +27 -0
- package/build/descriptor/ElSwitchDescriptor.js.map +1 -0
- package/build/descriptor/ElTableColumnDescriptor.d.ts +19 -0
- package/build/descriptor/ElTableColumnDescriptor.js +34 -0
- package/build/descriptor/ElTableColumnDescriptor.js.map +1 -0
- package/build/descriptor/ElTableDescriptor.d.ts +12 -0
- package/build/descriptor/ElTableDescriptor.js +20 -0
- package/build/descriptor/ElTableDescriptor.js.map +1 -0
- package/build/descriptor/index.d.ts +20 -0
- package/build/descriptor/index.js +21 -0
- package/build/descriptor/index.js.map +1 -0
- package/build/index.d.ts +7 -0
- package/build/index.js +8 -0
- package/build/index.js.map +1 -0
- package/build/interpreter/ElButtonInterpreter.d.ts +8 -0
- package/build/interpreter/ElButtonInterpreter.js +13 -0
- package/build/interpreter/ElButtonInterpreter.js.map +1 -0
- package/build/interpreter/ElCascaderInterpreter.d.ts +8 -0
- package/build/interpreter/ElCascaderInterpreter.js +13 -0
- package/build/interpreter/ElCascaderInterpreter.js.map +1 -0
- package/build/interpreter/ElCheckboxInterpreter.d.ts +8 -0
- package/build/interpreter/ElCheckboxInterpreter.js +13 -0
- package/build/interpreter/ElCheckboxInterpreter.js.map +1 -0
- package/build/interpreter/ElColInterpreter.d.ts +8 -0
- package/build/interpreter/ElColInterpreter.js +13 -0
- package/build/interpreter/ElColInterpreter.js.map +1 -0
- package/build/interpreter/ElDatePickerInterpreter.d.ts +8 -0
- package/build/interpreter/ElDatePickerInterpreter.js +13 -0
- package/build/interpreter/ElDatePickerInterpreter.js.map +1 -0
- package/build/interpreter/ElDialogInterpreter.d.ts +8 -0
- package/build/interpreter/ElDialogInterpreter.js +13 -0
- package/build/interpreter/ElDialogInterpreter.js.map +1 -0
- package/build/interpreter/ElFormInterpreter.d.ts +8 -0
- package/build/interpreter/ElFormInterpreter.js +13 -0
- package/build/interpreter/ElFormInterpreter.js.map +1 -0
- package/build/interpreter/ElInputInterpreter.d.ts +8 -0
- package/build/interpreter/ElInputInterpreter.js +13 -0
- package/build/interpreter/ElInputInterpreter.js.map +1 -0
- package/build/interpreter/ElInputNumberInterpreter.d.ts +8 -0
- package/build/interpreter/ElInputNumberInterpreter.js +13 -0
- package/build/interpreter/ElInputNumberInterpreter.js.map +1 -0
- package/build/interpreter/ElMenuInterpreter.d.ts +8 -0
- package/build/interpreter/ElMenuInterpreter.js +13 -0
- package/build/interpreter/ElMenuInterpreter.js.map +1 -0
- package/build/interpreter/ElMenuItemInterpreter.d.ts +8 -0
- package/build/interpreter/ElMenuItemInterpreter.js +13 -0
- package/build/interpreter/ElMenuItemInterpreter.js.map +1 -0
- package/build/interpreter/ElPaginationInterpreter.d.ts +8 -0
- package/build/interpreter/ElPaginationInterpreter.js +13 -0
- package/build/interpreter/ElPaginationInterpreter.js.map +1 -0
- package/build/interpreter/ElRadioInterpreter.d.ts +8 -0
- package/build/interpreter/ElRadioInterpreter.js +13 -0
- package/build/interpreter/ElRadioInterpreter.js.map +1 -0
- package/build/interpreter/ElRowInterpreter.d.ts +8 -0
- package/build/interpreter/ElRowInterpreter.js +13 -0
- package/build/interpreter/ElRowInterpreter.js.map +1 -0
- package/build/interpreter/ElSelectInterpreter.d.ts +8 -0
- package/build/interpreter/ElSelectInterpreter.js +13 -0
- package/build/interpreter/ElSelectInterpreter.js.map +1 -0
- package/build/interpreter/ElSubMenuInterpreter.d.ts +8 -0
- package/build/interpreter/ElSubMenuInterpreter.js +13 -0
- package/build/interpreter/ElSubMenuInterpreter.js.map +1 -0
- package/build/interpreter/ElSwitchInterpreter.d.ts +8 -0
- package/build/interpreter/ElSwitchInterpreter.js +13 -0
- package/build/interpreter/ElSwitchInterpreter.js.map +1 -0
- package/build/interpreter/ElTableColumnInterpreter.d.ts +8 -0
- package/build/interpreter/ElTableColumnInterpreter.js +13 -0
- package/build/interpreter/ElTableColumnInterpreter.js.map +1 -0
- package/build/interpreter/ElTableInterpreter.d.ts +8 -0
- package/build/interpreter/ElTableInterpreter.js +13 -0
- package/build/interpreter/ElTableInterpreter.js.map +1 -0
- package/build/interpreter/index.d.ts +20 -0
- package/build/interpreter/index.js +33 -0
- package/build/interpreter/index.js.map +1 -0
- package/build/locale/Language.d.ts +3 -0
- package/build/locale/Language.js +6 -0
- package/build/locale/Language.js.map +1 -0
- package/build/locale/LanguageProvider.d.ts +21 -0
- package/build/locale/LanguageProvider.js +22 -0
- package/build/locale/LanguageProvider.js.map +1 -0
- package/build/locale/index.d.ts +2 -0
- package/build/locale/index.js +3 -0
- package/build/locale/index.js.map +1 -0
- package/build/preset/execute/ElDialog/close.d.ts +13 -0
- package/build/preset/execute/ElDialog/close.js +35 -0
- package/build/preset/execute/ElDialog/close.js.map +1 -0
- package/build/preset/execute/ElDialog/index.d.ts +2 -0
- package/build/preset/execute/ElDialog/index.js +3 -0
- package/build/preset/execute/ElDialog/index.js.map +1 -0
- package/build/preset/execute/ElDialog/open.d.ts +16 -0
- package/build/preset/execute/ElDialog/open.js +38 -0
- package/build/preset/execute/ElDialog/open.js.map +1 -0
- package/build/preset/execute/ElForm/branch.d.ts +13 -0
- package/build/preset/execute/ElForm/branch.js +34 -0
- package/build/preset/execute/ElForm/branch.js.map +1 -0
- package/build/preset/execute/ElForm/create.d.ts +13 -0
- package/build/preset/execute/ElForm/create.js +22 -0
- package/build/preset/execute/ElForm/create.js.map +1 -0
- package/build/preset/execute/ElForm/edit.d.ts +13 -0
- package/build/preset/execute/ElForm/edit.js +22 -0
- package/build/preset/execute/ElForm/edit.js.map +1 -0
- package/build/preset/execute/ElForm/getData.d.ts +16 -0
- package/build/preset/execute/ElForm/getData.js +41 -0
- package/build/preset/execute/ElForm/getData.js.map +1 -0
- package/build/preset/execute/ElForm/index.d.ts +5 -0
- package/build/preset/execute/ElForm/index.js +6 -0
- package/build/preset/execute/ElForm/index.js.map +1 -0
- package/build/preset/execute/ElForm/reset.d.ts +13 -0
- package/build/preset/execute/ElForm/reset.js +42 -0
- package/build/preset/execute/ElForm/reset.js.map +1 -0
- package/build/preset/execute/ElPagination/getData.d.ts +13 -0
- package/build/preset/execute/ElPagination/getData.js +37 -0
- package/build/preset/execute/ElPagination/getData.js.map +1 -0
- package/build/preset/execute/ElPagination/index.d.ts +2 -0
- package/build/preset/execute/ElPagination/index.js +3 -0
- package/build/preset/execute/ElPagination/index.js.map +1 -0
- package/build/preset/execute/ElPagination/reset.d.ts +13 -0
- package/build/preset/execute/ElPagination/reset.js +34 -0
- package/build/preset/execute/ElPagination/reset.js.map +1 -0
- package/build/preset/execute/ElTable/create.d.ts +9 -0
- package/build/preset/execute/ElTable/create.js +26 -0
- package/build/preset/execute/ElTable/create.js.map +1 -0
- package/build/preset/execute/ElTable/delete.d.ts +9 -0
- package/build/preset/execute/ElTable/delete.js +41 -0
- package/build/preset/execute/ElTable/delete.js.map +1 -0
- package/build/preset/execute/ElTable/edit.d.ts +9 -0
- package/build/preset/execute/ElTable/edit.js +27 -0
- package/build/preset/execute/ElTable/edit.js.map +1 -0
- package/build/preset/execute/ElTable/index.d.ts +3 -0
- package/build/preset/execute/ElTable/index.js +4 -0
- package/build/preset/execute/ElTable/index.js.map +1 -0
- package/build/preset/execute/ElTableColumn/formatter.d.ts +14 -0
- package/build/preset/execute/ElTableColumn/formatter.js +60 -0
- package/build/preset/execute/ElTableColumn/formatter.js.map +1 -0
- package/build/preset/execute/ElTableColumn/index.d.ts +1 -0
- package/build/preset/execute/ElTableColumn/index.js +2 -0
- package/build/preset/execute/ElTableColumn/index.js.map +1 -0
- package/build/preset/execute/index.d.ts +5 -0
- package/build/preset/execute/index.js +6 -0
- package/build/preset/execute/index.js.map +1 -0
- package/build/preset/index.d.ts +3 -0
- package/build/preset/index.js +4 -0
- package/build/preset/index.js.map +1 -0
- package/build/preset/interaction/ElDialog/close.d.ts +5 -0
- package/build/preset/interaction/ElDialog/close.js +19 -0
- package/build/preset/interaction/ElDialog/close.js.map +1 -0
- package/build/preset/interaction/ElDialog/index.d.ts +1 -0
- package/build/preset/interaction/ElDialog/index.js +2 -0
- package/build/preset/interaction/ElDialog/index.js.map +1 -0
- package/build/preset/interaction/ElTable/create.d.ts +7 -0
- package/build/preset/interaction/ElTable/create.js +23 -0
- package/build/preset/interaction/ElTable/create.js.map +1 -0
- package/build/preset/interaction/ElTable/delete.d.ts +7 -0
- package/build/preset/interaction/ElTable/delete.js +23 -0
- package/build/preset/interaction/ElTable/delete.js.map +1 -0
- package/build/preset/interaction/ElTable/edit.d.ts +8 -0
- package/build/preset/interaction/ElTable/edit.js +25 -0
- package/build/preset/interaction/ElTable/edit.js.map +1 -0
- package/build/preset/interaction/ElTable/index.d.ts +6 -0
- package/build/preset/interaction/ElTable/index.js +7 -0
- package/build/preset/interaction/ElTable/index.js.map +1 -0
- package/build/preset/interaction/ElTable/list.d.ts +8 -0
- package/build/preset/interaction/ElTable/list.js +25 -0
- package/build/preset/interaction/ElTable/list.js.map +1 -0
- package/build/preset/interaction/ElTable/reset.d.ts +7 -0
- package/build/preset/interaction/ElTable/reset.js +23 -0
- package/build/preset/interaction/ElTable/reset.js.map +1 -0
- package/build/preset/interaction/ElTable/submit.d.ts +12 -0
- package/build/preset/interaction/ElTable/submit.js +35 -0
- package/build/preset/interaction/ElTable/submit.js.map +1 -0
- package/build/preset/interaction/index.d.ts +2 -0
- package/build/preset/interaction/index.js +3 -0
- package/build/preset/interaction/index.js.map +1 -0
- package/build/utils/form.d.ts +13 -0
- package/build/utils/form.js +61 -0
- package/build/utils/form.js.map +1 -0
- package/build/utils/index.d.ts +3 -0
- package/build/utils/index.js +4 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/style.d.ts +3 -0
- package/build/utils/style.js +7 -0
- package/build/utils/style.js.map +1 -0
- package/build/utils/validator.d.ts +7 -0
- package/build/utils/validator.js +23 -0
- package/build/utils/validator.js.map +1 -0
- package/package.json +25 -1
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
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=ElCascaderActor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElCascaderActor.js","sourceRoot":"","sources":["../../src/actor/ElCascaderActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAS,CAAC,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,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,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,KAAK,EAAE;gBACH,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;aAC1B;YACD,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAChC,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,aAAa,CAAU,CAAA;IAC1D,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAAgC;QAC3F,MAAM,OAAO,GAAG,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;QACnE,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,CAAA;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;QAChH,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/D,MAAM,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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1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,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;QAChH,MAAM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC7E,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
+
import { ElColDescriptor } from "../descriptor";
|
|
4
|
+
declare class 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 };
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,QAAQ,CAAC,UAAkC;QACvC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,QAAQ;YACzB,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,WAAW,EAAE,UAAU,CAAC,MAAM;SACjC,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,eAAe,CAAU,CAAA;IAC5D,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAAkC;QAC7F,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,WAAW,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/D,MAAM,UAAU,GAAG,CAAC,CAAC,cAAc,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAA;QACvE,IAAI,CAAC,YAAY,GAAG,UAAU,CAAA;QAE9B,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACxD,CAAC;CACJ;AAED,OAAO,EACH,iBAAiB,EACpB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import { VueActor, VyrVueProps, VyrVueInstance, VyrVueChildren } from "@vyr/vue";
|
|
3
|
+
import { ElDialogDescriptor } from "../descriptor";
|
|
4
|
+
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 };
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 };
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;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AC,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 };
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,OAA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";
|
|
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 };
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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|
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 };
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElMenuActor.js","sourceRoot":"","sources":["../../src/actor/ElMenuActor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,uBAAuB,EAAS,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,QAAQ,EAA+C,MAAM,UAAU,CAAC;AAGjF,MAAM,WAAY,SAAQ,QAAQ;IAE9B,QAAQ,CAAC,UAA4B;QACjC,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;QAExC,OAAO;YACH,GAAG,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC,QAAQ,EAAE;YACtD,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,eAAe,EAAE,UAAU,CAAC,eAAe;SAC9C,CAAA;IACL,CAAC;IAED,YAAY;QACR,OAAO,uBAAuB,CAAC,SAAS,CAAU,CAAA;IACtD,CAAC;IAED,UAAU,CAAC,QAAwB,EAAE,QAAwB,EAAE,UAA4B;QACvF,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,WAAW,EACd,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import { VueActor, VyrVueChildren, VyrVueInstance } from "@vyr/vue";
|
|
3
|
+
import { ElMenuItemDescriptor } from "../descriptor";
|
|
4
|
+
declare class ElMenuItemActor extends VueActor {
|
|
5
|
+
getWrapper(): null;
|
|
6
|
+
getProps(descriptor: ElMenuItemDescriptor): {
|
|
7
|
+
index: string;
|
|
8
|
+
};
|
|
9
|
+
getWrapperVNode(instance: VyrVueInstance, content: VNode): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
getComponent(): VNode;
|
|
13
|
+
getContent(instance: VyrVueInstance, children: VyrVueChildren, descriptor: ElMenuItemDescriptor): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export { ElMenuItemActor };
|