cnhis-design-vue 3.1.37-beta.1 → 3.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/es/components/big-table/index.d.ts +66 -166
  2. package/es/components/big-table/src/BigTable.vue.d.ts +79 -194
  3. package/es/components/button-print/index.d.ts +24 -27
  4. package/es/components/button-print/src/ButtonPrint.vue.d.ts +101 -100
  5. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  6. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  7. package/es/components/button-print/src/utils/print.js +1 -6
  8. package/es/components/fabric-chart/index.d.ts +34 -11
  9. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +35 -12
  10. package/es/components/fabric-chart/src/FabricChart.vue.js +9 -9
  11. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -18
  12. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +129 -42
  13. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +25 -0
  14. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +151 -0
  15. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +1 -1
  16. package/es/components/fabric-chart/src/hooks/useCenter.js +6 -7
  17. package/es/components/fabric-chart/src/hooks/useOther.js +3 -2
  18. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
  19. package/es/components/fabric-chart/src/interface.d.ts +3 -1
  20. package/es/components/fabric-chart/src/utils/utils.d.ts +1 -1
  21. package/es/components/fabric-chart/src/utils/utils.js +7 -4
  22. package/es/components/form-config/index.d.ts +2 -2
  23. package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
  24. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  25. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  26. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
  27. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +2 -1
  28. package/es/components/form-config/src/hooks/useSortalbeConfig.js +2 -2
  29. package/es/components/form-render/src/hooks/useLowCodeReactions.js +19 -18
  30. package/es/components/form-render/src/types/index.d.ts +2 -2
  31. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  32. package/es/components/iho-table/style/index.css +1 -1
  33. package/es/components/index.css +1 -1
  34. package/es/components/index.d.ts +1 -2
  35. package/es/components/index.js +0 -3
  36. package/es/components/scale-view/src/hooks/use-component.d.ts +30 -81
  37. package/es/components/select-label/index.d.ts +30 -81
  38. package/es/components/select-label/src/SelectLabel.vue.d.ts +30 -81
  39. package/es/components/select-person/index.d.ts +113 -41
  40. package/es/components/select-person/src/SelectPerson.vue.d.ts +76 -45
  41. package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -1
  42. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -3
  43. package/es/shared/utils/tapable/Hook.d.ts +1 -1
  44. package/es/shared/utils/tapable/Hook.js +1 -1
  45. package/es/shared/utils/tapable/HookCodeFactory.js +3 -6
  46. package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -2
  47. package/package.json +2 -2
  48. package/es/components/drag-layout/index.d.ts +0 -606
  49. package/es/components/drag-layout/index.js +0 -11
  50. package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
  51. package/es/components/drag-layout/src/DragFormLeftItem.vue.js +0 -122
  52. package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
  53. package/es/components/drag-layout/src/DragFormRightItem.vue.js +0 -267
  54. package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
  55. package/es/components/drag-layout/src/DragLayout.vue.js +0 -662
  56. package/es/components/drag-layout/style/index.css +0 -1
  57. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +0 -181
