cnhis-design-vue 3.2.7-beta.1 → 3.2.7-beta.11
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 +87 -87
- package/es/components/classification/index.d.ts +41 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +41 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +41 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +41 -1
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +160 -45
- package/es/components/iho-chat/src/Index.vue.d.ts +160 -45
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +25 -10
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +29 -10
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +39 -11
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +21 -5
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +25 -10
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/index.css +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +28 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +2 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +28 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +28 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md
CHANGED
@@ -1,87 +1,87 @@
|
|
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.FAQ
|
65
|
-
|
66
|
-
### 3.1 项目打包后样式丢失
|
67
|
-
|
68
|
-
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
-
|
70
|
-
```typescript
|
71
|
-
// vite.config.ts
|
72
|
-
import { defineConfig } from 'vite';
|
73
|
-
|
74
|
-
export default defineConfig({
|
75
|
-
build: {
|
76
|
-
rollupOptions: {
|
77
|
-
// ..otherOptions
|
78
|
-
output: {
|
79
|
-
dir: './dist',
|
80
|
-
manualChunks: {
|
81
|
-
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
});
|
87
|
-
```
|
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.FAQ
|
65
|
+
|
66
|
+
### 3.1 项目打包后样式丢失
|
67
|
+
|
68
|
+
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
69
|
+
|
70
|
+
```typescript
|
71
|
+
// vite.config.ts
|
72
|
+
import { defineConfig } from 'vite';
|
73
|
+
|
74
|
+
export default defineConfig({
|
75
|
+
build: {
|
76
|
+
rollupOptions: {
|
77
|
+
// ..otherOptions
|
78
|
+
output: {
|
79
|
+
dir: './dist',
|
80
|
+
manualChunks: {
|
81
|
+
'cnhis-vendor': ['cnhis-design-vue']
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
});
|
87
|
+
```
|
@@ -829,6 +829,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
829
829
|
allowedInvalidValue: {
|
830
830
|
type: StringConstructor;
|
831
831
|
};
|
832
|
+
to: {
|
833
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
834
|
+
default: string;
|
835
|
+
};
|
832
836
|
}, {
|
833
837
|
attrs: {
|
834
838
|
[x: string]: unknown;
|
@@ -849,6 +853,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
849
853
|
allowedInvalidValue: {
|
850
854
|
type: StringConstructor;
|
851
855
|
};
|
856
|
+
to: {
|
857
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
858
|
+
default: string;
|
859
|
+
};
|
852
860
|
}>> & {
|
853
861
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
854
862
|
}>>;
|
@@ -885,10 +893,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
885
893
|
allowedInvalidValue: {
|
886
894
|
type: StringConstructor;
|
887
895
|
};
|
896
|
+
to: {
|
897
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
898
|
+
default: string;
|
899
|
+
};
|
888
900
|
}>> & {
|
889
901
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
890
902
|
}, {
|
891
903
|
updateUnchangedValue: boolean;
|
904
|
+
to: string | false | HTMLElement;
|
892
905
|
}>>;
|
893
906
|
NSelect: any;
|
894
907
|
WidgetValEnums: {
|
@@ -1135,7 +1148,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1135
1148
|
isMultiple: import("vue").ComputedRef<boolean>;
|
1136
1149
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
1137
1150
|
isLastPage: import("vue").ComputedRef<boolean>;
|
1138
|
-
|
1151
|
+
originList: import("vue").ComputedRef<any>;
|
1152
|
+
valueCp: import("vue").ComputedRef<any>;
|
1139
1153
|
isInitRequest: import("vue").ComputedRef<boolean>;
|
1140
1154
|
setOptionActive: (selectIds: string[]) => void;
|
1141
1155
|
handleUpdateSelect: (value: string[] | null) => void;
|
@@ -1462,6 +1476,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1462
1476
|
allowedInvalidValue: {
|
1463
1477
|
type: StringConstructor;
|
1464
1478
|
};
|
1479
|
+
to: {
|
1480
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1481
|
+
default: string;
|
1482
|
+
};
|
1465
1483
|
}, {
|
1466
1484
|
attrs: {
|
1467
1485
|
[x: string]: unknown;
|
@@ -1482,6 +1500,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1482
1500
|
allowedInvalidValue: {
|
1483
1501
|
type: StringConstructor;
|
1484
1502
|
};
|
1503
|
+
to: {
|
1504
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1505
|
+
default: string;
|
1506
|
+
};
|
1485
1507
|
}>> & {
|
1486
1508
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1487
1509
|
}>>;
|
@@ -1518,10 +1540,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1518
1540
|
allowedInvalidValue: {
|
1519
1541
|
type: StringConstructor;
|
1520
1542
|
};
|
1543
|
+
to: {
|
1544
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1545
|
+
default: string;
|
1546
|
+
};
|
1521
1547
|
}>> & {
|
1522
1548
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1523
1549
|
}, {
|
1524
1550
|
updateUnchangedValue: boolean;
|
1551
|
+
to: string | false | HTMLElement;
|
1525
1552
|
}>>;
|
1526
1553
|
WidgetValEnums: {
|
1527
1554
|
CUSTOM: string;
|
@@ -1911,6 +1938,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1911
1938
|
allowedInvalidValue: {
|
1912
1939
|
type: StringConstructor;
|
1913
1940
|
};
|
1941
|
+
to: {
|
1942
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1943
|
+
default: string;
|
1944
|
+
};
|
1914
1945
|
}, {
|
1915
1946
|
attrs: {
|
1916
1947
|
[x: string]: unknown;
|
@@ -1931,6 +1962,10 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1931
1962
|
allowedInvalidValue: {
|
1932
1963
|
type: StringConstructor;
|
1933
1964
|
};
|
1965
|
+
to: {
|
1966
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1967
|
+
default: string;
|
1968
|
+
};
|
1934
1969
|
}>> & {
|
1935
1970
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1936
1971
|
}>>;
|
@@ -1967,10 +2002,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1967
2002
|
allowedInvalidValue: {
|
1968
2003
|
type: StringConstructor;
|
1969
2004
|
};
|
2005
|
+
to: {
|
2006
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
2007
|
+
default: string;
|
2008
|
+
};
|
1970
2009
|
}>> & {
|
1971
2010
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1972
2011
|
}, {
|
1973
2012
|
updateUnchangedValue: boolean;
|
2013
|
+
to: string | false | HTMLElement;
|
1974
2014
|
}>>;
|
1975
2015
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1976
2016
|
componentCfg: {
|
@@ -293,6 +293,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
293
293
|
allowedInvalidValue: {
|
294
294
|
type: StringConstructor;
|
295
295
|
};
|
296
|
+
to: {
|
297
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
298
|
+
default: string;
|
299
|
+
};
|
296
300
|
}, {
|
297
301
|
attrs: {
|
298
302
|
[x: string]: unknown;
|
@@ -313,6 +317,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
313
317
|
allowedInvalidValue: {
|
314
318
|
type: StringConstructor;
|
315
319
|
};
|
320
|
+
to: {
|
321
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
322
|
+
default: string;
|
323
|
+
};
|
316
324
|
}>> & {
|
317
325
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
318
326
|
}>>;
|
@@ -349,10 +357,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
349
357
|
allowedInvalidValue: {
|
350
358
|
type: StringConstructor;
|
351
359
|
};
|
360
|
+
to: {
|
361
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
362
|
+
default: string;
|
363
|
+
};
|
352
364
|
}>> & {
|
353
365
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
354
366
|
}, {
|
355
367
|
updateUnchangedValue: boolean;
|
368
|
+
to: string | false | HTMLElement;
|
356
369
|
}>>;
|
357
370
|
NSelect: any;
|
358
371
|
WidgetValEnums: {
|
@@ -599,7 +612,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
599
612
|
isMultiple: import("vue").ComputedRef<boolean>;
|
600
613
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
601
614
|
isLastPage: import("vue").ComputedRef<boolean>;
|
602
|
-
|
615
|
+
originList: import("vue").ComputedRef<any>;
|
616
|
+
valueCp: import("vue").ComputedRef<any>;
|
603
617
|
isInitRequest: import("vue").ComputedRef<boolean>;
|
604
618
|
setOptionActive: (selectIds: string[]) => void;
|
605
619
|
handleUpdateSelect: (value: string[] | null) => void;
|
@@ -926,6 +940,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
926
940
|
allowedInvalidValue: {
|
927
941
|
type: StringConstructor;
|
928
942
|
};
|
943
|
+
to: {
|
944
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
945
|
+
default: string;
|
946
|
+
};
|
929
947
|
}, {
|
930
948
|
attrs: {
|
931
949
|
[x: string]: unknown;
|
@@ -946,6 +964,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
946
964
|
allowedInvalidValue: {
|
947
965
|
type: StringConstructor;
|
948
966
|
};
|
967
|
+
to: {
|
968
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
969
|
+
default: string;
|
970
|
+
};
|
949
971
|
}>> & {
|
950
972
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
951
973
|
}>>;
|
@@ -982,10 +1004,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
982
1004
|
allowedInvalidValue: {
|
983
1005
|
type: StringConstructor;
|
984
1006
|
};
|
1007
|
+
to: {
|
1008
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1009
|
+
default: string;
|
1010
|
+
};
|
985
1011
|
}>> & {
|
986
1012
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
987
1013
|
}, {
|
988
1014
|
updateUnchangedValue: boolean;
|
1015
|
+
to: string | false | HTMLElement;
|
989
1016
|
}>>;
|
990
1017
|
WidgetValEnums: {
|
991
1018
|
CUSTOM: string;
|
@@ -1375,6 +1402,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1375
1402
|
allowedInvalidValue: {
|
1376
1403
|
type: StringConstructor;
|
1377
1404
|
};
|
1405
|
+
to: {
|
1406
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1407
|
+
default: string;
|
1408
|
+
};
|
1378
1409
|
}, {
|
1379
1410
|
attrs: {
|
1380
1411
|
[x: string]: unknown;
|
@@ -1395,6 +1426,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1395
1426
|
allowedInvalidValue: {
|
1396
1427
|
type: StringConstructor;
|
1397
1428
|
};
|
1429
|
+
to: {
|
1430
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1431
|
+
default: string;
|
1432
|
+
};
|
1398
1433
|
}>> & {
|
1399
1434
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1400
1435
|
}>>;
|
@@ -1431,10 +1466,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1431
1466
|
allowedInvalidValue: {
|
1432
1467
|
type: StringConstructor;
|
1433
1468
|
};
|
1469
|
+
to: {
|
1470
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1471
|
+
default: string;
|
1472
|
+
};
|
1434
1473
|
}>> & {
|
1435
1474
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1436
1475
|
}, {
|
1437
1476
|
updateUnchangedValue: boolean;
|
1477
|
+
to: string | false | HTMLElement;
|
1438
1478
|
}>>;
|
1439
1479
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1440
1480
|
componentCfg: {
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as i,inject as t,onBeforeUnmount as l,watch as a,openBlock as
|
1
|
+
import{defineComponent as e,ref as i,inject as t,onBeforeUnmount as l,watch as a,openBlock as o,createBlock as n,unref as s,normalizeClass as d,withCtx as c,createVNode as r,normalizeStyle as u,createElementVNode as f,createTextVNode as h,createElementBlock as v,Fragment as m,createCommentVNode as p,mergeProps as x}from"vue";import{NModal as b,NCard as y,NButton as g}from"naive-ui";import{InjectionClassifyfilterType as L}from"../../../../table-filter/src/constants/index.js";import k from"../../../../table-filter/src/components/classify-filter/index.vue.js";import z from"../../../../table-filter/src/components/bi-filter/index.vue.js";const A={class:"svg-wrap"},_={class:"flex_right"};var w=e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelSaveAdd"],setup(e,{expose:w,emit:C}){const F=e,S=i(F.visible),H=i(!1),T=i("860px");let $=i({maxHeight:"496px",height:"496px"}),j=i(null),R=null;const B=t(L);function I(){N(),R=setTimeout((()=>{j&&j.value.handleInitConditions()}),30)}function N(){R&&clearTimeout(R)}function P(){j&&j.value.saveAdd()}function U(){S.value=!1,C("cancelSaveAdd"),T.value="860px",$.value={height:"496px",maxHeight:"496px"},H.value=!1,j&&j.value.cancelSaveAdd()}function q(){H.value=!H.value;let e=document.body.clientHeight;"860px"===T.value?(T.value="100%",$.value.maxHeight=`${e}px`,$.value.height=`${e}px`):(T.value="860px",$.value.maxHeight="496px",$.value.height="")}return l((()=>{N()})),a((()=>F.visible),(e=>{S.value=e,e&&I()})),w({cancelSaveAdd:U}),(e,i)=>(o(),n(s(b),{class:d(["classification-modal-block standard-modal standard-modal-white search-filter-modal",{"modal-screen":H.value}]),show:S.value,"onUpdate:show":i[0]||(i[0]=e=>S.value=e),maskClosable:!1,width:T.value,bodyStyle:s($),closable:!1,to:"body",centered:"",onPositiveClick:P,onNegativeClick:U},{default:c((()=>[r(s(y),{style:u({width:T.value,...s($)}),title:F.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":c((()=>[f("div",A,[f("i",{onClick:q,class:d(["iconfont-table-filter",H.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:U,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:c((()=>[f("div",_,[r(s(g),{onClick:U},{default:c((()=>[h("取消")])),_:1}),r(s(g),{type:"info",onClick:P},{default:c((()=>[h("保存")])),_:1})])])),default:c((()=>["1"===s(B)?(o(),v(m,{key:0},[p(" 默认配置弹窗 "),r(k,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):"2"===s(B)?(o(),v(m,{key:1},[p(" bi配置弹窗 "),r(z,x(e.$attrs,{ref_key:"conditionApiRef",ref:j,searchFieldList:F.searchFieldList,conditionList:F.conditionList}),null,16,["searchFieldList","conditionList"])],64)):p("v-if",!0)])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{w as default};
|
@@ -587,6 +587,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
587
587
|
allowedInvalidValue: {
|
588
588
|
type: StringConstructor;
|
589
589
|
};
|
590
|
+
to: {
|
591
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
592
|
+
default: string;
|
593
|
+
};
|
590
594
|
}, {
|
591
595
|
attrs: {
|
592
596
|
[x: string]: unknown;
|
@@ -607,6 +611,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
607
611
|
allowedInvalidValue: {
|
608
612
|
type: StringConstructor;
|
609
613
|
};
|
614
|
+
to: {
|
615
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
616
|
+
default: string;
|
617
|
+
};
|
610
618
|
}>> & {
|
611
619
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
612
620
|
}>>;
|
@@ -643,10 +651,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
643
651
|
allowedInvalidValue: {
|
644
652
|
type: StringConstructor;
|
645
653
|
};
|
654
|
+
to: {
|
655
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
656
|
+
default: string;
|
657
|
+
};
|
646
658
|
}>> & {
|
647
659
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
648
660
|
}, {
|
649
661
|
updateUnchangedValue: boolean;
|
662
|
+
to: string | false | HTMLElement;
|
650
663
|
}>>;
|
651
664
|
NSelect: any;
|
652
665
|
WidgetValEnums: {
|
@@ -893,7 +906,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
893
906
|
isMultiple: import("vue").ComputedRef<boolean>;
|
894
907
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
895
908
|
isLastPage: import("vue").ComputedRef<boolean>;
|
896
|
-
|
909
|
+
originList: import("vue").ComputedRef<any>;
|
910
|
+
valueCp: import("vue").ComputedRef<any>;
|
897
911
|
isInitRequest: import("vue").ComputedRef<boolean>;
|
898
912
|
setOptionActive: (selectIds: string[]) => void;
|
899
913
|
handleUpdateSelect: (value: string[] | null) => void;
|
@@ -1220,6 +1234,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1220
1234
|
allowedInvalidValue: {
|
1221
1235
|
type: StringConstructor;
|
1222
1236
|
};
|
1237
|
+
to: {
|
1238
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1239
|
+
default: string;
|
1240
|
+
};
|
1223
1241
|
}, {
|
1224
1242
|
attrs: {
|
1225
1243
|
[x: string]: unknown;
|
@@ -1240,6 +1258,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1240
1258
|
allowedInvalidValue: {
|
1241
1259
|
type: StringConstructor;
|
1242
1260
|
};
|
1261
|
+
to: {
|
1262
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1263
|
+
default: string;
|
1264
|
+
};
|
1243
1265
|
}>> & {
|
1244
1266
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1245
1267
|
}>>;
|
@@ -1276,10 +1298,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1276
1298
|
allowedInvalidValue: {
|
1277
1299
|
type: StringConstructor;
|
1278
1300
|
};
|
1301
|
+
to: {
|
1302
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1303
|
+
default: string;
|
1304
|
+
};
|
1279
1305
|
}>> & {
|
1280
1306
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1281
1307
|
}, {
|
1282
1308
|
updateUnchangedValue: boolean;
|
1309
|
+
to: string | false | HTMLElement;
|
1283
1310
|
}>>;
|
1284
1311
|
WidgetValEnums: {
|
1285
1312
|
CUSTOM: string;
|
@@ -1669,6 +1696,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1669
1696
|
allowedInvalidValue: {
|
1670
1697
|
type: StringConstructor;
|
1671
1698
|
};
|
1699
|
+
to: {
|
1700
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1701
|
+
default: string;
|
1702
|
+
};
|
1672
1703
|
}, {
|
1673
1704
|
attrs: {
|
1674
1705
|
[x: string]: unknown;
|
@@ -1689,6 +1720,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1689
1720
|
allowedInvalidValue: {
|
1690
1721
|
type: StringConstructor;
|
1691
1722
|
};
|
1723
|
+
to: {
|
1724
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1725
|
+
default: string;
|
1726
|
+
};
|
1692
1727
|
}>> & {
|
1693
1728
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1694
1729
|
}>>;
|
@@ -1725,10 +1760,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1725
1760
|
allowedInvalidValue: {
|
1726
1761
|
type: StringConstructor;
|
1727
1762
|
};
|
1763
|
+
to: {
|
1764
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1765
|
+
default: string;
|
1766
|
+
};
|
1728
1767
|
}>> & {
|
1729
1768
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1730
1769
|
}, {
|
1731
1770
|
updateUnchangedValue: boolean;
|
1771
|
+
to: string | false | HTMLElement;
|
1732
1772
|
}>>;
|
1733
1773
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1734
1774
|
componentCfg: {
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,inject as i,watch as l,openBlock as a,createBlock as n,unref as o,normalizeClass as s,withCtx as c,createVNode as r,normalizeStyle as u,createSlots as d,createElementVNode as p,withDirectives as v,createTextVNode as m,toDisplayString as h,createCommentVNode as f,withModifiers as y,vShow as g,createElementBlock as w,renderSlot as k}from"vue";import{NModal as x,NCard as b,NTooltip as C,NIcon as z,NSwitch as S,NPopconfirm as _,NButton as D}from"naive-ui";import{ReorderTwo as I,Brush as E,DocumentOutline as N}from"@vicons/ionicons5";import P from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import{cloneDeep as M}from"lodash-es";const U={class:"svg-wrap"},V={class:"flex_between"},B={class:"table-modal-list"},O=p("div",{class:"list-title"},[p("span",{class:"list-title-item",style:{width:"6%"}}),p("span",{class:"list-title-item"}," 名称 "),p("span",{class:"list-title-item"}," 父类名称 "),p("span",{class:"list-title-item"}," 是否显示 "),p("span",{class:"list-title-item"}," 设置为默认 "),p("span",{class:"list-title-item"}," 操作 ")],-1),j=["onClick"],Y={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},$=["title"],A=["title"],H={class:"list-content-item list-content-switch"},J={class:"list-content-item list-content-radio"},q={class:"list-content-item"},G={key:0},K=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var L=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(e,{emit:L}){const Q=e,R=t([]),T=t(Q.visibleIn),W=t(!1),X=t("other"==Q.type?"100%":"860px"),Z=t("654px"),ee=i(F);function te(){var e;Q.type&&(le(),L("handleOk","search"==(e=Q.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(R.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function ie(){T.value=!1,le(),L("close")}function le(){X.value="860px",Z.value="654px",W.value=!1}function ae(){W.value=!W.value;let e=document.body.clientHeight;X.value="860px"===X.value?"100%":"860px",Z.value="654px"===Z.value?`${e}px`:"654px"}function ne(e){L("resetPopconfirm",e)}function oe(e,t,i){const l=Q[e];l&&l(t,i)}return l((()=>Q.visibleIn),(e=>{T.value=e})),l((()=>Q.dataSource),(e=>{R.value=M(e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n(o(x),{show:T.value,bodyStyle:{height:Z.value,overflowY:"auto"},width:X.value,maskClosable:!1,class:s(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":W.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:te,onNegativeClick:ie},{default:c((()=>[r(o(b),{style:u({width:X.value,height:Z.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},d({"header-extra":c((()=>[p("div",U,[p("i",{onClick:ae,class:s(["iconfont-table-filter",W.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:ie,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[p("div",B,[O,r(o(P),{class:"list-content",tag:"ul",list:R.value,"item-key":"sid",animation:"300"},{item:c((({element:t})=>[v(p("li",{class:s({checked:t.checked}),onClick:e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1}));var i}},[p("span",Y,[r(o(C),{mouseEnterDelay:1},{trigger:c((()=>[r(o(z),{component:o(I),size:"24"},null,8,["component"])])),default:c((()=>[m(" 拖拽调整顺序 ")])),_:1})]),p("span",{title:t.displayCategory,class:"list-content-item"},h(t.name),9,$),p("span",{title:t.name,class:"list-content-item"},h(t.displayCategory),9,A),p("span",H,[r(o(S),{"onUpdate:value":e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),p("span",J,[r(o(S),{"onUpdate:value":e=>{var i;(i=t).isShow&&R.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),p("span",q,[f(" 编辑 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(E),onClick:y((e=>oe("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 编辑 ")])),_:2},1024)],512),[[g,"other"==e.type||"search"==e.type&&t.isEdit]]),f(" 复制 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(N),onClick:y((e=>oe("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 复制 ")])),_:2},1024)],512),[[g,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(a(),w("span",G,[r(o(_),{onPositiveClick:e=>oe("delItem",t,"删除")},{trigger:c((()=>[r(o(z),null,{default:c((()=>[K])),_:1})])),default:c((()=>[m(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,j),[[g,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[p("div",V,[p("div",null,[o(ee)?(a(),n(o(_),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:ne},{trigger:c((()=>[r(o(D),null,{default:c((()=>[m("恢复默认设置")])),_:1})])),default:c((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),p("div",null,[r(o(D),{onClick:ie},{default:c((()=>[m("取消")])),_:1}),k(t.$slots,"add"),r(o(D),{type:"info",onClick:te},{default:c((()=>[m("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{L as default};
|
1
|
+
import{defineComponent as e,ref as t,inject as i,watch as l,openBlock as a,createBlock as n,unref as o,normalizeClass as s,withCtx as c,createVNode as r,normalizeStyle as u,createSlots as d,createElementVNode as p,withDirectives as v,createTextVNode as m,toDisplayString as h,createCommentVNode as f,withModifiers as y,vShow as g,createElementBlock as w,renderSlot as k}from"vue";import{NModal as x,NCard as b,NTooltip as C,NIcon as z,NSwitch as S,NPopconfirm as _,NButton as D}from"naive-ui";import{ReorderTwo as I,Brush as E,DocumentOutline as N}from"@vicons/ionicons5";import P from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import{cloneDeep as M}from"lodash-es";const U={class:"svg-wrap"},V={class:"flex_between"},B={class:"table-modal-list"},O=p("div",{class:"list-title"},[p("span",{class:"list-title-item",style:{width:"6%"}}),p("span",{class:"list-title-item"}," 名称 "),p("span",{class:"list-title-item"}," 父类名称 "),p("span",{class:"list-title-item"}," 是否显示 "),p("span",{class:"list-title-item"}," 设置为默认 "),p("span",{class:"list-title-item"}," 操作 ")],-1),j=["onClick"],Y={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},$=["title"],A=["title"],H={class:"list-content-item list-content-switch"},J={class:"list-content-item list-content-radio"},q={class:"list-content-item"},G={key:0},K=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var L=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(e,{emit:L}){const Q=e,R=t([]),T=t(Q.visibleIn),W=t(!1),X=t("other"==Q.type?"100%":"860px"),Z=t("654px"),ee=i(F);function te(){var e;Q.type&&(le(),L("handleOk","search"==(e=Q.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(R.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function ie(){T.value=!1,le(),L("close")}function le(){X.value="860px",Z.value="654px",W.value=!1}function ae(){W.value=!W.value;let e=document.body.clientHeight;X.value="860px"===X.value?"100%":"860px",Z.value="654px"===Z.value?`${e}px`:"654px"}function ne(e){L("resetPopconfirm",e)}function oe(e,t,i){const l=Q[e];l&&l(t,i)}return l((()=>Q.visibleIn),(e=>{T.value=e})),l((()=>Q.dataSource),(e=>{R.value=M(e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n(o(x),{show:T.value,bodyStyle:{height:Z.value,overflowY:"auto"},width:X.value,maskClosable:!1,class:s(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":W.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",to:"body",onPositiveClick:te,onNegativeClick:ie},{default:c((()=>[r(o(b),{style:u({width:X.value,height:Z.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},d({"header-extra":c((()=>[p("div",U,[p("i",{onClick:ae,class:s(["iconfont-table-filter",W.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:ie,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[p("div",B,[O,r(o(P),{class:"list-content",tag:"ul",list:R.value,"item-key":"sid",animation:"300"},{item:c((({element:t})=>[v(p("li",{class:s({checked:t.checked}),onClick:e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1}));var i}},[p("span",Y,[r(o(C),{mouseEnterDelay:1},{trigger:c((()=>[r(o(z),{component:o(I),size:"24"},null,8,["component"])])),default:c((()=>[m(" 拖拽调整顺序 ")])),_:1})]),p("span",{title:t.displayCategory,class:"list-content-item"},h(t.name),9,$),p("span",{title:t.name,class:"list-content-item"},h(t.displayCategory),9,A),p("span",H,[r(o(S),{"onUpdate:value":e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),p("span",J,[r(o(S),{"onUpdate:value":e=>{var i;(i=t).isShow&&R.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),p("span",q,[f(" 编辑 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(E),onClick:y((e=>oe("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 编辑 ")])),_:2},1024)],512),[[g,"other"==e.type||"search"==e.type&&t.isEdit]]),f(" 复制 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(N),onClick:y((e=>oe("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 复制 ")])),_:2},1024)],512),[[g,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(a(),w("span",G,[r(o(_),{onPositiveClick:e=>oe("delItem",t,"删除")},{trigger:c((()=>[r(o(z),null,{default:c((()=>[K])),_:1})])),default:c((()=>[m(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,j),[[g,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[p("div",V,[p("div",null,[o(ee)?(a(),n(o(_),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:ne},{trigger:c((()=>[r(o(D),null,{default:c((()=>[m("恢复默认设置")])),_:1})])),default:c((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),p("div",null,[r(o(D),{onClick:ie},{default:c((()=>[m("取消")])),_:1}),k(t.$slots,"add"),r(o(D),{type:"info",onClick:te},{default:c((()=>[m("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{L as default};
|