centaline-data-driven 1.6.63 → 1.6.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 (30) hide show
  1. package/build/centaline/centaline.path.js +1 -0
  2. package/package.json +2 -1
  3. package/release-log.md +22 -0
  4. package/src/SearchList.vue +2 -2
  5. package/src/SearchTree.vue +3 -3
  6. package/src/centaline/dialogList/src/dialog.vue +332 -322
  7. package/src/centaline/dynamicFile/src/dynamicFile.vue +62 -14
  8. package/src/centaline/dynamicForm/src/dynamicForm.vue +1714 -1450
  9. package/src/centaline/dynamicMarkdownViewer/index.js +11 -0
  10. package/src/centaline/dynamicMarkdownViewer/src/dynamicMarkdownViewer.vue +128 -0
  11. package/src/centaline/dynamicMo/src/dynamicMo.vue +4 -0
  12. package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1 -1
  13. package/src/centaline/dynamicTags/src/dynamicTags.vue +4 -0
  14. package/src/centaline/dynamicTreeList/src/dynamicTreeList.vue +2 -2
  15. package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +374 -392
  16. package/src/centaline/dynamicViewerFile/src/dynamicViewerImage.vue +1 -1
  17. package/src/centaline/loader/src/ctl/MarkdownViewer.js +17 -0
  18. package/src/centaline/loader/src/ctl/Router.js +13 -0
  19. package/src/centaline/loader/src/ctl/lib/LibFunction.js +5 -0
  20. package/src/centaline/loader/src/ctl.js +1 -0
  21. package/src/main.js +5 -5
  22. package/wwwroot/static/centaline/centaline-data-driven.js +6324 -5682
  23. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
  24. package/wwwroot/static/centaline/fonts/element-icons.535877f5.woff +0 -0
  25. package/wwwroot/static/centaline/fonts/element-icons.732389de.ttf +0 -0
  26. package/wwwroot/static/centaline/fonts/fontawesome-webfont.674f50d2.eot +0 -0
  27. package/wwwroot/static/centaline/fonts/fontawesome-webfont.af7ae505.woff2 +0 -0
  28. package/wwwroot/static/centaline/fonts/fontawesome-webfont.b06871f2.ttf +0 -0
  29. package/wwwroot/static/centaline/fonts/fontawesome-webfont.fee66e71.woff +0 -0
  30. package/wwwroot/static/centaline/static/img/fontawesome-webfont.912ec66d.912ec66.svg +2671 -0
