@gct-paas/core-web 0.1.6-dev.3 → 0.1.6-dev.5
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/dist/{components-4-8OfvJi.js → components-Dw_doMp_.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/template-tzWsbHZE.js +1 -0
- package/es/components/label-design/panels/widget/controls/ImageData.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_script_setup_true_name_image-data_lang.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_3c4a9733_lang.css +3 -0
- package/es/components/label-design/panels/widget/controls/labelTemplate.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_script_setup_true_lang.mjs +1 -16
- package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_style_index_0_scoped_c628d318_lang.css +10 -0
- package/es/index.d.ts +2 -0
- package/es/index.mjs +6 -1
- package/es/modules/category/category-modal.vue.d.ts +11 -0
- package/es/modules/category/category-modal.vue.mjs +7 -0
- package/es/modules/category/category-modal.vue_vue_type_script_setup_true_name_category-modal_lang.mjs +53 -0
- package/es/modules/category/category-modal.vue_vue_type_style_index_0_scoped_b560615c_lang.css +67 -0
- package/es/modules/category/category-sider.vue.d.ts +337 -0
- package/es/modules/category/category-sider.vue.mjs +7 -0
- package/es/modules/category/category-sider.vue_vue_type_script_setup_true_name_category-sider_lang.mjs +239 -0
- package/es/modules/category/category-sider.vue_vue_type_style_index_0_scoped_5af8c1ba_lang.css +211 -0
- package/es/modules/category/hooks/useCategory.d.ts +20 -0
- package/es/modules/category/hooks/useCategory.mjs +139 -0
- package/es/modules/category/index.d.ts +2 -0
- package/es/modules/category/index.mjs +2 -0
- package/es/modules/category/type.d.ts +8 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/es/modules/print-tmpl/icon-print-folder.svg.mjs +4 -0
- package/es/modules/print-tmpl/icon-print-printer.svg.mjs +4 -0
- package/es/modules/print-tmpl/index.d.ts +2 -0
- package/es/modules/print-tmpl/index.mjs +1 -0
- package/es/modules/print-tmpl/print-tmpl-modal.vue.d.ts +31 -0
- package/es/modules/print-tmpl/print-tmpl-modal.vue.mjs +7 -0
- package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +593 -0
- package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_style_index_0_scoped_c60841b8_lang.css +143 -0
- package/package.json +9 -9
- package/dist/template-Cf-wq8-9.js +0 -1
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_9232a443_lang.css +0 -3
- package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_style_index_0_scoped_992e00bb_lang.css +0 -10
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
package/es/modules/category/category-sider.vue_vue_type_style_index_0_scoped_5af8c1ba_lang.css
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-category-sider[data-v-5af8c1ba] {
|
|
66
|
+
--gct-category-sider-height: 100%;
|
|
67
|
+
--gct-category-sider-width: 222px;
|
|
68
|
+
}
|
|
69
|
+
.gct-category-sider__search-container[data-v-5af8c1ba] {
|
|
70
|
+
padding: 12px;
|
|
71
|
+
border-top: 1px solid #eaedf1;
|
|
72
|
+
}
|
|
73
|
+
.gct-category-sider__search-input[data-v-5af8c1ba] {
|
|
74
|
+
padding-left: 16px;
|
|
75
|
+
line-height: 22px;
|
|
76
|
+
}
|
|
77
|
+
.gct-category-sider__title-container[data-v-5af8c1ba] {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
padding: 8px 12px 0;
|
|
82
|
+
}
|
|
83
|
+
.gct-category-sider__tree-container[data-v-5af8c1ba] {
|
|
84
|
+
flex-grow: 1;
|
|
85
|
+
padding: 8px 0;
|
|
86
|
+
overflow: auto;
|
|
87
|
+
}
|
|
88
|
+
.gct-category-sider__title[data-v-5af8c1ba] {
|
|
89
|
+
color: #000;
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
}
|
|
93
|
+
.gct-category-sider__add[data-v-5af8c1ba] {
|
|
94
|
+
height: 36px;
|
|
95
|
+
padding: 0;
|
|
96
|
+
color: var(--ant-primary-color);
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
}
|
|
99
|
+
.gct-category-sider__add > i[data-v-5af8c1ba] {
|
|
100
|
+
vertical-align: top;
|
|
101
|
+
}
|
|
102
|
+
.gct-category-sider__add > span[data-v-5af8c1ba] {
|
|
103
|
+
vertical-align: middle;
|
|
104
|
+
}
|
|
105
|
+
.gct-category-sider__add i[data-v-5af8c1ba] {
|
|
106
|
+
padding-right: 2px;
|
|
107
|
+
font-size: 11px;
|
|
108
|
+
}
|
|
109
|
+
.gct-category-sider[data-v-5af8c1ba] {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex: 0 0 auto;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
width: getcssvar(category-sider, width);
|
|
114
|
+
height: getcssvar(category-sider, height);
|
|
115
|
+
border: 1px solid #eaedf1;
|
|
116
|
+
}
|
|
117
|
+
.gct-category-sider[data-v-5af8c1ba] .ant-dropdown-menu-item {
|
|
118
|
+
padding: 5px 20px;
|
|
119
|
+
}
|
|
120
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-switcher {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
width: 20px;
|
|
125
|
+
}
|
|
126
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-switcher .ant-tree-switcher-icon {
|
|
127
|
+
color: #797a7d;
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
}
|
|
130
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode {
|
|
131
|
+
margin-bottom: 8px;
|
|
132
|
+
padding-bottom: 0;
|
|
133
|
+
padding-left: 16px;
|
|
134
|
+
border-radius: 4px;
|
|
135
|
+
color: #212528;
|
|
136
|
+
}
|
|
137
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode:hover, .gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode:has(.is-highlight) {
|
|
138
|
+
background: rgba(from var(--ant-primary-color) r g b / 8%);
|
|
139
|
+
}
|
|
140
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode:hover .gct-category-sider-tree-node__more, .gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode:has(.is-highlight) .gct-category-sider-tree-node__more {
|
|
141
|
+
display: block;
|
|
142
|
+
}
|
|
143
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode-selected {
|
|
144
|
+
background: rgba(from var(--ant-primary-color) r g b / 8%);
|
|
145
|
+
}
|
|
146
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode:has(.is-folder) {
|
|
147
|
+
color: #6a717d;
|
|
148
|
+
}
|
|
149
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode .ant-tree-switcher-noop {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-treenode .ant-tree-indent-unit {
|
|
153
|
+
width: 20px;
|
|
154
|
+
}
|
|
155
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-node-content-wrapper {
|
|
156
|
+
width: 100px;
|
|
157
|
+
padding-right: 0;
|
|
158
|
+
line-height: 36px;
|
|
159
|
+
}
|
|
160
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-node-content-wrapper:hover {
|
|
161
|
+
background: transparent;
|
|
162
|
+
}
|
|
163
|
+
.gct-category-sider[data-v-5af8c1ba] .gct-category-sider__tree .ant-tree-node-selected {
|
|
164
|
+
background-color: transparent;
|
|
165
|
+
}
|
|
166
|
+
.gct-category-sider-tree-node.is-folder .gct-category-sider-tree-node__icon[data-v-5af8c1ba] {
|
|
167
|
+
display: block;
|
|
168
|
+
flex: none;
|
|
169
|
+
text-align: center;
|
|
170
|
+
}
|
|
171
|
+
.gct-category-sider-tree-node__icon[data-v-5af8c1ba] {
|
|
172
|
+
display: none;
|
|
173
|
+
margin-right: 8px;
|
|
174
|
+
}
|
|
175
|
+
.gct-category-sider-tree-node__title[data-v-5af8c1ba] {
|
|
176
|
+
flex-grow: 1;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
text-wrap: nowrap;
|
|
180
|
+
}
|
|
181
|
+
.gct-category-sider-tree-node__more[data-v-5af8c1ba] {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
.gct-category-sider-tree-node__more[data-v-5af8c1ba]:hover {
|
|
185
|
+
color: var(--ant-primary-color);
|
|
186
|
+
}
|
|
187
|
+
.gct-category-sider-tree-node[data-v-5af8c1ba] {
|
|
188
|
+
display: flex;
|
|
189
|
+
position: relative;
|
|
190
|
+
flex: 0 0 auto;
|
|
191
|
+
align-items: center;
|
|
192
|
+
padding-right: 12px;
|
|
193
|
+
}
|
|
194
|
+
.draggable-tree .gct-category-sider-tree-node[data-v-5af8c1ba] {
|
|
195
|
+
position: relative;
|
|
196
|
+
}
|
|
197
|
+
.draggable-tree .gct-category-sider-tree-node[data-v-5af8c1ba]::before {
|
|
198
|
+
content: "\e810";
|
|
199
|
+
display: none;
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 0;
|
|
202
|
+
left: -16px;
|
|
203
|
+
color: #888 !important;
|
|
204
|
+
font-family: iconfont !important;
|
|
205
|
+
font-size: 16px;
|
|
206
|
+
-webkit-font-smoothing: antialiased;
|
|
207
|
+
font-style: normal;
|
|
208
|
+
}
|
|
209
|
+
.draggable-tree .gct-category-sider-tree-node[data-v-5af8c1ba]:hover::before {
|
|
210
|
+
display: block;
|
|
211
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CategoryCompleteResponse, CategoryDragDTO } from '@gct-paas/api/apaas';
|
|
2
|
+
import { CategoryModuleEnum as DHRCategoryModuleEnum, FormDesignEnum } from '@gct-paas/core';
|
|
3
|
+
declare function _useCategory(opts: {
|
|
4
|
+
module: FormDesignEnum | DHRCategoryModuleEnum;
|
|
5
|
+
}): {
|
|
6
|
+
categoryTreeData: import('vue').Ref<CategoryCompleteResponse[] | undefined, CategoryCompleteResponse[] | undefined>;
|
|
7
|
+
createCategory: (data?: {
|
|
8
|
+
parentId?: string;
|
|
9
|
+
}) => Promise<{
|
|
10
|
+
parentId?: string;
|
|
11
|
+
}>;
|
|
12
|
+
load: () => Promise<void>;
|
|
13
|
+
editCategory: (node: IObject) => Promise<void>;
|
|
14
|
+
deleteCategoryAPI: (node: IObject, customDelFunc?: Fn, customDelTips?: string) => Promise<boolean>;
|
|
15
|
+
getCategoryById: (id: string) => CategoryCompleteResponse | undefined;
|
|
16
|
+
dragCategory: (data: CategoryDragDTO) => Promise<void>;
|
|
17
|
+
isFormDesign: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const useCategory: typeof _useCategory;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { recursiveIterate } from "../../../utils/recursive.mjs";
|
|
2
|
+
import "../../../utils/index.mjs";
|
|
3
|
+
import category_modal_default from "../category-modal.vue.mjs";
|
|
4
|
+
import "../index.mjs";
|
|
5
|
+
import { createVNode, ref } from "vue";
|
|
6
|
+
import { CategoryModuleEnum, FormDesignEnum, cacheFnReturn, getInterfaceApi, t } from "@gct-paas/core";
|
|
7
|
+
import { Modal as Modal$1, message } from "ant-design-vue";
|
|
8
|
+
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
9
|
+
//#region src/modules/category/hooks/useCategory.ts
|
|
10
|
+
var $t = t;
|
|
11
|
+
function _useCategory(opts) {
|
|
12
|
+
const categoryMap = /* @__PURE__ */ new Map();
|
|
13
|
+
const categoryTreeData = ref();
|
|
14
|
+
const isFormDesign = [
|
|
15
|
+
FormDesignEnum.EDHR,
|
|
16
|
+
CategoryModuleEnum.INSPECTION,
|
|
17
|
+
CategoryModuleEnum.RELEASE,
|
|
18
|
+
FormDesignEnum.ONLINE_FORM
|
|
19
|
+
].includes(opts.module);
|
|
20
|
+
/**
|
|
21
|
+
* 通过id获取完整分类数据信息
|
|
22
|
+
*/
|
|
23
|
+
function getCategoryById(id) {
|
|
24
|
+
return categoryMap.get(id);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 打开分类模态编辑完成之后返回更改后的数据
|
|
28
|
+
* 取消操作返回undefined
|
|
29
|
+
* @param opts
|
|
30
|
+
* @return {*}
|
|
31
|
+
*/
|
|
32
|
+
async function openCategoryModal(_opts) {
|
|
33
|
+
const isEdit = !!_opts.data.id;
|
|
34
|
+
const res = await _gct.openUtil.modal(category_modal_default, {
|
|
35
|
+
data: _opts.data,
|
|
36
|
+
module: opts.module
|
|
37
|
+
}, {
|
|
38
|
+
title: isEdit ? `${$t("sys.edit")}${$t("sys.category")}` : $t("sys.new") + $t("sys.category"),
|
|
39
|
+
width: 640,
|
|
40
|
+
height: 360,
|
|
41
|
+
okText: $t("sys.okText"),
|
|
42
|
+
showFooter: true
|
|
43
|
+
});
|
|
44
|
+
if (res?.ok) return res?.data[0];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 创建分类
|
|
48
|
+
*/
|
|
49
|
+
async function createCategory(data = {}) {
|
|
50
|
+
const res = await openCategoryModal({ data });
|
|
51
|
+
if (res) {
|
|
52
|
+
res.module = opts.module;
|
|
53
|
+
await _api.apaas.category.post(res);
|
|
54
|
+
await load();
|
|
55
|
+
}
|
|
56
|
+
return res ? { parentId: res?.parentId } : {};
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 加载数据(刷新也是)
|
|
60
|
+
* @return {*}
|
|
61
|
+
*/
|
|
62
|
+
async function load() {
|
|
63
|
+
const data = isFormDesign ? await getInterfaceApi.getCategoryList({ moduleType: opts.module }) || [] : await _api.apaas.category.getListComplete({}) || [];
|
|
64
|
+
categoryTreeData.value = data;
|
|
65
|
+
categoryMap.clear();
|
|
66
|
+
recursiveIterate(data, ({ item }) => {
|
|
67
|
+
categoryMap.set(item.id, item);
|
|
68
|
+
}, { childrenFields: ["child"] });
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 修改分类
|
|
72
|
+
*/
|
|
73
|
+
async function editCategory(node) {
|
|
74
|
+
const data = {
|
|
75
|
+
name: node.name || node.title,
|
|
76
|
+
id: node.key || node.id
|
|
77
|
+
};
|
|
78
|
+
const res = await openCategoryModal({ data });
|
|
79
|
+
if (res) {
|
|
80
|
+
await _api.apaas.category.putId({ id: data.id ?? "" }, {
|
|
81
|
+
...res,
|
|
82
|
+
module: opts.module
|
|
83
|
+
});
|
|
84
|
+
await load();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* 删除分类
|
|
89
|
+
* 删除成功返回true
|
|
90
|
+
* 取消或者删除失败返回false
|
|
91
|
+
*/
|
|
92
|
+
async function deleteCategoryAPI(node, customDelFunc, customDelTips) {
|
|
93
|
+
return new Promise((resolve) => {
|
|
94
|
+
Modal$1.confirm({
|
|
95
|
+
title: $t("sys.sureToDeleteCategoryWithName", { name: `${node.name || node.title}` }),
|
|
96
|
+
icon: createVNode(ExclamationCircleOutlined),
|
|
97
|
+
content: customDelTips || "",
|
|
98
|
+
okText: $t("sys.okText"),
|
|
99
|
+
cancelText: $t("sys.cancel"),
|
|
100
|
+
async onOk() {
|
|
101
|
+
try {
|
|
102
|
+
if (customDelFunc) await customDelFunc({ id: node.key || node.id });
|
|
103
|
+
else await _api.apaas.category.delete({ ids: node.key || node.id });
|
|
104
|
+
message.success($t("sys.delSuccess"));
|
|
105
|
+
await load();
|
|
106
|
+
resolve(true);
|
|
107
|
+
} catch (error) {
|
|
108
|
+
console.error(error);
|
|
109
|
+
resolve(false);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
onCancel() {
|
|
113
|
+
resolve(false);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 拖拽分类
|
|
120
|
+
* @param data
|
|
121
|
+
*/
|
|
122
|
+
async function dragCategory(data) {
|
|
123
|
+
await _api.apaas.category.postDrag(data);
|
|
124
|
+
await load();
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
categoryTreeData,
|
|
128
|
+
createCategory,
|
|
129
|
+
load,
|
|
130
|
+
editCategory,
|
|
131
|
+
deleteCategoryAPI,
|
|
132
|
+
getCategoryById,
|
|
133
|
+
dragCategory,
|
|
134
|
+
isFormDesign
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
var useCategory = cacheFnReturn(_useCategory);
|
|
138
|
+
//#endregion
|
|
139
|
+
export { useCategory };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValue } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import './gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-date/gct-table-date.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGctFormValueByText } from "../../../gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs";
|
|
2
2
|
import "../../../gct-form/index.mjs";
|
|
3
|
-
import '
|
|
3
|
+
import '../gct-table-date/gct-table-date.css';/* empty css */
|
|
4
4
|
import { createVNode, defineComponent, mergeProps, resolveComponent } from "vue";
|
|
5
5
|
import { useNamespace } from "@gct-paas/core";
|
|
6
6
|
//#region src/modules/gct-table/editor/gct-table-text/gct-table-text.tsx
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/modules/print-tmpl/icon-print-folder.svg
|
|
2
|
+
var icon_print_folder_default = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_folder'%3e%3cg%20id='Group%20427318809'%3e%3cpath%20id='Subtract'%20d='M5.97207%202.19995C6.30242%202.19995%206.61145%202.3631%206.79779%202.63588L7.5%203.66382H16C16.5523%203.66382%2017%204.11153%2017%204.66382V16.95C17%2017.3642%2016.6642%2017.7%2016.25%2017.7H2C1.44772%2017.7%201%2017.2522%201%2016.7V3.19995C1%202.64767%201.44772%202.19995%202%202.19995H5.97207Z'%20fill='url(%23paint0_linear_2167_599)'/%3e%3cg%20id='Vector'%3e%3cpath%20d='M3%2017.7H2.25C2.66421%2017.7%203%2017.3642%203%2016.95V17.7Z'%20fill='%23FDB418'/%3e%3cpath%20d='M3%206.44995C3%205.89767%203.44771%205.44995%204%205.44995H18.25C18.6642%205.44995%2019%205.78574%2019%206.19995L19%2016.95C19%2017.3642%2018.6642%2017.7%2018.25%2017.7H3L3%206.44995Z'%20fill='url(%23paint1_linear_2167_599)'/%3e%3cpath%20d='M4%205.85034H18.25C18.4433%205.85034%2018.5996%206.00665%2018.5996%206.19995V16.95C18.5996%2017.1432%2018.4433%2017.2996%2018.25%2017.2996H3.40039V6.44995C3.40039%206.11858%203.66863%205.85034%204%205.85034Z'%20stroke='url(%23paint2_linear_2167_599)'%20stroke-opacity='0.85'%20stroke-width='0.8'/%3e%3c/g%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M3%2017.7H2.25C2.66421%2017.7%203%2017.3642%203%2016.95V17.7Z'%20fill='url(%23paint3_linear_2167_599)'/%3e%3cpath%20d='M3%206.44995C3%205.89767%203.44771%205.44995%204%205.44995H18.25C18.6642%205.44995%2019%205.78574%2019%206.19995L19%2016.95C19%2017.3642%2018.6642%2017.7%2018.25%2017.7H3L3%206.44995Z'%20fill='url(%23paint4_linear_2167_599)'/%3e%3c/g%3e%3cpath%20id='Rectangle%204807'%20opacity='0.9'%20d='M14.25%208.99994H16.75V9.59994H14.25V8.99994Z'%20fill='%23EE9B01'/%3e%3cpath%20id='Rectangle%204808'%20opacity='0.9'%20d='M14.25%207.80008H16.75V8.40008H14.25V7.80008Z'%20fill='%23EE9B01'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2167_599'%20x1='5.5'%20y1='3.69995'%20x2='9'%20y2='12.2'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EE9B00'/%3e%3cstop%20offset='1'%20stop-color='%23EEA300'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2167_599'%20x1='6.5'%20y1='7.69995'%20x2='14'%20y2='17.2'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFBF35'/%3e%3cstop%20offset='1'%20stop-color='%23FFD560'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2167_599'%20x1='2.5'%20y1='6.19995'%20x2='6'%20y2='11.7'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2167_599'%20x1='14'%20y1='15.7'%20x2='14'%20y2='16.7'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFCF54'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23F9B700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2167_599'%20x1='14'%20y1='15.7'%20x2='14'%20y2='16.7'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFCF54'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23F9B700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { icon_print_folder_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/modules/print-tmpl/icon-print-printer.svg
|
|
2
|
+
var icon_print_printer_default = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_printer'%3e%3cg%20id='Group%20427319057'%3e%3cpath%20id='Rectangle%204856'%20d='M4.32373%203.3C4.32373%203.13431%204.45805%203%204.62373%203L15.3709%203C15.5366%203%2015.6709%203.13431%2015.6709%203.3V7L4.32373%207V3.3Z'%20fill='%2388898D'/%3e%3crect%20id='Rectangle%204857'%20x='5.5'%20y='1.5'%20width='9'%20height='5'%20fill='%23DDDFE1'/%3e%3cg%20id='Mask%20group'%3e%3cmask%20id='mask0_2169_716'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='6'%20width='18'%20height='11'%3e%3cpath%20id='Union'%20d='M19%2015.5C19%2016.0523%2018.5523%2016.5%2018%2016.5H2C1.44772%2016.5%201%2016.0523%201%2015.5V10.3117C1%209.77409%201.08671%209.23999%201.25678%208.72997L1.77246%207.18359C1.90865%206.77542%202.29039%206.50002%202.7207%206.5H17.2793C17.7096%206.50002%2018.0914%206.77542%2018.2275%207.18359L18.7432%208.72997C18.9133%209.23999%2019%209.77409%2019%2010.3117V15.5Z'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2169_716)'%3e%3cpath%20id='Union_2'%20d='M19%2015.5C19%2016.0523%2018.5523%2016.5%2018%2016.5H2C1.44772%2016.5%201%2016.0523%201%2015.5V10.3117C1%209.77409%201.08671%209.23999%201.25678%208.72997L1.77246%207.18359C1.90865%206.77542%202.29039%206.50002%202.7207%206.5H17.2793C17.7096%206.50002%2018.0914%206.77542%2018.2275%207.18359L18.7432%208.72997C18.9133%209.23999%2019%209.77409%2019%2010.3117V15.5Z'%20fill='url(%23paint0_linear_2169_716)'/%3e%3cpath%20id='Union_3'%20d='M16.1686%2016.517C16.1686%2017.0693%2015.8702%2017.517%2015.502%2017.517L4.49089%2017.5C4.1227%2017.5%203.82422%2017.0523%203.82422%2016.5V10.0491C3.82422%209.68413%203.86418%209.32026%203.94338%208.964L4.33919%207.18359C4.42999%206.77542%204.68448%206.50002%204.97135%206.5L15.0215%206.51697C15.3084%206.51699%2015.5629%206.79239%2015.6537%207.20056L16.0495%208.98097C16.1287%209.33723%2016.1686%209.70109%2016.1686%2010.0661V16.517Z'%20fill='url(%23paint1_linear_2169_716)'/%3e%3cg%20id='Mask%20group_2'%3e%3cmask%20id='mask1_2169_716'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='3'%20y='6'%20width='14'%20height='6'%3e%3cpath%20id='Rectangle%204861'%20d='M3.82422%206L16.1686%206.01697V11.017L3.82422%2011V6Z'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_2169_716)'%3e%3cpath%20id='Union_4'%20d='M16.1686%2015.517C16.1686%2016.0692%2015.8702%2016.517%2015.502%2016.517L4.49089%2016.5C4.1227%2016.5%203.82422%2016.0523%203.82422%2015.5V9.91205C3.82422%209.6378%203.84678%209.36403%203.89168%209.09348L4.37308%206.19266C4.46387%205.78449%204.71836%205.50909%205.00524%205.50906L14.9876%205.52603C15.2745%205.52605%2015.529%205.80145%2015.6198%206.20962L16.1012%209.11045C16.1461%209.38099%2016.1686%209.65477%2016.1686%209.92901V15.517Z'%20fill='url(%23paint2_linear_2169_716)'/%3e%3c/g%3e%3c/g%3e%3cpath%20id='Rectangle%204859'%20d='M1%209.5H3.5V16.5H1.5C1.22386%2016.5%201%2016.2761%201%2016V9.5Z'%20fill='url(%23paint3_linear_2169_716)'/%3e%3cpath%20id='Union_5'%20d='M4%206.5L3.55442%209.17345C3.5182%209.39078%203.5%209.61073%203.5%209.83105V10.5H1V6.5H4Z'%20fill='url(%23paint4_linear_2169_716)'/%3e%3cpath%20id='Rectangle%204860'%20d='M16.5%209.5H19V16.5H16.5V9.5Z'%20fill='url(%23paint5_linear_2169_716)'/%3e%3cpath%20id='Rectangle%204859_2'%20opacity='0.3'%20d='M5.34473%207.39502L14.6389%207.35339L14.5%206.50001H5.50001L5.34473%207.39502Z'%20fill='url(%23paint6_linear_2169_716)'/%3e%3cpath%20id='Union_6'%20d='M16%206.5L16.4456%209.17345C16.4818%209.39078%2016.5%209.61073%2016.5%209.83105V10.5H19V6.5H16Z'%20fill='url(%23paint7_linear_2169_716)'/%3e%3c/g%3e%3c/g%3e%3cpath%20id='Rectangle%204858'%20d='M14.4224%2013.8896C15.3187%2013.8911%2016.0443%2014.6183%2016.0444%2015.5146V16.6426L15.9194%2016.6416L4.06689%2016.625H3.94189V15.502C3.942%2014.6038%204.67071%2013.8759%205.56885%2013.877L14.4224%2013.8896Z'%20fill='%2336363A'%20stroke='url(%23paint8_linear_2169_716)'%20stroke-width='0.25'/%3e%3cpath%20id='Rectangle%204855'%20d='M4.06689%2015.5014C4.06689%2014.9486%204.51548%2014.5006%205.06833%2014.5014L14.9211%2014.5155C15.4729%2014.5163%2015.9197%2014.9638%2015.9197%2015.5155V18.0163C15.9197%2018.2927%2015.6954%2018.5166%2015.419%2018.5163L4.56618%2018.5007C4.29032%2018.5003%204.06689%2018.2766%204.06689%2018.0007V15.5014Z'%20fill='url(%23paint9_linear_2169_716)'/%3e%3c/g%3e%3cg%20id='Mask%20group_3'%3e%3cmask%20id='mask2_2169_716'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='5'%20y='7'%20width='3'%20height='2'%3e%3cpath%20id='Rectangle%204862'%20d='M5.62474%207.67027C5.63945%207.57239%205.72354%207.5%205.82251%207.5L7.3%207.5C7.41046%207.5%207.5%207.58954%207.5%207.7V8.3C7.5%208.41046%207.41046%208.5%207.3%208.5H5.73231C5.61001%208.5%205.51635%208.39121%205.53454%208.27027L5.62474%207.67027Z'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask2_2169_716)'%3e%3cpath%20id='Rectangle%204864'%20d='M5.62474%207.67027C5.63945%207.57239%205.72354%207.5%205.82251%207.5L7.3%207.5C7.41046%207.5%207.5%207.58954%207.5%207.7V8.3C7.5%208.41046%207.41046%208.5%207.3%208.5H5.73231C5.61001%208.5%205.51635%208.39121%205.53454%208.27027L5.62474%207.67027Z'%20fill='%23D9D9D9'/%3e%3cpath%20id='Rectangle%204863'%20d='M6.53881%207.5H7.5V8.5H6.48926L6.53881%207.5Z'%20fill='url(%23paint10_linear_2169_716)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2169_716'%20x1='10'%20y1='6.5'%20x2='10'%20y2='8.14483'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2382828A'/%3e%3cstop%20offset='1'%20stop-color='%233F3F42'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2169_716'%20x1='10'%20y1='9.5'%20x2='10'%20y2='13'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E1E5EA'/%3e%3cstop%20offset='1'%20stop-color='%23999EA1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2169_716'%20x1='10'%20y1='9.49998'%20x2='10'%20y2='11'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236B727A'/%3e%3cstop%20offset='1'%20stop-color='%237C7D7E'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2169_716'%20x1='2.25'%20y1='9.5'%20x2='2.25'%20y2='16.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D4DCE2'/%3e%3cstop%20offset='1'%20stop-color='%23959696'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_2169_716'%20x1='2.5'%20y1='9.5'%20x2='2.5'%20y2='10.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%239DA6B2'/%3e%3cstop%20offset='1'%20stop-color='%23C9D1D9'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2169_716'%20x1='17.75'%20y1='9.5'%20x2='17.75'%20y2='16.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D4DCE2'/%3e%3cstop%20offset='1'%20stop-color='%23959696'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2169_716'%20x1='10'%20y1='7.35339'%20x2='10'%20y2='6.20902'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23CDD2D5'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%23CDD2D5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint7_linear_2169_716'%20x1='17.5'%20y1='9.5'%20x2='17.5'%20y2='10.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%239DA6B2'/%3e%3cstop%20offset='1'%20stop-color='%23C9D1D9'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint8_linear_2169_716'%20x1='9.9933'%20y1='14'%20x2='9.9933'%20y2='16.517'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.6'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_2169_716'%20x1='9.99999'%20y1='14.5'%20x2='9.99999'%20y2='15.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23383839'%20stop-opacity='0'/%3e%3cstop%20offset='1'%20stop-color='%2361656C'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_2169_716'%20x1='6.99463'%20y1='7.5'%20x2='6.99463'%20y2='8.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B9C0C4'/%3e%3cstop%20offset='1'%20stop-color='%2392999D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { icon_print_printer_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./print-tmpl-modal.vue.mjs";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FormDesignEnum, PrintModeEnums, PrintTypeEnum, IModal } from '@gct-paas/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
selected?: IParams;
|
|
4
|
+
modal: IModal;
|
|
5
|
+
moduleType: PrintTypeEnum | FormDesignEnum;
|
|
6
|
+
printMode: PrintModeEnums;
|
|
7
|
+
className?: string;
|
|
8
|
+
isRdo?: boolean;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
categoryTitle?: string | null | undefined;
|
|
11
|
+
/** 额外的搜索条件 */
|
|
12
|
+
queryParams?: IParams;
|
|
13
|
+
btwForceVisible?: boolean;
|
|
14
|
+
ignoreCase?: number;
|
|
15
|
+
modelKey?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
isRdo: boolean;
|
|
19
|
+
categoryTitle: string | null;
|
|
20
|
+
btwForceVisible: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
tableRef: {
|
|
23
|
+
$props: import('vxe-table').VxeTableProps<any> & import('vxe-table').VxeTableEventProps<any>;
|
|
24
|
+
$slots: import('vxe-table').VxeTableSlots<any>;
|
|
25
|
+
} | null;
|
|
26
|
+
btwTableRef: {
|
|
27
|
+
$props: import('vxe-table').VxeTableProps<any> & import('vxe-table').VxeTableEventProps<any>;
|
|
28
|
+
$slots: import('vxe-table').VxeTableSlots<any>;
|
|
29
|
+
} | null;
|
|
30
|
+
}, HTMLDivElement>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import print_tmpl_modal_vue_vue_type_script_setup_true_name_print_tmpl_modal_lang_default from "./print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs";
|
|
3
|
+
import './print-tmpl-modal.vue_vue_type_style_index_0_scoped_c60841b8_lang.css';/* empty css */
|
|
4
|
+
//#region src/modules/print-tmpl/print-tmpl-modal.vue
|
|
5
|
+
var print_tmpl_modal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(print_tmpl_modal_vue_vue_type_script_setup_true_name_print_tmpl_modal_lang_default, [["__scopeId", "data-v-c60841b8"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { print_tmpl_modal_default as default };
|