@opendesign-plus-test/components 0.0.1-rc.171 → 0.0.1-rc.173

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.
@@ -5,6 +5,7 @@ import { useMeetingConfig } from "./composables/useMeetingConfig.mjs";
5
5
  import { EMAIL_REGEX } from "./config.mjs";
6
6
  const _hoisted_1 = { class: "sender-text" };
7
7
  const _hoisted_2 = ["placeholder", "onKeydown"];
8
+ const _hoisted_3 = { class: "email-body-content" };
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  __name: "OMeetingSendMinutesForm",
10
11
  props: {
@@ -45,17 +46,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
46
  };
46
47
  const sender = computed(() => {
47
48
  var _a;
48
- return ((_a = props.meeting) == null ? void 0 : _a.email_list) || "";
49
+ return ((_a = props.meeting) == null ? void 0 : _a.sender) || "";
49
50
  });
50
51
  const defaultSubject = () => {
51
52
  if (!props.meeting) return "";
52
53
  const { topic, date } = props.meeting;
53
54
  return t("meeting.sendMinutesSubjectDefault", [topic, date || ""]);
54
55
  };
56
+ const normalizeRecipients = (source) => [...new Set(source.map((item) => item.trim()).filter(Boolean))];
55
57
  const reset = () => {
56
58
  var _a;
57
59
  if (!props.meeting) return;
58
- formModel.value.recipients = props.prefill && props.prefill.length ? [...props.prefill] : [props.meeting.email_list];
60
+ if (props.prefill && props.prefill.length) {
61
+ formModel.value.recipients = normalizeRecipients(props.prefill);
62
+ } else {
63
+ formModel.value.recipients = normalizeRecipients((props.meeting.email_list || "").split(/[,;,;]/));
64
+ }
59
65
  formModel.value.subject = defaultSubject();
60
66
  extraInput.value = "";
61
67
  (_a = formRef.value) == null ? void 0 : _a.clearValidate();
@@ -193,9 +199,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
193
199
  "disabled-x": "",
194
200
  "show-type": "auto"
195
201
  }, {
196
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
197
- createElementVNode("div", { class: "email-body-content" }, "'这是一段zh9ongwen文字'", -1)
198
- ])]),
202
+ default: withCtx(() => {
203
+ var _a;
204
+ return [
205
+ createElementVNode("div", _hoisted_3, toDisplayString((_a = __props.meeting) == null ? void 0 : _a.minutes), 1)
206
+ ];
207
+ }),
199
208
  _: 1
200
209
  })
201
210
  ]),
@@ -137,6 +137,7 @@ export interface MeetingItemT extends MeetingPostT {
137
137
  hasObsData?: boolean;
138
138
  minutes?: string;
139
139
  send_logs?: SendLogT[];
140
+ sender?: string;
140
141
  }
141
142
  export interface SendLogT {
142
143
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.171",
3
+ "version": "0.0.1-rc.173",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",