@aplus-frontend/ui 0.0.1-beta.20 → 0.0.1-beta.21

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 (39) hide show
  1. package/es/src/theme/antd-global-overwrite/admin/index.css +20 -1
  2. package/es/src/theme/antd-global-overwrite/admin/steps.css +20 -1
  3. package/es/src/theme/antd-global-overwrite/aplus/index.css +29 -0
  4. package/es/src/theme/antd-global-overwrite/aplus/steps.css +17 -0
  5. package/es/src/theme/antd-global-overwrite/aplus/table.css +12 -0
  6. package/es/src/work-order-modal/work-order-modal.vue.mjs +27 -23
  7. package/lib/src/theme/antd-global-overwrite/admin/index.css +20 -1
  8. package/lib/src/theme/antd-global-overwrite/admin/steps.css +20 -1
  9. package/lib/src/theme/antd-global-overwrite/aplus/index.css +29 -0
  10. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +17 -0
  11. package/lib/src/theme/antd-global-overwrite/aplus/table.css +12 -0
  12. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  13. package/package.json +1 -1
  14. package/es/src/base-button/index.d.ts +0 -137
  15. package/es/src/basic/index.d.ts +0 -278
  16. package/es/src/button/index.d.ts +0 -51
  17. package/es/src/config-provider/index.d.ts +0 -691
  18. package/es/src/container/index.d.ts +0 -178
  19. package/es/src/count-down/index.d.ts +0 -150
  20. package/es/src/description/index.d.ts +0 -214
  21. package/es/src/dropdown/index.d.ts +0 -113
  22. package/es/src/icon/index.d.ts +0 -208
  23. package/es/src/icon-picker/index.d.ts +0 -190
  24. package/es/src/scroll-bar/index.d.ts +0 -177
  25. package/es/src/strength-meter/index.d.ts +0 -89
  26. package/es/src/transition/index.d.ts +0 -369
  27. package/lib/src/base-button/index.d.ts +0 -137
  28. package/lib/src/basic/index.d.ts +0 -278
  29. package/lib/src/button/index.d.ts +0 -51
  30. package/lib/src/config-provider/index.d.ts +0 -691
  31. package/lib/src/container/index.d.ts +0 -178
  32. package/lib/src/count-down/index.d.ts +0 -150
  33. package/lib/src/description/index.d.ts +0 -214
  34. package/lib/src/dropdown/index.d.ts +0 -113
  35. package/lib/src/icon/index.d.ts +0 -208
  36. package/lib/src/icon-picker/index.d.ts +0 -190
  37. package/lib/src/scroll-bar/index.d.ts +0 -177
  38. package/lib/src/strength-meter/index.d.ts +0 -89
  39. package/lib/src/transition/index.d.ts +0 -369
@@ -267,11 +267,16 @@
267
267
  .ant-steps > * {
268
268
  margin-right: 8px;
269
269
  }
270
+ .ant-steps .ant-steps-item-container {
271
+ display: flex;
272
+ }
270
273
  .ant-steps .ant-steps-item-icon {
271
274
  width: 28px;
272
275
  height: 28px;
273
276
  margin-top: 4px;
274
- line-height: 28px;
277
+ display: flex;
278
+ justify-content: center;
279
+ align-items: center;
275
280
  }
276
281
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
277
282
  background-color: #ffffff;
@@ -304,6 +309,9 @@
304
309
  .ant-steps .ant-steps-item-content {
305
310
  margin-left: 4px;
306
311
  }
312
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
313
+ background-color: #ff4d4f;
314
+ }
307
315
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
308
316
  background-color: #34b77c;
309
317
  }
@@ -337,6 +345,17 @@
337
345
  font-size: 12px;
338
346
  line-height: 1em;
339
347
  }
348
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
349
+ margin-inline-end: 8px;
350
+ }
351
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
352
+ width: 28px;
353
+ height: 28px;
354
+ margin-top: 4px;
355
+ display: flex;
356
+ justify-content: center;
357
+ align-items: center;
358
+ }
340
359
  .ant-table-wrapper {
341
360
  border-radius: 0 !important;
342
361
  }
