bm-admin-ui 0.1.0

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.
Files changed (48) hide show
  1. package/es/components/button/index.d.ts +15 -0
  2. package/es/components/button/index.js +32 -0
  3. package/es/components/button/src/button.d.ts +3 -0
  4. package/es/components/button/src/button.vue.d.ts +14 -0
  5. package/es/components/flow-designer/index.d.ts +7 -0
  6. package/es/components/flow-designer/index.js +36 -0
  7. package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  8. package/es/components/form-designer/index.d.ts +9 -0
  9. package/es/components/form-designer/index.js +28 -0
  10. package/es/components/form-designer/src/form-designer.vue.d.ts +8 -0
  11. package/es/components/index.d.ts +3 -0
  12. package/es/components/index.js +3 -0
  13. package/es/index.d.ts +6 -0
  14. package/es/index.js +13 -0
  15. package/es/utils/with-install.d.ts +3 -0
  16. package/es/utils/with-install.js +6 -0
  17. package/index.esm.js +6388 -0
  18. package/index.js +6400 -0
  19. package/lib/components/button/index.d.ts +15 -0
  20. package/lib/components/button/index.js +37 -0
  21. package/lib/components/button/src/button.d.ts +3 -0
  22. package/lib/components/button/src/button.vue.d.ts +14 -0
  23. package/lib/components/flow-designer/index.d.ts +7 -0
  24. package/lib/components/flow-designer/index.js +45 -0
  25. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  26. package/lib/components/form-designer/index.d.ts +9 -0
  27. package/lib/components/form-designer/index.js +40 -0
  28. package/lib/components/form-designer/src/form-designer.vue.d.ts +8 -0
  29. package/lib/components/index.d.ts +3 -0
  30. package/lib/components/index.js +28 -0
  31. package/lib/index.d.ts +6 -0
  32. package/lib/index.js +42 -0
  33. package/lib/utils/with-install.d.ts +3 -0
  34. package/lib/utils/with-install.js +10 -0
  35. package/package.json +22 -0
  36. package/theme-chalk/button.css +0 -0
  37. package/theme-chalk/flow-designer.css +1 -0
  38. package/theme-chalk/index.css +1 -0
  39. package/types/components/button/index.d.ts +15 -0
  40. package/types/components/button/src/button.d.ts +3 -0
  41. package/types/components/button/src/button.vue.d.ts +14 -0
  42. package/types/components/flow-designer/index.d.ts +7 -0
  43. package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  44. package/types/components/form-designer/index.d.ts +9 -0
  45. package/types/components/form-designer/src/form-designer.vue.d.ts +8 -0
  46. package/types/components/index.d.ts +3 -0
  47. package/types/index.d.ts +6 -0
  48. package/types/utils/with-install.d.ts +3 -0
