tianheng-ui 0.1.63 → 0.1.65

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 (60) hide show
  1. package/lib/theme-chalk/index.scss +1 -1
  2. package/lib/theme-chalk/styles/feature.scss +1 -0
  3. package/lib/tianheng-ui.js +13 -13
  4. package/package.json +1 -1
  5. package/packages/CodeEditor/index.vue +41 -19
  6. package/packages/FormMaking/GenerateForm.vue +67 -71
  7. package/packages/FormMaking/WidgetConfig.vue +1 -1
  8. package/packages/FormMaking/WidgetForm.vue +11 -5
  9. package/packages/FormMaking/WidgetFormItem.vue +11 -4
  10. package/packages/FormMaking/WidgetGuide.vue +0 -0
  11. package/packages/FormMaking/WidgetTools.vue +2 -2
  12. package/packages/FormMaking/custom/config.js +320 -76
  13. package/packages/FormMaking/custom/configs/blank.vue +1 -1
  14. package/packages/FormMaking/custom/configs/button.vue +2 -2
  15. package/packages/FormMaking/custom/configs/cascader.vue +71 -34
  16. package/packages/FormMaking/custom/configs/cell.vue +1 -1
  17. package/packages/FormMaking/custom/configs/checkbox.vue +95 -64
  18. package/packages/FormMaking/custom/configs/color.vue +1 -1
  19. package/packages/FormMaking/custom/configs/date.vue +1 -1
  20. package/packages/FormMaking/custom/configs/descriptions.vue +314 -0
  21. package/packages/FormMaking/custom/configs/divider.vue +1 -1
  22. package/packages/FormMaking/custom/configs/editor.vue +1 -1
  23. package/packages/FormMaking/custom/configs/filler.vue +1 -1
  24. package/packages/FormMaking/custom/configs/grid.vue +33 -22
  25. package/packages/FormMaking/custom/configs/image.vue +1 -1
  26. package/packages/FormMaking/custom/configs/input.vue +1 -1
  27. package/packages/FormMaking/custom/configs/number.vue +1 -1
  28. package/packages/FormMaking/custom/configs/radio.vue +84 -53
  29. package/packages/FormMaking/custom/configs/rate.vue +1 -1
  30. package/packages/FormMaking/custom/configs/select.vue +157 -158
  31. package/packages/FormMaking/custom/configs/slider.vue +1 -1
  32. package/packages/FormMaking/custom/configs/switch.vue +1 -1
  33. package/packages/FormMaking/custom/configs/table.vue +1 -1
  34. package/packages/FormMaking/custom/configs/tableH5.vue +1 -1
  35. package/packages/FormMaking/custom/configs/tabs.vue +1 -1
  36. package/packages/FormMaking/custom/configs/text.vue +1 -1
  37. package/packages/FormMaking/custom/configs/textarea.vue +1 -1
  38. package/packages/FormMaking/custom/configs/time.vue +1 -1
  39. package/packages/FormMaking/custom/configs/upload.vue +1 -1
  40. package/packages/FormMaking/custom/configs/workflow.vue +494 -0
  41. package/packages/FormMaking/custom/index.js +4 -2
  42. package/packages/FormMaking/custom/items/cascader.vue +2 -2
  43. package/packages/FormMaking/custom/items/checkbox.vue +6 -10
  44. package/packages/FormMaking/custom/items/descriptions.vue +75 -0
  45. package/packages/FormMaking/custom/items/grid_dev.vue +2 -2
  46. package/packages/FormMaking/custom/items/list_dev.vue +10 -22
  47. package/packages/FormMaking/custom/items/radio.vue +5 -9
  48. package/packages/FormMaking/custom/items/select.vue +2 -4
  49. package/packages/FormMaking/custom/items/tableH5_dev.vue +9 -18
  50. package/packages/FormMaking/custom/items/table_dev.vue +13 -3
  51. package/packages/FormMaking/custom/items/tabs_dev.vue +3 -2
  52. package/packages/FormMaking/custom/items/workflow.vue +131 -0
  53. package/packages/FormMaking/custom/register.js +15 -1
  54. package/packages/FormMaking/index.vue +61 -27
  55. package/packages/FormMaking/styles/index.scss +156 -478
  56. package/packages/TableMaking/index.vue +4 -1
  57. package/packages/TableMaking/widgetGuide.vue +96 -0
  58. package/packages/TableMaking/widgetTable.vue +0 -7
  59. package/packages/Workflow/index.vue +0 -31
  60. package/packages/FormMaking/GenerateFormItemH5.vue +0 -825
@@ -22,6 +22,7 @@
22
22
  ref="configRef"
23
23
  ></widget-config>
24
24
  </div>
25
+ <!-- <widget-guide :visible="true"></widget-guide> -->
25
26
  </div>
26
27
  </template>
27
28
 
@@ -29,11 +30,12 @@
29
30
  import WidgetTools from "./WidgetTools.vue";
30
31
  import WidgetTable from "./widgetTable.vue";
31
32
  import WidgetConfig from "./widgetConfig.vue";
