super-pages 0.0.21-up → 0.0.22-up

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,7 +1,7 @@
1
1
  {
2
2
  "name": "super-pages",
3
3
  "private": false,
4
- "version": "0.0.21-up",
4
+ "version": "0.0.22-up",
5
5
  "type": "module",
6
6
  "main": "./lib/super-pages.js",
7
7
  "scripts": {
@@ -14,15 +14,15 @@
14
14
  "@vitejs/plugin-vue": "^4.2.3",
15
15
  "axios": "^1.6.1",
16
16
  "element-plus": "^2.4.1",
17
- "imatrix-ui": "0.2.29-up",
17
+ "imatrix-ui": "0.2.30-up",
18
18
  "sass": "^1.69.4",
19
- "super-charts-new": "0.0.2-up",
20
- "super-form-editor": "0.0.5-up",
19
+ "super-charts-new": "0.0.19-up",
20
+ "super-form-editor": "0.0.23-up",
21
21
  "vite": "^4.4.5",
22
22
  "vue": "^3.3.4",
23
23
  "vue-i18n": "^9.5.0",
24
24
  "vue-router": "^4.2.5",
25
25
  "vuex": "^4.1.0",
26
- "workflow-editor": "0.0.2-up"
26
+ "workflow-editor": "0.0.17-up"
27
27
  }
28
28
  }