@@ -0,0 +1,15 @@
1
+ declare const BmButton: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
+ [x: string]: unknown;
3
+ }>>, {
4
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentPropsOptions<{
5
+ [x: string]: unknown;
6
+ }>>>> & {
7
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
8
+ }>>;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
10
+ [x: string]: unknown;
11
+ }>>>>, {
12
+ [x: number]: string;
13
+ } | {}>>;
14
+ export { BmButton };
15
+ export default BmButton;
@@ -0,0 +1,32 @@
1
+ import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createTextVNode } from 'vue';
3
+
4
+ const buttonProps = {};
5
+
6
+ const _hoisted_1 = createTextVNode("BM按钮");
7
+ var script = defineComponent({
8
+ props: buttonProps,
9
+ setup(__props) {
10
+ defineOptions({
11
+ name: 'BmButton'
12
+ });
13
+ return (_ctx, _cache) => {
14
+ const _component_a_button = resolveComponent("a-button");
15
+ return (openBlock(), createBlock(_component_a_button, {
16
+ size: "large",
17
+ type: "primary"
18
+ }, {
19
+ default: withCtx(() => [
20
+ _hoisted_1
21
+ ]),
22
+ _: 1
23
+ }));
24
+ };
25
+ }
26
+ });
27
+
28
+ script.__file = "packages/components/button/src/button.vue";
29
+
30
+ const BmButton = withInstall(script);
31
+
32
+ export { BmButton, BmButton as default };
@@ -0,0 +1,3 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const buttonProps: {};
3
+ export declare type ButtonProps = ExtractPropTypes<typeof buttonProps>;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
+ [x: string]: unknown;
3
+ }>>, {
4
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentPropsOptions<{
5
+ [x: string]: unknown;
6
+ }>>>> & {
7
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
8
+ }>>;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
10
+ [x: string]: unknown;
11
+ }>>>>, {
12
+ [x: number]: string;
13
+ } | {}>;
14
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const BmFlowDesigner: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ container: import("vue").Ref<any>;
3
+ lf: any;
4
+ init: () => void;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
6
+ export { BmFlowDesigner };
7
+ export default BmFlowDesigner;
@@ -0,0 +1,36 @@
1
+ import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
+ import { defineComponent, ref, onMounted, openBlock, createElementBlock } from 'vue';
3
+ import LogicFlow from '@logicflow/core';
4
+
5
+ var script = defineComponent({
6
+ setup(__props) {
7
+ defineOptions({
8
+ name: 'BmFlowDesigner'
9
+ });
10
+ const container = ref();
11
+ let lf;
12
+ function init() {
13
+ lf = new LogicFlow({
14
+ container: container.value,
15
+ grid: true
16
+ });
17
+ lf.render();
18
+ }
19
+ onMounted(() => {
20
+ init();
21
+ });
22
+ return (_ctx, _cache) => {
23
+ return (openBlock(), createElementBlock("div", {
24
+ class: "bm-flow-designer-container",
25
+ ref_key: "container",
26
+ ref: container
27
+ }, null, 512));
28
+ };
29
+ }
30
+ });
31
+
32
+ script.__file = "packages/components/flow-designer/src/flow-designer.vue";
33
+
34
+ const BmFlowDesigner = withInstall(script);
35
+
36
+ export { BmFlowDesigner, BmFlowDesigner as default };
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ container: import("vue").Ref<any>;
3
+ lf: any;
4
+ init: () => void;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
6
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import FormCreate from '@form-create/ant-design-vue';
2
+ declare const BmFormDesigner: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{}, {
3
+ rule: {
4
+ type: string;
5
+ title: string;
6
+ field: string;
7
+ }[];
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
9
+ export { FormCreate, BmFormDesigner };
@@ -0,0 +1,28 @@
1
+ import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
+ export { default as FormCreate } from '@form-create/ant-design-vue';
3
+ import { defineComponent, resolveComponent, openBlock, createBlock } from 'vue';
4
+
5
+ var script = defineComponent({
6
+ setup(__props) {
7
+ defineOptions({
8
+ name: 'BmFormDesigner'
9
+ });
10
+ const rule = [
11
+ {
12
+ type: 'input',
13
+ title: '商品名称',
14
+ field: 'goods_name'
15
+ }
16
+ ];
17
+ return (_ctx, _cache) => {
18
+ const _component_form_create = resolveComponent("form-create");
19
+ return (openBlock(), createBlock(_component_form_create, { rule: rule }));
20
+ };
21
+ }
22
+ });
23
+
24
+ script.__file = "packages/components/form-designer/src/form-designer.vue";
25
+
26
+ const BmFormDesigner = withInstall(script);
27
+
28
+ export { BmFormDesigner };
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ rule: {
3
+ type: string;
4
+ title: string;
5
+ field: string;
6
+ }[];
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export * from './button';
2
+ export * from './form-designer';
3
+ export * from './flow-designer';
@@ -0,0 +1,3 @@
1
+ export * from './button';
2
+ export * from './form-designer';
3
+ export * from './flow-designer';
package/es/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { App } from 'vue';
2
+ declare const _default: {
3
+ install: (app: App<any>) => void;
4
+ };
5
+ export default _default;
6
+ export * from 'bm-admin-ui/es/components';
package/es/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import * as components from 'bm-admin-ui/es/components';
2
+ export * from 'bm-admin-ui/es/components';
3
+
4
+ const install = (app) => {
5
+ Object.values(components).forEach(component => {
6
+ app.use(component);
7
+ });
8
+ };
9
+ var index = {
10
+ install
11
+ };
12
+
13
+ export { index as default };
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
@@ -0,0 +1,6 @@
1
+ export const withInstall = (comp) => {
2
+ comp.install = function (app) {
3
+ app.component(comp.name, comp);
4
+ };
5
+ return comp;
6
+ };