33
+ import WidgetGuide from "./widgetGuide.vue";
32
34
  import { deepClone } from "./util/index";
33
35
  import { baseConfig } from "./custom/config";
34
36
  export default {
35
37
  name: "ThTableMaking",
36
- components: { WidgetTools, WidgetTable, WidgetConfig },
38
+ components: { WidgetTools, WidgetTable, WidgetConfig, WidgetGuide },
37
39
  props: {
38
40
  config: Object,
39
41
 
@@ -175,6 +177,7 @@ export default {
175
177
 
176
178
  <style lang="scss" scoped>
177
179
  .th-tableMaking {
180
+ position: relative;
178
181
  height: 100%;
179
182
  background-color: white;
180
183
  border: 1px solid #dcdfe6;
@@ -0,0 +1,96 @@
1
+ <template>
2
+ <div v-show="show" class="widgetGuide">
3
+ <div class="box">
4
+ <div class="header"></div>
5
+ <div class="content">
6
+ <div>你好</div>
7
+ <div>让我们来了解一些基本信息</div>
8
+ </div>
9
+ <div class="footer th-is_border_top">
10
+ <div></div>
11
+ <div class="stepView">
12
+ <el-button
13
+ :disabled="step === 0"
14
+ type="primary"
15
+ icon="el-icon-back"
16
+ size="small"
17
+ @click="handleBack"
18
+ >上一步</el-button
19
+ >
20
+ <el-button type="primary" size="small" @click="handleNext"
21
+ >下一步<i class="el-icon-right el-icon--right"></i
22
+ ></el-button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ export default {
31
+ props: { visible: { type: Boolean, default: true } },
32
+ data() {
33
+ return {
34
+ show: this.visible,
35
+ step: 0
36
+ };
37
+ },
38
+ watch: {
39
+ visible(val) {
40
+ this.show = val;
41
+ },
42
+ show(val) {
43
+ this.$emit("update:visible", val);
44
+ }
45
+ },
46
+ created() {},
47
+ mounted() {},
48
+ methods: {
49
+ handleBack() {
50
+ this.step--;
51
+ },
52
+ handleNext() {
53
+ this.step++;
54
+ }
55
+ }
56
+ };
57
+ </script>
58
+
59
+ <style lang="scss" scoped>
60
+ .widgetGuide {
61
+ position: absolute;
62
+ width: 100%;
63
+ height: 100%;
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
67
+ background-color: rgba($color: #000000, $alpha: 0.6);
68
+ z-index: 999;
69
+
70
+ .box {
71
+ position: relative;
72
+ width: calc(100% - 200px);
73
+ height: calc(100% - 200px);
74
+ background-color: white;
75
+ border-radius: 4px;
76
+
77
+ .header {
78
+ height: 50px;
79
+ }
80
+ .content {
81
+ height: calc(100% - 100px);
82
+ }
83
+ .footer {
84
+ padding: 10px 20px;
85
+ height: 50px;
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: space-between;
89
+ box-sizing: border-box;
90
+
91
+ .stepView {
92
+ }
93
+ }
94
+ }
95
+ }
96
+ </style>
@@ -325,12 +325,5 @@ export default {
325
325
  padding: 10px 0;
326
326
  height: 52px;
327
327
  }
328
-
329
- // .table-content:hover::-webkit-scrollbar-thumb {
330
- // background-color: rgba(69, 90, 100, 0.2);
331
- // }
332
- // .table-content:hover::-webkit-scrollbar-thumb {
333
- // background-color: rgba(69, 90, 100, 0.2);
334
- // }
335
328
  }
336
329
  </style>
@@ -365,35 +365,4 @@ export default {
365
365
  color: #fafafa;
366
366
  }
367
367
 
368
- // body,
369
- // body * {
370
- // /* 滚动条 */
371
- // &::-webkit-scrollbar-track-piece {
372
- // background-color: #fff; /*滚动条的背景颜色*/
373
- // -webkit-border-radius: 0; /*滚动条的圆角宽度*/
374
- // }
375
- // &::-webkit-scrollbar {
376
- // width: 10px; /*滚动条的宽度*/
377
- // height: 8px; /*滚动条的高度*/
378
- // }
379
- // &::-webkit-scrollbar-thumb:vertical {
380
- // /*垂直滚动条的样式*/
381
- // height: 50px;
382
- // background-color: rgba(153, 153, 153, 0.5);
383
- // -webkit-border-radius: 4px;
384
- // outline: 2px solid #fff;
385
- // outline-offset: -2px;
386
- // border: 2px solid #fff;
387
- // }
388
- // &::-webkit-scrollbar-thumb {
389
- // /*滚动条的hover样式*/
390
- // background-color: rgba(159, 159, 159, 0.3);
391
- // -webkit-border-radius: 4px;
392
- // }
393
- // &::-webkit-scrollbar-thumb:hover {
394
- // /*滚动条的hover样式*/
395
- // background-color: rgba(159, 159, 159, 0.5);
396
- // -webkit-border-radius: 4px;
397
- // }
398
- // }
399
368
  </style>