@@ -1,11 +1,16 @@
1
1
  .ant-steps > * {
2
2
  margin-right: 8px;
3
3
  }
4
+ .ant-steps .ant-steps-item-container {
5
+ display: flex;
6
+ }
4
7
  .ant-steps .ant-steps-item-icon {
5
8
  width: 28px;
6
9
  height: 28px;
7
10
  margin-top: 4px;
8
- line-height: 28px;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
9
14
  }
10
15
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
11
16
  background-color: #ffffff;
@@ -38,6 +43,9 @@
38
43
  .ant-steps .ant-steps-item-content {
39
44
  margin-left: 4px;
40
45
  }
46
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
47
+ background-color: #ff4d4f;
48
+ }
41
49
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
42
50
  background-color: #34b77c;
43
51
  }
@@ -71,3 +79,14 @@
71
79
  font-size: 12px;
72
80
  line-height: 1em;
73
81
  }
82
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
83
+ margin-inline-end: 8px;
84
+ }
85
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
86
+ width: 28px;
87
+ height: 28px;
88
+ margin-top: 4px;
89
+ display: flex;
90
+ justify-content: center;
91
+ align-items: center;
92
+ }
@@ -274,6 +274,9 @@
274
274
  .ant-steps > * {
275
275
  margin-right: 12px;
276
276
  }
277
+ .ant-steps .ant-steps-item-container {
278
+ display: flex;
279
+ }
277
280
  .ant-steps .ant-steps-item-icon {
278
281
  width: 28px;
279
282
  height: 28px;
@@ -310,6 +313,9 @@
310
313
  .ant-steps .ant-steps-item-content {
311
314
  margin-left: 4px;
312
315
  }
316
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
317
+ background-color: #ff4d4f;
318
+ }
313
319
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
314
320
  color: #ffffff;
315
321
  font-weight: 500;
@@ -340,3 +346,26 @@
340
346
  font-size: 12px;
341
347
  line-height: 1em;
342
348
  }
349
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
350
+ margin-inline-end: 8px;
351
+ }
352
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
353
+ width: 28px;
354
+ height: 28px;
355
+ margin-top: 4px;
356
+ display: flex;
357
+ justify-content: center;
358
+ align-items: center;
359
+ }
360
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
361
+ padding: 16px;
362
+ }
363
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
364
+ padding: 16px !important;
365
+ }
366
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
367
+ padding: 11px 16px !important;
368
+ }
369
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
370
+ padding: 8px 16px !important;
371
+ }
@@ -1,6 +1,9 @@
1
1
  .ant-steps > * {
2
2
  margin-right: 12px;
3
3
  }
4
+ .ant-steps .ant-steps-item-container {
5
+ display: flex;
6
+ }
4
7
  .ant-steps .ant-steps-item-icon {
5
8
  width: 28px;
6
9
  height: 28px;
@@ -37,6 +40,9 @@
37
40
  .ant-steps .ant-steps-item-content {
38
41
  margin-left: 4px;
39
42
  }
43
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
44
+ background-color: #ff4d4f;
45
+ }
40
46
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
41
47
  color: #ffffff;
42
48
  font-weight: 500;
@@ -67,3 +73,14 @@
67
73
  font-size: 12px;
68
74
  line-height: 1em;
69
75
  }
76
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
77
+ margin-inline-end: 8px;
78
+ }
79
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
80
+ width: 28px;
81
+ height: 28px;
82
+ margin-top: 4px;
83
+ display: flex;
84
+ justify-content: center;
85
+ align-items: center;
86
+ }
@@ -0,0 +1,12 @@
1
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
2
+ padding: 16px;
3
+ }
4
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
5
+ padding: 16px !important;
6
+ }
7
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
8
+ padding: 11px 16px !important;
9
+ }
10
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
11
+ padding: 8px 16px !important;
12
+ }
@@ -1,14 +1,14 @@
1
- import { defineComponent as B, ref as c, openBlock as F, createElementBlock as T, createVNode as t, unref as e, mergeProps as h, withCtx as a, h as w } from "vue";
2
- import { message as O, Modal as A, Input as q, Textarea as I } from "ant-design-vue";
1
+ import { defineComponent as B, ref as m, openBlock as F, createElementBlock as h, createVNode as t, unref as e, mergeProps as T, withCtx as n, h as w } from "vue";
2
+ import { message as O, Modal as A, Input as N, Textarea as q } from "ant-design-vue";
3
3
  import { ApForm as r } from "../ap-form/index.mjs";
