@opentiny/tiny-engine-workspace-application-center 2.9.0-rc.0 → 2.9.0

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/index.js CHANGED
@@ -1,108 +1,108 @@
1
1
  import "./style.css";
2
- import { ref as j, reactive as R, onMounted as M, resolveComponent as m, createBlock as D, openBlock as _, withCtx as r, createVNode as o, createElementVNode as c, Transition as W, createElementBlock as b, createCommentVNode as I, Fragment as G, renderList as H, createTextVNode as B, normalizeClass as X, toDisplayString as O } from "vue";
3
- import { Select as q, FormItem as Y, Form as Z, DialogBox as $, Button as J, Input as ee, Notify as E, Search as te, Popover as ne, GridColumn as oe, Grid as ae, Pager as ie, Modal as le } from "@opentiny/vue";
2
+ import { ref as E, reactive as j, onMounted as N, resolveComponent as c, createBlock as R, openBlock as d, withCtx as r, createVNode as o, createElementVNode as p, createElementBlock as _, createCommentVNode as w, Transition as W, Fragment as D, renderList as G, createTextVNode as P, normalizeClass as X, toDisplayString as z } from "vue";
3
+ import { Select as K, FormItem as Y, Form as Z, DialogBox as $, Button as M, Input as ee, Notify as O, Search as te, Popover as ne, GridColumn as oe, Grid as ae, Pager as ie, Modal as le } from "@opentiny/vue";
4
4
  import { iconSearch as se } from "@opentiny/vue-icon";
5
5
  import { SearchEmpty as re } from "@opentiny/tiny-engine-common";