@@ -1,662 +0,0 @@
1
- import { defineComponent, ref, reactive, computed, onMounted, nextTick, watch, openBlock, createElementBlock, createCommentVNode, createElementVNode, createVNode, unref, withCtx, renderSlot, createTextVNode, normalizeStyle, normalizeClass, createBlock, Fragment, withDirectives, vShow, vModelCheckbox } from 'vue';
2
- import { NButton, NModal, NForm, NGrid, NFormItemGi, NInput, NSelect, NCheckbox, NInputNumber } from 'naive-ui';
3
- import draggableComponent from '../../../shared/components/VueDraggable/src/vuedraggable.js';
4
- import DragFormLeftItem from './DragFormLeftItem.vue.js';
5
- import DragFormRightItem from './DragFormRightItem.vue.js';
6
- import XEUtils from 'xe-utils';
7
- import 'moment';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
9
-
10
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "border-box" }, null, -1);
11
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "info-header" }, "\u5907\u9009\u5B57\u6BB5", -1);
12
- const _hoisted_3 = { class: "form-area" };
13
- const _hoisted_4 = { class: "info-header" };
14
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("label", { class: "new-name" }, "\u540D\u79F0", -1);
15
- const _hoisted_6 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "DragLayout",
18
- props: {
19
- leftList: { default: () => [] },
20
- rightList: { default: () => [] },
21
- getpublicReplyList: { type: Function, default: () => Promise.resolve([]) }
22
- },
23
- emits: ["updateConfig"],
24
- setup(__props, { emit }) {
25
- const props = __props;
26
- const dragLayoutContainer = ref(null);
27
- const textArea = ref(null);
28
- const formRef = ref(null);
29
- const state = reactive({
30
- modalVisible: false,
31
- visibleLineAdd: false,
32
- modalFormData: {
33
- name: "",
34
- elem_width: "12",
35
- reply_category: [],
36
- is_fast_reply: false,
37
- html_type: "",
38
- is_edit: 1,
39
- hideExpression: "",
40
- remark: "",
41
- default_val: "",
42
- placeholder: "",
43
- publicReply: [],
44
- is_fast_reply_field: 0
45
- },
46
- publicReply: [],
47
- itemTitleNameAdd: "",
48
- is_show: 0,
49
- is_not_fold: 0,
50
- isAddChecked: false,
51
- is_not_foldChecked: false,
52
- handleLIne: "add",
53
- lineType: "LINEBAR",
54
- showFields: [],
55
- hideFields: [],
56
- curIndex: void 0,
57
- editModalType: "edit",
58
- lineAddTitle: "\u65B0\u5EFA\u5206\u7EBF\u680F",
59
- widthOptions: [
60
- {
61
- label: "\u6574\u884C",
62
- value: "12",
63
- class: "dragForm-select-drop"
64
- },
65
- {
66
- label: "\u534A\u884C",
67
- value: "6",
68
- class: "dragForm-select-drop"
69
- },
70
- {
71
- label: "5/6",
72
- value: "10",
73
- class: "dragForm-select-drop"
74
- },
75
- {
76
- label: "2/3",
77
- value: "8",
78
- class: "dragForm-select-drop"
79
- },
80
- {
81
- label: "1/3",
82
- value: "4",
83
- class: "dragForm-select-drop"
84
- },
85
- {
86
- label: "3/4",
87
- value: "9",
88
- class: "dragForm-select-drop"
89
- },
90
- {
91
- label: "1/4",
92
- value: "3",
93
- class: "dragForm-select-drop"
94
- }
95
- ]
96
- });
97
- const rules = {
98
- reply_category: [
99
- {
100
- required: state.modalFormData.is_fast_reply,
101
- trigger: ["blur", "change"],
102
- message: "\u8BF7\u8F93\u5165"
103
- }
104
- ]
105
- };
106
- const isPageLayout = computed(
107
- () => state.modalFormData.html_type === "PAGE_LAYOUT" || state.modalFormData.html_type === "COMBINATION"
108
- );
109
- const is_text = computed(() => state.modalFormData.html_type === "TEXT");
110
- const hideModalWidth = computed(() => state.modalFormData.html_type === "COMBINATION");
111
- const lineTypeList = computed(() => ["LINEBAR", "LINE_BREAKS"]);
112
- const isLineType = (t) => {
113
- return lineTypeList.value.includes(t);
114
- };
115
- const handleReqQieckReplyData = async () => {
116
- try {
117
- let res = await props.getpublicReplyList();
118
- state.publicReply = Array.isArray(res) ? res : [];
119
- } catch (error) {
120
- console.log(error);
121
- }
122
- };
123
- const handleEdit = (data, i, type = "edit") => {
124
- var _a;
125
- state.currentIndex = i;
126
- state.editModalType = type;
127
- if (isLineType(data.html_type)) {
128
- state.handleLIne = "edit";
129
- state.visibleLineAdd = true;
130
- state.itemTitleNameAdd = data.name || "\u5206\u884C\u7B26";
131
- state.is_show = data.is_show;
132
- state.is_not_fold = data.is_not_fold;
133
- state.isAddChecked = data.is_show == 1;
134
- state.is_not_foldChecked = data.is_not_fold == 1;
135
- return;
136
- }
137
- const keyList = [
138
- "name",
139
- "elem_width",
140
- "reply_category",
141
- "html_type",
142
- "is_edit",
143
- "remark",
144
- "default_val",
145
- "line_height",
146
- "is_fast_reply_field",
147
- "placeholder"
148
- ];
149
- keyList.forEach((v) => {
150
- if (v === "reply_category") {
151
- if (data[v] && XEUtils.isJSON(data[v])) {
152
- state.modalFormData[v] = JSON.parse(data[v]) || [];
153
- } else {
154
- state.modalFormData[v] = data[v] && [data[v]] || [];
155
- }
156
- } else {
157
- state.modalFormData[v] = data[v] || void 0;
158
- }
159
- });
160
- if (!((_a = state.publicReply) == null ? void 0 : _a.length) && data["is_fast_reply_field"] != 1) {
161
- handleReqQieckReplyData();
162
- }
163
- state.modalFormData.is_fast_reply = data.is_fast_reply == 1;
164
- state.modalFormData.hideExpression = 0;
165
- state.modalVisible = true;
166
- };
167
- const changeCategofy = (value) => {
168
- console.log(value);
169
- };
170
- const handleOk = (e) => {
171
- var _a;
172
- (_a = formRef.value) == null ? void 0 : _a.validate((errors) => {
173
- if (errors)
174
- return;
175
- if (state.editModalType == "edit") {
176
- state.showFields[state.currentIndex].is_fast_reply = state.modalFormData.is_fast_reply ? 1 : 0;
177
- let keys = [
178
- "name",
179
- "elem_width",
180
- "reply_category",
181
- "remark",
182
- "hideExpression",
183
- "default_val",
184
- "line_height",
185
- "placeholder"
186
- ];
187
- keys.forEach((k) => {
188
- state.showFields[state.currentIndex][k] = state.modalFormData[k];
189
- });
190
- } else {
191
- state.showFields[state.currentIndex].reply_category = state.modalFormData.reply_category;
192
- }
193
- state.modalVisible = false;
194
- });
195
- };
196
- const handleDelete = (data, i) => {
197
- let deleItem = state.showFields.splice(i, 1);
198
- if (isLineType(data.html_type) && !data.val_key) {
199
- return;
200
- }
201
- state.hideFields.push(...deleItem);
202
- };
203
- const addItemShowLine = () => {
204
- state.visibleLineAdd = true;
205
- state.itemTitleNameAdd = "";
206
- state.is_show = 1;
207
- state.is_not_fold = 0;
208
- state.isAddChecked = true;
209
- state.is_not_foldChecked = false;
210
- if (state.lineType === "LINEBAR") {
211
- state.lineAddTitle = "\u65B0\u5EFA\u5206\u7EBF\u680F";
212
- } else if (state.lineType === "LINE_BREAKS") {
213
- state.lineAddTitle = "\u65B0\u5EFA\u5206\u884C\u7B26";
214
- }
215
- };
216
- const handlerAddLine = () => {
217
- state.handleLIne = "add";
218
- state.lineType = "LINEBAR";
219
- addItemShowLine();
220
- };
221
- const handlerAddBranchLine = () => {
222
- state.handleLIne = "add";
223
- state.lineType = "LINE_BREAKS";
224
- addItemShowLine();
225
- state.is_show = 1;
226
- };
227
- const onChangeAdd = (e, key) => {
228
- if (e.target.checked == true) {
229
- state[key] = 1;
230
- } else {
231
- state[key] = 0;
232
- }
233
- };
234
- const handleCancel = () => {
235
- state.visibleLine = false;
236
- state.visibleLineAdd = false;
237
- };
238
- const handleOkLineAdd = () => {
239
- let isL = state.lineType === "LINEBAR";
240
- let lineDefaultName = isL ? "\u5206\u7EBF\u680F" : "\u5206\u884C\u7B26";
241
- if (state.handleLIne === "edit") {
242
- let curItem = state.showFields[state.currentIndex];
243
- state.lineType = curItem.html_type;
244
- curItem.is_show = state.is_show;
245
- if (isL) {
246
- curItem.is_not_fold = state.is_not_fold;
247
- }
248
- curItem["name"] = state.itemTitleNameAdd || lineDefaultName;
249
- } else {
250
- state.showFields.push({
251
- html_type: state.lineType || "LINEBAR",
252
- is_show: state.is_show,
253
- is_not_fold: isL ? state.is_not_fold : void 0,
254
- name: state.itemTitleNameAdd || lineDefaultName
255
- });
256
- }
257
- handleCancel();
258
- };
259
- const leftDragAdd = (e) => {
260
- let { newIndex, oldIndex } = e;
261
- if (oldIndex > -1 && oldIndex > -1) {
262
- let curItem = state.hideFields[newIndex];
263
- if (curItem.is_system_fields == 0) {
264
- state.hideFields.splice(newIndex, 1);
265
- state.showFields.splice(oldIndex, 0, curItem);
266
- }
267
- }
268
- };
269
- const handleDragRemove = (e) => {
270
- console.log("handleDragRemove", e);
271
- let { draggedContext = {}, to } = e;
272
- let movedItem = draggedContext.element || {};
273
- let className = to.className || "";
274
- if (movedItem.is_drag && movedItem.is_drag == 0 && className.includes("text-draggable")) {
275
- return false;
276
- }
277
- };
278
- const checkOnChange = (e) => {
279
- state.modalFormData.is_fast_reply = e.target.checked;
280
- };
281
- const updateConfig = () => {
282
- clearTimeout(state.updateTime);
283
- state.updateTime = setTimeout(() => {
284
- emit("updateConfig", {
285
- leftList: state.hideFields,
286
- rightList: state.showFields
287
- });
288
- }, 100);
289
- };
290
- const handleSetData = (config = {}) => {
291
- if (Array.isArray(config.rightList)) {
292
- state.showFields = config.rightList;
293
- }
294
- if (Array.isArray(config.leftList)) {
295
- state.hideFields = config.leftList;
296
- }
297
- };
298
- const mountedInit = () => {
299
- const { rightList, leftList } = props;
300
- let checkList = (v) => Array.isArray(v) && v.length > 0;
301
- if (checkList(props.rightList) || checkList(props.leftList)) {
302
- handleSetData({ rightList, leftList });
303
- }
304
- };
305
- onMounted(() => {
306
- mountedInit();
307
- nextTick(() => {
308
- textArea.value.style.height = dragLayoutContainer.value.clientHeight + "px";
309
- });
310
- });
311
- watch(
312
- [state.showFields, state.hideFields],
313
- ([showFields, hideFields]) => {
314
- updateConfig();
315
- },
316
- { deep: true }
317
- );
318
- return (_ctx, _cache) => {
319
- return openBlock(), createElementBlock("div", {
320
- class: "drag-layout-container",
321
- ref_key: "dragLayoutContainer",
322
- ref: dragLayoutContainer
323
- }, [
324
- _hoisted_1,
325
- createCommentVNode(" \u5DE6\u8FB9 "),
326
- createElementVNode("div", {
327
- class: "text-area",
328
- ref_key: "textArea",
329
- ref: textArea
330
- }, [
331
- _hoisted_2,
332
- createVNode(unref(draggableComponent), {
333
- class: "min-height text-draggable",
334
- itemKey: "val_key",
335
- modelValue: state.hideFields,
336
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.hideFields = $event),
337
- group: "formitem",
338
- animation: 300,
339
- ref: "textDraggable",
340
- onAdd: leftDragAdd
341
- }, {
342
- item: withCtx(({ element }) => [
343
- createElementVNode("li", null, [
344
- renderSlot(_ctx.$slots, "leftItem", { itemData: element }, () => [
345
- createVNode(DragFormLeftItem, { element }, null, 8, ["element"])
346
- ])
347
- ])
348
- ]),
349
- _: 3
350
- }, 8, ["modelValue"])
351
- ], 512),
352
- createCommentVNode(" \u53F3\u8FB9 "),
353
- createElementVNode("div", _hoisted_3, [
354
- createElementVNode("div", _hoisted_4, [
355
- createVNode(unref(NButton), {
356
- class: "add-divider",
357
- dashed: "",
358
- size: "small",
359
- onClick: handlerAddBranchLine
360
- }, {
361
- default: withCtx(() => [
362
- createTextVNode("\u65B0\u5EFA\u5206\u884C\u7B26")
363
- ]),
364
- _: 1
365
- }),
366
- createVNode(unref(NButton), {
367
- class: "add-divider",
368
- dashed: "",
369
- size: "small",
370
- onClick: handlerAddLine
371
- }, {
372
- default: withCtx(() => [
373
- createTextVNode("\u65B0\u5EFA\u5206\u7EBF\u680F")
374
- ]),
375
- _: 1
376
- })
377
- ]),
378
- createVNode(unref(draggableComponent), {
379
- class: "min-height draggable-content",
380
- itemKey: "val_key",
381
- modelValue: state.showFields,
382
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.showFields = $event),
383
- move: handleDragRemove,
384
- group: "formitem",
385
- animation: 300,
386
- filter: ".undraggable"
387
- }, {
388
- item: withCtx(({ element, index }) => [
389
- createElementVNode("div", {
390
- style: normalizeStyle({
391
- width: `${(element.elem_width || 12) * 2 / 24 * 100}%`,
392
- display: element.elem_width && element.elem_width < 12 ? "inline-block" : "block"
393
- }),
394
- class: normalizeClass({
395
- "combination-col": element.html_type === "COMBINATION"
396
- })
397
- }, [
398
- renderSlot(_ctx.$slots, "rightItem", { itemData: element }, () => [
399
- createVNode(DragFormRightItem, {
400
- element,
401
- index,
402
- onHandleEdit: handleEdit,
403
- onHandleDelete: handleDelete
404
- }, null, 8, ["element", "index"])
405
- ])
406
- ], 6)
407
- ]),
408
- _: 3
409
- }, 8, ["modelValue"])
410
- ]),
411
- createCommentVNode(" \u5F39\u7A97 "),
412
- state.modalVisible ? (openBlock(), createBlock(unref(NModal), {
413
- key: 0,
414
- preset: "dialog",
415
- title: "\u5B57\u6BB5\u5C5E\u6027",
416
- "positive-text": "\u786E\u8BA4",
417
- "negative-text": "\u53D6\u6D88",
418
- "show-icon": false,
419
- zIndex: 2001,
420
- show: state.modalVisible,
421
- "onUpdate:show": _cache[11] || (_cache[11] = ($event) => state.modalVisible = $event),
422
- onPositiveClick: handleOk
423
- }, {
424
- default: withCtx(() => [
425
- createVNode(unref(NForm), {
426
- ref_key: "formRef",
427
- ref: formRef,
428
- model: state.modalFormData,
429
- rules,
430
- "label-placement": "left",
431
- "label-width": "auto"
432
- }, {
433
- default: withCtx(() => [
434
- createVNode(unref(NGrid), null, {
435
- default: withCtx(() => [
436
- createCommentVNode(" \u540D\u79F0 "),
437
- !unref(is_text) ? (openBlock(), createBlock(unref(NFormItemGi), {
438
- key: 0,
439
- span: 18,
440
- label: "\u540D\u79F0"
441
- }, {
442
- default: withCtx(() => [
443
- createVNode(unref(NInput), {
444
- placeholder: "\u540D\u79F0",
445
- value: state.modalFormData.name,
446
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => state.modalFormData.name = $event)
447
- }, null, 8, ["value"])
448
- ]),
449
- _: 1
450
- })) : createCommentVNode("v-if", true),
451
- !unref(isPageLayout) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
452
- createCommentVNode(" \u9ED8\u8BA4\u503C "),
453
- !unref(is_text) ? (openBlock(), createBlock(unref(NFormItemGi), {
454
- key: 0,
455
- span: 18,
456
- label: "\u9ED8\u8BA4\u503C"
457
- }, {
458
- default: withCtx(() => [
459
- createVNode(unref(NInput), {
460
- placeholder: "\u9ED8\u8BA4\u503C",
461
- value: state.modalFormData.default_val,
462
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => state.modalFormData.default_val = $event)
463
- }, null, 8, ["value"])
464
- ]),
465
- _: 1
466
- })) : createCommentVNode("v-if", true)
467
- ], 64)) : createCommentVNode("v-if", true),
468
- createCommentVNode(" \u5BBD\u5EA6 "),
469
- !unref(hideModalWidth) ? (openBlock(), createBlock(unref(NFormItemGi), {
470
- key: 2,
471
- span: 18,
472
- label: "\u5BBD\u5EA6"
473
- }, {
474
- default: withCtx(() => [
475
- createVNode(unref(NSelect), {
476
- options: state.widthOptions,
477
- value: state.modalFormData.elem_width,
478
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => state.modalFormData.elem_width = $event)
479
- }, null, 8, ["options", "value"])
480
- ]),
481
- _: 1
482
- })) : createCommentVNode("v-if", true),
483
- createCommentVNode(" \u9AD8\u5EA6 "),
484
- unref(isPageLayout) && !unref(hideModalWidth) ? (openBlock(), createBlock(unref(NFormItemGi), {
485
- key: 3,
486
- span: 18,
487
- label: "\u9AD8\u5EA6\uFF08\u884C\uFF09"
488
- }, {
489
- default: withCtx(() => [
490
- createVNode(unref(NInput), {
491
- placeholder: "\u9AD8\u5EA6\uFF08\u884C\uFF09",
492
- value: state.modalFormData.line_height,
493
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => state.modalFormData.line_height = $event)
494
- }, null, 8, ["value"])
495
- ]),
496
- _: 1
497
- })) : createCommentVNode("v-if", true),
498
- !unref(is_text) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
499
- createCommentVNode(" \u8BF4\u660E\u6587\u672C "),
500
- !unref(isPageLayout) ? (openBlock(), createBlock(unref(NFormItemGi), {
501
- key: 0,
502
- span: 18,
503
- label: "\u8BF4\u660E\u6587\u672C"
504
- }, {
505
- default: withCtx(() => [
506
- createVNode(unref(NInput), {
507
- placeholder: "\u8BF4\u660E\u6587\u672C",
508
- value: state.modalFormData.placeholder,
509
- "onUpdate:value": _cache[6] || (_cache[6] = ($event) => state.modalFormData.placeholder = $event)
510
- }, null, 8, ["value"])
511
- ]),
512
- _: 1
513
- })) : createCommentVNode("v-if", true),
514
- state.modalFormData.html_type != "PAGE_LAYOUT" ? (openBlock(), createBlock(unref(NFormItemGi), {
515
- key: 1,
516
- span: 18,
517
- label: "\u95EE\u53F7\u63D0\u793A"
518
- }, {
519
- default: withCtx(() => [
520
- createVNode(unref(NInput), {
521
- maxLength: 200,
522
- placeholder: "\u8BF7\u8F93\u5165\u95EE\u53F7\u63D0\u793A",
523
- value: state.modalFormData.remark,
524
- "onUpdate:value": _cache[7] || (_cache[7] = ($event) => state.modalFormData.remark = $event)
525
- }, null, 8, ["value"])
526
- ]),
527
- _: 1
528
- })) : createCommentVNode("v-if", true)
529
- ], 64)) : createCommentVNode("v-if", true),
530
- state.modalFormData.is_fast_reply_field != 1 && (state.modalFormData.html_type == "TEXTAREA" || state.modalFormData.html_type == "INPUT") ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
531
- createCommentVNode(" \u5FEB\u901F\u8F93\u5165 "),
532
- createVNode(unref(NFormItemGi), {
533
- span: 18,
534
- label: "\u5FEB\u901F\u8F93\u5165"
535
- }, {
536
- default: withCtx(() => [
537
- createVNode(unref(NCheckbox), {
538
- checked: state.modalFormData.is_fast_reply,
539
- "onOnUpdate:checked": checkOnChange
540
- }, null, 8, ["checked"])
541
- ]),
542
- _: 1
543
- }),
544
- createCommentVNode(" \u56DE\u590D\u5206\u7C7B "),
545
- state.modalFormData.is_fast_reply ? (openBlock(), createBlock(unref(NFormItemGi), {
546
- key: 0,
547
- span: 18,
548
- label: "\u77ED\u8BED\u5206\u7C7B",
549
- path: "reply_category"
550
- }, {
551
- default: withCtx(() => [
552
- createVNode(unref(NSelect), {
553
- multiple: "",
554
- value: state.modalFormData.reply_category,
555
- "onUpdate:value": [
556
- _cache[8] || (_cache[8] = ($event) => state.modalFormData.reply_category = $event),
557
- changeCategofy
558
- ],
559
- filterable: "",
560
- filter: unref(XEUtils).filterOption,
561
- placeholder: "\u5206\u7C7B\u540D\u79F0",
562
- options: state.publicReply
563
- }, null, 8, ["value", "filter", "options"])
564
- ]),
565
- _: 1
566
- })) : createCommentVNode("v-if", true),
567
- createCommentVNode(" \u90E8\u5206\u9690\u85CF "),
568
- withDirectives(createVNode(unref(NFormItemGi), {
569
- label: "\u90E8\u5206\u9690\u85CF",
570
- span: 18
571
- }, {
572
- default: withCtx(() => [
573
- createVNode(unref(NInputNumber), {
574
- placeholder: "\u8BF7\u8F93\u5165",
575
- value: state.modalFormData.hideExpression,
576
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => state.modalFormData.hideExpression = $event)
577
- }, null, 8, ["value"])
578
- ]),
579
- _: 1
580
- }, 512), [
581
- [vShow, state.modalFormData.is_edit == 0]
582
- ])
583
- ], 64)) : createCommentVNode("v-if", true),
584
- createCommentVNode(" \u52A8\u6001\u6587\u672C\u503C "),
585
- unref(is_text) ? (openBlock(), createBlock(unref(NFormItemGi), {
586
- key: 6,
587
- label: "\u6587\u672C\u5185\u5BB9(\u652F\u6301FreeMarker)"
588
- }, {
589
- default: withCtx(() => [
590
- createVNode(unref(NInput), {
591
- placeholder: "\u8BF7\u8F93\u5165\u52A8\u6001\u6587\u672C\u5185\u5BB9",
592
- type: "textarea",
593
- value: state.modalFormData.default_val,
594
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => state.modalFormData.default_val = $event)
595
- }, null, 8, ["value"])
596
- ]),
597
- _: 1
598
- }, 8, ["label"])) : createCommentVNode("v-if", true)
599
- ]),
600
- _: 1
601
- })
602
- ]),
603
- _: 1
604
- }, 8, ["model"])
605
- ]),
606
- _: 1
607
- }, 8, ["show"])) : createCommentVNode("v-if", true),
608
- createVNode(unref(NModal), {
609
- preset: "dialog",
610
- title: state.lineAddTitle,
611
- "positive-text": "\u786E\u8BA4",
612
- "negative-text": "\u53D6\u6D88",
613
- "show-icon": false,
614
- zIndex: 2001,
615
- show: state.visibleLineAdd,
616
- "onUpdate:show": _cache[17] || (_cache[17] = ($event) => state.visibleLineAdd = $event),
617
- onNegativeClick: handleCancel,
618
- onPositiveClick: handleOkLineAdd
619
- }, {
620
- default: withCtx(() => [
621
- createElementVNode("div", null, [
622
- _hoisted_5,
623
- createVNode(unref(NInput), {
624
- class: "view-model-input new-name-input",
625
- value: state.itemTitleNameAdd,
626
- "onUpdate:value": _cache[12] || (_cache[12] = ($event) => state.itemTitleNameAdd = $event)
627
- }, null, 8, ["value"])
628
- ]),
629
- withDirectives(createElementVNode("div", null, [
630
- withDirectives(createElementVNode("input", {
631
- class: "name-new-change",
632
- onChange: _cache[13] || (_cache[13] = ($event) => onChangeAdd($event, "is_show")),
633
- type: "checkbox",
634
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => state.isAddChecked = $event)
635
- }, null, 544), [
636
- [vModelCheckbox, state.isAddChecked]
637
- ]),
638
- createTextVNode(" \u9ED8\u8BA4\u5C55\u5F00 "),
639
- _hoisted_6,
640
- withDirectives(createElementVNode("input", {
641
- class: "name-new-change",
642
- onChange: _cache[15] || (_cache[15] = ($event) => onChangeAdd($event, "is_not_fold")),
643
- type: "checkbox",
644
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => state.is_not_foldChecked = $event)
645
- }, null, 544), [
646
- [vModelCheckbox, state.is_not_foldChecked]
647
- ]),
648
- createTextVNode(" \u4E0D\u53EF\u6298\u53E0 "),
649
- createCommentVNode(' {{ $t("1.9.69") }} ')
650
- ], 512), [
651
- [vShow, state.lineType != "LINE_BREAKS"]
652
- ])
653
- ]),
654
- _: 1
655
- }, 8, ["title", "show"])
656
- ], 512);
657
- };
658
- }
659
- });
660
- var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "DragLayout.vue"]]);
661
-
662
- export { script as default };
@@ -1 +0,0 @@
1
- .drag-layout-container{border:1px solid #d2d9e8;display:flex;flex:1;height:100%;justify-content:flex-start;overflow:hidden;overflow-y:auto;position:relative;text-align:left;width:100%}.drag-layout-container .min-height{height:calc(100% - 60px);overflow:hidden;overflow-y:auto}.drag-layout-container .min-height li{list-style:none}.drag-layout-container .border-box{border-left:1px solid #d2d9e8;height:100%;left:30%;position:absolute;top:0}.drag-layout-container .text-area{height:100%;overflow-y:auto;padding:0!important;width:30%}.drag-layout-container .text-area .info-header{background:#e6eaef;color:#2e2e2e;display:flex;font-size:18px;font-weight:700;height:50px;line-height:50px;margin-bottom:10px;padding:0 10px}.drag-layout-container .text-area .text-draggable{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-between;padding:0 12px 12px}.drag-layout-container .text-area .text-draggable li{text-align:center;width:49%}.drag-layout-container .form-area{box-sizing:border-box;height:100%;overflow-y:auto;padding:4px;position:relative;width:70%}.drag-layout-container .form-area::-webkit-scrollbar{width:5px}.drag-layout-container .form-area .info-header{align-items:center;background:unset;display:flex;height:50px;justify-content:flex-end;margin-bottom:10px}.drag-layout-container .form-area .combination-col{border:1px solid #cdc5d3;margin-bottom:10px}.dragForm-select-drop{z-index:2001}.DragFormRightItem{position:relative}.DragFormRightItem .is-edit-class{background-color:#f5f5f5!important;border-color:#d9d9d9!important}.DragFormRightItem .combination-item{padding:0 8px 8px}.DragFormRightItem .combination-item>div{line-height:35px}.DragFormRightItem .combination-item>div:hover>.form-btn{display:flex}.DragFormRightItem .form-btn{align-items:center;display:none;height:100%;position:absolute;right:0;top:-1px;white-space:nowrap}.DragFormRightItem .form-btn .quick-reply{border:1px dashed #cdc5d3;display:inline-block;font-size:12px;height:22px;line-height:1.499}.DragFormRightItem .form-btn:deep(.n-input),.DragFormRightItem .form-btn:deep(.n-select){margin-left:5px}.DragFormRightItem .form-btn:deep(.n-select){top:-3px}.DragFormRightItem .right-content{background:#fdfdfd;border:1px dashed #cdc5d3;cursor:pointer;height:35px;line-height:35px;margin-bottom:10px;padding:0 10px;position:relative}.DragFormRightItem .right-content:hover .form-btn{display:flex}.DragFormRightItem .blue-border{border:1px solid #5585f5!important}.DragFormRightItem .item-opacity{opacity:.5}.DragFormRightItem .red{color:red}.DragFormLeftItem .left-content{color:#2e2e2e;cursor:pointer;margin-bottom:16px;overflow:hidden;width:100%}.DragFormLeftItem .left-content .style-box{align-items:center;background:#f3f5f8;box-sizing:border-box;display:flex;height:60px;justify-content:center;margin-bottom:8px;padding:0 8px;width:100%}.DragFormLeftItem .left-content .style-box-input{cursor:pointer!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}.DragFormLeftItem .left-content .style-box input[type=checkbox].disabled,.DragFormLeftItem .left-content .style-box input[type=checkbox][disabled],.DragFormLeftItem .left-content .style-box input[type=radio].disabled,.DragFormLeftItem .left-content .style-box input[type=radio][disabled]{cursor:pointer!important}