4
4
  import "./help-message.vue.mjs";
5
5
  import "../ap-upload/index.mjs";
6
6
  import { DictCode as g } from "./interfaces.mjs";
7
7
  import "../config-provider/index.mjs";
8
8
  import "./style/index.css";
9
- import { useGlobalConfig as L } from "../config-provider/hooks/use-global-config.mjs";
10
- import { useLocale as N } from "../config-provider/hooks/use-locale.mjs";
11
- import P from "../ap-form/items/select/index.vue.mjs";
9
+ import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
10
+ import { useLocale as P } from "../config-provider/hooks/use-locale.mjs";
11
+ import L from "../ap-form/items/select/index.vue.mjs";
12
12
  import R from "../ap-form/items/radio/index.vue.mjs";
13
13
  import S from "../ap-upload/apUpload.vue.mjs";
14
14
  import $ from "./help-message.vue2.mjs";
@@ -57,20 +57,20 @@ const Y = /* @__PURE__ */ B({
57
57
  mousePosition: {}
58
58
  },
59
59
  emits: ["modalClose"],
60
- setup(k, { emit: x }) {
61
- const m = c(), l = c(!1), p = c(!0), i = k, C = L("api"), { lang: v } = N(), _ = x, u = async (n) => {
60
+ setup(k, { emit: v }) {
61
+ const c = m(), l = m(!1), p = m(!0), i = k, x = I("api"), { lang: C } = P(), _ = v, u = async (a) => {
62
62
  var s, d;
63
- const o = await ((d = (s = C.value) == null ? void 0 : s.select) == null ? void 0 : d.call(s, {
64
- dictCode: n,
65
- locale: v
63
+ const o = await ((d = (s = x.value) == null ? void 0 : s.select) == null ? void 0 : d.call(s, {
64
+ dictCode: a,
65
+ locale: C.value
66
66
  }));
67
67
  return o == null ? void 0 : o.map((y) => ({ label: y.itemText, value: y.itemValue }));
68
68
  }, b = async () => {
69
- var n;
69
+ var a;
70
70
  if (!l.value)
71
71
  try {
72
72
  l.value = !0;
73
- const o = await ((n = m.value) == null ? void 0 : n.validateFields());
73
+ const o = await ((a = c.value) == null ? void 0 : a.validateFields());
74
74
  console.log("params", o), await i.api(o), l.value = !1, O.success("操作成功"), f();
75
75
  } catch {
76
76
  l.value = !1;
@@ -79,8 +79,8 @@ const Y = /* @__PURE__ */ B({
79
79
  }, f = () => {
80
80
  p.value = !1, _("modalClose");
81
81
  };
82
- return (n, o) => (F(), T("div", null, [
83
- t(e(A), h(i, {
82
+ return (a, o) => (F(), h("div", null, [
83
+ t(e(A), T(i, {
84
84
  open: p.value,
85
85
  title: "创建工单",
86
86
  "ok-text": "确认",
@@ -88,26 +88,26 @@ const Y = /* @__PURE__ */ B({
88
88
  onOk: b,
89
89
  onCancel: f
90
90
  }), {
91
- default: a(() => [
91
+ default: n(() => [
92
92
  t(e(r), {
93
93
  ref_key: "formRef",
94
- ref: m
94
+ ref: c
95
95
  }, {
96
- default: a(() => [
96
+ default: n(() => [
97
97
  t(e(r).FormItem, {
98
98
  label: "工单标题",
99
99
  name: "ticketsTitle",
100
100
  rules: [{ required: !0, message: "不可为空" }]
101
101
  }, {
102
- default: a(() => [
103
- t(e(q), {
102
+ default: n(() => [
103
+ t(e(N), {
104
104
  maxlength: 50,
105
105
  "show-count": !0
106
106
  })
107
107
  ]),
108
108
  _: 1
109
109
  }),
110
- t(e(P), {
110
+ t(e(L), {
111
111
  label: "工单类型",
112
112
  name: "ticketsType",
113
113
  rules: [{ required: !0, message: "不可为空" }],
@@ -120,8 +120,8 @@ const Y = /* @__PURE__ */ B({
120
120
  name: "ticketsContent",
121
121
  rules: [{ required: !0, message: "不可为空" }]
122
122
  }, {
123
- default: a(() => [
124
- t(e(I), {
123
+ default: n(() => [
124
+ t(e(q), {
125
125
  maxlength: 300,
126
126
  "show-count": !0
127
127
  })
@@ -137,11 +137,15 @@ const Y = /* @__PURE__ */ B({
137
137
  }
138
138
  }, null, 8, ["field"]),
139
139
  t(e(r).FormItem, { name: "files" }, {
140
- default: a(() => [
140
+ default: n(() => [
141
141
  t(e(S), {
142
142
  dirName: "WorkOrder",
143
143
  getOssAccess: i.getOssAccess,
144
144
  type: "multipleFile",
145
+ needName: {
146
+ pathKey: "filePath",
147
+ nameKey: "fileName"
148
+ },
145
149
  accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
146
150
  maxCount: 10,
147
151
  maxSize: 50,
@@ -267,11 +267,16 @@
267
267
  .ant-steps > * {
268
268
  margin-right: 8px;
269
269
  }
270
+ .ant-steps .ant-steps-item-container {
271
+ display: flex;
272
+ }
270
273
  .ant-steps .ant-steps-item-icon {
271
274
  width: 28px;
272
275
  height: 28px;
273
276
  margin-top: 4px;
274
- line-height: 28px;
277
+ display: flex;
278
+ justify-content: center;
279
+ align-items: center;
275
280
  }
276
281
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
277
282
  background-color: #ffffff;
@@ -304,6 +309,9 @@
304
309
  .ant-steps .ant-steps-item-content {
305
310
  margin-left: 4px;
306
311
  }
312
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
313
+ background-color: #ff4d4f;
314
+ }
307
315
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
308
316
  background-color: #34b77c;
309
317
  }
@@ -337,6 +345,17 @@
337
345
  font-size: 12px;
338
346
  line-height: 1em;
339
347
  }
348
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
349
+ margin-inline-end: 8px;
350
+ }
351
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
352
+ width: 28px;
353
+ height: 28px;
354
+ margin-top: 4px;
355
+ display: flex;
356
+ justify-content: center;
357
+ align-items: center;
358
+ }
340
359
  .ant-table-wrapper {
341
360
  border-radius: 0 !important;
342
361
  }
@@ -1,11 +1,16 @@
1
1
  .ant-steps > * {
2
2
  margin-right: 8px;
3
3
  }
4
+ .ant-steps .ant-steps-item-container {
5
+ display: flex;
6
+ }
4
7
  .ant-steps .ant-steps-item-icon {
5
8
  width: 28px;
6
9
  height: 28px;
7
10
  margin-top: 4px;
8
- line-height: 28px;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
9
14
  }
10
15
  .ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
11
16
  background-color: #ffffff;
@@ -38,6 +43,9 @@
38
43
  .ant-steps .ant-steps-item-content {
39
44
  margin-left: 4px;
40
45
  }
46
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
47
+ background-color: #ff4d4f;
48
+ }
41
49
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
42
50
  background-color: #34b77c;
43
51
  }
@@ -71,3 +79,14 @@
71
79
  font-size: 12px;
72
80
  line-height: 1em;
73
81
  }
82
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
83
+ margin-inline-end: 8px;
84
+ }
85
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
86
+ width: 28px;
87
+ height: 28px;
88
+ margin-top: 4px;
89
+ display: flex;
90
+ justify-content: center;
91
+ align-items: center;
92
+ }
@@ -274,6 +274,9 @@
274
274
  .ant-steps > * {
275
275
  margin-right: 12px;
276
276
  }
277
+ .ant-steps .ant-steps-item-container {
278
+ display: flex;
279
+ }
277
280
  .ant-steps .ant-steps-item-icon {
278
281
  width: 28px;
279
282
  height: 28px;
@@ -310,6 +313,9 @@
310
313
  .ant-steps .ant-steps-item-content {
311
314
  margin-left: 4px;
312
315
  }
316
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
317
+ background-color: #ff4d4f;
318
+ }
313
319
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
314
320
  color: #ffffff;
315
321
  font-weight: 500;
@@ -340,3 +346,26 @@
340
346
  font-size: 12px;
341
347
  line-height: 1em;
342
348
  }
349
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
350
+ margin-inline-end: 8px;
351
+ }
352
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
353
+ width: 28px;
354
+ height: 28px;
355
+ margin-top: 4px;
356
+ display: flex;
357
+ justify-content: center;
358
+ align-items: center;
359
+ }
360
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
361
+ padding: 16px;
362
+ }
363
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
364
+ padding: 16px !important;
365
+ }
366
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
367
+ padding: 11px 16px !important;
368
+ }
369
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
370
+ padding: 8px 16px !important;
371
+ }
@@ -1,6 +1,9 @@
1
1
  .ant-steps > * {
2
2
  margin-right: 12px;
3
3
  }
4
+ .ant-steps .ant-steps-item-container {
5
+ display: flex;
6
+ }
4
7
  .ant-steps .ant-steps-item-icon {
5
8
  width: 28px;
6
9
  height: 28px;
@@ -37,6 +40,9 @@
37
40
  .ant-steps .ant-steps-item-content {
38
41
  margin-left: 4px;
39
42
  }
43
+ .ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
44
+ background-color: #ff4d4f;
45
+ }
40
46
  .ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
41
47
  color: #ffffff;
42
48
  font-weight: 500;
@@ -67,3 +73,14 @@
67
73
  font-size: 12px;
68
74
  line-height: 1em;
69
75
  }
76
+ .ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
77
+ margin-inline-end: 8px;
78
+ }
79
+ .ant-steps.ant-steps-vertical .ant-steps-item-icon {
80
+ width: 28px;
81
+ height: 28px;
82
+ margin-top: 4px;
83
+ display: flex;
84
+ justify-content: center;
85
+ align-items: center;
86
+ }
@@ -0,0 +1,12 @@
1
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
2
+ padding: 16px;
3
+ }
4
+ .ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
5
+ padding: 16px !important;
6
+ }
7
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
8
+ padding: 11px 16px !important;
9
+ }
10
+ .ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
11
+ padding: 8px 16px !important;
12
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("ant-design-vue"),s=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const m=require("./interfaces.js");require("../config-provider/index.js");require("./style/index.css");const k=require("../config-provider/hooks/use-global-config.js"),q=require("../config-provider/hooks/use-locale.js"),b=require("../ap-form/items/select/index.vue.js"),F=require("../ap-form/items/radio/index.vue.js"),h=require("../ap-upload/apUpload.vue.js"),B=require("./help-message.vue2.js"),w=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{type:Function},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["modalClose"],setup(_,{emit:y}){const u=e.ref(),n=e.ref(!1),i=e.ref(!0),l=_,g=k.useGlobalConfig("api"),{lang:v}=q.useLocale(),x=y,c=async o=>{var r,d;const t=await((d=(r=g.value)==null?void 0:r.select)==null?void 0:d.call(r,{dictCode:o,locale:v}));return t==null?void 0:t.map(f=>({label:f.itemText,value:f.itemValue}))},C=async()=>{var o;if(!n.value)try{n.value=!0;const t=await((o=u.value)==null?void 0:o.validateFields());console.log("params",t),await l.api(t),n.value=!1,a.message.success("操作成功"),p()}catch{n.value=!1;return}},p=()=>{i.value=!1,x("modalClose")};return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(a.Modal),e.mergeProps(l,{open:i.value,title:"创建工单","ok-text":"确认","cancel-text":"取消",onOk:C,onCancel:p}),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm),{ref_key:"formRef",ref:u},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ApForm).FormItem,{label:"工单标题",name:"ticketsTitle",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(a.Input),{maxlength:50,"show-count":!0})]),_:1}),e.createVNode(e.unref(b.default),{label:"工单类型",name:"ticketsType",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(m.DictCode).TicketsType)}},null,8,["field"]),e.createVNode(e.unref(s.ApForm).FormItem,{label:"工单详情",name:"ticketsContent",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(a.Textarea),{maxlength:300,"show-count":!0})]),_:1}),e.createVNode(e.unref(F.default),{label:"优先级",name:"ticketsLevel",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(m.DictCode).TicketsLevel)}},null,8,["field"]),e.createVNode(e.unref(s.ApForm).FormItem,{name:"files"},{default:e.withCtx(()=>[e.createVNode(e.unref(h.default),{dirName:"WorkOrder",getOssAccess:l.getOssAccess,type:"multipleFile",accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",maxCount:10,maxSize:50,subTitle:e.h(B.default)},null,8,["getOssAccess","subTitle"])]),_:1})]),_:1},512)]),_:1},16,["open"])]))}});exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),l=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const f=require("./interfaces.js");require("../config-provider/index.js");require("./style/index.css");const k=require("../config-provider/hooks/use-global-config.js"),q=require("../config-provider/hooks/use-locale.js"),b=require("../ap-form/items/select/index.vue.js"),h=require("../ap-form/items/radio/index.vue.js"),F=require("../ap-upload/apUpload.vue.js"),B=require("./help-message.vue2.js"),N=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{type:Function},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["modalClose"],setup(_,{emit:y}){const u=e.ref(),n=e.ref(!1),i=e.ref(!0),s=_,g=k.useGlobalConfig("api"),{lang:v}=q.useLocale(),x=y,c=async o=>{var a,d;const t=await((d=(a=g.value)==null?void 0:a.select)==null?void 0:d.call(a,{dictCode:o,locale:v.value}));return t==null?void 0:t.map(m=>({label:m.itemText,value:m.itemValue}))},C=async()=>{var o;if(!n.value)try{n.value=!0;const t=await((o=u.value)==null?void 0:o.validateFields());console.log("params",t),await s.api(t),n.value=!1,r.message.success("操作成功"),p()}catch{n.value=!1;return}},p=()=>{i.value=!1,x("modalClose")};return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(r.Modal),e.mergeProps(s,{open:i.value,title:"创建工单","ok-text":"确认","cancel-text":"取消",onOk:C,onCancel:p}),{default:e.withCtx(()=>[e.createVNode(e.unref(l.ApForm),{ref_key:"formRef",ref:u},{default:e.withCtx(()=>[e.createVNode(e.unref(l.ApForm).FormItem,{label:"工单标题",name:"ticketsTitle",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Input),{maxlength:50,"show-count":!0})]),_:1}),e.createVNode(e.unref(b.default),{label:"工单类型",name:"ticketsType",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(f.DictCode).TicketsType)}},null,8,["field"]),e.createVNode(e.unref(l.ApForm).FormItem,{label:"工单详情",name:"ticketsContent",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Textarea),{maxlength:300,"show-count":!0})]),_:1}),e.createVNode(e.unref(h.default),{label:"优先级",name:"ticketsLevel",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(f.DictCode).TicketsLevel)}},null,8,["field"]),e.createVNode(e.unref(l.ApForm).FormItem,{name:"files"},{default:e.withCtx(()=>[e.createVNode(e.unref(F.default),{dirName:"WorkOrder",getOssAccess:s.getOssAccess,type:"multipleFile",needName:{pathKey:"filePath",nameKey:"fileName"},accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",maxCount:10,maxSize:50,subTitle:e.h(B.default)},null,8,["getOssAccess","subTitle"])]),_:1})]),_:1},512)]),_:1},16,["open"])]))}});exports.default=N;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.0.1-beta.20",
3
+ "version": "0.0.1-beta.21",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -1,137 +0,0 @@
1
- import { default as ModalButton } from './modal-button.vue';
2
- import { default as PopConfirmButton } from './pop-confirm-button.vue';
3
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '@vue/runtime-core';
4
- export * from './interface';
5
- export { ModalButton, PopConfirmButton };
6
- export declare const BaseButton: {
7
- new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
8
- text: {
9
- type: PropType<string>;
10
- };
11
- color: {
12
- type: PropType<"primary" | "success" | "error" | "warning">;
13
- };
14
- disabled: {
15
- type: PropType<boolean>;
16
- };
17
- onClick: {
18
- type: PropType<() => void>;
19
- };
20
- loading: {
21
- type: PropType<boolean>;
22
- };
23
- preIcon: {
24
- type: PropType<string>;
25
- };
26
- postIcon: {
27
- type: PropType<string>;
28
- };
29
- iconSize: {
30
- type: PropType<number>;
31
- default: number;
32
- };
33
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
34
- text: {
35
- type: PropType<string>;
36
- };
37
- color: {
38
- type: PropType<"primary" | "success" | "error" | "warning">;
39
- };
40
- disabled: {
41
- type: PropType<boolean>;
42
- };
43
- onClick: {
44
- type: PropType<() => void>;
45
- };
46
- loading: {
47
- type: PropType<boolean>;
48
- };
49
- preIcon: {
50
- type: PropType<string>;
51
- };
52
- postIcon: {
53
- type: PropType<string>;
54
- };
55
- iconSize: {
56
- type: PropType<number>;
57
- default: number;
58
- };
59
- }>>, {
60
- iconSize: number;
61
- }, true, {}, {}, {
62
- P: {};
63
- B: {};
64
- D: {};
65
- C: {};
66
- M: {};
67
- Defaults: {};
68
- }, Readonly< ExtractPropTypes<{
69
- text: {
70
- type: PropType<string>;
71
- };
72
- color: {
73
- type: PropType<"primary" | "success" | "error" | "warning">;
74
- };
75
- disabled: {
76
- type: PropType<boolean>;
77
- };
78
- onClick: {
79
- type: PropType<() => void>;
80
- };
81
- loading: {
82
- type: PropType<boolean>;
83
- };
84
- preIcon: {
85
- type: PropType<string>;
86
- };
87
- postIcon: {
88
- type: PropType<string>;
89
- };
90
- iconSize: {
91
- type: PropType<number>;
92
- default: number;
93
- };
94
- }>>, {}, {}, {}, {}, {
95
- iconSize: number;
96
- }>;
97
- __isFragment?: undefined;
98
- __isTeleport?: undefined;
99
- __isSuspense?: undefined;
100
- } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
101
- text: {
102
- type: PropType<string>;
103
- };
104
- color: {
105
- type: PropType<"primary" | "success" | "error" | "warning">;
106
- };
107
- disabled: {
108
- type: PropType<boolean>;
109
- };
110
- onClick: {
111
- type: PropType<() => void>;
112
- };
113
- loading: {
114
- type: PropType<boolean>;
115
- };
116
- preIcon: {
117
- type: PropType<string>;
118
- };
119
- postIcon: {
120
- type: PropType<string>;
121
- };
122
- iconSize: {
123
- type: PropType<number>;
124
- default: number;
125
- };
126
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
127
- iconSize: number;
128
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
129
- $slots: {
130
- icon?(_: {}): any;
131
- default?(_: any): any;
132
- };
133
- }) & Plugin<any[]> & (new (...args: any[]) => {
134
- $props: {
135
- onClick?: (() => void) | undefined;
136
- };
137
- });