@@ -0,0 +1,11 @@
1
+ import dynamicMarkdownViewer from './src/dynamicMarkdownViewer'
2
+
3
+ dynamicMarkdownViewer.install = function (Vue, options) {
4
+ Vue.component(dynamicMarkdownViewer.name, dynamicMarkdownViewer);
5
+ }
6
+
7
+ if (typeof window !== 'undefined' && window.Vue) {
8
+ window.Vue.use(dynamicMarkdownViewer);
9
+ }
10
+
11
+ export default dynamicMarkdownViewer;
@@ -0,0 +1,128 @@
1
+ <template>
2
+ <div class="field-top">
3
+ <div v-if="model !== null" class="ct-MarkdownViewer">
4
+ <div :class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'']" style="display: inline-block;">
5
+ <div v-if="model.showLabel && model.label" :class="[model.labelClass]" style="text-align: left;padding-bottom: 5px;color: #303133;">
6
+ <h5>{{model.label}}</h5>
7
+ </div>
8
+ <div class="josnViewerBox" tabindex="-1">
9
+ <MarkdownItVue :content="model.code1" :config="markdownConfig" />
10
+ </div>
11
+ </div>
12
+ <transition name="el-fade-in">
13
+ <span v-show="!valid" class="errorMessage">
14
+ {{validMessage}}
15
+ </span>
16
+ </transition>
17
+ </div>
18
+ </div>
19
+ </template>
20
+ <script>
21
+ import dynamicElement from '../../mixins/dynamicElement';
22
+ import MarkdownItVue from 'markdown-it-vue'
23
+ import 'markdown-it-vue/dist/markdown-it-vue.css'
24
+ export default {
25
+ name: 'ct-MarkdownViewer',
26
+ mixins: [dynamicElement],
27
+ components: {
28
+ 'MarkdownItVue': MarkdownItVue
29
+ },
30
+ props: {
31
+ vmodel: Object,
32
+ api: String,
33
+ },
34
+ data() {
35
+ return {
36
+ markdownConfig: {
37
+ markdownit: {
38
+ html: true, // 允许HTML标签
39
+ linkify: true, // 自动识别链接
40
+ typographer: true, // 优化文字排版,如智能引号
41
+ breaks: true, // <<< 启用此选项,将 \n 转换为 <br>
42
+ },
43
+ }
44
+ };
45
+ },
46
+ mounted() {
47
+ var self = this;
48
+ this.$nextTick(function () {
49
+ if (self.vmodel) {
50
+ self.load(self.vmodel);
51
+ }
52
+ else if (typeof self.source !== 'undefined') {
53
+ self.loaderObj.MarkdownViewer(self.source, (data) => {
54
+ self.load(data);
55
+ });
56
+ }
57
+ });
58
+ },
59
+ destroyed (){
60
+ this.model=null;
61
+ this.$el=null;
62
+ },
63
+ methods: {
64
+ load(data) {
65
+ this.model = data;
66
+ },
67
+ }
68
+ }
69
+ </script>
70
+ <style>
71
+ .josnViewerBox {
72
+ overflow: auto;
73
+ width: 100%;
74
+ border: 1px solid #eee;
75
+ border-radius: 4px;
76
+ padding: 2px;
77
+ box-sizing: border-box;
78
+ background-color: #ffffff;
79
+ line-height: normal;
80
+
81
+ .jv-container .jv-code{
82
+ padding: 0px !important;
83
+ }
84
+ .jv-container.light {
85
+ background: #fff;
86
+ white-space: nowrap;
87
+ color: #525252;
88
+ font-size: 14px;
89
+ font-family: Consolas, Menlo, Courier, monospace;
90
+ }
91
+ .jv-container.light .jv-button, .jv-container.jv-dark .jv-button {
92
+ color: #49b3ff;
93
+ }
94
+ .jv-container.light .jv-key {
95
+ color: #111;
96
+ margin-right: 4px;
97
+ }
98
+ .jv-container.light .jv-item.jv-string {
99
+ color: #42b983;
100
+ word-break: break-word;
101
+ white-space: normal;
102
+ }
103
+ .jv-container.light .jv-item.jv-number {
104
+ color: #fc1e70;
105
+ }
106
+ .jv-container.light .jv-item.jv-boolean {
107
+ color: #fc1e70;
108
+ }
109
+ .jv-tooltip {
110
+ position: sticky !important;
111
+ top: 0 !important;
112
+ right: 0 !important;
113
+ /* 新增:靠右定位 */
114
+ z-index: 10;
115
+ margin-left: auto;
116
+ /* 辅助:确保靠右 */
117
+ float: right;
118
+ }
119
+ .btn-iocn {
120
+ display: flex;
121
+ gap: 10px;
122
+ }
123
+
124
+ }
125
+ .josnViewerBox:focus {
126
+ border: 1px solid #3D5ECC;
127
+ }
128
+ </style>
@@ -388,6 +388,10 @@
388
388
  cursor: pointer;
389
389
  }
390
390
 
391
+ .ct-mo .el-input {
392
+ height: auto !important;
393
+ }
394
+
391
395
  .ct-mo .el-select__caret {
392
396
  color: #BBBBBB;
393
397
  font-size: inherit;
@@ -1770,7 +1770,7 @@ export default {
1770
1770
 
1771
1771
 
1772
1772
  let title = field.pageTitle == undefined ? field.label : field.pageTitle;
1773
- submitData = field.getActionPara(submitData).para;
1773
+ submitData = field.getActionParaButton(submitData).para;
1774
1774
  var fun = self.$common.getDataDrivenOpts().handler[action];
1775
1775
  if (self.isIframe) {
1776
1776
  submitData.isIframe = self.isIframe;
@@ -414,6 +414,10 @@
414
414
  cursor: pointer;
415
415
  }
416
416
 
417
+ .ct-tags .el-input {
418
+ height: auto !important;
419
+ }
420
+
417
421
  .ct-tags .el-select__caret {
418
422
  color: #BBBBBB;
419
423
  font-size: inherit;
@@ -60,7 +60,7 @@ export default {
60
60
  rightApiParam: {},
61
61
  searchtreeHeight: 0,
62
62
  dataRowRouter: "",
63
- asideWidth: 200,
63
+ asideWidth: 210,
64
64
  isResizing: false,
65
65
  startX: 0,
66
66
  startWidth: 0
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
  methods: {
70
70
  loaded(data) {
71
- this.asideWidth = Number(this.leftWidth ? this.leftWidth : 200);
71
+ this.asideWidth = Number(this.leftWidth ? this.leftWidth : 210);
72
72
 
73
73
  var self = this;
74
74
  self.isShowMain = false;