@epic-designer/antd 1.0.5 → 1.0.6-beta.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/dist/index.cjs CHANGED
@@ -2964,6 +2964,36 @@ const UploadImage = {
2964
2964
  sort: 920
2965
2965
  };
2966
2966
 
2967
+ function styleInject(css, ref) {
2968
+ if ( ref === void 0 ) ref = {};
2969
+ var insertAt = ref.insertAt;
2970
+
2971
+ if (typeof document === 'undefined') { return; }
2972
+
2973
+ var head = document.head || document.getElementsByTagName('head')[0];
2974
+ var style = document.createElement('style');
2975
+ style.type = 'text/css';
2976
+
2977
+ if (insertAt === 'top') {
2978
+ if (head.firstChild) {
2979
+ head.insertBefore(style, head.firstChild);
2980
+ } else {
2981
+ head.appendChild(style);
2982
+ }
2983
+ } else {
2984
+ head.appendChild(style);
2985
+ }
2986
+
2987
+ if (style.styleSheet) {
2988
+ style.styleSheet.cssText = css;
2989
+ } else {
2990
+ style.appendChild(document.createTextNode(css));
2991
+ }
2992
+ }
2993
+
2994
+ var css_248z = ".epic-designer-main .ant-input-number {\n width: 100%;\n}\n.epic-designer-main .ant-collapse-content > .ant-collapse-content-box {\n padding: 8px;\n}\n.epic-designer-main .ant-select {\n width: 100%;\n}\n.epic-designer-main .epic-upload-image .avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n.epic-input-size.ant-input-affix-wrapper {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n.epic-input-size .ant-select:hover {\n border: none !important;\n box-shadow: none !important;\n}\n";
2995
+ styleInject(css_248z);
2996
+
2967
2997
  function setupAntd(pluginManager = epicDesigner.pluginManager) {
2968
2998
  var _a;
2969
2999
  const versionArray = antDesignVue.version.split(".");
@@ -2987,19 +3017,19 @@ function setupAntd(pluginManager = epicDesigner.pluginManager) {
2987
3017
  (item) => item.label !== "\u7981\u7528"
2988
3018
  );
2989
3019
  }
