tianheng-ui 0.0.63 → 0.0.64

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,16 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.63",
4
+ "version": "0.0.64",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "main": "./lib/tianheng-ui.js",
9
+ "style": "lib/theme-chalk/index.css",
9
10
  "scripts": {
10
11
  "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
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"
12
+ "build": "cross-env NODE_ENV=preview webpack --progress --hide-modules",
13
+ "build:npm": "cross-env NODE_ENV=production webpack --progress --hide-modules"
13
14
  },
14
15
  "dependencies": {
15
16
  "ace-builds": "^1.4.13",
@@ -51,7 +52,6 @@
51
52
  "@types/ace": "0.0.42",
52
53
  "@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
53
54
  "@vue/babel-preset-jsx": "^1.4.0",
54
- "autoprefixer": "^10.4.13",
55
55
  "babel-loader": "^8.2.5",
56
56
  "babel-plugin-import": "^1.13.5",
57
57
  "bpmn-js": "^8.8.3",
@@ -63,7 +63,6 @@
63
63
  "html-webpack-plugin": "^4.5.0",
64
64
  "less": "^3.9.0",
65
65
  "less-loader": "^4.1.0",
66
- "postcss-loader": "^4.3.0",
67
66
  "sass": "^1.55.0",
68
67
  "sass-loader": "^7.3.1",
69
68
  "style-loader": "^2.0.0",
@@ -82,6 +81,5 @@
82
81
  "keywords": [
83
82
  "tianheng",
84
83
  "tianheng-ui"
85
- ],
86
- "style": "lib/theme-chalk/index.css"
84
+ ]
87
85
  }
@@ -359,8 +359,8 @@ import WidgetConfig from "./WidgetConfig";
359
359
  import FormConfig from "./FormConfig";
360
360
  import WidgetForm from "./WidgetForm";
361
361
  import GenerateForm from "./GenerateForm";
