cnhis-design-vue 3.1.23-beta.1 → 3.1.23-beta.12
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/README.md +123 -123
- package/es/components/big-table/index.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -20
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
- package/es/components/big-table/src/utils.d.ts +1 -1
- package/es/components/big-table/src/utils2.js +11 -37
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/src/components/PopupMenu.js +7 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +9 -5
- package/es/components/fabric-chart/src/hooks/useEvent2.js +40 -8
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/field-set/index.d.ts +1 -0
- package/es/components/field-set/src/FieldSet.js +16 -10
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -0
- package/es/components/form-config/index.d.ts +7 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +7 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +7 -0
- package/es/components/form-render/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/index.d.ts +2 -1
- package/es/components/form-render/src/components/renderer/index.js +2 -1
- package/es/components/form-render/src/components/renderer/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +88 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +237 -0
- package/es/components/form-render/src/components/renderer/search.d.ts +15 -1
- package/es/components/form-render/src/components/renderer/search.js +3 -1
- package/es/components/form-render/src/components/renderer/{cascader.d.ts → searchCascade.d.ts} +0 -0
- package/es/components/form-render/src/components/renderer/{cascader.js → searchCascade.js} +2 -0
- package/es/components/form-render/src/components/renderer/select.js +3 -1
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +4 -4
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +11 -4
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormRequest2.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +7 -0
- package/es/components/form-render/src/utils/schema2.js +1 -4
- package/es/components/iho-table/index.d.ts +100 -271
- package/es/components/iho-table/src/IhoTable.vue.d.ts +100 -271
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +9 -7
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
- package/es/components/iho-table/src/plugins/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/index.js +5 -1
- package/es/components/iho-table/src/plugins/index2.js +5 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +11 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +205 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.d.ts +4 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon2.js +17 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.d.ts +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.js +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{inputRendererPlugins.js → inputRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +40 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils2.js +20 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.js → editSeparate.js} +20 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.vue.d.ts → editSeparate.vue.d.ts} +1 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +13 -9
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.d.ts → separateUtils.d.ts} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.js → separateUtils.js} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils2.js → separateUtils2.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +16 -26
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +1 -46
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +11 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js +50 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index2.js +84 -0
- package/es/components/iho-table/src/types/index.d.ts +1 -3
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -0
- package/es/components/search-cascader/index.d.ts +196 -0
- package/es/components/search-cascader/index.js +1 -0
- package/es/components/search-cascader/index2.js +10 -0
- package/es/components/search-cascader/src/SearchCascader.js +168 -0
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +198 -0
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +45 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +134 -0
- package/es/components/search-cascader/src/components/index.d.ts +1 -0
- package/es/components/search-cascader/src/components/index.js +1 -0
- package/es/components/search-cascader/src/constants/index.d.ts +3 -0
- package/es/components/search-cascader/src/constants/index.js +1 -0
- package/es/components/search-cascader/src/constants/index2.js +3 -0
- package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
- package/es/components/search-cascader/src/hooks/index.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable2.js +7 -0
- package/es/components/search-cascader/src/utils/index.d.ts +2 -0
- package/es/components/search-cascader/src/utils/index.js +1 -0
- package/es/components/search-cascader/src/utils/index2.js +11 -0
- package/es/components/search-cascader/style/index.css +1 -0
- package/es/components/select-label/index.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +16 -4
- package/es/components/shortcut-provider/src/ShortcutProvider.js +2 -1
- package/es/components/shortcut-setter/index.d.ts +7 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -0
- package/es/shared/components/no-data/NoData.js +74 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +51 -0
- package/es/shared/components/no-data/index.d.ts +2 -0
- package/es/shared/components/no-data/index.js +1 -0
- package/es/shared/components/no-data/index2.js +2 -0
- package/es/shared/utils/index.d.ts +2 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/index2.js +17 -7
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugins.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
# 安装
|
|
2
|
-
|
|
3
|
-
```shell
|
|
4
|
-
npm i cnhis-design-vue@[版本号]
|
|
5
|
-
# or
|
|
6
|
-
yarn add cnhis-design-vue@[版本号] #推荐
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## 1.全局引入
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
// main.ts
|
|
13
|
-
import { createApp } from 'vue';
|
|
14
|
-
import App from './App.vue';
|
|
15
|
-
import 'cnhis-design-vue/es/packages/index.css';
|
|
16
|
-
import cui from 'cnhis-design-vue';
|
|
17
|
-
|
|
18
|
-
const app = createApp(App);
|
|
19
|
-
app.use(cui).mount('#app');
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## 2. 按需引入
|
|
23
|
-
|
|
24
|
-
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
|
25
|
-
|
|
26
|
-
### 2.1 样式处理方式 1(按需引入样式)
|
|
27
|
-
|
|
28
|
-
```shell
|
|
29
|
-
# 安装自动导入样式的插件
|
|
30
|
-
npm i -d vite-plugin-style-import
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
```typescript
|
|
34
|
-
// vite.config.ts
|
|
35
|
-
import { defineConfig } from 'vite';
|
|
36
|
-
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
|
37
|
-
|
|
38
|
-
export default defineConfig({
|
|
39
|
-
plugins: [
|
|
40
|
-
// ...otherPlugins
|
|
41
|
-
createStyleImportPlugin({
|
|
42
|
-
libs: [
|
|
43
|
-
{
|
|
44
|
-
libraryName: 'cnhis-design-vue',
|
|
45
|
-
esModule: true,
|
|
46
|
-
ensureStyleFile: true,
|
|
47
|
-
resolveStyle: name => {
|
|
48
|
-
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
});
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 2.2 样式处理方式 2(全局引入样式)
|
|
58
|
-
|
|
59
|
-
```typescript
|
|
60
|
-
// main.ts
|
|
61
|
-
import 'cnhis-design-vue/es/components/index.css';
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## 3. 注意
|
|
65
|
-
|
|
66
|
-
由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
// main.ts
|
|
70
|
-
import { createApp } from 'vue';
|
|
71
|
-
import App from './App.vue';
|
|
72
|
-
|
|
73
|
-
import { CGrid } from 'cnhis-design-vue';
|
|
74
|
-
// 或者
|
|
75
|
-
import { CBigTable } from 'cnhis-design-vue';
|
|
76
|
-
|
|
77
|
-
const app = createApp(App);
|
|
78
|
-
app.use(CGrid);
|
|
79
|
-
// 或者
|
|
80
|
-
app.use(CBigTable);
|
|
81
|
-
app.mount('#app');
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## 4.FAQ
|
|
85
|
-
|
|
86
|
-
### 4.1 项目打包后样式丢失
|
|
87
|
-
|
|
88
|
-
> 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
// vite.config.ts
|
|
92
|
-
import { defineConfig } from 'vite';
|
|
93
|
-
|
|
94
|
-
export default defineConfig({
|
|
95
|
-
rollupOptions: {
|
|
96
|
-
// ..otherOptions
|
|
97
|
-
output: {
|
|
98
|
-
dir: './dist',
|
|
99
|
-
manualChunks(id: string) {
|
|
100
|
-
if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
|
|
101
|
-
return 'vendor';
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### 4.2 找不到文件
|
|
110
|
-
|
|
111
|
-
> 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
|
|
112
|
-
|
|
113
|
-
```javascript
|
|
114
|
-
// vite.config.ts
|
|
115
|
-
const config = {
|
|
116
|
-
// ...otherOptions
|
|
117
|
-
resolve: {
|
|
118
|
-
// ...otherOptions
|
|
119
|
-
// 如果没有配置, 则不用考虑
|
|
120
|
-
extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
```
|
|
1
|
+
# 安装
|
|
2
|
+
|
|
3
|
+
```shell
|
|
4
|
+
npm i cnhis-design-vue@[版本号]
|
|
5
|
+
# or
|
|
6
|
+
yarn add cnhis-design-vue@[版本号] #推荐
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 1.全局引入
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
// main.ts
|
|
13
|
+
import { createApp } from 'vue';
|
|
14
|
+
import App from './App.vue';
|
|
15
|
+
import 'cnhis-design-vue/es/packages/index.css';
|
|
16
|
+
import cui from 'cnhis-design-vue';
|
|
17
|
+
|
|
18
|
+
const app = createApp(App);
|
|
19
|
+
app.use(cui).mount('#app');
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 2. 按需引入
|
|
23
|
+
|
|
24
|
+
组件现在支持了自动按需引入, 但是样式文件需要额外的处理
|
|
25
|
+
|
|
26
|
+
### 2.1 样式处理方式 1(按需引入样式)
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
# 安装自动导入样式的插件
|
|
30
|
+
npm i -d vite-plugin-style-import
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// vite.config.ts
|
|
35
|
+
import { defineConfig } from 'vite';
|
|
36
|
+
import { createStyleImportPlugin } from 'vite-plugin-style-import';
|
|
37
|
+
|
|
38
|
+
export default defineConfig({
|
|
39
|
+
plugins: [
|
|
40
|
+
// ...otherPlugins
|
|
41
|
+
createStyleImportPlugin({
|
|
42
|
+
libs: [
|
|
43
|
+
{
|
|
44
|
+
libraryName: 'cnhis-design-vue',
|
|
45
|
+
esModule: true,
|
|
46
|
+
ensureStyleFile: true,
|
|
47
|
+
resolveStyle: name => {
|
|
48
|
+
return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 2.2 样式处理方式 2(全局引入样式)
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
// main.ts
|
|
61
|
+
import 'cnhis-design-vue/es/components/index.css';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 3. 注意
|
|
65
|
+
|
|
66
|
+
由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
// main.ts
|
|
70
|
+
import { createApp } from 'vue';
|
|
71
|
+
import App from './App.vue';
|
|
72
|
+
|
|
73
|
+
import { CGrid } from 'cnhis-design-vue';
|
|
74
|
+
// 或者
|
|
75
|
+
import { CBigTable } from 'cnhis-design-vue';
|
|
76
|
+
|
|
77
|
+
const app = createApp(App);
|
|
78
|
+
app.use(CGrid);
|
|
79
|
+
// 或者
|
|
80
|
+
app.use(CBigTable);
|
|
81
|
+
app.mount('#app');
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 4.FAQ
|
|
85
|
+
|
|
86
|
+
### 4.1 项目打包后样式丢失
|
|
87
|
+
|
|
88
|
+
> 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
// vite.config.ts
|
|
92
|
+
import { defineConfig } from 'vite';
|
|
93
|
+
|
|
94
|
+
export default defineConfig({
|
|
95
|
+
rollupOptions: {
|
|
96
|
+
// ..otherOptions
|
|
97
|
+
output: {
|
|
98
|
+
dir: './dist',
|
|
99
|
+
manualChunks(id: string) {
|
|
100
|
+
if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
|
|
101
|
+
return 'vendor';
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 4.2 找不到文件
|
|
110
|
+
|
|
111
|
+
> 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
// vite.config.ts
|
|
115
|
+
const config = {
|
|
116
|
+
// ...otherOptions
|
|
117
|
+
resolve: {
|
|
118
|
+
// ...otherOptions
|
|
119
|
+
// 如果没有配置, 则不用考虑
|
|
120
|
+
extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
```
|
|
@@ -643,9 +643,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
643
643
|
userInfo: Record<string, any>;
|
|
644
644
|
sysImageSize: unknown[];
|
|
645
645
|
}>;
|
|
646
|
-
handleSeqConfig: import("vue").ComputedRef<{
|
|
647
|
-
startIndex: number;
|
|
648
|
-
}>;
|
|
649
646
|
treeConfig: import("vue").ComputedRef<null>;
|
|
650
647
|
hideAllWrap: (e: any) => void;
|
|
651
648
|
bindDocumentClick: () => void;
|
|
@@ -641,9 +641,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
641
641
|
userInfo: Record<string, any>;
|
|
642
642
|
sysImageSize: unknown[];
|
|
643
643
|
}>;
|
|
644
|
-
handleSeqConfig: import("vue").ComputedRef<{
|
|
645
|
-
startIndex: number;
|
|
646
|
-
}>;
|
|
647
644
|
treeConfig: import("vue").ComputedRef<null>;
|
|
648
645
|
hideAllWrap: (e: any) => void;
|
|
649
646
|
bindDocumentClick: () => void;
|
|
@@ -136,21 +136,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
sysImageSize: props.sysImageSize || {}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
const handleSeqConfig = computed(() => {
|
|
140
|
-
if (props.isNestTable)
|
|
141
|
-
return {
|
|
142
|
-
startIndex: 0
|
|
143
|
-
};
|
|
144
|
-
if (props.isBatchEditing) {
|
|
145
|
-
return {
|
|
146
|
-
startIndex: 0
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
let startIndex = (props.pageVO.pageIndex - 1) * props.pageVO.pageSize;
|
|
150
|
-
return {
|
|
151
|
-
startIndex: startIndex < 0 ? 0 : startIndex
|
|
152
|
-
};
|
|
153
|
-
});
|
|
154
139
|
const treeConfig = computed(() => {
|
|
155
140
|
let result = null;
|
|
156
141
|
let {
|
|
@@ -2149,8 +2134,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2149
2134
|
}, {
|
|
2150
2135
|
immediate: true
|
|
2151
2136
|
});
|
|
2152
|
-
|
|
2153
|
-
|
|
2137
|
+
watch([() => props.data, () => {
|
|
2138
|
+
var _a;
|
|
2139
|
+
return (_a = props.data) == null ? void 0 : _a.length;
|
|
2140
|
+
}], async ([value]) => {
|
|
2141
|
+
await nextTick();
|
|
2142
|
+
loadData(value);
|
|
2143
|
+
}, {
|
|
2144
|
+
immediate: true
|
|
2154
2145
|
});
|
|
2155
2146
|
watch(() => currentCheckedKeys, (val) => {
|
|
2156
2147
|
setVisibleCheckAllWrap(state, props, currentCheckedKeys.value);
|
|
@@ -2314,10 +2305,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2314
2305
|
"mouse-config": {
|
|
2315
2306
|
selected: ((_a = _ctx.columnConfig.keyboardConfig) == null ? void 0 : _a.isEdit) ? true : false
|
|
2316
2307
|
},
|
|
2317
|
-
"seq-config": unref(handleSeqConfig),
|
|
2318
2308
|
"tree-config": unref(treeConfig),
|
|
2319
2309
|
"row-class-name": getRowClassName,
|
|
2320
|
-
"cell-class-name": _ctx.columnConfig.cellClassName || null,
|
|
2321
2310
|
"row-config": {
|
|
2322
2311
|
...state.rowConfig,
|
|
2323
2312
|
...unref(getAttr)("row-config")
|
|
@@ -2419,7 +2408,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2419
2408
|
}
|
|
2420
2409
|
})]),
|
|
2421
2410
|
_: 3
|
|
2422
|
-
}, 16, ["height", "mouse-config", "
|
|
2411
|
+
}, 16, ["height", "mouse-config", "tree-config", "row-config", "show-footer", "sort-config", "tooltip-config", "checkbox-config", "radio-config", "scroll-y", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2423
2412
|
class: "refresh",
|
|
2424
2413
|
onClick: hanldeClickRefresh
|
|
2425
2414
|
}, [createVNode(unref(NIcon), {
|
|
@@ -5,7 +5,7 @@ export declare const getMapVal: (row: any, item: any) => any;
|
|
|
5
5
|
export declare const getageShowType: (row: any, item: any) => any;
|
|
6
6
|
export declare const reScrollFilterWrap: () => void;
|
|
7
7
|
export declare const showFilter: (field: any, columnName: any, event: any, props: any, state: any) => false | undefined;
|
|
8
|
-
export declare const handleGroupColums: (columns: any, props: any) => any;
|
|
8
|
+
export declare const handleGroupColums: (columns: any, props: any) => any[];
|
|
9
9
|
export declare const handlerInitSearchItem: (arr: any) => void;
|
|
10
10
|
export declare const generateEditRender: (fieldItem: any) => {
|
|
11
11
|
name: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import img from '../../../shared/assets/img/xb_small.js';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
3
|
import 'moment';
|
|
4
|
-
import
|
|
4
|
+
import { nextTick } from 'vue';
|
|
5
|
+
import { groupTraverser, createRowGroupList } from '../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js';
|
|
5
6
|
|
|
6
7
|
const isJSON = (str) => {
|
|
7
8
|
if (typeof str == "string") {
|
|
@@ -166,43 +167,16 @@ const showFilter = (field, columnName, event, props, state) => {
|
|
|
166
167
|
field.indeterminate = !!len && len !== field.setting.showSetting.length;
|
|
167
168
|
field.searchFilterText = "";
|
|
168
169
|
};
|
|
169
|
-
const handleRowColumns = (rowColumns, columns, key) => {
|
|
170
|
-
rowColumns.map((item) => {
|
|
171
|
-
var _a;
|
|
172
|
-
const children = [];
|
|
173
|
-
let spliceIndex = -1;
|
|
174
|
-
const indexArr = [];
|
|
175
|
-
((_a = item.list) == null ? void 0 : _a.length) && item.list.forEach((v) => {
|
|
176
|
-
const matchItem = columns == null ? void 0 : columns.find((column) => column[key] === v);
|
|
177
|
-
if (matchItem) {
|
|
178
|
-
const matchIndex = columns.findIndex((column) => column[key] === v);
|
|
179
|
-
indexArr.push(matchIndex);
|
|
180
|
-
delete matchItem.fixed;
|
|
181
|
-
children.push(matchItem);
|
|
182
|
-
columns.splice(matchIndex, 1);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
const obj = {
|
|
186
|
-
title: item.title,
|
|
187
|
-
align: "center",
|
|
188
|
-
children
|
|
189
|
-
};
|
|
190
|
-
spliceIndex = Math.min(...indexArr);
|
|
191
|
-
spliceIndex > -1 && columns.splice(spliceIndex, 0, obj);
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
170
|
const handleGroupColums = (columns, props) => {
|
|
195
171
|
const { rowGroupSetting } = props;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
handleRowColumns(secondRowGroup, columns, "title");
|
|
205
|
-
return columns;
|
|
172
|
+
return groupTraverser(createRowGroupList(rowGroupSetting, columns, (field) => field.columnName || field.type), (fieldName, isBlock) => {
|
|
173
|
+
if (isBlock)
|
|
174
|
+
return { field: fieldName, title: fieldName, align: "center" };
|
|
175
|
+
return fieldSearcher(fieldName, columns);
|
|
176
|
+
});
|
|
177
|
+
function fieldSearcher(fieldName, fieldList) {
|
|
178
|
+
return fieldList.find((field) => (field.columnName || field.type) === fieldName);
|
|
179
|
+
}
|
|
206
180
|
};
|
|
207
181
|
const handlerInitSearchItem = (arr) => {
|
|
208
182
|
if (!Array.isArray(arr))
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -87,6 +87,11 @@ var PopupMenu = defineComponent({
|
|
|
87
87
|
watch(() => props.show, (value) => {
|
|
88
88
|
if (value) {
|
|
89
89
|
setNoShow = true;
|
|
90
|
+
props.list.forEach((item) => {
|
|
91
|
+
if (typeof item === "object" && Reflect.has(item, "value") && typeof item.value !== "boolean") {
|
|
92
|
+
item.value = void 0;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
90
95
|
}
|
|
91
96
|
});
|
|
92
97
|
return () => {
|
|
@@ -98,12 +103,12 @@ var PopupMenu = defineComponent({
|
|
|
98
103
|
"class": "c-fabric-chart-popup-menu",
|
|
99
104
|
"style": pointStyle.value
|
|
100
105
|
}, [props.list.map((item) => {
|
|
101
|
-
return createVNode("li", {
|
|
106
|
+
return props.show ? createVNode("li", {
|
|
102
107
|
"class": {
|
|
103
108
|
"no-click": setNoClick(item)
|
|
104
109
|
},
|
|
105
110
|
"onClick": (event) => clickItem(event, item)
|
|
106
|
-
}, [getItemContent(item)]);
|
|
111
|
+
}, [getItemContent(item)]) : null;
|
|
107
112
|
})]), [[vShow, props.show]])]
|
|
108
113
|
});
|
|
109
114
|
};
|
|
@@ -20,6 +20,12 @@ function getPointArr(arr) {
|
|
|
20
20
|
return pre;
|
|
21
21
|
}, []);
|
|
22
22
|
}
|
|
23
|
+
function deleteProperty(data, list) {
|
|
24
|
+
list.map((v) => v.type).forEach((key) => {
|
|
25
|
+
if (Reflect.has(data, key))
|
|
26
|
+
Reflect.deleteProperty(data, key);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
23
29
|
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem) {
|
|
24
30
|
useGrid(canvas, propItems);
|
|
25
31
|
const {
|
|
@@ -138,7 +144,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
138
144
|
if (event2.button === 3) {
|
|
139
145
|
const { x = 0, y = 0 } = event2.pointer || {};
|
|
140
146
|
if (x >= originX && x <= endX && y >= originY && y <= endY) {
|
|
141
|
-
pointTipProps.show = false;
|
|
142
147
|
pointMenuProps.point = { x, y };
|
|
143
148
|
pointMenuProps.show = true;
|
|
144
149
|
const { type } = ((_a = event2.target) == null ? void 0 : _a.origin) || {};
|
|
@@ -552,10 +557,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
552
557
|
...item.origin
|
|
553
558
|
});
|
|
554
559
|
} else {
|
|
555
|
-
const data = {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
};
|
|
560
|
+
const data = { ...target.origin.data };
|
|
561
|
+
deleteProperty(data, TEMPERATURE_MENU);
|
|
562
|
+
deleteProperty(data, PAIN_MENU);
|
|
559
563
|
data[`${item.type}`] = item.value;
|
|
560
564
|
if (target.origin.type === "temperature") {
|
|
561
565
|
data["key"] = target.origin.key;
|
|
@@ -27,14 +27,10 @@ function useCanvasEvent(canvas, propItems, emits) {
|
|
|
27
27
|
...selectionStyle
|
|
28
28
|
});
|
|
29
29
|
canvas.value.add(rect);
|
|
30
|
-
rect.on("mousedown", () => {
|
|
31
|
-
emits("select", key);
|
|
32
|
-
});
|
|
33
30
|
return rect;
|
|
34
31
|
}
|
|
32
|
+
let selections = [];
|
|
35
33
|
function initSelection() {
|
|
36
|
-
if (typeof (selectionStyle == null ? void 0 : selectionStyle.evented) === "boolean" && !(selectionStyle == null ? void 0 : selectionStyle.evented))
|
|
37
|
-
return;
|
|
38
34
|
const selections2 = [];
|
|
39
35
|
selections2.push(drawRect({
|
|
40
36
|
left: iconsWidth,
|
|
@@ -73,17 +69,53 @@ function useCanvasEvent(canvas, propItems, emits) {
|
|
|
73
69
|
width: endX - originX,
|
|
74
70
|
height: endY - originY - 3
|
|
75
71
|
}, "grid"));
|
|
72
|
+
selections2.forEach((obj) => {
|
|
73
|
+
if (obj.key.endsWith("All")) {
|
|
74
|
+
obj.sendToBack();
|
|
75
|
+
obj.on("mouseup", (event) => {
|
|
76
|
+
const { button, pointer } = event;
|
|
77
|
+
if (button == 1) {
|
|
78
|
+
const _key = obj.key.replace("All", "");
|
|
79
|
+
const key = pointer.x <= originX ? _key + "Title" : _key;
|
|
80
|
+
select(key);
|
|
81
|
+
emits("select", key);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
} else {
|
|
85
|
+
obj.on("mousedown", () => {
|
|
86
|
+
emits("select", obj.key);
|
|
87
|
+
});
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
obj.bringToFront();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
76
93
|
canvas.value.renderAll();
|
|
77
94
|
return selections2;
|
|
78
95
|
}
|
|
79
|
-
|
|
96
|
+
function addSelectionListener() {
|
|
97
|
+
canvas.value.on("selection:cleared", selectionCB);
|
|
98
|
+
canvas.value.on("selection:updated", selectionCB);
|
|
99
|
+
function selectionCB(event) {
|
|
100
|
+
const { deselected = [] } = event;
|
|
101
|
+
deselected.forEach((obj) => {
|
|
102
|
+
obj.key.endsWith("All") && obj.sendToBack();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
80
106
|
function select(key) {
|
|
81
|
-
canvas.value.discardActiveObject();
|
|
82
|
-
canvas.value.renderAll();
|
|
107
|
+
canvas.value.discardActiveObject().renderAll();
|
|
83
108
|
const obj = selections == null ? void 0 : selections.find((obj2) => obj2.key === key);
|
|
84
109
|
obj == null ? void 0 : obj.bringToFront();
|
|
85
110
|
obj && canvas.value.setActiveObject(obj);
|
|
86
111
|
}
|
|
112
|
+
function init() {
|
|
113
|
+
if (typeof (selectionStyle == null ? void 0 : selectionStyle.evented) === "boolean" && !(selectionStyle == null ? void 0 : selectionStyle.evented))
|
|
114
|
+
return;
|
|
115
|
+
selections = initSelection();
|
|
116
|
+
addSelectionListener();
|
|
117
|
+
}
|
|
118
|
+
init();
|
|
87
119
|
return { select };
|
|
88
120
|
}
|
|
89
121
|
|