package/packages/index.js CHANGED
@@ -1,30 +1,30 @@
1
- // 本文件用来整合所有的组件,对外导出,形成一个完整的组件库
2
- import SuperPage from './super-page'
3
- import SuperPageDialog from './super-page-dialog'
4
- // 后续可以import其他的组件
5
-
6
- // 存储组件列表
7
- const components = [SuperPage, SuperPageDialog]
8
-
9
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
10
- const install = function (Vue) {
11
- // 判断是否安装
12
- if (install.installed) return
13
- // 遍历注册全局组件
14
- // components.map(component => Vue.component(component.name, component))
15
- components.forEach((component) => {
16
- window.$vueApp.component(component.name, component)
17
- })
18
- }
19
-
20
- // 判断是否是直接引入文件
21
- if (typeof window !== 'undefined' && window.Vue) {
22
- install(window.Vue)
23
- }
24
-
25
- export default {
26
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
27
- install,
28
- SuperPage,
29
- SuperPageDialog,
30
- }
1
+ // 本文件用来整合所有的组件,对外导出,形成一个完整的组件库
2
+ import SuperPage from './super-page'
3
+ import SuperPageDialog from './super-page-dialog'
4
+ // 后续可以import其他的组件
5
+
6
+ // 存储组件列表
7
+ const components = [SuperPage, SuperPageDialog]
8
+
9
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
10
+ const install = function (Vue) {
11
+ // 判断是否安装
12
+ if (install.installed) return
13
+ // 遍历注册全局组件
14
+ // components.map(component => Vue.component(component.name, component))
15
+ components.forEach((component) => {
16
+ window.$vueApp.component(component.name, component)
17
+ })
18
+ }
19
+
20
+ // 判断是否是直接引入文件
21
+ if (typeof window !== 'undefined' && window.Vue) {
22
+ install(window.Vue)
23
+ }
24
+
25
+ export default {
26
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
27
+ install,
28
+ SuperPage,
29
+ SuperPageDialog,
30
+ }
@@ -1,9 +1,9 @@
1
- // 本文件用来导出单个组件
2
- import SuperPage from './src/super-page.vue'
3
-
4
- // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
- SuperPage.install = function (Vue) {
6
- window.$vueApp.component(SuperPage.name, SuperPage)
7
- }
8
-
9
- export default SuperPage
1
+ // 本文件用来导出单个组件
2
+ import SuperPage from './src/super-page.vue'
3
+
4
+ // 每个组件都提供了install方法,这样就可以按需引入单个组件
5
+ SuperPage.install = function (Vue) {
6
+ window.$vueApp.component(SuperPage.name, SuperPage)
7
+ }
8
+
9
+ export default SuperPage
@@ -1,74 +1,74 @@
1
- <template>
2
- <div
3
- :style="{ marginTop: formButtonPosition === 'topLeft' ? '72px' : '' }"
4
- class="formHead"
5
- >
6
- <div
7
- v-if="formTitle && formTitle !== '' && formTitle !== null"
8
- class="formTitle"
9
- >
10
- {{ formTitle }}
11
- </div>
12
- <span
13
- v-if="formNo"
14
- style="
15
- font-size: 18px;
16
- white-space: nowrap;
17
- display: block;
18
- text-align: right;
19
- "
20
- >{{
21
- formNoLabel && formNoLabel !== null && formNoLabel.trim() !== ''
22
- ? formNoLabel + ':'
23
- : $t('superPage.formNo')
24
- }}{{ formNo }}</span
25
- >
26
- </div>
27
- </template>
28
-
29
- <script>
30
- export default {
31
- name: 'FormHead',
32
- components: {},
33
- props: {
34
- // 表单标题
35
- formTitle: {
36
- type: String,
37
- default: null,
38
- },
39
- // 表单编码规则解析获得的表单编码
40
- formNo: {
41
- type: String,
42
- default: null,
43
- },
44
- formNoLabel: {
45
- type: String,
46
- default: null,
47
- },
48
- formButtonPosition: {
49
- type: String,
50
- default: null,
51
- },
52
- },
53
- }
54
- </script>
55
-
56
- <style lang="scss" scoped>
57
- .formTitle {
58
- color: #333;
59
- padding: 0;
60
- border: 0;
61
- display: block;
62
- margin-left: 40%;
63
- margin-bottom: 20px;
64
- font-weight: 700;
65
- font-size: 24px;
66
- }
67
- .formHead {
68
- color: #333;
69
- padding: 10px;
70
- border: 0;
71
- display: block;
72
- width: 100%;
73
- }
74
- </style>
1
+ <template>
2
+ <div
3
+ :style="{ marginTop: formButtonPosition === 'topLeft' ? '72px' : '' }"
4
+ class="formHead"
5
+ >
6
+ <div
7
+ v-if="formTitle && formTitle !== '' && formTitle !== null"
8
+ class="formTitle"
9
+ >
10
+ {{ formTitle }}
11
+ </div>
12
+ <span
13
+ v-if="formNo"
14
+ style="
15
+ font-size: 18px;
16
+ white-space: nowrap;
17
+ display: block;
18
+ text-align: right;
19
+ "
20
+ >{{
21
+ formNoLabel && formNoLabel !== null && formNoLabel.trim() !== ''
22
+ ? formNoLabel + ':'
23
+ : $t('superPage.formNo')
24
+ }}{{ formNo }}</span
25
+ >
26
+ </div>
27
+ </template>
28
+
29
+ <script>
30
+ export default {
31
+ name: 'FormHead',
32
+ components: {},
33
+ props: {
34
+ // 表单标题
35
+ formTitle: {
36
+ type: String,
37
+ default: null,
38
+ },
39
+ // 表单编码规则解析获得的表单编码
40
+ formNo: {
41
+ type: String,
42
+ default: null,
43
+ },
44
+ formNoLabel: {
45
+ type: String,
46
+ default: null,
47
+ },
48
+ formButtonPosition: {
49
+ type: String,
50
+ default: null,
51
+ },
52
+ },
53
+ }
54
+ </script>
55
+
56
+ <style lang="scss" scoped>
57
+ .formTitle {
58
+ color: #333;
59
+ padding: 0;
60
+ border: 0;
61
+ display: block;
62
+ margin-left: 40%;
63
+ margin-bottom: 20px;
64
+ font-weight: 700;
65
+ font-size: 24px;
66
+ }
67
+ .formHead {
68
+ color: #333;
69
+ padding: 10px;
70
+ border: 0;
71
+ display: block;
72
+ width: 100%;
73
+ }
74
+ </style>
@@ -1,21 +1,21 @@
1
- <template>
2
- <div>
3
- <el-menu default-active="1" class="el-menu-group" mode="horizontal">
4
- <el-menu-item index="1">
5
- {{ label }}
6
- </el-menu-item>
7
- </el-menu>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- export default {
13
- name: 'GroupTag',
14
- props: {
15
- label: {
16
- type: String,
17
- default: null,
18
- },
19
- },
20
- }
21
- </script>
1
+ <template>
2
+ <div>
3
+ <el-menu default-active="1" class="el-menu-group" mode="horizontal">
4
+ <el-menu-item index="1">
5
+ {{ label }}
6
+ </el-menu-item>
7
+ </el-menu>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ name: 'GroupTag',
14
+ props: {
15
+ label: {
16
+ type: String,
17
+ default: null,
18
+ },
19
+ },
20
+ }
21
+ </script>
@@ -1,89 +1,89 @@
1
- <template>
2
- <span>
3
- <dynamic-source-select
4
- v-model:value="selectValue"
5
- :base-props="{
6
- multiple: toolbar.controlType === 'multiselect' ? true : false,
7
- disabled: false,
8
- }"
9
- :analysis-area="1"
10
- :entity="modelObj"
11
- :full-width="false"
12
- :clearable="false"
13
- :size="toolbar.size ? toolbar.size : 'small'"
14
- :options="{
15
- dynamicDataSourceCode: dynamicDataSourceCode,
16
- valueSetOptions: valueSetOptions,
17
- isSql: true,
18
- }"
19
- :is-join-table="false"
20
- @load-completed="loadCompleted"
21
- @change="multiselectChange"
22
- @set-value="setDynamicSourceSelectValue"
23
- />
24
- </span>
25
- </template>
26
-
27
- <script>
28
- import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
29
- export default {
30
- name: 'ListToolbarDynamicSource',
31
- components: {},
32
- props: {
33
- modelObj: {
34
- type: Object,
35
- default: null,
36
- },
37
- toolbar: {
38
- type: Object,
39
- default: null,
40
- },
41
- },
42
- data() {
43
- return {
44
- dynamicDataSourceCode: null,
45
- valueSetOptions: [],
46
- dymLoadCompleted: false,
47
- selectValue: null,
48
- }
49
- },
50
- created() {
51
- this.dynamicDataSourceCode = this.toolbar.dynamicDataSourceCode
52
- this.valueSetOptions = this.toolbar.valueSetOptions
53
- },
54
- mounted() {},
55
- beforeUnmount() {},
56
- methods: {
57
- multiselectChange() {
58
- $emit(this, 'search-grid-data', this.toolbar.controlType)
59
- },
60
- setDynamicSourceSelectValue(selectValue) {
61
- this.valueSetOptions.forEach((element) => {
62
- this.modelObj[element.valueField] =
63
- selectValue.selectedItem[element.columnName]
64
- })
65
- console.log(this.modelObj, '------------')
66
- },
67
- loadCompleted(dynamicDataSourceDto) {
68
- if (
69
- dynamicDataSourceDto.defaultSelect &&
70
- dynamicDataSourceDto.options &&
71
- dynamicDataSourceDto.options.length > 0
72
- ) {
73
- this.setDynamicSourceSelectValue({
74
- selectedItem: dynamicDataSourceDto.options[0],
75
- })
76
- // this.modelObj[this.toolbar.propDbName] = dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
77
- this.selectValue =
78
- dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
79
- $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
80
- } else {
81
- this.modelObj[this.toolbar.propDbName] = null
82
- $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
83
- }
84
- this.dymLoadCompleted = true
85
- },
86
- },
87
- emits: ['search-grid-data', 'dynamic-source-onload'],
88
- }
89
- </script>
1
+ <template>
2
+ <span>
3
+ <dynamic-source-select
4
+ v-model:value="selectValue"
5
+ :base-props="{
6
+ multiple: toolbar.controlType === 'multiselect' ? true : false,
7
+ disabled: false,
8
+ }"
9
+ :analysis-area="1"
10
+ :entity="modelObj"
11
+ :full-width="false"
12
+ :clearable="false"
13
+ :size="toolbar.size ? toolbar.size : 'small'"
14
+ :options="{
15
+ dynamicDataSourceCode: dynamicDataSourceCode,
16
+ valueSetOptions: valueSetOptions,
17
+ isSql: true,
18
+ }"
19
+ :is-join-table="false"
20
+ @load-completed="loadCompleted"
21
+ @change="multiselectChange"
22
+ @set-value="setDynamicSourceSelectValue"
23
+ />
24
+ </span>
25
+ </template>
26
+
27
+ <script>
28
+ import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
29
+ export default {
30
+ name: 'ListToolbarDynamicSource',
31
+ components: {},
32
+ props: {
33
+ modelObj: {
34
+ type: Object,
35
+ default: null,
36
+ },
37
+ toolbar: {
38
+ type: Object,
39
+ default: null,
40
+ },
41
+ },
42
+ data() {
43
+ return {
44
+ dynamicDataSourceCode: null,
45
+ valueSetOptions: [],
46
+ dymLoadCompleted: false,
47
+ selectValue: null,
48
+ }
49
+ },
50
+ created() {
51
+ this.dynamicDataSourceCode = this.toolbar.dynamicDataSourceCode
52
+ this.valueSetOptions = this.toolbar.valueSetOptions
53
+ },
54
+ mounted() {},
55
+ beforeUnmount() {},
56
+ methods: {
57
+ multiselectChange() {
58
+ $emit(this, 'search-grid-data', this.toolbar.controlType)
59
+ },
60
+ setDynamicSourceSelectValue(selectValue) {
61
+ this.valueSetOptions.forEach((element) => {
62
+ this.modelObj[element.valueField] =
63
+ selectValue.selectedItem[element.columnName]
64
+ })
65
+ console.log(this.modelObj, '------------')
66
+ },
67
+ loadCompleted(dynamicDataSourceDto) {
68
+ if (
69
+ dynamicDataSourceDto.defaultSelect &&
70
+ dynamicDataSourceDto.options &&
71
+ dynamicDataSourceDto.options.length > 0
72
+ ) {
73
+ this.setDynamicSourceSelectValue({
74
+ selectedItem: dynamicDataSourceDto.options[0],
75
+ })
76
+ // this.modelObj[this.toolbar.propDbName] = dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
77
+ this.selectValue =
78
+ dynamicDataSourceDto.options[0][dynamicDataSourceDto.valueAttribute]
79
+ $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
80
+ } else {
81
+ this.modelObj[this.toolbar.propDbName] = null
82
+ $emit(this, 'dynamic-source-onload', dynamicDataSourceDto, this.toolbar)
83
+ }
84
+ this.dymLoadCompleted = true
85
+ },
86
+ },
87
+ emits: ['search-grid-data', 'dynamic-source-onload'],
88
+ }
89
+ </script>