362
- import ThDialog from "ui/dialog/index.vue";
363
- import ThCodeEditor from "ui/codeEditor/index.vue";
362
+ import ThDialog from "ui/Dialog/index.vue";
363
+ import ThCodeEditor from "ui/CodeEditor/index.vue";
364
364
  import {
365
365
  basicComponents,
366
366
  advanceComponents,
@@ -675,10 +675,10 @@
675
675
  <script>
676
676
  import FmUpload from "./Upload";
677
677
  import { VueEditor } from "vue2-editor";
678
- import ThCell from "ui/cell/index.vue";
679
- import ThImage from "ui/image/index.vue";
680
- import ThRow from "ui/row/index.vue";
681
- import ThCol from "ui/col/index.vue";
678
+ import ThCell from "ui/Cell/index.vue";
679
+ import ThImage from "ui/Image/index.vue";
680
+ import ThRow from "ui/Row/index.vue";
681
+ import ThCol from "ui/Col/index.vue";
682
682
 
683
683
  export default {
684
684
  name: "genetate-form-item",
@@ -636,11 +636,8 @@
636
636
  <script>
637
637
  import FmUpload from "./Upload";
638
638
  import { VueEditor } from "vue2-editor";
639
- import ThCell from "ui/cell/index.vue";
640
- import ThImage from "ui/image/index.vue";
641
- import Vue from "vue";
642
- import { Field } from "vant";
643
- Vue.use(Field);
639
+ import ThCell from "ui/Cell/index.vue";
640
+ import ThImage from "ui/Image/index.vue";
644
641
 
645
642
  export default {
646
643
  name: "genetate-form-item-h5",
@@ -103,8 +103,8 @@
103
103
 
104
104
  <script>
105
105
  import compsData from "./custom/register";
106
- import ThDialog from "ui/dialog/index.vue";
107
- import ThCodeEditor from "ui/codeEditor/index.vue";
106
+ import ThDialog from "ui/Dialog/index.vue";
107
+ import ThCodeEditor from "ui/CodeEditor/index.vue";
108
108
  export default {
109
109
  components: { ThDialog, ThCodeEditor },
110
110
  props: {
@@ -50,7 +50,7 @@
50
50
  <script>
51
51
  import Draggable from "vuedraggable";
52
52
  import WidgetFormItem from "./WidgetFormItem";
53
- import ThEmpty from "ui/empty/index.vue";
53
+ import ThEmpty from "ui/Empty/index.vue";
54
54
 
55
55
  export default {
56
56
  components: { Draggable, WidgetFormItem, ThEmpty },
@@ -506,6 +506,7 @@ export const basicComponents = [
506
506
  min: 0,
507
507
  //isEdit: false,
508
508
  remoteFunc: "https://jsonplaceholder.typicode.com/posts/",
509
+ action: "https://jsonplaceholder.typicode.com/posts/",
509
510
  remoteApi: {},
510
511
  disabled: false,
511
512
  required: false,
@@ -124,7 +124,7 @@
124
124
 
125
125
  <script>
126
126
  import { configComponent } from "../mixins";
127
- import ThIcons from "ui/icons/index.vue";
127
+ import ThIcons from "ui/Icons/index.vue";
128
128
  export default {
129
129
  components: {
130
130
  ThIcons
@@ -166,7 +166,7 @@
166
166
  <script>
167
167
  import Draggable from "vuedraggable";
168
168
  import { configComponent } from "../mixins";
169
- import CodeEditor from "ui/codeEditor/index.vue";
169
+ import CodeEditor from "ui/CodeEditor/index.vue";
170
170
  export default {
171
171
  components: {
172
172
  Draggable,
@@ -65,7 +65,7 @@
65
65
  <script>
66
66
  import Draggable from "vuedraggable";
67
67
  import { configComponent } from "../mixins";
68
- import CodeEditor from "ui/codeEditor/index.vue";
68
+ import CodeEditor from "ui/CodeEditor/index.vue";
69
69
  export default {
70
70
  components: {
71
71
  Draggable,
@@ -120,7 +120,7 @@
120
120
  <script>
121
121
  import Draggable from "vuedraggable";
122
122
  import { configComponent } from "../mixins";
123
- import CodeEditor from "ui/codeEditor/index.vue";
123
+ import CodeEditor from "ui/CodeEditor/index.vue";
124
124
  export default {
125
125
  components: {
126
126
  Draggable,
@@ -69,7 +69,7 @@
69
69
  <script>
70
70
  import Draggable from "vuedraggable";
71
71
  import { configComponent } from "../mixins";
72
- import CodeEditor from "ui/codeEditor/index.vue";
72
+ import CodeEditor from "ui/CodeEditor/index.vue";
73
73
  export default {
74
74
  components: {
75
75
  Draggable,
@@ -66,7 +66,7 @@
66
66
  <script>
67
67
  import Draggable from "vuedraggable";
68
68
  import { configComponent } from "../mixins";
69
- import CodeEditor from "ui/codeEditor/index.vue";
69
+ import CodeEditor from "ui/CodeEditor/index.vue";
70
70
  export default {
71
71
  components: {
72
72
  Draggable,
@@ -55,7 +55,7 @@
55
55
  <script>
56
56
  import Draggable from "vuedraggable";
57
57
  import { configComponent } from "../mixins";
58
- import CodeEditor from "ui/codeEditor/index.vue";
58
+ import CodeEditor from "ui/CodeEditor/index.vue";
59
59
  export default {
60
60
  components: {
61
61
  Draggable,
@@ -64,26 +64,11 @@
64
64
  ></el-input>
65
65
  </el-form-item>
66
66
 
67
- <el-form-item label="文件上传" :required="true">
68
- <el-select
69
- style="width:100%"
70
- v-model="widget.options.remoteFunc"
71
- placeholder="请选择远端方法"
72
- >
73
- <el-option-group
74
- v-for="group in remoteApis"
75
- :key="group.label"
76
- :label="group.label"
77
- >
78
- <el-option
79
- v-for="item in group.options"
80
- :key="item.value"
81
- :label="item.label"
82
- :value="item.value"
83
- >
84
- </el-option>
85
- </el-option-group>
86
- </el-select>
67
+ <el-form-item label="上传地址" :required="true">
68
+ <el-input
69
+ v-model.number="widget.options.action"
70
+ placeholder="请输入上传地址"
71
+ ></el-input>
87
72
  </el-form-item>
88
73
 
89
74
  <el-form-item label="操作属性">
@@ -8,7 +8,7 @@
8
8
 
9
9
  <script>
10
10
  import { itemsComponent } from "../mixins/index";
11
- import ThCell from "ui/cell/index.vue";
11
+ import ThCell from "ui/Cell/index.vue";
12
12
  export default {
13
13
  components: { ThCell },
14
14
  mixins: [itemsComponent]
@@ -44,8 +44,8 @@
44
44
  import { itemsComponent } from "../mixins/index";
45
45
  import Draggable from "vuedraggable";
46
46
  import WidgetFormItem from "../../WidgetFormItem.vue";
47
- import ThRow from "ui/row/index.vue";
48
- import ThCol from "ui/col/index.vue";
47
+ import ThRow from "ui/Row/index.vue";
48
+ import ThCol from "ui/Col/index.vue";
49
49
  export default {
50
50
  components: { Draggable, WidgetFormItem, ThRow, ThCol },
51
51
  mixins: [itemsComponent],
@@ -31,7 +31,7 @@
31
31
 
32
32
  <script>
33
33
  import { itemsComponent } from "../mixins/index";
34
- import ThImage from "ui/image/index.vue";
34
+ import ThImage from "ui/Image/index.vue";
35
35
 
36
36
  export default {
37
37
  components: { ThImage },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-upload
4
- :action="widget.options.remoteFunc"
4
+ :action="widget.options.action"
5
5
  :on-preview="
6
6
  file => handlePictureCardPreview(file, widget.options.listType)
7
7
  "
@@ -36,7 +36,7 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
- import ThImagePreview from "ui/imagePreview/index.vue";
39
+ import ThImagePreview from "ui/ImagePreview/index.vue";
40
40
 
41
41
  let prevOverflow = "";
42
42
 
package/packages/index.js CHANGED
@@ -20,15 +20,15 @@
20
20
  * Workflow : 工作流设计
21
21
  */
22
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";
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
32
  import CodeEditor from "./CodeEditor/index.js";
33
33
  import Button from "./Button/index.js";
34
34
  import Image from "./Image/index.js";
@@ -36,8 +36,8 @@ import ImagePreview from "./ImagePreview/index.js";
36
36
  import Row from "./Row/index.js";
37
37
  import Col from "./Col/index.js";
38
38
  import Upload from "./Upload/index.js";
39
- import { MakingForm, GenerateForm } from "./formMaking/index.js";
40
- // import Workflow from "../workflow/index.js";
39
+ import { MakingForm, GenerateForm } from "./FormMaking/index.js";
40
+ // import Workflow from "../packages/Workflow/index.js";
41
41
 
42
42
  const components = [
43
43
  Cell,
@@ -67,7 +67,7 @@ const install = function(Vue, opts = {}) {
67
67
  });
68
68
 
69
69
  Vue.prototype.$TIANHENG = {
70
- size: opts.size || '',
70
+ size: opts.size || "",
71
71
  zIndex: opts.zIndex || 2000
72
72
  };
73
73
  };
@@ -77,7 +77,25 @@ if (typeof window !== "undefined" && window.Vue) {
77
77
  }
78
78
 
79
79
  export default {
80
- version: "0.0.63",
80
+ version: "0.0.64",
81
81
  install,
82
82
  ...components
83
+ // Cell,
84
+ // Icons,
85
+ // Table,
86
+ // TableAction,
87
+ // TableSearch,
88
+ // TableTools,
89
+ // Empty,
90
+ // Dialog,
91
+ // Card,
92
+ // CodeEditor,
93
+ // Button,
94
+ // Image,
95
+ // ImagePreview,
96
+ // Row,
97
+ // Col,
98
+ // Upload,
99
+ // MakingForm,
100
+ // GenerateForm
83
101
  };