2990
- pluginManager.component(
3020
+ pluginManager.component.add(
2991
3021
  "Collapse",
2992
3022
  async () => (await import('ant-design-vue')).Collapse
2993
3023
  );
2994
- pluginManager.component(
3024
+ pluginManager.component.add(
2995
3025
  "CollapseItem",
2996
3026
  async () => (await import('ant-design-vue')).CollapsePanel
2997
3027
  );
2998
- pluginManager.component(
3028
+ pluginManager.component.add(
2999
3029
  "Tabs",
3000
3030
  async () => (await import('ant-design-vue')).Tabs
3001
3031
  );
3002
- pluginManager.component(
3032
+ pluginManager.component.add(
3003
3033
  "TabPane",
3004
3034
  async () => (await import('ant-design-vue')).TabPane
3005
3035
  );
@@ -3032,8 +3062,8 @@ function setupAntd(pluginManager = epicDesigner.pluginManager) {
3032
3062
  UploadFile.defaultSchema.componentProps.action = pluginManager.global.uploadFile;
3033
3063
  });
3034
3064
  componentArray.forEach((item) => {
3035
- pluginManager.registerComponent(item);
3036
- pluginManager.addBaseComponentTypes(item.defaultSchema.type);
3065
+ pluginManager.component.register(item);
3066
+ pluginManager.component.addBaseComponentType(item.defaultSchema.type);
3037
3067
  });
3038
3068
  pluginManager.global.$message = {
3039
3069
  error: antDesignVue.message.error,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,35 @@
1
1
  import { PluginManager } from 'epic-designer';
2
2
 
3
+ function styleInject(css, ref) {
4
+ if ( ref === void 0 ) ref = {};
5
+ var insertAt = ref.insertAt;
6
+
7
+ if (typeof document === 'undefined') { return; }
8
+
9
+ var head = document.head || document.getElementsByTagName('head')[0];
10
+ var style = document.createElement('style');
11
+ style.type = 'text/css';
12
+
13
+ if (insertAt === 'top') {
14
+ if (head.firstChild) {
15
+ head.insertBefore(style, head.firstChild);
16
+ } else {
17
+ head.appendChild(style);
18
+ }
19
+ } else {
20
+ head.appendChild(style);
21
+ }
22
+
23
+ if (style.styleSheet) {
24
+ style.styleSheet.cssText = css;
25
+ } else {
26
+ style.appendChild(document.createTextNode(css));
27
+ }
28
+ }
29
+
30
+ var css_248z = ".epic-designer-main .ant-input-number {\n width: 100%;\n}\n.epic-designer-main .ant-collapse-content > .ant-collapse-content-box {\n padding: 8px;\n}\n.epic-designer-main .ant-select {\n width: 100%;\n}\n.epic-designer-main .epic-upload-image .avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n.epic-input-size.ant-input-affix-wrapper {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n.epic-input-size .ant-select:hover {\n border: none !important;\n box-shadow: none !important;\n}\n";
31
+ styleInject(css_248z);
32
+
3
33
  declare function setupAntd(pluginManager?: PluginManager): void;
4
34
 
5
35
  export { setupAntd };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,35 @@
1
1
  import { PluginManager } from 'epic-designer';
2
2
 
3
+ function styleInject(css, ref) {
4
+ if ( ref === void 0 ) ref = {};
5
+ var insertAt = ref.insertAt;
6
+
7
+ if (typeof document === 'undefined') { return; }
8
+
9
+ var head = document.head || document.getElementsByTagName('head')[0];
10
+ var style = document.createElement('style');
11
+ style.type = 'text/css';
12
+
13
+ if (insertAt === 'top') {
14
+ if (head.firstChild) {
15
+ head.insertBefore(style, head.firstChild);
16
+ } else {
17
+ head.appendChild(style);
18
+ }
19
+ } else {
20
+ head.appendChild(style);
21
+ }
22
+
23
+ if (style.styleSheet) {
24
+ style.styleSheet.cssText = css;
25
+ } else {
26
+ style.appendChild(document.createTextNode(css));
27
+ }
28
+ }
29
+
30
+ var css_248z = ".epic-designer-main .ant-input-number {\n width: 100%;\n}\n.epic-designer-main .ant-collapse-content > .ant-collapse-content-box {\n padding: 8px;\n}\n.epic-designer-main .ant-select {\n width: 100%;\n}\n.epic-designer-main .epic-upload-image .avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n.epic-input-size.ant-input-affix-wrapper {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n.epic-input-size .ant-select:hover {\n border: none !important;\n box-shadow: none !important;\n}\n";
31
+ styleInject(css_248z);
32
+
3
33
  declare function setupAntd(pluginManager?: PluginManager): void;
4
34
 
5
35
  export { setupAntd };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,35 @@
1
1
  import { PluginManager } from 'epic-designer';
2
2
 
3
+ function styleInject(css, ref) {
4
+ if ( ref === void 0 ) ref = {};
5
+ var insertAt = ref.insertAt;
6
+
7
+ if (typeof document === 'undefined') { return; }
8
+
9
+ var head = document.head || document.getElementsByTagName('head')[0];
10
+ var style = document.createElement('style');
11
+ style.type = 'text/css';
12
+
13
+ if (insertAt === 'top') {
14
+ if (head.firstChild) {
15
+ head.insertBefore(style, head.firstChild);
16
+ } else {
17
+ head.appendChild(style);
18
+ }
19
+ } else {
20
+ head.appendChild(style);
21
+ }
22
+
23
+ if (style.styleSheet) {
24
+ style.styleSheet.cssText = css;
25
+ } else {
26
+ style.appendChild(document.createTextNode(css));
27
+ }
28
+ }
29
+
30
+ var css_248z = ".epic-designer-main .ant-input-number {\n width: 100%;\n}\n.epic-designer-main .ant-collapse-content > .ant-collapse-content-box {\n padding: 8px;\n}\n.epic-designer-main .ant-select {\n width: 100%;\n}\n.epic-designer-main .epic-upload-image .avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n.epic-input-size.ant-input-affix-wrapper {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n.epic-input-size .ant-select:hover {\n border: none !important;\n box-shadow: none !important;\n}\n";
31
+ styleInject(css_248z);
32
+
3
33
  declare function setupAntd(pluginManager?: PluginManager): void;
4
34
 
5
35
  export { setupAntd };
package/dist/index.mjs CHANGED
@@ -2962,6 +2962,36 @@ const UploadImage = {
2962
2962
  sort: 920
2963
2963
  };
2964
2964
 
2965
+ function styleInject(css, ref) {
2966
+ if ( ref === void 0 ) ref = {};
2967
+ var insertAt = ref.insertAt;
2968
+
2969
+ if (typeof document === 'undefined') { return; }
2970
+
2971
+ var head = document.head || document.getElementsByTagName('head')[0];
2972
+ var style = document.createElement('style');
2973
+ style.type = 'text/css';
2974
+
2975
+ if (insertAt === 'top') {
2976
+ if (head.firstChild) {
2977
+ head.insertBefore(style, head.firstChild);
2978
+ } else {
2979
+ head.appendChild(style);
2980
+ }
2981
+ } else {
2982
+ head.appendChild(style);
2983
+ }
2984
+
2985
+ if (style.styleSheet) {
2986
+ style.styleSheet.cssText = css;
2987
+ } else {
2988
+ style.appendChild(document.createTextNode(css));
2989
+ }
2990
+ }
2991
+
2992
+ var css_248z = ".epic-designer-main .ant-input-number {\n width: 100%;\n}\n.epic-designer-main .ant-collapse-content > .ant-collapse-content-box {\n padding: 8px;\n}\n.epic-designer-main .ant-select {\n width: 100%;\n}\n.epic-designer-main .epic-upload-image .avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n.epic-input-size.ant-input-affix-wrapper {\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n}\n.epic-input-size .ant-select:hover {\n border: none !important;\n box-shadow: none !important;\n}\n";
2993
+ styleInject(css_248z);
2994
+
2965
2995
  function setupAntd(pluginManager$1 = pluginManager) {
2966
2996
  var _a;
2967
2997
  const versionArray = version.split(".");
@@ -2985,19 +3015,19 @@ function setupAntd(pluginManager$1 = pluginManager) {
2985
3015
  (item) => item.label !== "\u7981\u7528"
2986
3016
  );
2987
3017
  }
2988
- pluginManager$1.component(
3018
+ pluginManager$1.component.add(
2989
3019
  "Collapse",
2990
3020
  async () => (await import('ant-design-vue')).Collapse
2991
3021
  );
2992
- pluginManager$1.component(
3022
+ pluginManager$1.component.add(
2993
3023
  "CollapseItem",
2994
3024
  async () => (await import('ant-design-vue')).CollapsePanel
2995
3025
  );
2996
- pluginManager$1.component(
3026
+ pluginManager$1.component.add(
2997
3027
  "Tabs",
2998
3028
  async () => (await import('ant-design-vue')).Tabs
2999
3029
  );
3000
- pluginManager$1.component(
3030
+ pluginManager$1.component.add(
3001
3031
  "TabPane",
3002
3032
  async () => (await import('ant-design-vue')).TabPane
3003
3033
  );
@@ -3030,8 +3060,8 @@ function setupAntd(pluginManager$1 = pluginManager) {
3030
3060
  UploadFile.defaultSchema.componentProps.action = pluginManager$1.global.uploadFile;
3031
3061
  });
3032
3062
  componentArray.forEach((item) => {
3033
- pluginManager$1.registerComponent(item);
3034
- pluginManager$1.addBaseComponentTypes(item.defaultSchema.type);
3063
+ pluginManager$1.component.register(item);
3064
+ pluginManager$1.component.addBaseComponentType(item.defaultSchema.type);
3035
3065
  });
3036
3066
  pluginManager$1.global.$message = {
3037
3067
  error: message.error,
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@epic-designer/antd",
3
- "version": "1.0.5",
3
+ "version": "1.0.6-beta.0",
4
4
  "description": "epic-designer base antd ui",
5
- "private": false,
6
5
  "author": "kchengz",
7
6
  "type": "module",
8
7
  "files": [
@@ -28,6 +27,7 @@
28
27
  "@rollup/plugin-alias": "^6.0.0",
29
28
  "@vitejs/plugin-vue": "^5.2.1",
30
29
  "ant-design-vue": "^4.2.6",
30
+ "rollup-plugin-postcss": "^4.0.2",
31
31
  "tsx": "^4.20.6",
32
32
  "unbuild": "^3.6.1"
33
33
  },
package/src/index.ts CHANGED
@@ -29,6 +29,9 @@ import TimePicker from './time-picker';
29
29
  import UploadFile from './upload-file';
30
30
  import UploadImage from './upload-image';
31
31
 
32
+ // 引入样式
33
+ import './index.less';
34
+
32
35
  export function setupAntd(pluginManager: PluginManager = pManager): void {
33
36
  // 版本兼容处理 start
34
37
  const versionArray = version.split('.');
@@ -63,19 +66,19 @@ export function setupAntd(pluginManager: PluginManager = pManager): void {
63
66
  }
64
67
 
65
68
  // 加载组件
66
- pluginManager.component(
69
+ pluginManager.component.add(
67
70
  'Collapse',
68
71
  async () => (await import('ant-design-vue')).Collapse,
69
72
  );
70
- pluginManager.component(
73
+ pluginManager.component.add(
71
74
  'CollapseItem',
72
75
  async () => (await import('ant-design-vue')).CollapsePanel,
73
76
  );
74
- pluginManager.component(
77
+ pluginManager.component.add(
75
78
  'Tabs',
76
79
  async () => (await import('ant-design-vue')).Tabs,
77
80
  );
78
- pluginManager.component(
81
+ pluginManager.component.add(
79
82
  'TabPane',
80
83
  async () => (await import('ant-design-vue')).TabPane,
81
84
  );
@@ -114,8 +117,8 @@ export function setupAntd(pluginManager: PluginManager = pManager): void {
114
117
  });
115
118
 
116
119
  componentArray.forEach((item) => {
117
- pluginManager.registerComponent(item);
118
- pluginManager.addBaseComponentTypes(item.defaultSchema.type);
120
+ pluginManager.component.register(item);
121
+ pluginManager.component.addBaseComponentType(item.defaultSchema.type);
119
122
  });
120
123
 
121
124
  // 注册全局提示函数