6
- import { callEntry as F, getMetaApi as v, META_SERVICE as h } from "@opentiny/tiny-engine-meta-register";
6
+ import { callEntry as U, getMetaApi as f, META_SERVICE as h } from "@opentiny/tiny-engine-meta-register";
7
7
  const pe = {
8
8
  id: "engine.workspace.application-center",
9
9
  title: "应用中心",
10
10
  type: "workspace",
11
11
  icon: "workspace-icon-application-center"
12
- }, P = F(() => v(h.Http).get("/material-center/api/business-category/list"), {
12
+ }, L = U(() => f(h.Http).get("/material-center/api/business-category/list"), {
13
13
  metaData: {
14
14
  id: "engine.plugins.blockmanage.js-http.fetchBusinessCategory"
15
15
  },
16
16
  ctx: () => ({
17
- getMetaApi: v,
17
+ getMetaApi: f,
18
18
  META_SERVICE: h,
19
- fetchBusinessCategory: P,
19
+ fetchBusinessCategory: L,
20
20
  fetchBusinessCategoryByGroup: V,
21
- fetchApplicationList: A,
22
- createApplication: T,
23
- updateApplication: U,
24
- deleteApplication: z
21
+ fetchApplicationList: x,
22
+ createApplication: B,
23
+ updateApplication: A,
24
+ deleteApplication: T
25
25
  })
26
- }), V = F((a) => v(h.Http).get(`/material-center/api/business-category/find?group=${a}`), {
26
+ }), V = U((l) => f(h.Http).get(`/material-center/api/business-category/find?group=${l}`), {
27
27
  metaData: {
28
28
  id: "engine.plugins.blockmanage.js-http.fetchBusinessCategoryByGroup"
29
29
  },
30
30
  ctx: () => ({
31
- getMetaApi: v,
31
+ getMetaApi: f,
32
32
  META_SERVICE: h,
33
- fetchBusinessCategory: P,
33
+ fetchBusinessCategory: L,
34
34
  fetchBusinessCategoryByGroup: V,
35
- fetchApplicationList: A,
36
- createApplication: T,
37
- updateApplication: U,
38
- deleteApplication: z
35
+ fetchApplicationList: x,
36
+ createApplication: B,
37
+ updateApplication: A,
38
+ deleteApplication: T
39
39
  })
40
- }), A = F((a) => v(h.Http).get("app-center/api/apps/page", {
41
- params: a
40
+ }), x = U((l) => f(h.Http).get("app-center/api/apps/page", {
41
+ params: l
42
42
  }), {
43
43
  metaData: {
44
44
  id: "engine.plugins.blockmanage.js-http.fetchApplicationList"
45
45
  },
46
46
  ctx: () => ({
47
- getMetaApi: v,
47
+ getMetaApi: f,
48
48
  META_SERVICE: h,
49
- fetchBusinessCategory: P,
49
+ fetchBusinessCategory: L,
50
50
  fetchBusinessCategoryByGroup: V,
51
- fetchApplicationList: A,
52
- createApplication: T,
53
- updateApplication: U,
54
- deleteApplication: z
51
+ fetchApplicationList: x,
52
+ createApplication: B,
53
+ updateApplication: A,
54
+ deleteApplication: T
55
55
  })
56
- }), T = F((a) => v(h.Http).post("/app-center/api/apps/create", a), {
56
+ }), B = U((l) => f(h.Http).post("/app-center/api/apps/create", l), {
57
57
  metaData: {
58
58
  id: "engine.plugins.blockmanage.js-http.createApplication"
59
59
  },
60
60
  ctx: () => ({
61
- getMetaApi: v,
61
+ getMetaApi: f,
62
62
  META_SERVICE: h,
63
- fetchBusinessCategory: P,
63
+ fetchBusinessCategory: L,
64
64
  fetchBusinessCategoryByGroup: V,
65
- fetchApplicationList: A,
66
- createApplication: T,
67
- updateApplication: U,
68
- deleteApplication: z
65
+ fetchApplicationList: x,
66
+ createApplication: B,
67
+ updateApplication: A,
68
+ deleteApplication: T
69
69
  })
70
- }), U = F((a, t) => v(h.Http).post(`/app-center/api/apps/update/${a}`, t), {
70
+ }), A = U((l, n) => f(h.Http).post(`/app-center/api/apps/update/${l}`, n), {
71
71
  metaData: {
72
72
  id: "engine.plugins.blockmanage.js-http.updateApplication"
73
73
  },
74
74
  ctx: () => ({
75
- getMetaApi: v,
75
+ getMetaApi: f,
76
76
  META_SERVICE: h,
77
- fetchBusinessCategory: P,
77
+ fetchBusinessCategory: L,
78
78
  fetchBusinessCategoryByGroup: V,
79
- fetchApplicationList: A,
80
- createApplication: T,
81
- updateApplication: U,
82
- deleteApplication: z
79
+ fetchApplicationList: x,
80
+ createApplication: B,
81
+ updateApplication: A,
82
+ deleteApplication: T
83
83
  })
84
- }), z = F((a) => v(h.Http).get(`/app-center/api/apps/delete/${a}`), {
84
+ }), T = U((l) => f(h.Http).get(`/app-center/api/apps/delete/${l}`), {
85
85
  metaData: {
86
86
  id: "engine.plugins.blockmanage.js-http.deleteApplication"
87
87
  },
88
88
  ctx: () => ({
89
- getMetaApi: v,
89
+ getMetaApi: f,
90
90
  META_SERVICE: h,
91
- fetchBusinessCategory: P,
91
+ fetchBusinessCategory: L,
92
92
  fetchBusinessCategoryByGroup: V,
93
- fetchApplicationList: A,
94
- createApplication: T,
95
- updateApplication: U,
96
- deleteApplication: z
93
+ fetchApplicationList: x,
94
+ createApplication: B,
95
+ updateApplication: A,
96
+ deleteApplication: T
97
97
  })
98
98
  }), ce = {
99
99
  components: {
100
100
  TinyInput: ee,
101
- TinyButton: J,
101
+ TinyButton: M,
102
102
  TinyDialogBox: $,
103
103
  TinyForm: Z,
104
104
  TinyFormItem: Y,
105
- TinySelect: q
105
+ TinySelect: K
106
106
  },
107
107
  props: {
108
108
  visible: {
@@ -119,24 +119,24 @@ const pe = {
119
119
  }
120
120
  },
121
121
  emits: ["confirm"],
122
- setup(a, { emit: t }) {
123
- const f = j(), e = R({
124
- name: a.template.name || "",
125
- description: a.template.description || "",
126
- sceneId: a.template.sceneId || null,
127
- industryId: a.template.industryId || null,
128
- assetsUrl: a.template.assetsUrl || "template-cover-1"
129
- }), C = j(!1), p = R({
122
+ setup(l, { emit: n }) {
123
+ const u = E(), e = j({
124
+ name: l.template.name || "",
125
+ description: l.template.description || "",
126
+ sceneId: l.template.sceneId || null,
127
+ industryId: l.template.industryId || null,
128
+ assetsUrl: l.template.assetsUrl || "template-cover-1"
129
+ }), s = E(!1), g = j({
130
130
  scene: [],
131
131
  industry: []
132
- }), d = {
132
+ }), y = {
133
133
  name: [
134
134
  { required: !0, message: "应用名称必填", trigger: "blur" },
135
135
  { max: 50, message: "长度不大于50", trigger: "change" },
136
136
  {
137
137
  trigger: "blur",
138
- validator: (s, i, u) => {
139
- /^[\w\-_]+$/.test(i) ? u() : u(new Error("应用名称只能包括英文、数字、中划线和下划线"));
138
+ validator: (t, i, b) => {
139
+ /^[\w\-_]+$/.test(i) ? b() : b(new Error("应用名称只能包括英文、数字、中划线和下划线"));
140
140
  }
141
141
  }
142
142
  ],
@@ -144,94 +144,98 @@ const pe = {
144
144
  { max: 200, message: "长度不大于200", trigger: "change" },
145
145
  {
146
146
  trigger: "blur",
147
- validator: (s, i, u) => {
148
- /^[\w\-_\u4e00-\u9fa5]*$/.test(i) ? u() : u(new Error("描述只能包括中文、英文、数字、中划线和下划线"));
147
+ validator: (t, i, b) => {
148
+ /^[\w\-_\u4e00-\u9fa5]*$/.test(i) ? b() : b(new Error("描述只能包括中文、英文、数字、中划线和下划线"));
149
149
  }
150
150
  }
151
151
  ],
152
152
  sceneId: [{ required: !0, message: "场景必选", trigger: "change" }],
153
153
  industryId: [{ required: !0, message: "行业必选", trigger: "change" }]
154
- }, g = (s) => t("update:visible", s), k = async () => {
155
- Promise.all([V("场景"), V("行业")]).then((s) => {
156
- p.scene = s[0] || [], p.industry = s[1] || [];
157
- }).catch((s) => {
158
- E({
154
+ }, m = (t) => n("update:visible", t), C = async () => {
155
+ Promise.all([V("场景"), V("行业")]).then((t) => {
156
+ g.scene = t[0] || [], g.industry = t[1] || [];
157
+ }).catch((t) => {
158
+ O({
159
159
  type: "error",
160
- message: s,
160
+ message: t,
161
161
  position: "top-right",
162
162
  duration: 5e3
163
163
  });
164
164
  });
165
165
  }, S = () => {
166
- C.value = !0;
167
- }, x = (s) => {
168
- e.assetsUrl = s, C.value = !1;
169
- }, w = () => {
170
- f.value.validate((s) => {
166
+ s.value = !0;
167
+ }, I = (t) => {
168
+ e.assetsUrl = t, s.value = !1;
169
+ }, k = () => {
170
+ s.value = !1, m(!1);
171
+ }, v = () => {
172
+ u.value.validate((t) => {
171
173
  var i;
172
- s && (t(
174
+ t && (n(
173
175
  "confirm",
174
- (i = a.template) != null && i.id ? {
175
- id: a.template.id,
176
+ (i = l.template) != null && i.id ? {
177
+ id: l.template.id,
176
178
  ...e
177
179
  } : e
178
- ), g(!1));
180
+ ), k());
179
181
  });
180
182
  };
181
- return M(() => {
182
- k();
183
+ return N(() => {
184
+ C();
183
185
  }), {
184
- isOpen: C,
185
- editAppInfoRef: f,
186
+ isOpen: s,
187
+ editAppInfoRef: u,
186
188
  formState: e,
187
- validRules: d,
188
- tagsList: p,
189
- setVisible: g,
189
+ validRules: y,
190
+ tagsList: g,
191
+ setVisible: m,
190
192
  handleOpen: S,
191
- handleSelectIcon: x,
192
- confirm: w
193
+ handleSelectIcon: I,
194
+ confirm: v,
195
+ cancle: k
193
196
  };
194
197
  }
195
- }, Q = (a, t) => {
196
- const f = a.__vccOpts || a;
197
- for (const [e, C] of t)
198
- f[e] = C;
199
- return f;
198
+ }, q = (l, n) => {
199
+ const u = l.__vccOpts || l;
200
+ for (const [e, s] of n)
201
+ u[e] = s;
202
+ return u;
200
203
  }, de = { class: "form-item-icon-wrapper" }, me = {
204
+ key: 0,
205
+ class: "form-item-icon-mask"
206
+ }, ge = {
201
207
  key: 0,
202
208
  class: "dropdown-menu"
203
- }, ge = { class: "icon-list" };
204
- function ue(a, t, f, e, C, p) {
205
- const d = m("tiny-input"), g = m("tiny-form-item"), k = m("tiny-select"), S = m("svg-icon"), x = m("tiny-form"), w = m("tiny-button"), s = m("tiny-dialog-box");
206
- return _(), D(s, {
207
- visible: f.visible,
209
+ }, ue = { class: "icon-list" };
210
+ function ye(l, n, u, e, s, g) {
211
+ const y = c("tiny-input"), m = c("tiny-form-item"), C = c("tiny-select"), S = c("svg-icon"), I = c("tiny-form"), k = c("tiny-button"), v = c("tiny-dialog-box");
212
+ return d(), R(v, {
213
+ visible: u.visible,
208
214
  title: "新建应用",
209
215
  width: "400px",
210
216
  "append-to-body": "",
211
217
  "destroy-on-close": "",
212
- "onUpdate:visible": e.setVisible
218
+ onClose: e.cancle
213
219
  }, {
214
220
  footer: r(() => [
215
- o(w, {
221
+ o(k, {
216
222
  type: "primary",
217
223
  onClick: e.confirm
218
224
  }, {
219
- default: r(() => [...t[5] || (t[5] = [
220
- B(" 确定 ", -1)
225
+ default: r(() => [...n[4] || (n[4] = [
226
+ P(" 确定 ", -1)
221
227
  ])]),
222
228
  _: 1
223
229
  }, 8, ["onClick"]),
224
- o(w, {
225
- onClick: t[4] || (t[4] = (i) => e.setVisible(!1))
226
- }, {
227
- default: r(() => [...t[6] || (t[6] = [
228
- B("取消", -1)
230
+ o(k, { onClick: e.cancle }, {
231
+ default: r(() => [...n[5] || (n[5] = [
232
+ P("取消", -1)
229
233
  ])]),
230
234
  _: 1
231
- })
235
+ }, 8, ["onClick"])
232
236
  ]),
233
237
  default: r(() => [
234
- o(x, {
238
+ o(I, {
235
239
  ref: "editAppInfoRef",
236
240
  "label-position": "left",
237
241
  "label-width": "84px",
@@ -241,46 +245,46 @@ function ue(a, t, f, e, C, p) {
241
245
  "validate-type": "text"
242
246
  }, {
243
247
  default: r(() => [
244
- o(g, {
248
+ o(m, {
245
249
  label: "应用名称",
246
250
  prop: "name"
247
251
  }, {
248
252
  default: r(() => [
249
- o(d, {
253
+ o(y, {
250
254
  modelValue: e.formState.name,
251
- "onUpdate:modelValue": t[0] || (t[0] = (i) => e.formState.name = i),
255
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => e.formState.name = t),
252
256
  placeholder: "请输入"
253
257
  }, null, 8, ["modelValue"])
254
258
  ]),
255
259
  _: 1
256
260
  }),
257
- o(g, {
261
+ o(m, {
258
262
  label: "应用描述",
259
263
  prop: "description"
260
264
  }, {
261
265
  default: r(() => [
262
- o(d, {
266
+ o(y, {
263
267
  modelValue: e.formState.description,
264
- "onUpdate:modelValue": t[1] || (t[1] = (i) => e.formState.description = i),
268
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => e.formState.description = t),
265
269
  type: "textarea",
266
270
  placeholder: "请输入此次发布的修改点"
267
271
  }, null, 8, ["modelValue"])
268
272
  ]),
269
273
  _: 1
270
274
  }),
271
- o(g, {
275
+ o(m, {
272
276
  label: "场景",
273
277
  prop: "sceneId"
274
278
  }, {
275
279
  default: r(() => {
276
- var i;
280
+ var t;
277
281
  return [
278
- o(k, {
282
+ o(C, {
279
283
  modelValue: e.formState.sceneId,
280
- "onUpdate:modelValue": t[2] || (t[2] = (u) => e.formState.sceneId = u),
284
+ "onUpdate:modelValue": n[2] || (n[2] = (i) => e.formState.sceneId = i),
281
285
  placeholder: "请选择",
282
286
  options: e.tagsList.scene,
283
- disabled: (i = f.template) == null ? void 0 : i.sceneId,
287
+ disabled: (t = u.template) == null ? void 0 : t.sceneId,
284
288
  "value-field": "id",
285
289
  "text-field": "name"
286
290
  }, null, 8, ["modelValue", "options", "disabled"])
@@ -288,19 +292,19 @@ function ue(a, t, f, e, C, p) {
288
292
  }),
289
293
  _: 1
290
294
  }),
291
- o(g, {
295
+ o(m, {
292
296
  label: "行业",
293
297
  prop: "industryId"
294
298
  }, {
295
299
  default: r(() => {
296
- var i;
300
+ var t;
297
301
  return [
298
- o(k, {
302
+ o(C, {
299
303
  modelValue: e.formState.industryId,
300
- "onUpdate:modelValue": t[3] || (t[3] = (u) => e.formState.industryId = u),
304
+ "onUpdate:modelValue": n[3] || (n[3] = (i) => e.formState.industryId = i),
301
305
  placeholder: "请选择",
302
306
  options: e.tagsList.industry,
303
- disabled: (i = f.template) == null ? void 0 : i.industryId,
307
+ disabled: (t = u.template) == null ? void 0 : t.industryId,
304
308
  "value-field": "id",
305
309
  "text-field": "name"
306
310
  }, null, 8, ["modelValue", "options", "disabled"])
@@ -308,9 +312,10 @@ function ue(a, t, f, e, C, p) {
308
312
  }),
309
313
  _: 1
310
314
  }),
311
- o(g, { label: "缩略图" }, {
315
+ o(m, { label: "缩略图" }, {
312
316
  default: r(() => [
313
- c("div", de, [
317
+ p("div", de, [
318
+ e.isOpen ? (d(), _("div", me)) : w("", !0),
314
319
  o(S, {
315
320
  name: e.formState.assetsUrl,
316
321
  class: "form-item-icon",
@@ -318,16 +323,16 @@ function ue(a, t, f, e, C, p) {
318
323
  }, null, 8, ["name", "onClick"]),
319
324
  o(W, { name: "dropdown" }, {
320
325
  default: r(() => [
321
- e.isOpen ? (_(), b("div", me, [
322
- c("div", ge, [
323
- (_(), b(G, null, H(15, (i) => o(S, {
324
- key: i,
325
- name: "template-cover-" + i,
326
+ e.isOpen ? (d(), _("div", ge, [
327
+ p("div", ue, [
328
+ (d(), _(D, null, G(15, (t) => o(S, {
329
+ key: t,
330
+ name: "template-cover-" + t,
326
331
  class: "icon",
327
- onClick: (u) => e.handleSelectIcon("template-cover-" + i)
332
+ onClick: (i) => e.handleSelectIcon("template-cover-" + t)
328
333
  }, null, 8, ["name", "onClick"])), 64))
329
334
  ])
330
- ])) : I("", !0)
335
+ ])) : w("", !0)
331
336
  ]),
332
337
  _: 1
333
338
  })
@@ -340,12 +345,12 @@ function ue(a, t, f, e, C, p) {
340
345
  }, 8, ["model", "rules"])
341
346
  ]),
342
347
  _: 1
343
- }, 8, ["visible", "onUpdate:visible"]);
348
+ }, 8, ["visible", "onClose"]);
344
349
  }
345
- const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c"]]), _e = {
350
+ const _e = /* @__PURE__ */ q(ce, [["render", ye], ["__scopeId", "data-v-2dd22eb8"]]), fe = {
346
351
  components: {
347
- TinyButton: J,
348
- TinySelect: q,
352
+ TinyButton: M,
353
+ TinySelect: K,
349
354
  TinyPager: ie,
350
355
  TinyGrid: ae,
351
356
  TinyGridColumn: oe,
@@ -353,10 +358,10 @@ const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c
353
358
  TinySearch: te,
354
359
  SearchEmpty: re,
355
360
  TinyIconSearch: se(),
356
- AppDialog: ye
361
+ AppDialog: _e
357
362
  },
358
363
  setup() {
359
- const a = j([]), t = j(), f = [
364
+ const l = E([]), n = [
360
365
  {
361
366
  label: "全部应用",
362
367
  value: "all"
@@ -365,7 +370,7 @@ const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c
365
370
  label: "我的应用",
366
371
  value: "my"
367
372
  }
368
- ], e = [
373
+ ], u = [
369
374
  {
370
375
  label: "按创建时间排序",
371
376
  value: "created_time"
@@ -374,7 +379,7 @@ const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c
374
379
  label: "按最近更新时间排序",
375
380
  value: "last_updated_time"
376
381
  }
377
- ], C = [
382
+ ], e = [
378
383
  {
379
384
  id: "default",
380
385
  name: "栅格",
@@ -385,7 +390,7 @@ const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c
385
390
  name: "列表",
386
391
  assetsUrl: "small-list"
387
392
  }
388
- ], p = R({
393
+ ], s = j({
389
394
  appFilter: "all",
390
395
  orderBy: "created_time",
391
396
  appSearchKey: "",
@@ -395,145 +400,141 @@ const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c
395
400
  currentPage: 1,
396
401
  pageSizes: [10, 20, 30, 40],
397
402
  appVisible: !1
398
- }), d = () => {
399
- const l = {
400
- currentPage: p.currentPage,
401
- pageSize: p.pageSize,
402
- name: p.appSearchKey,
403
- createdBy: p.appFilter === "all" ? "" : "1"
403
+ }), g = () => {
404
+ const t = {
405
+ currentPage: s.currentPage,
406
+ pageSize: s.pageSize,
407
+ name: s.appSearchKey,
408
+ createdBy: s.appFilter === "all" ? "" : "1"
404
409
  };
405
- p.orderBy === "last_updated_time" && (l.orderBy = p.orderBy), A(Object.fromEntries(Object.entries(l).filter(([, y]) => !!y))).then((y) => {
406
- a.value = y.apps || [], p.total = y.total;
410
+ s.orderBy === "last_updated_time" && (t.orderBy = s.orderBy), x(Object.fromEntries(Object.entries(t).filter(([, i]) => !!i))).then((i) => {
411
+ l.value = i.apps || [], s.total = i.total;
407
412
  });
408
- }, g = () => {
409
- p.appVisible = !0;
410
- }, k = (l) => {
411
- t.value = l, p.appVisible = !0;
412
- }, S = (l) => {
413
+ }, y = () => {
414
+ s.appVisible = !0;
415
+ }, m = (t) => {
413
416
  le.confirm({
414
417
  message: "即将删除应用,删除后不可恢复,请谨慎操作。",
415
418
  title: "删除应用"
416
- }).then((y) => {
417
- y === "confirm" && z(l.id).then(() => {
418
- d();
419
- }).catch((n) => {
420
- E({
419
+ }).then((i) => {
420
+ i === "confirm" && T(t.id).then(() => {
421
+ g();
422
+ }).catch((b) => {
423
+ O({
421
424
  type: "error",
422
- message: n,
425
+ message: b,
423
426
  position: "top-right",
424
427
  duration: 5e3
425
428
  });
426
429
  });
427
430
  });
428
- }, x = (l) => {
429
- const y = window.location.href.split("?")[0] || "./";
430
- window.open(`${y}?type=app&id=${l.id}&tenant=${l.tenantId}`);
431
- }, w = (l) => {
432
- p.type = l;
433
- }, s = (l) => {
434
- p.pageSize = l, p.currentPage = 1, d();
435
- }, i = (l) => {
436
- p.currentPage = l, d();
437
- }, u = (l) => {
438
- if (l != null && l.id) {
439
- const y = l.id;
440
- delete l.id, U(y, l).then(() => {
441
- E({
431
+ }, C = (t) => {
432
+ const i = window.location.href.split("?")[0] || "./";
433
+ window.open(`${i}?type=app&id=${t.id}&tenant=${t.tenantId}`);
434
+ }, S = (t) => {
435
+ s.type = t;
436
+ }, I = (t) => {
437
+ s.pageSize = t, s.currentPage = 1, g();
438
+ }, k = (t) => {
439
+ s.currentPage = t, g();
440
+ }, v = (t) => {
441
+ if (t != null && t.id) {
442
+ const i = t.id;
443
+ delete t.id, A(i, t).then(() => {
444
+ O({
442
445
  type: "success",
443
446
  message: "应用更新成功",
444
447
  position: "top-right",
445
448
  duration: 5e3
446
- }), d();
447
- }).catch((n) => {
448
- E({
449
+ }), g();
450
+ }).catch((b) => {
451
+ O({
449
452
  type: "error",
450
- message: n,
453
+ message: b,
451
454
  position: "top-right",
452
455
  duration: 5e3
453
456
  });
454
457
  });
455
458
  } else
456
- T(l).then(() => {
457
- E({
459
+ B(t).then(() => {
460
+ O({
458
461
  type: "success",
459
462
  message: "应用创建成功",
460
463
  position: "top-right",
461
464
  duration: 5e3
462
- }), d();
463
- }).catch((y) => {
464
- E({
465
+ }), g();
466
+ }).catch((i) => {
467
+ O({
465
468
  type: "error",
466
- message: y,
469
+ message: i,
467
470
  position: "top-right",
468
471
  duration: 5e3
469
472
  });
470
473
  });
471
474
  };
472
- return M(() => {
473
- d();
475
+ return N(() => {
476
+ g();
474
477
  }), {
475
- state: p,
476
- appList: a,
477
- currentTemplate: t,
478
- appFilterOptions: f,
479
- appOrderByOptions: e,
480
- arrangeOptions: C,
481
- creatApp: g,
482
- getApplicationList: d,
483
- typeClick: w,
484
- handleEdit: k,
485
- handleDelete: S,
486
- openApplication: x,
487
- confirmApp: u,
488
- pageSizeChange: s,
489
- currentChange: i
478
+ state: s,
479
+ appList: l,
480
+ appFilterOptions: n,
481
+ appOrderByOptions: u,
482
+ arrangeOptions: e,
483
+ creatApp: y,
484
+ getApplicationList: g,
485
+ typeClick: S,
486
+ handleDelete: m,
487
+ openApplication: C,
488
+ confirmApp: v,
489
+ pageSizeChange: I,
490
+ currentChange: k
490
491
  };
491
492
  }
492
- }, fe = { class: "app-center" }, ve = { class: "app-center-operation" }, he = { class: "app-center-filter" }, be = { class: "type-toolbar" }, Ce = ["onClick"], ke = { class: "app-center-list" }, Se = { class: "list-wrap" }, we = {
493
+ }, he = { class: "app-center" }, ve = { class: "app-center-operation" }, be = { class: "app-center-filter" }, Ce = { class: "type-toolbar" }, ke = ["onClick"], Se = { class: "app-center-list" }, we = { class: "list-wrap" }, Ve = {
493
494
  key: 0,
494
495
  class: "list"
495
- }, Ve = { class: "app-name" }, xe = { class: "app-name-text" }, Ie = { class: "app-tag" }, Be = {
496
+ }, Ie = { class: "app-name" }, xe = { class: "app-name-text" }, Be = { class: "app-tag" }, Ae = {
496
497
  key: 0,
497
498
  class: "tag"
498
- }, Ae = {
499
+ }, Te = {
499
500
  key: 1,
500
501
  class: "tag"
501
- }, Te = {
502
+ }, ze = {
502
503
  key: 2,
503
504
  class: "tag"
504
- }, Ue = { class: "app-desc" }, ze = { class: "app-view" }, Le = { class: "app-operation" }, Oe = { class: "options" }, Ee = ["onClick"], Fe = ["onClick"], Pe = { class: "app-name" };
505
- function je(a, t, f, e, C, p) {
506
- const d = m("svg-icon"), g = m("tiny-button"), k = m("tiny-select"), S = m("tiny-icon-search"), x = m("tiny-search"), w = m("tiny-popover"), s = m("tiny-grid-column"), i = m("tiny-grid"), u = m("search-empty"), l = m("tiny-pager"), y = m("app-dialog");
507
- return _(), b("div", fe, [
508
- t[10] || (t[10] = c("div", { class: "app-center-title" }, "应用中心", -1)),
509
- c("div", ve, [
510
- o(g, {
505
+ }, Oe = { class: "app-desc" }, Ue = { class: "app-operation" }, Le = { class: "options" }, Fe = ["onClick"], Pe = ["onClick"], Ee = { class: "app-name" };
506
+ function je(l, n, u, e, s, g) {
507
+ const y = c("svg-icon"), m = c("tiny-button"), C = c("tiny-select"), S = c("tiny-icon-search"), I = c("tiny-search"), k = c("tiny-popover"), v = c("tiny-grid-column"), t = c("tiny-grid"), i = c("search-empty"), b = c("tiny-pager"), J = c("app-dialog");
508
+ return d(), _("div", he, [
509
+ n[8] || (n[8] = p("div", { class: "app-center-title" }, "应用中心", -1)),
510
+ p("div", ve, [
511
+ o(m, {
511
512
  class: "add-app",
512
- onClick: t[0] || (t[0] = (n) => e.creatApp())
513
+ onClick: n[0] || (n[0] = (a) => e.creatApp())
513
514
  }, {
514
515
  default: r(() => [
515
- o(d, { name: "add" }),
516
- t[5] || (t[5] = B("创建应用 ", -1))
516
+ o(y, { name: "add" }),
517
+ n[5] || (n[5] = P("创建应用 ", -1))
517
518
  ]),
518
519
  _: 1
519
520
  }),
520
- c("div", he, [
521
- o(k, {
521
+ p("div", be, [
522
+ o(C, {
522
523
  modelValue: e.state.appFilter,
523
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.state.appFilter = n),
524
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => e.state.appFilter = a),
524
525
  options: e.appFilterOptions,
525
526
  onChange: e.getApplicationList
526
527
  }, null, 8, ["modelValue", "options", "onChange"]),
527
- o(k, {
528
+ o(C, {
528
529
  modelValue: e.state.orderBy,
529
- "onUpdate:modelValue": t[2] || (t[2] = (n) => e.state.orderBy = n),
530
+ "onUpdate:modelValue": n[2] || (n[2] = (a) => e.state.orderBy = a),
530
531
  options: e.appOrderByOptions,
531
532
  onChange: e.getApplicationList
532
533
  }, null, 8, ["modelValue", "options", "onChange"]),
533
- o(x, {
534
+ o(I, {
534
535
  class: "app-center-search",
535
536
  modelValue: e.state.appSearchKey,
536
- "onUpdate:modelValue": t[3] || (t[3] = (n) => e.state.appSearchKey = n),
537
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => e.state.appSearchKey = a),
537
538
  clearable: "",
538
539
  placeholder: "输入关键字搜索、过滤",
539
540
  onSearch: e.getApplicationList,
@@ -544,53 +545,42 @@ function je(a, t, f, e, C, p) {
544
545
  ]),
545
546
  _: 1
546
547
  }, 8, ["modelValue", "onSearch"]),
547
- c("div", be, [
548
- (_(!0), b(G, null, H(e.arrangeOptions, (n) => (_(), b("span", {
549
- key: n.id,
550
- class: X(["icon-wrap", { active: e.state.type === n.id }]),
551
- onClick: (L) => e.typeClick(n.id)
548
+ p("div", Ce, [
549
+ (d(!0), _(D, null, G(e.arrangeOptions, (a) => (d(), _("span", {
550
+ key: a.id,
551
+ class: X(["icon-wrap", { active: e.state.type === a.id }]),
552
+ onClick: (F) => e.typeClick(a.id)
552
553
  }, [
553
- o(d, {
554
- name: n.assetsUrl
554
+ o(y, {
555
+ name: a.assetsUrl
555
556
  }, null, 8, ["name"])
556
- ], 10, Ce))), 128))
557
+ ], 10, ke))), 128))
557
558
  ])
558
559
  ])
559
560
  ]),
560
- c("div", ke, [
561
- c("div", Se, [
562
- e.state.type === "default" ? (_(), b("div", we, [
563
- (_(!0), b(G, null, H(e.appList, (n) => {
564
- var L, N;
565
- return _(), b("div", {
566
- key: n.id,
561
+ p("div", Se, [
562
+ p("div", we, [
563
+ e.state.type === "default" ? (d(), _("div", Ve, [
564
+ (d(!0), _(D, null, G(e.appList, (a) => {
565
+ var F, H;
566
+ return d(), _("div", {
567
+ key: a.id,
567
568
  class: "item"
568
569
  }, [
569
- c("div", Ve, [
570
- o(d, {
571
- name: n.assetsUrl || "template-cover-1",
570
+ p("div", Ie, [
571
+ o(y, {
572
+ name: a.assetsUrl || "template-cover-1",
572
573
  class: "app-img"
573
574
  }, null, 8, ["name"]),
574
- c("span", xe, O(n.name), 1)
575
+ p("span", xe, z(a.name), 1)
575
576
  ]),
576
- c("div", Ie, [
577
- n.sceneId ? (_(), b("div", Be, O((L = n.scene[0]) == null ? void 0 : L.name), 1)) : I("", !0),
578
- n.industryId ? (_(), b("div", Ae, O((N = n.industry[0]) == null ? void 0 : N.name), 1)) : I("", !0),
579
- n.framework ? (_(), b("div", Te, O(n.framework), 1)) : I("", !0)
580
- ]),
581
- c("div", Ue, O(n.description), 1),
582
- c("div", ze, [
583
- o(g, {
584
- round: "",
585
- onClick: (K) => e.openApplication(n)
586
- }, {
587
- default: r(() => [...t[6] || (t[6] = [
588
- B("开发应用", -1)
589
- ])]),
590
- _: 1
591
- }, 8, ["onClick"])
577
+ p("div", Be, [
578
+ a.sceneId ? (d(), _("div", Ae, z((F = a.scene[0]) == null ? void 0 : F.name), 1)) : w("", !0),
579
+ a.industryId ? (d(), _("div", Te, z((H = a.industry[0]) == null ? void 0 : H.name), 1)) : w("", !0),
580
+ a.framework ? (d(), _("div", ze, z(a.framework), 1)) : w("", !0)
592
581
  ]),
593
- o(w, {
582
+ p("div", Oe, z(a.description), 1),
583
+ o(k, {
594
584
  "visible-arrow": !1,
595
585
  trigger: "hover",
596
586
  placement: "bottom-start",
@@ -599,95 +589,86 @@ function je(a, t, f, e, C, p) {
599
589
  ref: "popoverRef"
600
590
  }, {
601
591
  reference: r(() => [
602
- c("div", Le, [
603
- o(d, { name: "ellipsis" })
592
+ p("div", Ue, [
593
+ o(y, { name: "ellipsis" })
604
594
  ])
605
595
  ]),
606
596
  default: r(() => [
607
- c("div", Oe, [
608
- c("div", {
597
+ p("div", Le, [
598
+ p("div", {
609
599
  class: "option",
610
- onClick: (K) => e.handleEdit(n)
611
- }, "编辑应用", 8, Ee),
612
- c("div", {
600
+ onClick: (Q) => e.openApplication(a)
601
+ }, "开发应用", 8, Fe),
602
+ p("div", {
613
603
  class: "option",
614
- onClick: (K) => e.handleDelete(n)
615
- }, "删除应用", 8, Fe)
604
+ onClick: (Q) => e.handleDelete(a)
605
+ }, "删除应用", 8, Pe)
616
606
  ])
617
607
  ]),
618
608
  _: 2
619
609
  }, 1536)
620
610
  ]);
621
611
  }), 128))
622
- ])) : I("", !0),
623
- e.state.type === "table" && e.appList.length ? (_(), D(i, {
612
+ ])) : w("", !0),
613
+ e.state.type === "table" && e.appList.length ? (d(), R(t, {
624
614
  key: 1,
625
615
  ref: "gridRef",
626
616
  class: "table",
627
617
  data: e.appList
628
618
  }, {
629
619
  default: r(() => [
630
- o(s, {
620
+ o(v, {
631
621
  field: "name",
632
622
  title: "应用名称",
633
623
  "show-overflow": ""
634
624
  }, {
635
- default: r((n) => [
636
- c("div", Pe, [
637
- o(d, {
638
- name: n.row.assetsUrl || "template-cover-1",
625
+ default: r((a) => [
626
+ p("div", Ee, [
627
+ o(y, {
628
+ name: a.row.assetsUrl || "template-cover-1",
639
629
  class: "app-img"
640
630
  }, null, 8, ["name"]),
641
- c("span", null, O(n.row.name), 1)
631
+ p("span", null, z(a.row.name), 1)
642
632
  ])
643
633
  ]),
644
634
  _: 1
645
635
  }),
646
- o(s, {
636
+ o(v, {
647
637
  field: "created_at",
648
638
  title: "创建时间",
649
639
  "show-overflow": ""
650
640
  }),
651
- o(s, {
641
+ o(v, {
652
642
  field: "createdBy",
653
643
  title: "创建人",
654
644
  "show-overflow": ""
655
645
  }),
656
- o(s, {
646
+ o(v, {
657
647
  field: "description",
658
648
  title: "应用描述",
659
649
  "show-overflow": ""
660
650
  }),
661
- o(s, {
651
+ o(v, {
662
652
  width: "180",
663
653
  field: "operation",
664
654
  title: "操作"
665
655
  }, {
666
- default: r((n) => [
667
- o(g, {
668
- type: "text",
669
- onClick: (L) => e.handleEdit(n.row)
670
- }, {
671
- default: r(() => [...t[7] || (t[7] = [
672
- B(" 编辑 ", -1)
673
- ])]),
674
- _: 1
675
- }, 8, ["onClick"]),
676
- o(g, {
656
+ default: r((a) => [
657
+ o(m, {
677
658
  type: "text",
678
- onClick: (L) => e.handleDelete(n.row)
659
+ onClick: (F) => e.openApplication(a.row)
679
660
  }, {
680
- default: r(() => [...t[8] || (t[8] = [
681
- B(" 删除 ", -1)
661
+ default: r(() => [...n[6] || (n[6] = [
662
+ P(" 开发应用 ", -1)
682
663
  ])]),
683
664
  _: 1
684
665
  }, 8, ["onClick"]),
685
- o(g, {
666
+ o(m, {
686
667
  type: "text",
687
- onClick: (L) => e.openApplication(n.row)
668
+ onClick: (F) => e.handleDelete(a.row)
688
669
  }, {
689
- default: r(() => [...t[9] || (t[9] = [
690
- B(" 开发应用 ", -1)
670
+ default: r(() => [...n[7] || (n[7] = [
671
+ P(" 删除应用 ", -1)
691
672
  ])]),
692
673
  _: 1
693
674
  }, 8, ["onClick"])
@@ -696,12 +677,12 @@ function je(a, t, f, e, C, p) {
696
677
  })
697
678
  ]),
698
679
  _: 1
699
- }, 8, ["data"])) : I("", !0),
700
- o(u, {
680
+ }, 8, ["data"])) : w("", !0),
681
+ o(i, {
701
682
  isShow: !e.appList.length
702
683
  }, null, 8, ["isShow"])
703
684
  ]),
704
- e.state.total > e.state.pageSize ? (_(), D(l, {
685
+ e.state.total > e.state.pageSize ? (d(), R(b, {
705
686
  key: 0,
706
687
  mode: "number",
707
688
  "current-page": e.state.currentPage,
@@ -710,17 +691,16 @@ function je(a, t, f, e, C, p) {
710
691
  total: e.state.total,
711
692
  onSizeChange: e.pageSizeChange,
712
693
  onCurrentChange: e.currentChange
713
- }, null, 8, ["current-page", "page-size", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : I("", !0)
694
+ }, null, 8, ["current-page", "page-size", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : w("", !0)
714
695
  ]),
715
- o(y, {
696
+ o(J, {
716
697
  visible: e.state.appVisible,
717
- "onUpdate:visible": t[4] || (t[4] = (n) => e.state.appVisible = n),
718
- template: e.currentTemplate,
698
+ "onUpdate:visible": n[4] || (n[4] = (a) => e.state.appVisible = a),
719
699
  onConfirm: e.confirmApp
720
- }, null, 8, ["visible", "template", "onConfirm"])
700
+ }, null, 8, ["visible", "onConfirm"])
721
701
  ]);
722
702
  }
723
- const Re = /* @__PURE__ */ Q(_e, [["render", je], ["__scopeId", "data-v-4b70bdeb"]]), qe = {
703
+ const Re = /* @__PURE__ */ q(fe, [["render", je], ["__scopeId", "data-v-2d6a9530"]]), qe = {
724
704
  ...pe,
725
705
  entry: Re
726
706
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../meta.js","../src/AppDialog.vue","../src/Main.vue","../index.ts"],"sourcesContent":["export default {\n id: 'engine.workspace.application-center',\n title: '应用中心',\n type: 'workspace',\n icon: 'workspace-icon-application-center'\n}\n","<template>\n <tiny-dialog-box\n :visible=\"visible\"\n title=\"新建应用\"\n width=\"400px\"\n append-to-body\n destroy-on-close\n @update:visible=\"setVisible\"\n >\n <tiny-form\n ref=\"editAppInfoRef\"\n label-position=\"left\"\n label-width=\"84px\"\n label-align\n :model=\"formState\"\n :rules=\"validRules\"\n validate-type=\"text\"\n >\n <tiny-form-item label=\"应用名称\" prop=\"name\">\n <tiny-input v-model=\"formState.name\" placeholder=\"请输入\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"应用描述\" prop=\"description\">\n <tiny-input v-model=\"formState.description\" type=\"textarea\" placeholder=\"请输入此次发布的修改点\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"场景\" prop=\"sceneId\">\n <tiny-select\n v-model=\"formState.sceneId\"\n placeholder=\"请选择\"\n :options=\"tagsList.scene\"\n :disabled=\"template?.sceneId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"行业\" prop=\"industryId\">\n <tiny-select\n v-model=\"formState.industryId\"\n placeholder=\"请选择\"\n :options=\"tagsList.industry\"\n :disabled=\"template?.industryId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"缩略图\">\n <div class=\"form-item-icon-wrapper\">\n <svg-icon :name=\"formState.assetsUrl\" class=\"form-item-icon\" @click=\"handleOpen\"></svg-icon>\n <transition name=\"dropdown\">\n <div v-if=\"isOpen\" class=\"dropdown-menu\">\n <!-- 菜单项 -->\n <div class=\"icon-list\">\n <template v-for=\"iconIndex in 15\" :key=\"iconIndex\">\n <svg-icon\n :name=\"'template-cover-' + iconIndex\"\n class=\"icon\"\n @click=\"handleSelectIcon('template-cover-' + iconIndex)\"\n ></svg-icon>\n </template>\n </div>\n </div>\n </transition>\n </div>\n </tiny-form-item>\n </tiny-form>\n <template #footer>\n <tiny-button type=\"primary\" @click=\"confirm\"> 确定 </tiny-button>\n <tiny-button @click=\"setVisible(false)\">取消</tiny-button>\n </template>\n </tiny-dialog-box>\n</template>\n\n<script lang=\"ts\">\nimport { ref, reactive, onMounted } from 'vue'\nimport {\n Input as TinyInput,\n Button as TinyButton,\n DialogBox as TinyDialogBox,\n Form as TinyForm,\n FormItem as TinyFormItem,\n Select as TinySelect,\n Notify\n} from '@opentiny/vue'\nimport { fetchBusinessCategoryByGroup } from './js/http'\n\nexport default {\n components: {\n TinyInput,\n TinyButton,\n TinyDialogBox,\n TinyForm,\n TinyFormItem,\n TinySelect\n },\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n template: {\n type: Object,\n default: () => ({})\n },\n openByTemplate: {\n type: Boolean,\n default: false\n }\n },\n emits: ['confirm'],\n setup(props, { emit }) {\n const editAppInfoRef = ref()\n\n const formState = reactive({\n name: props.template.name || '',\n description: props.template.description || '',\n sceneId: props.template.sceneId || null,\n industryId: props.template.industryId || null,\n assetsUrl: props.template.assetsUrl || 'template-cover-1'\n })\n\n const isOpen = ref(false)\n\n const tagsList = reactive({\n scene: [],\n industry: []\n })\n\n const validRules = {\n name: [\n { required: true, message: '应用名称必填', trigger: 'blur' },\n { max: 50, message: '长度不大于50', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_]+$/.test(value)) {\n callback(new Error('应用名称只能包括英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n description: [\n { max: 200, message: '长度不大于200', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_\\u4e00-\\u9fa5]*$/.test(value)) {\n callback(new Error('描述只能包括中文、英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n sceneId: [{ required: true, message: '场景必选', trigger: 'change' }],\n industryId: [{ required: true, message: '行业必选', trigger: 'change' }]\n }\n\n const setVisible = (visible: boolean) => emit('update:visible', visible)\n\n const getTagsList = async () => {\n Promise.all([fetchBusinessCategoryByGroup('场景'), fetchBusinessCategoryByGroup('行业')])\n .then((res) => {\n tagsList.scene = res[0] || []\n tagsList.industry = res[1] || []\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n\n const handleOpen = () => {\n isOpen.value = true\n }\n\n const handleSelectIcon = (icon: string) => {\n formState.assetsUrl = icon\n isOpen.value = false\n }\n\n const confirm = () => {\n editAppInfoRef.value.validate((valid: boolean) => {\n if (valid) {\n emit(\n 'confirm',\n props.template?.id\n ? {\n id: props.template.id,\n ...formState\n }\n : formState\n )\n\n setVisible(false)\n }\n })\n }\n\n onMounted(() => {\n getTagsList()\n })\n\n return {\n isOpen,\n editAppInfoRef,\n formState,\n validRules,\n tagsList,\n setVisible,\n handleOpen,\n handleSelectIcon,\n confirm\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.form-item-icon-wrapper {\n position: relative;\n .form-item-icon {\n font-size: 40px;\n cursor: pointer;\n }\n .dropdown-menu {\n position: absolute;\n bottom: 100%;\n left: 0;\n padding: 16px;\n margin-bottom: 5px;\n width: 216px;\n border-radius: 4px;\n z-index: 1000;\n overflow: hidden;\n background: var(--te-template-common-bg-color);\n box-shadow: 0 4px 16px 0 var(--te-base-box-shadow-rgba-3);\n\n .icon-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 4px 0;\n .icon {\n font-size: 32px;\n cursor: pointer;\n }\n }\n }\n}\n</style>\n","<template>\n <div class=\"app-center\">\n <div class=\"app-center-title\">应用中心</div>\n <div class=\"app-center-operation\">\n <tiny-button class=\"add-app\" @click=\"creatApp()\"> <svg-icon name=\"add\"></svg-icon>创建应用 </tiny-button>\n <div class=\"app-center-filter\">\n <tiny-select v-model=\"state.appFilter\" :options=\"appFilterOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-select v-model=\"state.orderBy\" :options=\"appOrderByOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-search\n class=\"app-center-search\"\n v-model=\"state.appSearchKey\"\n clearable\n placeholder=\"输入关键字搜索、过滤\"\n @search=\"getApplicationList\"\n is-enter-search\n >\n <template #prefix> <tiny-icon-search /> </template>\n </tiny-search>\n <div class=\"type-toolbar\">\n <span\n v-for=\"item in arrangeOptions\"\n :key=\"item.id\"\n :class=\"['icon-wrap', { active: state.type === item.id }]\"\n @click=\"typeClick(item.id)\"\n >\n <svg-icon :name=\"item.assetsUrl\"></svg-icon>\n </span>\n </div>\n </div>\n </div>\n <div class=\"app-center-list\">\n <div class=\"list-wrap\">\n <div class=\"list\" v-if=\"state.type === 'default'\">\n <template v-for=\"item in appList\" :key=\"item.id\">\n <div class=\"item\">\n <div class=\"app-name\">\n <svg-icon :name=\"item.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span class=\"app-name-text\">{{ item.name }}</span>\n </div>\n <div class=\"app-tag\">\n <div v-if=\"item.sceneId\" class=\"tag\">\n {{ item.scene[0]?.name }}\n </div>\n <div v-if=\"item.industryId\" class=\"tag\">\n {{ item.industry[0]?.name }}\n </div>\n <div v-if=\"item.framework\" class=\"tag\">{{ item.framework }}</div>\n </div>\n <div class=\"app-desc\">{{ item.description }}</div>\n <div class=\"app-view\">\n <tiny-button round @click=\"openApplication(item)\">开发应用</tiny-button>\n </div>\n <tiny-popover\n :visible-arrow=\"false\"\n trigger=\"hover\"\n placement=\"bottom-start\"\n popper-class=\"operation-popover\"\n ref=\"popoverRef\"\n >\n <template #reference>\n <div class=\"app-operation\">\n <svg-icon name=\"ellipsis\"></svg-icon>\n </div>\n </template>\n <div class=\"options\">\n <div class=\"option\" @click=\"handleEdit(item)\">编辑应用</div>\n <div class=\"option\" @click=\"handleDelete(item)\">删除应用</div>\n </div>\n </tiny-popover>\n </div>\n </template>\n </div>\n <tiny-grid ref=\"gridRef\" class=\"table\" v-if=\"state.type === 'table' && appList.length\" :data=\"appList\">\n <tiny-grid-column field=\"name\" title=\"应用名称\" show-overflow>\n <template #default=\"data\">\n <div class=\"app-name\">\n <svg-icon :name=\"data.row.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span>{{ data.row.name }}</span>\n </div>\n </template>\n </tiny-grid-column>\n <tiny-grid-column field=\"created_at\" title=\"创建时间\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"createdBy\" title=\"创建人\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"description\" title=\"应用描述\" show-overflow></tiny-grid-column>\n <tiny-grid-column width=\"180\" field=\"operation\" title=\"操作\">\n <template #default=\"data\">\n <tiny-button type=\"text\" @click=\"handleEdit(data.row)\"> 编辑 </tiny-button>\n <tiny-button type=\"text\" @click=\"handleDelete(data.row)\"> 删除 </tiny-button>\n <tiny-button type=\"text\" @click=\"openApplication(data.row)\"> 开发应用 </tiny-button>\n </template>\n </tiny-grid-column>\n </tiny-grid>\n <search-empty :isShow=\"!appList.length\" />\n </div>\n <tiny-pager\n v-if=\"state.total > state.pageSize\"\n mode=\"number\"\n :current-page=\"state.currentPage\"\n :page-size=\"state.pageSize\"\n :page-sizes=\"state.pageSizes\"\n :total=\"state.total\"\n @size-change=\"pageSizeChange\"\n @current-change=\"currentChange\"\n ></tiny-pager>\n </div>\n <app-dialog v-model:visible=\"state.appVisible\" :template=\"currentTemplate\" @confirm=\"confirmApp\"></app-dialog>\n </div>\n</template>\n\n<script>\nimport { reactive, ref, onMounted } from 'vue'\nimport { Button, Select, Pager, Grid, GridColumn, Popover, Search, Modal, Notify } from '@opentiny/vue'\nimport { iconSearch } from '@opentiny/vue-icon'\nimport { SearchEmpty } from '@opentiny/tiny-engine-common'\nimport AppDialog from './AppDialog.vue'\nimport { fetchApplicationList, createApplication, updateApplication, deleteApplication } from './js/http'\n\nexport default {\n components: {\n TinyButton: Button,\n TinySelect: Select,\n TinyPager: Pager,\n TinyGrid: Grid,\n TinyGridColumn: GridColumn,\n TinyPopover: Popover,\n TinySearch: Search,\n SearchEmpty,\n TinyIconSearch: iconSearch(),\n AppDialog\n },\n\n setup() {\n const appList = ref([])\n\n const currentTemplate = ref()\n\n const appFilterOptions = [\n {\n label: '全部应用',\n value: 'all'\n },\n {\n label: '我的应用',\n value: 'my'\n }\n ]\n\n const appOrderByOptions = [\n {\n label: '按创建时间排序',\n value: 'created_time'\n },\n {\n label: '按最近更新时间排序',\n value: 'last_updated_time'\n }\n ]\n\n const arrangeOptions = [\n {\n id: 'default',\n name: '栅格',\n assetsUrl: 'workspace-icon-application-center'\n },\n {\n id: 'table',\n name: '列表',\n assetsUrl: 'small-list'\n }\n ]\n\n const state = reactive({\n appFilter: 'all',\n orderBy: 'created_time',\n appSearchKey: '',\n type: 'default',\n total: 0,\n pageSize: 10,\n currentPage: 1,\n pageSizes: [10, 20, 30, 40],\n appVisible: false\n })\n\n const getApplicationList = () => {\n const params = {\n currentPage: state.currentPage,\n pageSize: state.pageSize,\n name: state.appSearchKey,\n createdBy: state.appFilter === 'all' ? '' : '1'\n }\n if (state.orderBy === 'last_updated_time') {\n params.orderBy = state.orderBy\n }\n fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value))).then((res) => {\n appList.value = res.apps || []\n state.total = res.total\n })\n }\n\n const creatApp = () => {\n state.appVisible = true\n }\n\n const handleEdit = (template) => {\n currentTemplate.value = template\n state.appVisible = true\n }\n\n const handleDelete = (template) => {\n Modal.confirm({\n message: '即将删除应用,删除后不可恢复,请谨慎操作。',\n title: '删除应用'\n }).then((res) => {\n if (res === 'confirm') {\n deleteApplication(template.id)\n .then(() => {\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n })\n }\n\n const openApplication = (template) => {\n const href = window.location.href.split('?')[0] || './'\n window.open(`${href}?type=app&id=${template.id}&tenant=${template.tenantId}`)\n }\n\n const typeClick = (type) => {\n state.type = type\n }\n\n const pageSizeChange = (val) => {\n state.pageSize = val\n state.currentPage = 1\n getApplicationList()\n }\n\n const currentChange = (val) => {\n state.currentPage = val\n getApplicationList()\n }\n\n const confirmApp = (formData) => {\n if (formData?.id) {\n const updateId = formData.id\n delete formData.id\n updateApplication(updateId, formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用更新成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n } else {\n createApplication(formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用创建成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n }\n\n onMounted(() => {\n getApplicationList()\n })\n\n return {\n state,\n appList,\n currentTemplate,\n appFilterOptions,\n appOrderByOptions,\n arrangeOptions,\n creatApp,\n getApplicationList,\n typeClick,\n handleEdit,\n handleDelete,\n openApplication,\n confirmApp,\n pageSizeChange,\n currentChange\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.app-center {\n padding: 24px;\n background: var(--te-template-common-bg-color);\n height: -webkit-fill-available;\n .app-center-title {\n font-size: 20px;\n font-weight: 600;\n }\n .app-center-operation {\n margin: 24px 0 20px;\n display: flex;\n justify-content: space-between;\n }\n .app-center-filter {\n display: flex;\n align-items: center;\n gap: 20px;\n }\n .app-center-search {\n min-width: 300px;\n }\n .type-toolbar {\n display: flex;\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color);\n .icon-wrap {\n width: 24px;\n height: 24px;\n color: var(--te-template-app-center-btn-icon-color);\n font-size: 16px;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: 0.3s;\n &.active {\n border: 1px solid var(--te-template-app-center-btn-border-color-active);\n color: var(--te-template-app-center-btn-color-active);\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color-active);\n }\n }\n }\n .app-center-list {\n height: calc(100vh - 200px);\n }\n}\n.list {\n display: flex;\n gap: 24px;\n flex-wrap: wrap;\n .item {\n width: 252px;\n padding: 24px;\n border-radius: 8px;\n background: var(--te-template-center-common-item-bg-color);\n position: relative;\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 40px;\n height: 40px;\n }\n .app-name-text {\n font-size: 18px;\n font-weight: 600;\n }\n }\n .app-tag {\n display: flex;\n gap: 4px;\n height: 20px;\n margin-top: 12px;\n .tag {\n padding: 2px 4px;\n border-radius: 2px;\n background: var(--te-template-center-common-item-tag-bg-color);\n }\n }\n .app-desc {\n margin-top: 12px;\n color: var(--te-template-center-common-item-desc-text-color);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .app-view {\n position: absolute;\n bottom: 24px;\n right: 24px;\n }\n .app-operation {\n display: none;\n }\n &:hover {\n .app-operation {\n display: block;\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n background: var(--te-template-center-common-item-operation-bg-color);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n top: 16px;\n right: 16px;\n }\n }\n }\n}\n.table {\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 24px;\n height: 24px;\n }\n }\n\n .tiny-button.tiny-button--text {\n padding-left: 0;\n }\n}\n\n.list-wrap {\n margin-bottom: 12px;\n max-height: calc(100% - 80px);\n overflow: auto;\n .empty-wrap {\n width: 100%;\n }\n}\n.options {\n .option {\n padding: 4px 16px;\n cursor: pointer;\n &:hover {\n background: var(--te-template-common-bg-color-hover);\n }\n }\n}\n</style>\n<style lang=\"less\">\n.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],\n.operation-popover.tiny-popover.tiny-popper[x-placement] {\n padding: 8px 0;\n}\n</style>\n","/**\n * Copyright (c) 2023 - present TinyEngine Authors.\n * Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.\n *\n * Use of this source code is governed by an MIT-style license.\n *\n * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,\n * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR\n * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.\n *\n */\n\nimport entry from './src/Main.vue'\nimport metaData from './meta'\nimport './src/styles/vars.less'\n\nexport default {\n ...metaData,\n entry\n}\n"],"names":["metaData","_sfc_main$1","TinyInput","TinyButton","TinyDialogBox","TinyForm","TinyFormItem","TinySelect","props","emit","editAppInfoRef","ref","formState","reactive","isOpen","tagsList","validRules","rule","value","callback","setVisible","visible","getTagsList","fetchBusinessCategoryByGroup","res","error","Notify","handleOpen","handleSelectIcon","icon","confirm","valid","_a","onMounted","_hoisted_1","_hoisted_3","_createBlock","_component_tiny_dialog_box","$props","$setup","_withCtx","_createVNode","_component_tiny_button","_cache","_createTextVNode","_component_tiny_form","_component_tiny_form_item","_component_tiny_input","$event","_component_tiny_select","_createElementVNode","_component_svg_icon","_Transition","_openBlock","_createElementBlock","_hoisted_2","_Fragment","_renderList","iconIndex","_sfc_main","Button","Select","Pager","Grid","GridColumn","Popover","Search","SearchEmpty","iconSearch","AppDialog","appList","currentTemplate","appFilterOptions","appOrderByOptions","arrangeOptions","state","getApplicationList","params","fetchApplicationList","creatApp","handleEdit","template","handleDelete","Modal","deleteApplication","openApplication","href","typeClick","type","pageSizeChange","val","currentChange","confirmApp","formData","updateId","updateApplication","createApplication","_hoisted_4","_hoisted_6","_hoisted_7","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_21","_component_tiny_search","_component_tiny_icon_search","item","_hoisted_8","_toDisplayString","_hoisted_12","_hoisted_13","_b","_hoisted_14","_component_tiny_popover","_hoisted_19","_hoisted_20","_component_tiny_grid","_component_tiny_grid_column","data","_component_search_empty","_component_tiny_pager","_component_app_dialog","index","entry"],"mappings":";;;;;;AAAA,MAAAA,KAAe;AAAA,EACb,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IC+EAC,KAAe;AAAA,EACb,YAAY;AAAA,IAAA,WACVC;AAAAA,IAAA,YACAC;AAAAA,IAAA,eACAC;AAAAA,IAAA,UACAC;AAAAA,IAAA,cACAC;AAAAA,IAAA,YACAC;AAAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAEX,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IAAC;AAAA,IAEnB,gBAAgB;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,OAAO,CAAC,SAAS;AAAA,EACjB,MAAMC,GAAO,EAAE,MAAAC,KAAQ;AACrB,UAAMC,IAAiBC,EAAA,GAEjBC,IAAYC,EAAS;AAAA,MACzB,MAAML,EAAM,SAAS,QAAQ;AAAA,MAC7B,aAAaA,EAAM,SAAS,eAAe;AAAA,MAC3C,SAASA,EAAM,SAAS,WAAW;AAAA,MACnC,YAAYA,EAAM,SAAS,cAAc;AAAA,MACzC,WAAWA,EAAM,SAAS,aAAa;AAAA,IAAA,CACxC,GAEKM,IAASH,EAAI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space.application-center',\n title: '应用中心',\n type: 'workspace',\n icon: 'workspace-icon-application-center'\n}\n","<template>\n <tiny-dialog-box :visible=\"visible\" title=\"新建应用\" width=\"400px\" append-to-body destroy-on-close @close=\"cancle\">\n <tiny-form\n ref=\"editAppInfoRef\"\n label-position=\"left\"\n label-width=\"84px\"\n label-align\n :model=\"formState\"\n :rules=\"validRules\"\n validate-type=\"text\"\n >\n <tiny-form-item label=\"应用名称\" prop=\"name\">\n <tiny-input v-model=\"formState.name\" placeholder=\"请输入\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"应用描述\" prop=\"description\">\n <tiny-input v-model=\"formState.description\" type=\"textarea\" placeholder=\"请输入此次发布的修改点\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"场景\" prop=\"sceneId\">\n <tiny-select\n v-model=\"formState.sceneId\"\n placeholder=\"请选择\"\n :options=\"tagsList.scene\"\n :disabled=\"template?.sceneId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"行业\" prop=\"industryId\">\n <tiny-select\n v-model=\"formState.industryId\"\n placeholder=\"请选择\"\n :options=\"tagsList.industry\"\n :disabled=\"template?.industryId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"缩略图\">\n <div class=\"form-item-icon-wrapper\">\n <div class=\"form-item-icon-mask\" v-if=\"isOpen\"></div>\n <svg-icon :name=\"formState.assetsUrl\" class=\"form-item-icon\" @click=\"handleOpen\"></svg-icon>\n <transition name=\"dropdown\">\n <div v-if=\"isOpen\" class=\"dropdown-menu\">\n <!-- 菜单项 -->\n <div class=\"icon-list\">\n <template v-for=\"iconIndex in 15\" :key=\"iconIndex\">\n <svg-icon\n :name=\"'template-cover-' + iconIndex\"\n class=\"icon\"\n @click=\"handleSelectIcon('template-cover-' + iconIndex)\"\n ></svg-icon>\n </template>\n </div>\n </div>\n </transition>\n </div>\n </tiny-form-item>\n </tiny-form>\n <template #footer>\n <tiny-button type=\"primary\" @click=\"confirm\"> 确定 </tiny-button>\n <tiny-button @click=\"cancle\">取消</tiny-button>\n </template>\n </tiny-dialog-box>\n</template>\n\n<script lang=\"ts\">\nimport { ref, reactive, onMounted } from 'vue'\nimport {\n Input as TinyInput,\n Button as TinyButton,\n DialogBox as TinyDialogBox,\n Form as TinyForm,\n FormItem as TinyFormItem,\n Select as TinySelect,\n Notify\n} from '@opentiny/vue'\nimport { fetchBusinessCategoryByGroup } from './js/http'\n\nexport default {\n components: {\n TinyInput,\n TinyButton,\n TinyDialogBox,\n TinyForm,\n TinyFormItem,\n TinySelect\n },\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n template: {\n type: Object,\n default: () => ({})\n },\n openByTemplate: {\n type: Boolean,\n default: false\n }\n },\n emits: ['confirm'],\n setup(props, { emit }) {\n const editAppInfoRef = ref()\n\n const formState = reactive({\n name: props.template.name || '',\n description: props.template.description || '',\n sceneId: props.template.sceneId || null,\n industryId: props.template.industryId || null,\n assetsUrl: props.template.assetsUrl || 'template-cover-1'\n })\n\n const isOpen = ref(false)\n\n const tagsList = reactive({\n scene: [],\n industry: []\n })\n\n const validRules = {\n name: [\n { required: true, message: '应用名称必填', trigger: 'blur' },\n { max: 50, message: '长度不大于50', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_]+$/.test(value)) {\n callback(new Error('应用名称只能包括英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n description: [\n { max: 200, message: '长度不大于200', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_\\u4e00-\\u9fa5]*$/.test(value)) {\n callback(new Error('描述只能包括中文、英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n sceneId: [{ required: true, message: '场景必选', trigger: 'change' }],\n industryId: [{ required: true, message: '行业必选', trigger: 'change' }]\n }\n\n const setVisible = (visible: boolean) => emit('update:visible', visible)\n\n const getTagsList = async () => {\n Promise.all([fetchBusinessCategoryByGroup('场景'), fetchBusinessCategoryByGroup('行业')])\n .then((res) => {\n tagsList.scene = res[0] || []\n tagsList.industry = res[1] || []\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n\n const handleOpen = () => {\n isOpen.value = true\n }\n\n const handleSelectIcon = (icon: string) => {\n formState.assetsUrl = icon\n isOpen.value = false\n }\n\n const cancle = () => {\n isOpen.value = false\n setVisible(false)\n }\n\n const confirm = () => {\n editAppInfoRef.value.validate((valid: boolean) => {\n if (valid) {\n emit(\n 'confirm',\n props.template?.id\n ? {\n id: props.template.id,\n ...formState\n }\n : formState\n )\n\n cancle()\n }\n })\n }\n\n onMounted(() => {\n getTagsList()\n })\n\n return {\n isOpen,\n editAppInfoRef,\n formState,\n validRules,\n tagsList,\n setVisible,\n handleOpen,\n handleSelectIcon,\n confirm,\n cancle\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.form-item-icon-wrapper {\n position: relative;\n .form-item-icon {\n font-size: 40px;\n cursor: pointer;\n }\n .form-item-icon-mask {\n background-color: var(--te-app-center-mask-modal-bg-color);\n transition: background-color, 0.2s, ease-in-out;\n position: fixed;\n width: 40px;\n height: 40px;\n border-radius: 8px;\n }\n .dropdown-menu {\n position: absolute;\n bottom: 100%;\n left: 0;\n padding: 16px;\n margin-bottom: 5px;\n width: 192px;\n border-radius: 4px;\n z-index: 1000;\n overflow: hidden;\n background: var(--te-template-common-bg-color);\n box-shadow: 0 4px 16px 0 var(--te-base-box-shadow-rgba-3);\n\n .icon-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 4px 0;\n .icon {\n font-size: 32px;\n cursor: pointer;\n }\n }\n }\n}\n</style>\n","<template>\n <div class=\"app-center\">\n <div class=\"app-center-title\">应用中心</div>\n <div class=\"app-center-operation\">\n <tiny-button class=\"add-app\" @click=\"creatApp()\"> <svg-icon name=\"add\"></svg-icon>创建应用 </tiny-button>\n <div class=\"app-center-filter\">\n <tiny-select v-model=\"state.appFilter\" :options=\"appFilterOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-select v-model=\"state.orderBy\" :options=\"appOrderByOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-search\n class=\"app-center-search\"\n v-model=\"state.appSearchKey\"\n clearable\n placeholder=\"输入关键字搜索、过滤\"\n @search=\"getApplicationList\"\n is-enter-search\n >\n <template #prefix> <tiny-icon-search /> </template>\n </tiny-search>\n <div class=\"type-toolbar\">\n <span\n v-for=\"item in arrangeOptions\"\n :key=\"item.id\"\n :class=\"['icon-wrap', { active: state.type === item.id }]\"\n @click=\"typeClick(item.id)\"\n >\n <svg-icon :name=\"item.assetsUrl\"></svg-icon>\n </span>\n </div>\n </div>\n </div>\n <div class=\"app-center-list\">\n <div class=\"list-wrap\">\n <div class=\"list\" v-if=\"state.type === 'default'\">\n <template v-for=\"item in appList\" :key=\"item.id\">\n <div class=\"item\">\n <div class=\"app-name\">\n <svg-icon :name=\"item.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span class=\"app-name-text\">{{ item.name }}</span>\n </div>\n <div class=\"app-tag\">\n <div v-if=\"item.sceneId\" class=\"tag\">\n {{ item.scene[0]?.name }}\n </div>\n <div v-if=\"item.industryId\" class=\"tag\">\n {{ item.industry[0]?.name }}\n </div>\n <div v-if=\"item.framework\" class=\"tag\">{{ item.framework }}</div>\n </div>\n <div class=\"app-desc\">{{ item.description }}</div>\n <tiny-popover\n :visible-arrow=\"false\"\n trigger=\"hover\"\n placement=\"bottom-start\"\n popper-class=\"operation-popover\"\n ref=\"popoverRef\"\n >\n <template #reference>\n <div class=\"app-operation\">\n <svg-icon name=\"ellipsis\"></svg-icon>\n </div>\n </template>\n <div class=\"options\">\n <div class=\"option\" @click=\"openApplication(item)\">开发应用</div>\n <div class=\"option\" @click=\"handleDelete(item)\">删除应用</div>\n </div>\n </tiny-popover>\n </div>\n </template>\n </div>\n <tiny-grid ref=\"gridRef\" class=\"table\" v-if=\"state.type === 'table' && appList.length\" :data=\"appList\">\n <tiny-grid-column field=\"name\" title=\"应用名称\" show-overflow>\n <template #default=\"data\">\n <div class=\"app-name\">\n <svg-icon :name=\"data.row.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span>{{ data.row.name }}</span>\n </div>\n </template>\n </tiny-grid-column>\n <tiny-grid-column field=\"created_at\" title=\"创建时间\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"createdBy\" title=\"创建人\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"description\" title=\"应用描述\" show-overflow></tiny-grid-column>\n <tiny-grid-column width=\"180\" field=\"operation\" title=\"操作\">\n <template #default=\"data\">\n <tiny-button type=\"text\" @click=\"openApplication(data.row)\"> 开发应用 </tiny-button>\n <tiny-button type=\"text\" @click=\"handleDelete(data.row)\"> 删除应用 </tiny-button>\n </template>\n </tiny-grid-column>\n </tiny-grid>\n <search-empty :isShow=\"!appList.length\" />\n </div>\n <tiny-pager\n v-if=\"state.total > state.pageSize\"\n mode=\"number\"\n :current-page=\"state.currentPage\"\n :page-size=\"state.pageSize\"\n :page-sizes=\"state.pageSizes\"\n :total=\"state.total\"\n @size-change=\"pageSizeChange\"\n @current-change=\"currentChange\"\n ></tiny-pager>\n </div>\n <app-dialog v-model:visible=\"state.appVisible\" @confirm=\"confirmApp\"></app-dialog>\n </div>\n</template>\n\n<script>\nimport { reactive, ref, onMounted } from 'vue'\nimport { Button, Select, Pager, Grid, GridColumn, Popover, Search, Modal, Notify } from '@opentiny/vue'\nimport { iconSearch } from '@opentiny/vue-icon'\nimport { SearchEmpty } from '@opentiny/tiny-engine-common'\nimport AppDialog from './AppDialog.vue'\nimport { fetchApplicationList, createApplication, updateApplication, deleteApplication } from './js/http'\n\nexport default {\n components: {\n TinyButton: Button,\n TinySelect: Select,\n TinyPager: Pager,\n TinyGrid: Grid,\n TinyGridColumn: GridColumn,\n TinyPopover: Popover,\n TinySearch: Search,\n SearchEmpty,\n TinyIconSearch: iconSearch(),\n AppDialog\n },\n\n setup() {\n const appList = ref([])\n\n const appFilterOptions = [\n {\n label: '全部应用',\n value: 'all'\n },\n {\n label: '我的应用',\n value: 'my'\n }\n ]\n\n const appOrderByOptions = [\n {\n label: '按创建时间排序',\n value: 'created_time'\n },\n {\n label: '按最近更新时间排序',\n value: 'last_updated_time'\n }\n ]\n\n const arrangeOptions = [\n {\n id: 'default',\n name: '栅格',\n assetsUrl: 'workspace-icon-application-center'\n },\n {\n id: 'table',\n name: '列表',\n assetsUrl: 'small-list'\n }\n ]\n\n const state = reactive({\n appFilter: 'all',\n orderBy: 'created_time',\n appSearchKey: '',\n type: 'default',\n total: 0,\n pageSize: 10,\n currentPage: 1,\n pageSizes: [10, 20, 30, 40],\n appVisible: false\n })\n\n const getApplicationList = () => {\n const params = {\n currentPage: state.currentPage,\n pageSize: state.pageSize,\n name: state.appSearchKey,\n createdBy: state.appFilter === 'all' ? '' : '1'\n }\n if (state.orderBy === 'last_updated_time') {\n params.orderBy = state.orderBy\n }\n fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value))).then((res) => {\n appList.value = res.apps || []\n state.total = res.total\n })\n }\n\n const creatApp = () => {\n state.appVisible = true\n }\n\n const handleDelete = (template) => {\n Modal.confirm({\n message: '即将删除应用,删除后不可恢复,请谨慎操作。',\n title: '删除应用'\n }).then((res) => {\n if (res === 'confirm') {\n deleteApplication(template.id)\n .then(() => {\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n })\n }\n\n const openApplication = (template) => {\n const href = window.location.href.split('?')[0] || './'\n window.open(`${href}?type=app&id=${template.id}&tenant=${template.tenantId}`)\n }\n\n const typeClick = (type) => {\n state.type = type\n }\n\n const pageSizeChange = (val) => {\n state.pageSize = val\n state.currentPage = 1\n getApplicationList()\n }\n\n const currentChange = (val) => {\n state.currentPage = val\n getApplicationList()\n }\n\n const confirmApp = (formData) => {\n if (formData?.id) {\n const updateId = formData.id\n delete formData.id\n updateApplication(updateId, formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用更新成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n } else {\n createApplication(formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用创建成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n }\n\n onMounted(() => {\n getApplicationList()\n })\n\n return {\n state,\n appList,\n appFilterOptions,\n appOrderByOptions,\n arrangeOptions,\n creatApp,\n getApplicationList,\n typeClick,\n handleDelete,\n openApplication,\n confirmApp,\n pageSizeChange,\n currentChange\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.app-center {\n padding: 24px;\n background: var(--te-template-common-bg-color);\n height: -webkit-fill-available;\n .app-center-title {\n font-size: 20px;\n font-weight: 600;\n }\n .app-center-operation {\n margin: 24px 0 20px;\n display: flex;\n justify-content: space-between;\n }\n .app-center-filter {\n display: flex;\n align-items: center;\n gap: 12px;\n }\n .app-center-search {\n min-width: 300px;\n }\n .type-toolbar {\n display: flex;\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color);\n .icon-wrap {\n width: 24px;\n height: 24px;\n color: var(--te-template-app-center-btn-icon-color);\n font-size: 16px;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: 0.3s;\n &.active {\n border: 1px solid var(--te-template-app-center-btn-border-color-active);\n color: var(--te-template-app-center-btn-color-active);\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color-active);\n }\n }\n }\n .app-center-list {\n height: calc(100vh - 200px);\n }\n}\n.list {\n display: flex;\n gap: 24px;\n flex-wrap: wrap;\n .item {\n width: 252px;\n padding: 24px;\n border-radius: 8px;\n background: var(--te-template-center-common-item-bg-color);\n border: 1px solid var(--te-template-app-center-item-border-color);\n position: relative;\n &:hover {\n border-color: var(--te-template-app-center-item-border-color-hover);\n }\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 40px;\n height: 40px;\n }\n .app-name-text {\n font-size: 18px;\n font-weight: 600;\n }\n }\n .app-tag {\n display: flex;\n gap: 4px;\n height: 20px;\n margin-top: 12px;\n .tag {\n padding: 2px 4px;\n border-radius: 2px;\n background: var(--te-template-center-common-item-tag-bg-color);\n }\n }\n .app-desc {\n margin-top: 12px;\n color: var(--te-template-center-common-item-desc-text-color);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .app-operation {\n display: none;\n }\n &:hover {\n .app-operation {\n display: block;\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n background: var(--te-template-center-common-item-operation-bg-color);\n color: var(--te-template-center-common-item-operation-icon-color);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n top: 16px;\n right: 16px;\n }\n }\n }\n}\n.table {\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 24px;\n height: 24px;\n }\n }\n\n .tiny-button.tiny-button--text {\n padding-left: 0;\n }\n}\n\n.list-wrap {\n margin-bottom: 12px;\n max-height: calc(100% - 80px);\n overflow: auto;\n .empty-wrap {\n width: 100%;\n }\n}\n.options {\n .option {\n padding: 4px 16px;\n cursor: pointer;\n &:hover {\n background: var(--te-template-common-bg-color-hover);\n }\n }\n}\n</style>\n<style lang=\"less\">\n.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],\n.operation-popover.tiny-popover.tiny-popper[x-placement] {\n padding: 8px 0;\n}\n</style>\n","/**\n * Copyright (c) 2023 - present TinyEngine Authors.\n * Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.\n *\n * Use of this source code is governed by an MIT-style license.\n *\n * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,\n * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR\n * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.\n *\n */\n\nimport entry from './src/Main.vue'\nimport metaData from './meta'\nimport './src/styles/vars.less'\n\nexport default {\n ...metaData,\n entry\n}\n"],"names":["metaData","_sfc_main$1","TinyInput","TinyButton","TinyDialogBox","TinyForm","TinyFormItem","TinySelect","props","emit","editAppInfoRef","ref","formState","reactive","isOpen","tagsList","validRules","rule","value","callback","setVisible","visible","getTagsList","fetchBusinessCategoryByGroup","res","error","Notify","handleOpen","handleSelectIcon","icon","cancle","confirm","valid","_a","onMounted","_hoisted_1","_hoisted_4","_createBlock","_component_tiny_dialog_box","$props","$setup","_withCtx","_createVNode","_component_tiny_button","_cache","_createTextVNode","_component_tiny_form","_component_tiny_form_item","_component_tiny_input","$event","_component_tiny_select","_createElementVNode","_openBlock","_createElementBlock","_hoisted_2","_createCommentVNode","_component_svg_icon","_Transition","_hoisted_3","_Fragment","_renderList","iconIndex","_sfc_main","Button","Select","Pager","Grid","GridColumn","Popover","Search","SearchEmpty","iconSearch","AppDialog","appList","appFilterOptions","appOrderByOptions","arrangeOptions","state","getApplicationList","params","fetchApplicationList","creatApp","handleDelete","template","Modal","deleteApplication","openApplication","href","typeClick","type","pageSizeChange","val","currentChange","confirmApp","formData","updateId","updateApplication","createApplication","_hoisted_6","_hoisted_7","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_20","_component_tiny_search","_component_tiny_icon_search","item","_hoisted_8","_toDisplayString","_hoisted_12","_hoisted_13","_b","_hoisted_14","_component_tiny_popover","_hoisted_18","_hoisted_19","_component_tiny_grid","_component_tiny_grid_column","data","_component_search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,gBAAcnF,EAAA,MAAM;AAAA,QACpB,aAAWA,EAAA,MAAM;AAAA,QACjB,cAAYA,EAAA,MAAM;AAAA,QAClB,OAAOA,EAAA,MAAM;AAAA,QACb,cAAaA,EAAA;AAAA,QACb,iBAAgBA,EAAA;AAAA;;IAGrBE,EAAkFkF,GAAA;AAAA,MAA9D,SAASpF,EAAA,MAAM;AAAA,MAAN,oBAAAI,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAK,MAAAT,EAAA,MAAM,aAAUS;AAAA,MAAG,WAAST,EAAA;AAAA;;;sFCrF7DqF,KAAe;AAAA,EACb,GAAG7H;AAAA,EACH,OAAA8H;AACF;"}
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .form-item-icon-wrapper[data-v-67ebf39c]{position:relative}.form-item-icon-wrapper .form-item-icon[data-v-67ebf39c]{font-size:40px;cursor:pointer}.form-item-icon-wrapper .dropdown-menu[data-v-67ebf39c]{position:absolute;bottom:100%;left:0;padding:16px;margin-bottom:5px;width:216px;border-radius:4px;z-index:1000;overflow:hidden;background:var(--te-template-common-bg-color);box-shadow:0 4px 16px 0 var(--te-base-box-shadow-rgba-3)}.form-item-icon-wrapper .dropdown-menu .icon-list[data-v-67ebf39c]{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}.form-item-icon-wrapper .dropdown-menu .icon-list .icon[data-v-67ebf39c]{font-size:32px;cursor:pointer}.app-center[data-v-4b70bdeb]{padding:24px;background:var(--te-template-common-bg-color);height:-webkit-fill-available}.app-center .app-center-title[data-v-4b70bdeb]{font-size:20px;font-weight:600}.app-center .app-center-operation[data-v-4b70bdeb]{margin:24px 0 20px;display:flex;justify-content:space-between}.app-center .app-center-filter[data-v-4b70bdeb]{display:flex;align-items:center;gap:20px}.app-center .app-center-search[data-v-4b70bdeb]{min-width:300px}.app-center .type-toolbar[data-v-4b70bdeb]{display:flex;border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color)}.app-center .type-toolbar .icon-wrap[data-v-4b70bdeb]{width:24px;height:24px;color:var(--te-template-app-center-btn-icon-color);font-size:16px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;transition:.3s}.app-center .type-toolbar .icon-wrap.active[data-v-4b70bdeb]{border:1px solid var(--te-template-app-center-btn-border-color-active);color:var(--te-template-app-center-btn-color-active);border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color-active)}.app-center .app-center-list[data-v-4b70bdeb]{height:calc(100vh - 200px)}.list[data-v-4b70bdeb]{display:flex;gap:24px;flex-wrap:wrap}.list .item[data-v-4b70bdeb]{width:252px;padding:24px;border-radius:8px;background:var(--te-template-center-common-item-bg-color);position:relative}.list .item .app-name[data-v-4b70bdeb]{display:flex;gap:8px;align-items:center}.list .item .app-name .app-img[data-v-4b70bdeb]{width:40px;height:40px}.list .item .app-name .app-name-text[data-v-4b70bdeb]{font-size:18px;font-weight:600}.list .item .app-tag[data-v-4b70bdeb]{display:flex;gap:4px;height:20px;margin-top:12px}.list .item .app-tag .tag[data-v-4b70bdeb]{padding:2px 4px;border-radius:2px;background:var(--te-template-center-common-item-tag-bg-color)}.list .item .app-desc[data-v-4b70bdeb]{margin-top:12px;color:var(--te-template-center-common-item-desc-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list .item .app-view[data-v-4b70bdeb]{position:absolute;bottom:24px;right:24px}.list .item .app-operation[data-v-4b70bdeb]{display:none}.list .item:hover .app-operation[data-v-4b70bdeb]{display:block;position:absolute;width:20px;height:20px;border-radius:4px;background:var(--te-template-center-common-item-operation-bg-color);display:inline-flex;justify-content:center;align-items:center;cursor:pointer;top:16px;right:16px}.table .app-name[data-v-4b70bdeb]{display:flex;gap:8px;align-items:center}.table .app-name .app-img[data-v-4b70bdeb]{width:24px;height:24px}.table .tiny-button.tiny-button--text[data-v-4b70bdeb]{padding-left:0}.list-wrap[data-v-4b70bdeb]{margin-bottom:12px;max-height:calc(100% - 80px);overflow:auto}.list-wrap .empty-wrap[data-v-4b70bdeb]{width:100%}.options .option[data-v-4b70bdeb]{padding:4px 16px;cursor:pointer}.options .option[data-v-4b70bdeb]:hover{background:var(--te-template-common-bg-color-hover)}.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],.operation-popover.tiny-popover.tiny-popper[x-placement]{padding:8px 0}:root{--te-template-common-bg-color: var(--te-common-bg-default);--te-template-common-bg-color-hover: var(--te-common-bg-container);--te-template-app-center-btn-bg-color: var(--te-common-bg-container);--te-template-app-center-btn-icon-color: var(--te-common-icon-secondary);--te-template-app-center-btn-color-active: var(--te-common-icon-primary);--te-template-app-center-btn-border-color-active: var(--te-common-border-active);--te-template-app-center-btn-bg-color-active: var(--te-common-bg-default);--te-template-center-common-item-bg-color: var(--te-common-bg-container-weaken);--te-template-center-common-item-tag-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-desc-text-color: var(--te-common-text-secondary)}
1
+ .form-item-icon-wrapper[data-v-2dd22eb8]{position:relative}.form-item-icon-wrapper .form-item-icon[data-v-2dd22eb8]{font-size:40px;cursor:pointer}.form-item-icon-wrapper .form-item-icon-mask[data-v-2dd22eb8]{background-color:var(--te-app-center-mask-modal-bg-color);transition:background-color,.2s,ease-in-out;position:fixed;width:40px;height:40px;border-radius:8px}.form-item-icon-wrapper .dropdown-menu[data-v-2dd22eb8]{position:absolute;bottom:100%;left:0;padding:16px;margin-bottom:5px;width:192px;border-radius:4px;z-index:1000;overflow:hidden;background:var(--te-template-common-bg-color);box-shadow:0 4px 16px 0 var(--te-base-box-shadow-rgba-3)}.form-item-icon-wrapper .dropdown-menu .icon-list[data-v-2dd22eb8]{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}.form-item-icon-wrapper .dropdown-menu .icon-list .icon[data-v-2dd22eb8]{font-size:32px;cursor:pointer}.app-center[data-v-2d6a9530]{padding:24px;background:var(--te-template-common-bg-color);height:-webkit-fill-available}.app-center .app-center-title[data-v-2d6a9530]{font-size:20px;font-weight:600}.app-center .app-center-operation[data-v-2d6a9530]{margin:24px 0 20px;display:flex;justify-content:space-between}.app-center .app-center-filter[data-v-2d6a9530]{display:flex;align-items:center;gap:12px}.app-center .app-center-search[data-v-2d6a9530]{min-width:300px}.app-center .type-toolbar[data-v-2d6a9530]{display:flex;border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color)}.app-center .type-toolbar .icon-wrap[data-v-2d6a9530]{width:24px;height:24px;color:var(--te-template-app-center-btn-icon-color);font-size:16px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;transition:.3s}.app-center .type-toolbar .icon-wrap.active[data-v-2d6a9530]{border:1px solid var(--te-template-app-center-btn-border-color-active);color:var(--te-template-app-center-btn-color-active);border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color-active)}.app-center .app-center-list[data-v-2d6a9530]{height:calc(100vh - 200px)}.list[data-v-2d6a9530]{display:flex;gap:24px;flex-wrap:wrap}.list .item[data-v-2d6a9530]{width:252px;padding:24px;border-radius:8px;background:var(--te-template-center-common-item-bg-color);border:1px solid var(--te-template-app-center-item-border-color);position:relative}.list .item[data-v-2d6a9530]:hover{border-color:var(--te-template-app-center-item-border-color-hover)}.list .item .app-name[data-v-2d6a9530]{display:flex;gap:8px;align-items:center}.list .item .app-name .app-img[data-v-2d6a9530]{width:40px;height:40px}.list .item .app-name .app-name-text[data-v-2d6a9530]{font-size:18px;font-weight:600}.list .item .app-tag[data-v-2d6a9530]{display:flex;gap:4px;height:20px;margin-top:12px}.list .item .app-tag .tag[data-v-2d6a9530]{padding:2px 4px;border-radius:2px;background:var(--te-template-center-common-item-tag-bg-color)}.list .item .app-desc[data-v-2d6a9530]{margin-top:12px;color:var(--te-template-center-common-item-desc-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list .item .app-operation[data-v-2d6a9530]{display:none}.list .item:hover .app-operation[data-v-2d6a9530]{display:block;position:absolute;width:20px;height:20px;border-radius:4px;background:var(--te-template-center-common-item-operation-bg-color);color:var(--te-template-center-common-item-operation-icon-color);display:inline-flex;justify-content:center;align-items:center;cursor:pointer;top:16px;right:16px}.table .app-name[data-v-2d6a9530]{display:flex;gap:8px;align-items:center}.table .app-name .app-img[data-v-2d6a9530]{width:24px;height:24px}.table .tiny-button.tiny-button--text[data-v-2d6a9530]{padding-left:0}.list-wrap[data-v-2d6a9530]{margin-bottom:12px;max-height:calc(100% - 80px);overflow:auto}.list-wrap .empty-wrap[data-v-2d6a9530]{width:100%}.options .option[data-v-2d6a9530]{padding:4px 16px;cursor:pointer}.options .option[data-v-2d6a9530]:hover{background:var(--te-template-common-bg-color-hover)}.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],.operation-popover.tiny-popover.tiny-popper[x-placement]{padding:8px 0}:root{--te-template-common-bg-color: var(--te-common-bg-default);--te-template-common-bg-color-hover: var(--te-common-bg-container);--te-app-center-mask-modal-bg-color: var(--te-common-mask);--te-template-app-center-btn-bg-color: var(--te-common-bg-container);--te-template-app-center-btn-icon-color: var(--te-common-icon-secondary);--te-template-app-center-btn-color-active: var(--te-common-icon-primary);--te-template-app-center-btn-border-color-active: var(--te-common-border-active);--te-template-app-center-btn-bg-color-active: var(--te-common-bg-default);--te-template-app-center-item-border-color: var(--te-common-border-card);--te-template-app-center-item-border-color-hover: var(--te-common-border-checked);--te-template-center-common-item-bg-color: var(--te-common-bg-container-weaken);--te-template-center-common-item-tag-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-icon-color: var(--te-common-icon-secondary);--te-template-center-common-item-desc-text-color: var(--te-common-text-secondary)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-workspace-application-center",
3
- "version": "2.9.0-rc.0",
3
+ "version": "2.9.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.9.0-rc.0",
29
- "@opentiny/tiny-engine-meta-register": "2.9.0-rc.0",
28
+ "@opentiny/tiny-engine-common": "2.9.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.9.0",
30
30
  "vue-clipboard3": "^2.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.9.0-rc.0",
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.9.0",
34
34
  "@vitejs/plugin-vue": "^5.1.2",
35
35
  "@vitejs/plugin-vue-jsx": "^4.0.1",
36
36
  "vite": "^5.4.2"
@@ -40,5 +40,5 @@
40
40
  "@opentiny/vue-icon": "^3.20.0",
41
41
  "vue": "^3.4.15"
42
42
  },
43
- "gitHead": "be44f98edc2433e5cad2db07953ed3a3310c9d29"
43
+ "gitHead": "ddab413cb9d35609c4bbbe79966b0631bc02b817"
44
44
  }