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.
- package/es/components/button/index.d.ts +15 -0
- package/es/components/button/index.js +32 -0
- package/es/components/button/src/button.d.ts +3 -0
- package/es/components/button/src/button.vue.d.ts +14 -0
- package/es/components/flow-designer/index.d.ts +7 -0
- package/es/components/flow-designer/index.js +36 -0
- package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/es/components/form-designer/index.d.ts +9 -0
- package/es/components/form-designer/index.js +28 -0
- package/es/components/form-designer/src/form-designer.vue.d.ts +8 -0
- package/es/components/index.d.ts +3 -0
- package/es/components/index.js +3 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +13 -0
- package/es/utils/with-install.d.ts +3 -0
- package/es/utils/with-install.js +6 -0
- package/index.esm.js +6388 -0
- package/index.js +6400 -0
- package/lib/components/button/index.d.ts +15 -0
- package/lib/components/button/index.js +37 -0
- package/lib/components/button/src/button.d.ts +3 -0
- package/lib/components/button/src/button.vue.d.ts +14 -0
- package/lib/components/flow-designer/index.d.ts +7 -0
- package/lib/components/flow-designer/index.js +45 -0
- package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/lib/components/form-designer/index.d.ts +9 -0
- package/lib/components/form-designer/index.js +40 -0
- package/lib/components/form-designer/src/form-designer.vue.d.ts +8 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +28 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +42 -0
- package/lib/utils/with-install.d.ts +3 -0
- package/lib/utils/with-install.js +10 -0
- package/package.json +22 -0
- package/theme-chalk/button.css +0 -0
- package/theme-chalk/flow-designer.css +1 -0
- package/theme-chalk/index.css +1 -0
- package/types/components/button/index.d.ts +15 -0
- package/types/components/button/src/button.d.ts +3 -0
- package/types/components/button/src/button.vue.d.ts +14 -0
- package/types/components/flow-designer/index.d.ts +7 -0
- package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/types/components/form-designer/index.d.ts +9 -0
- package/types/components/form-designer/src/form-designer.vue.d.ts +8 -0
- package/types/components/index.d.ts +3 -0
- package/types/index.d.ts +6 -0
- 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,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;
|
package/es/index.d.ts
ADDED
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 };
|