tianheng-ui 0.0.62 → 0.0.63

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.62",
4
+ "version": "0.0.63",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "./lib/tianheng-ui.js",
9
9
  "scripts": {
10
10
  "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
11
- "build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
12
- "build:npm": "cross-env NODE_ENV=npm webpack --progress --hide-modules"
11
+ "build": "cross-env NODE_ENV=preview webpack --progress --hide-modules --mode=production",
12
+ "build:npm": "cross-env NODE_ENV=production webpack --progress --hide-modules --mode=production"
13
13
  },
14
14
  "dependencies": {
15
15
  "ace-builds": "^1.4.13",
@@ -22,7 +22,7 @@
22
22
  "element-ui": "^2.15.6",
23
23
  "highlight.js": "^10.5.0",
24
24
  "min-dash": "^3.5.2",
25
- "mini-css-extract-plugin": "^2.6.1",
25
+ "mini-css-extract-plugin": "^1.6.2",
26
26
  "normalize.css": "^8.0.1",
27
27
  "nprogress": "^0.2.0",
28
28
  "viewerjs": "^1.10.5",
@@ -51,6 +51,7 @@
51
51
  "@types/ace": "0.0.42",
52
52
  "@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
53
53
  "@vue/babel-preset-jsx": "^1.4.0",
54
+ "autoprefixer": "^10.4.13",
54
55
  "babel-loader": "^8.2.5",
55
56
  "babel-plugin-import": "^1.13.5",
56
57
  "bpmn-js": "^8.8.3",
@@ -62,8 +63,10 @@
62
63
  "html-webpack-plugin": "^4.5.0",
63
64
  "less": "^3.9.0",
64
65
  "less-loader": "^4.1.0",
66
+ "postcss-loader": "^4.3.0",
65
67
  "sass": "^1.55.0",
66
68
  "sass-loader": "^7.3.1",
69
+ "style-loader": "^2.0.0",
67
70
  "uglifyjs-webpack-plugin": "^2.2.0",
68
71
  "vue-loader": "^14.2.4",
69
72
  "vue-template-compiler": "^2.4.4",
@@ -20,7 +20,7 @@
20
20
  export default {
21
21
  name: "ThEmpty",
22
22
  props: {
23
- image: { type: String, default: require("./images/notData.png") },
23
+ image: { type: String, default: "" },
24
24
  imageSize: { type: Number, default: 300 },
25
25
  description: { type: String, default: "暂无数据" }
26
26
  },
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Cell : 单元格
3
+ * Icons : 图标选择器
4
+ * Table : 表格
5
+ * TableAction : 表格行操作
6
+ * TableSearch :表格搜索
7
+ * TableTools :表格公共操作
8
+ * Empty : 空状态
9
+ * Dialog : 对话框
10
+ * Card : 卡片
11
+ * CodeEditor : 编辑器
12
+ * Button : 按钮
13
+ * Image : 图片
14
+ * ImagePreview : 大图预览
15
+ * Row : loyout行
16
+ * Col : loyout列
17
+ * Upload : 上传
18
+ * MakingForm : 表单设计器
19
+ * GenerateForm : 表单渲染器
20
+ * Workflow : 工作流设计
21
+ */
22
+
23
+ import Cell from "./cell/index.js";
24
+ import Icons from "./icons/index.js";
25
+ import Table from "./table/index.js";
26
+ import TableAction from "./table/action.js";
27
+ import TableSearch from "./table/search.js";
28
+ import TableTools from "./table/tools.js";
29
+ import Empty from "./empty/index.js";
30
+ import Dialog from "./dialog/index.js";
31
+ import Card from "./card/index.js";
32
+ import CodeEditor from "./CodeEditor/index.js";
33
+ import Button from "./Button/index.js";
34
+ import Image from "./Image/index.js";
35
+ import ImagePreview from "./ImagePreview/index.js";
36
+ import Row from "./Row/index.js";
37
+ import Col from "./Col/index.js";
38
+ import Upload from "./Upload/index.js";
39
+ import { MakingForm, GenerateForm } from "./formMaking/index.js";
40
+ // import Workflow from "../workflow/index.js";
41
+
42
+ const components = [
43
+ Cell,
44
+ Icons,
45
+ Table,
46
+ TableAction,
47
+ TableSearch,
48
+ TableTools,
49
+ Empty,
50
+ Dialog,
51
+ Card,
52
+ CodeEditor,
53
+ Button,
54
+ Image,
55
+ ImagePreview,
56
+ Row,
57
+ Col,
58
+ Upload,
59
+ MakingForm,
60
+ GenerateForm
61
+ // Workflow
62
+ ];
63
+
64
+ const install = function(Vue, opts = {}) {
65
+ components.forEach(component => {
66
+ Vue.component(component.name, component);
67
+ });
68
+
69
+ Vue.prototype.$TIANHENG = {
70
+ size: opts.size || '',
71
+ zIndex: opts.zIndex || 2000
72
+ };
73
+ };
74
+
75
+ if (typeof window !== "undefined" && window.Vue) {
76
+ install(window.Vue);
77
+ }
78
+
79
+ export default {
80
+ version: "0.0.63",
81
+ install,
82
+ ...components
83
+ };
package/lib/index.js DELETED
@@ -1,78 +0,0 @@
1
- /**
2
- * Cell : 单元格
3
- * Icons : 图标选择器
4
- * Table : 表格
5
- * TableAction : 表格行操作
6
- * TableSearch :表格搜索
7
- * TableTools :表格公共操作
8
- * Empty : 空状态
9
- * Dialog : 对话框
10
- * Card : 卡片
11
- * CodeEditor : 编辑器
12
- * Button : 按钮
13
- * Image : 图片
14
- * ImagePreview : 大图预览
15
- * Row : loyout行
16
- * Col : loyout列
17
- * Upload : 上传
18
- * MakingForm : 表单设计器
19
- * GenerateForm : 表单渲染器
20
- * Workflow : 工作流设计
21
- */
22
-
23
- import Cell from "../packages/cell/index.js";
24
- import Icons from "../packages/icons/index.js";
25
- import Table from "../packages/table/index.js";
26
- import TableAction from "../packages/table/action.js";
27
- import TableSearch from "../packages/table/search.js";
28
- import TableTools from "../packages/table/tools.js";
29
- import Empty from "../packages/empty/index.js";
30
- import Dialog from "../packages/dialog/index.js";
31
- import Card from "../packages/card/index.js";
32
- import CodeEditor from "../packages/CodeEditor/index.js";
33
- import Button from "../packages/Button/index.js";
34
- import Image from "../packages/Image/index.js";
35
- import ImagePreview from "../packages/ImagePreview/index.js";
36
- import Row from "../packages/Row/index.js";
37
- import Col from "../packages/Col/index.js";
38
- import Upload from "../packages/Upload/index.js";
39
- import { MakingForm, GenerateForm } from "../packages/formMaking/index.js";
40
- // import Workflow from "../packages/workflow/index.js";
41
-
42
- const components = [
43
- Cell,
44
- Icons,
45
- Table,
46
- TableAction,
47
- TableSearch,
48
- TableTools,
49
- Empty,
50
- Dialog,
51
- Card,
52
- CodeEditor,
53
- Button,
54
- Image,
55
- ImagePreview,
56
- Row,
57
- Col,
58
- Upload,
59
- MakingForm,
60
- GenerateForm,
61
- // Workflow
62
- ];
63
-
64
- const install = function(Vue) {
65
- components.forEach(component => {
66
- Vue.component(component.name, component);
67
- });
68
- };
69
-
70
- if (typeof window !== "undefined" && window.Vue) {
71
- install(window.Vue);
72
- }
73
-
74
- export default {
75
- version: "0.0.62",
76
- install,
77
- ...components
78
- };
Binary file