halo-pc 1.0.45 → 1.0.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/{Article-CgBdjIiN.js → Article-B84VAixe.js} +2 -2
  2. package/dist/{ArticleFooter-CQgpF0yB.js → ArticleFooter-BFYLnY72.js} +1 -1
  3. package/dist/{Autocomplete-CIoDe0Cb.js → Autocomplete-CHDWK1KM.js} +1 -1
  4. package/dist/{Autocomplete-UmT5nRcK.js → Autocomplete-CSM6pR_L.js} +1 -1
  5. package/dist/{Autocomplete-DgFlfrlw.js → Autocomplete-Q3OkxnH8.js} +1 -1
  6. package/dist/{CSharp-BxyKLu5C.js → CSharp-B1k72pm-.js} +1 -1
  7. package/dist/{Calender-DXZBssWK.js → Calender-C6dp4mkt.js} +1 -1
  8. package/dist/{Callback-C9dcX6B1.js → Callback-wqSA4EN3.js} +7 -7
  9. package/dist/{Cascader-BcN7P3LU.js → Cascader-B5o35bD-.js} +1 -1
  10. package/dist/{Cascader-DWFOyxzg.js → Cascader-BdlGL8c4.js} +1 -1
  11. package/dist/{Checkbox-BiQQ5MaS.js → Checkbox-KPwXReus.js} +1 -1
  12. package/dist/{Checkbox-CH-09RQo.js → Checkbox-tcEMouFN.js} +1 -1
  13. package/dist/{Code-5slnxo1r.js → Code-B8hfY2XQ.js} +1 -1
  14. package/dist/Code-C8JJr5Mf.js +4 -0
  15. package/dist/{Code-CrvLGEo5.js → Code-CSG_76gb.js} +1 -1
  16. package/dist/{Code-ClrELJ2j.js → Code-r99zTgST.js} +1 -1
  17. package/dist/{Code.vue_vue_type_style_index_0_lang-Cy6F0NcY.js → Code.vue_vue_type_style_index_0_lang-Bs83ddUQ.js} +1 -1
  18. package/dist/{Column-JtP300Z3.js → Column-BC7oBV50.js} +1 -1
  19. package/dist/{Comment-DSsfU7-w.js → Comment-D3zPuZVm.js} +1 -1
  20. package/dist/{Compare-XBeUE_oP.js → Compare-BlljQWBQ.js} +1 -1
  21. package/dist/{Compare-qEx-qmMH.js → Compare-C-9GBrHI.js} +1 -1
  22. package/dist/{Copy-DncOGTUm.js → Copy-Cgj_WDDG.js} +1 -1
  23. package/dist/{Custom-Ct0DVIcX.js → Custom-a_CwMbiA.js} +1 -1
  24. package/dist/{DataExport-Cu_ez4M5.js → DataExport-D7-nyu-l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-B-mOu64F.js → DataExport.vue_vue_type_script_setup_true_lang-B-J_45oM.js} +1 -1
  26. package/dist/{DataImport-DuRXwErL.js → DataImport-96EzerQu.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DV29JFZA.js → DataImport.vue_vue_type_script_setup_true_lang-CNuRWjSo.js} +1 -1
  28. package/dist/{Date-D-_0V2lO.js → Date-ZmCWntv9.js} +1 -1
  29. package/dist/{Date-Io0GMIId.js → Date-y8lv76Ti.js} +1 -1
  30. package/dist/{DateRange-Bicvl-i6.js → DateRange-9l5EKIRZ.js} +1 -1
  31. package/dist/{DateTime-nW23mYp3.js → DateTime-B9zYybXS.js} +1 -1
  32. package/dist/{DateTime-BUlLMG98.js → DateTime-zKghiAk2.js} +1 -1
  33. package/dist/{DateTimeRange-xdRZUB_0.js → DateTimeRange-Cr-79y7b.js} +1 -1
  34. package/dist/{Daterange-D4jExz5J.js → Daterange-ZEsMdoWi.js} +1 -1
  35. package/dist/{Decimal-B517xq6Q.js → Decimal-BDa8NVPH.js} +1 -1
  36. package/dist/{Delete-aE3tN6Bc.js → Delete--bb5si4_.js} +1 -1
  37. package/dist/{Detail-Br_oSFNw.js → Detail-OI8hYejW.js} +1 -1
  38. package/dist/{Dictionary-SAj5746i.js → Dictionary-B7Gs8ERP.js} +1 -1
  39. package/dist/{Email-jCNrrtE_.js → Email-BVtRKSv8.js} +1 -1
  40. package/dist/{File-D684-dxC.js → File-Bs5dU1Rk.js} +2 -2
  41. package/dist/{Image-BuIQZBI0.js → Image-B8VvAEMa.js} +1 -1
  42. package/dist/Index-BYH7c7Hy.js +4 -0
  43. package/dist/{Index-BXFQJnHG.js → Index-BZeCjjCo.js} +2 -2
  44. package/dist/Index-CZKjVJJ8.js +4 -0
  45. package/dist/{Index-Bc885wCg.js → Index-D685f1Kv.js} +2 -2
  46. package/dist/Index-DJ2ND4KV.js +4 -0
  47. package/dist/{Index-DTLxqhHl.js → Index-TOHKeKua.js} +1 -1
  48. package/dist/{Index-BPXHfQbj.js → Index-a2WnGLAL.js} +1 -1
  49. package/dist/Index-obMYdEFM.js +4 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DD3APl06.js → Index.vue_vue_type_script_setup_true_lang-B-qwGfPd.js} +1 -1
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-Cksph7O4.js → Index.vue_vue_type_script_setup_true_lang-ahckFPWv.js} +1 -1
  52. package/dist/{Install-CtxfqAO3.js → Install-WcZL3to7.js} +22 -22
  53. package/dist/{Int-BLmQOjFT.js → Int-B99qgq5f.js} +1 -1
  54. package/dist/{Int-Dv3KX05l.js → Int-CPxmN0qt.js} +1 -1
  55. package/dist/{List-CBlPNvMl.js → List-CP5EEsIb.js} +1 -1
  56. package/dist/{Maintaince-D8nnelGo.js → Maintaince-BQw0atZc.js} +1 -1
  57. package/dist/{Markdown-DBNzs4Da.js → Markdown-BJk-Of5I.js} +1 -1
  58. package/dist/{Month-QAO2ipkS.js → Month-6D6vdfJC.js} +1 -1
  59. package/dist/{Month-B6vRAk_T.js → Month-BMfk3ogI.js} +1 -1
  60. package/dist/{Month-Dhn96RJ2.js → Month-Bwd88sLJ.js} +1 -1
  61. package/dist/{Normal-C7B943d8.js → Normal-Cxw9cBLO.js} +1 -1
  62. package/dist/{Paging-BICuyGsB.js → Paging-BpVbuvIK.js} +2 -2
  63. package/dist/{PagingHeader-C0EI7M3f.js → PagingHeader-8CKCL1q6.js} +1 -1
  64. package/dist/{PagingRow-CPfxJWuj.js → PagingRow-F5IPq91q.js} +1 -1
  65. package/dist/{Racebar-QiyPJDqx.js → Racebar-DBnlIYrB.js} +2 -2
  66. package/dist/{Radio-CQSqmMxQ.js → Radio-0IqsFkR2.js} +1 -1
  67. package/dist/{Register-BEqrc8hq.js → Register-nJSRScaV.js} +2 -2
  68. package/dist/{RichText-DY94cZ2e.js → RichText-BSEex9vi.js} +1 -1
  69. package/dist/{SearchForm-CvtR1Y-R.js → SearchForm-oOFoOTk1.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-CLUAvC47.js → SearchForm.vue_vue_type_style_index_0_lang-h5y0whFA.js} +1 -1
  71. package/dist/{SearchHeader-QdTf7BZz.js → SearchHeader-CCVpMhNk.js} +1 -1
  72. package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CPNazAu-.js → SearchHeader.vue_vue_type_style_index_0_lang-BLwCN35S.js} +1 -1
  73. package/dist/Select-CQ_TxlNj.js +123 -0
  74. package/dist/{Select-BbPoEuw5.js → Select-DQ0f_-u3.js} +1 -1
  75. package/dist/{Select-C4icorgZ.js → Select-a4eRzEy4.js} +1 -1
  76. package/dist/{Single-B3U8fH8_.js → Single-BKtL-ahI.js} +4 -4
  77. package/dist/{Statistic-Upwpxjpr.js → Statistic-3f4cg0DO.js} +26 -26
  78. package/dist/{Stock-BChGRcOv.js → Stock-BPNKPUgt.js} +1 -1
  79. package/dist/{Stock-BpdLiCul.js → Stock-BxuVocRF.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-Buc5FCqU.js → Stock.vue_vue_type_style_index_0_lang-NQB8qNAS.js} +8 -8
  81. package/dist/{Switch-BCKaAWlg.js → Switch-C2Em1D_A.js} +1 -1
  82. package/dist/{Table-pn4rLYpp.js → Table-D3qblu6c.js} +2 -2
  83. package/dist/{Table-Att1iZnB.js → Table-Di9JNqC9.js} +5 -5
  84. package/dist/Text-DppspAOA.js +4 -0
  85. package/dist/{Text-CzGqM27Q.js → Text-FyUgw6pa.js} +1 -1
  86. package/dist/{Text-D2UzSOZb.js → Text-PeCT9_s1.js} +1 -1
  87. package/dist/{Text.vue_vue_type_style_index_0_lang-DzXYuudk.js → Text.vue_vue_type_style_index_0_lang-XA7-7zqI.js} +1 -1
  88. package/dist/{TextLink-D9a0Lnkd.js → TextLink-BVcttEr4.js} +1 -1
  89. package/dist/{Textarea-CSNFeGpg.js → Textarea-DVkIU8L2.js} +1 -1
  90. package/dist/{Time-DPxLsj9O.js → Time-C-JUjwi8.js} +1 -1
  91. package/dist/{Timeline-BU9faLDr.js → Timeline-Dbsp0dPk.js} +1 -1
  92. package/dist/{Tree-CpIKPHbi.js → Tree-DlFsf1Gd.js} +1 -1
  93. package/dist/{Tree-3s6Uh9XM.js → Tree-mio6VZmh.js} +1 -1
  94. package/dist/{TreeNode-wco-oEhY.js → TreeNode-CTZlylIy.js} +1 -1
  95. package/dist/{Update-H4Zle84Q.js → Update-BqArDw4q.js} +1 -1
  96. package/dist/{UpdateChild-DuqJCDPa.js → UpdateChild-Yr4m-kiB.js} +1 -1
  97. package/dist/{Upload-B9XCz3bT.js → Upload-BlfGPW_P.js} +1 -1
  98. package/dist/{Upload-Bb4jkwYw.js → Upload-CkBfWTxs.js} +1 -1
  99. package/dist/{Year-OULHImI3.js → Year-CyY0Wspy.js} +1 -1
  100. package/dist/{Year-BevjziW3.js → Year-DPxI6hSz.js} +1 -1
  101. package/dist/{main-CoOHjXIl.js → main-Cn31hgfj.js} +644 -642
  102. package/dist/main.js +22 -22
  103. package/esm/main.d.ts +2 -2
  104. package/esm/svcs/AppSvc.d.ts +1 -1
  105. package/esm/svcs/index.d.ts +2 -2
  106. package/package.json +1 -1
  107. package/dist/Code-D-Hs0Pj8.js +0 -4
  108. package/dist/Index-C7rta_l8.js +0 -4
  109. package/dist/Index-D2z02wQR.js +0 -4
  110. package/dist/Index-D7fzu-sd.js +0 -4
  111. package/dist/Index-YjX8nj4V.js +0 -4
  112. package/dist/Select-B8Xp8-rE.js +0 -117
  113. package/dist/Text-B-oDttNr.js +0 -4
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a_ as t, aC as e, aU as o, a3 as r, a5 as i, a6 as c, aD as n, bg as l, b as H, bn as b, a8 as y, ae as p, an as S, b1 as F, aF as U, aE as d, aX as v, bl as u, D as g, af as m, ao as C, a7 as T, bh as R, aG as P, a$ as D, a9 as E, aa as M, F as A, b9 as I, A as f, ab as h, ag as k, aH as x, v as w, J as O, d as q, W as B, O as G, L as K, N as j, _ as z, bu as L, a2 as V, bo as J, bv as Q, B as W, bq as N, C as X, bp as Y, bx as Z, by as _, bz as $, P as aa, bw as sa, x as ta, bA as ea, H as oa, p as ra, Q as ia, a as ca, n as na, br as la, Y as Ha, l as ba, f as ya, X as pa, E as Sa, T as Fa, bB as Ua, bC as da, Z as va, $ as ua, g as ga, a0 as ma, bs as Ca, bt as Ta, a1 as Ra, G as Pa, bD as Da, ah as Ea, ac as Ma, aI as Aa, ad as Ia, aj as fa, ak as ha, i as ka, al as xa, am as wa, I as Oa, ap as qa, aJ as Ba, aT as Ga, K as Ka, b0 as ja, bi as za, aK as La, aq as Va, ar as Ja, aL as Qa, ai as Wa, bd as Na, aM as Xa, M as Ya, aN as Za, bH as _a, aY as $a, as, a4 as ss, be as ts, b2 as es, V as os, aZ as rs, bb as is, bc as cs, R as ns, s as ls, aS as Hs, k as bs, bf as ys, bj as ps, aW as Ss, au as Fs, av as Us, aw as ds, ax as vs, at as us, ay as gs, w as ms, aO as Cs, bm as Ts, S as Rs, az as Ps, aP as Ds, aA as Es, aQ as Ms, aR as As, j as Is, aV as fs, bk as hs, aB as ks, b3 as xs, U as ws, b4 as Os, b5 as qs, o as Bs, c as Gs, h as Ks, z as js, y as zs, bE as Ls, b7 as Vs, b8 as Js, b6 as Qs, ba as Ws, bF as Ns, m as Xs, q as Ys, t as Zs, r as _s, u as $s, bG as at } from "./main-CoOHjXIl.js";
1
+ import { a_ as t, aC as e, aU as o, a3 as r, a5 as i, a6 as c, aD as n, bg as l, b as H, bn as b, a8 as y, ae as p, an as S, b1 as F, aF as d, aE as U, aX as v, bl as u, D as g, af as m, ao as C, a7 as T, bh as R, aG as P, a$ as D, a9 as A, aa as E, F as I, b9 as M, A as f, ab as h, ag as k, aH as x, v as w, J as O, d as q, W as B, O as G, L as K, N as j, _ as z, bu as L, a2 as V, bo as J, bv as Q, B as W, bq as N, C as X, bp as Y, bx as Z, by as _, bz as $, P as aa, bw as sa, x as ta, bA as ea, H as oa, p as ra, Q as ia, a as ca, n as na, br as la, Y as Ha, l as ba, f as ya, X as pa, E as Sa, T as Fa, bB as da, bC as Ua, Z as va, $ as ua, g as ga, a0 as ma, bs as Ca, bt as Ta, a1 as Ra, G as Pa, bD as Da, ah as Aa, ac as Ea, aI as Ia, ad as Ma, aj as fa, ak as ha, i as ka, al as xa, am as wa, I as Oa, ap as qa, aJ as Ba, aT as Ga, K as Ka, b0 as ja, bi as za, aK as La, aq as Va, ar as Ja, aL as Qa, ai as Wa, bd as Na, aM as Xa, M as Ya, aN as Za, bH as _a, aY as $a, as, a4 as ss, be as ts, b2 as es, V as os, aZ as rs, bb as is, bc as cs, R as ns, s as ls, aS as Hs, k as bs, bf as ys, bj as ps, aW as Ss, au as Fs, av as ds, aw as Us, ax as vs, at as us, ay as gs, w as ms, aO as Cs, bm as Ts, S as Rs, az as Ps, aP as Ds, aA as As, aQ as Es, aR as Is, j as Ms, aV as fs, bk as hs, aB as ks, b3 as xs, U as ws, b4 as Os, b5 as qs, o as Bs, c as Gs, h as Ks, z as js, y as zs, bE as Ls, b7 as Vs, b8 as Js, b6 as Qs, ba as Ws, bF as Ns, m as Xs, q as Ys, t as Zs, r as _s, u as $s, bG as at } from "./main-Cn31hgfj.js";
2
2
  import { h as tt } from "./assets/moment-h96o7c8I.js";
3
3
  export {
4
4
  t as AffixUtility,
@@ -15,8 +15,8 @@ export {
15
15
  p as DefaultHttp,
16
16
  S as DefaultIdentity,
17
17
  F as DeltaUtility,
18
- U as DictionaryUtil,
19
- d as DomUtil,
18
+ d as DictionaryUtil,
19
+ U as DomUtil,
20
20
  v as DragEvent,
21
21
  u as DriverSvc,
22
22
  g as Drivers,
@@ -26,10 +26,10 @@ export {
26
26
  R as EnvSvc,
27
27
  P as EventUtil,
28
28
  D as EventUtility,
29
- E as ExcelFactory,
30
- M as ExplainerFactory,
31
- A as Factories,
32
- I as Factory,
29
+ A as ExcelFactory,
30
+ E as ExplainerFactory,
31
+ I as Factories,
32
+ M as Factory,
33
33
  f as FeOptions,
34
34
  h as FeatureFactory,
35
35
  k as FeiShuHttp,
@@ -69,8 +69,8 @@ export {
69
69
  pa as HaRow,
70
70
  Sa as HaScroller,
71
71
  Fa as HaSelect,
72
- Ua as HaSideTab,
73
- da as HaSideTabs,
72
+ da as HaSideTab,
73
+ Ua as HaSideTabs,
74
74
  va as HaSocketProgress,
75
75
  ua as HaSpinner,
76
76
  ga as HaSwitch,
@@ -80,10 +80,10 @@ export {
80
80
  Ra as HaTag,
81
81
  Pa as HaTimer,
82
82
  Da as HaWindow,
83
- Ea as HaloHttp,
84
- Ma as HasherFactory,
85
- Aa as HtmlUtil,
86
- Ia as HttpFactory,
83
+ Aa as HaloHttp,
84
+ Ea as HasherFactory,
85
+ Ia as HtmlUtil,
86
+ Ma as HttpFactory,
87
87
  fa as HttpModel,
88
88
  ha as HttpProgress,
89
89
  ka as HttpRequest,
@@ -123,21 +123,21 @@ export {
123
123
  ps as SettingSvc,
124
124
  Ss as SignUtil,
125
125
  Fs as SignerFactory,
126
- Us as SocketFactory,
127
- ds as SocketProgress,
126
+ ds as SocketFactory,
127
+ Us as SocketProgress,
128
128
  vs as SocketResponse,
129
129
  us as SqlHelper,
130
130
  gs as SsoFactory,
131
- ms as SsoUser,
131
+ ms as SsoInfo,
132
132
  Cs as StringUtil,
133
133
  Ts as SvcFactory,
134
134
  Rs as Svcs,
135
135
  Ps as TaskFactory,
136
136
  Ds as TaskUtil,
137
- Es as TemplateFactory,
138
- Ms as TimeUtil,
139
- As as TreeUtil,
140
- Is as UploadApi,
137
+ As as TemplateFactory,
138
+ Es as TimeUtil,
139
+ Is as TreeUtil,
140
+ Ms as UploadApi,
141
141
  fs as UrlUtil,
142
142
  hs as UserSvc,
143
143
  ks as UtilFactory,
@@ -149,8 +149,8 @@ export {
149
149
  Gs as componentSvc,
150
150
  Ks as controlSvc,
151
151
  js as createFeAsync,
152
- zs as createPc,
153
- Ls as createSvc,
152
+ zs as createPcAsync,
153
+ Ls as createSvcAsync,
154
154
  Vs as initDriverAsync,
155
155
  Js as initI18nsAsync,
156
156
  Qs as initOptionsAsync,
package/esm/main.d.ts CHANGED
@@ -4,10 +4,10 @@ import { CreatePcOptions } from "./@types";
4
4
  * 初始化PC框架
5
5
  * 创建前端基础框架,配置前端环境变量
6
6
  */
7
- declare let createPc: (app: App<Element>, options: CreatePcOptions) => Promise<void>;
7
+ declare let createPcAsync: (app: App<Element>, options: CreatePcOptions) => Promise<void>;
8
8
  export * from "halo-fe";
9
9
  export * from "./@types";
10
10
  export * from "./coms";
11
11
  export * from "./svcs";
12
12
  export * from "./repos";
13
- export { createPc };
13
+ export { createPcAsync };
@@ -10,7 +10,7 @@ export declare class AppSvc {
10
10
  /**
11
11
  * 初始化
12
12
  */
13
- useGlobal(app: App<Element>): Promise<void>;
13
+ useGlobalAsync(app: App<Element>): Promise<void>;
14
14
  /**
15
15
  * 注册自定义路由
16
16
  */
@@ -11,7 +11,7 @@ export * from "./Svcs";
11
11
  /**
12
12
  * 创建服务实例
13
13
  */
14
- declare let createSvc: () => Promise<void>;
14
+ declare let createSvcAsync: () => Promise<void>;
15
15
  declare let appSvc: AppSvc;
16
16
  declare let componentSvc: ComponentSvc;
17
17
  declare let controlSvc: ControlSvc;
@@ -21,4 +21,4 @@ declare let routerSvc: RouterSvc;
21
21
  declare let moduleSvc: ModuleSvc;
22
22
  declare let uploadSvc: UploadSvc;
23
23
  declare let windowSvc: WindowSvc;
24
- export { createSvc, appSvc, componentSvc, controlSvc, layoutSvc, pageSvc, routerSvc, moduleSvc, uploadSvc, windowSvc };
24
+ export { createSvcAsync, appSvc, componentSvc, controlSvc, layoutSvc, pageSvc, routerSvc, moduleSvc, uploadSvc, windowSvc };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-pc",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "Halo pc framework",
5
5
  "scripts": {
6
6
  "halo-pc:tsc": "vue-tsc",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-Cy6F0NcY.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a as f } from "./main-CoOHjXIl.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { x as f } from "./main-CoOHjXIl.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { k as f } from "./main-CoOHjXIl.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { b as f } from "./main-CoOHjXIl.js";
2
- export {
3
- f as default
4
- };
@@ -1,117 +0,0 @@
1
- import { defineComponent as I, toRefs as M, ref as f, computed as T, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as A, withModifiers as L, isRef as O, withCtx as V, createElementBlock as k, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as w, createCommentVNode as G, nextTick as H } from "vue";
2
- import { I as J, U as P, h as Q, D as W } from "./main-CoOHjXIl.js";
3
- import "./assets/liquidjs-BfOWWjtJ.js";
4
- import "./assets/underscore-B0BCaBxV.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/clone-BZn0cTAu.js";
7
- import "./assets/underscore.string-DVXD2SZo.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- const X = { class: "option-text" }, Y = {
10
- key: 0,
11
- class: "option-suffix"
12
- }, ue = /* @__PURE__ */ I({
13
- __name: "Select",
14
- props: {
15
- schema: {},
16
- table: {},
17
- field: {},
18
- set: {},
19
- row: {},
20
- modelValue: { type: [String, Number, Boolean, Array] }
21
- },
22
- emits: ["submit", "change", "update:modelValue"],
23
- setup(C, { emit: E }) {
24
- let s = E, B = C, { schema: S, field: r, table: m, set: h, row: R, modelValue: p } = M(B), x = f(), b = f(), v = f(!1), d = f(r.value.control.data.data), j = (t) => {
25
- t == "" && (t = null);
26
- let e;
27
- if (P.object.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
28
- let a = m.value.fields.find((l) => l.name == r.value.control.text), o;
29
- e && (o = d.value.find((i) => i.value == e).text);
30
- debugger;
31
- R.value[a.name] = o;
32
- }
33
- g(m.value, r.value), s("change", t);
34
- }, D = () => {
35
- s("submit");
36
- }, K = () => {
37
- }, N = () => {
38
- v.value = !0;
39
- let t = { text: b.value, conditions: [] };
40
- r.value.control.data.conditions.forEach((e) => {
41
- let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
42
- t.conditions.push({ name: e.name, value: o });
43
- }), W.http.post(r.value.control.data.route, t).then(({ data: e }) => {
44
- d.value = e;
45
- }).finally(() => {
46
- v.value = !1, H(() => {
47
- let e = d.value.find((a) => a.value == u.value);
48
- x.value.scrollToOption(e);
49
- });
50
- });
51
- }, U = (t) => {
52
- b.value = t, N();
53
- }, F = (t, e) => {
54
- let a = [];
55
- return S.value.forEach((o) => {
56
- o.fields.forEach((l) => {
57
- l.dictionary && l.dictionary.conditions.forEach((i) => {
58
- i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
59
- });
60
- });
61
- }), a;
62
- }, g = (t, e) => {
63
- F(t, e).forEach((o) => {
64
- Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
65
- });
66
- }, u = T({
67
- get() {
68
- return r.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
69
- },
70
- set(t) {
71
- s("update:modelValue", t), s("change", t);
72
- }
73
- });
74
- return (t, e) => {
75
- const a = _("el-option"), o = _("el-select");
76
- return c(), y(o, {
77
- ref_key: "selectRef",
78
- ref: x,
79
- filterable: "",
80
- remote: "",
81
- "reserve-keyword": "",
82
- "default-first-option": "",
83
- "remote-show-suffix": "",
84
- "loading-text": "加载中",
85
- clearable: "",
86
- placeholder: n(J).field_choose_placeholder(n(m).name, n(r).name),
87
- multiple: n(r).control.multiple,
88
- "remote-method": n(U),
89
- loading: n(v),
90
- disabled: n(r).control.readonly,
91
- onKeyup: A(L(n(D), ["alt"]), ["enter", "native"]),
92
- onBlur: n(K),
93
- onChange: n(j),
94
- modelValue: n(u),
95
- "onUpdate:modelValue": e[0] || (e[0] = (l) => O(u) ? u.value = l : u = l)
96
- }, {
97
- default: V(() => [
98
- (c(!0), k($, null, q(n(d), (l, i) => (c(), y(a, {
99
- label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
100
- value: l.value,
101
- key: l.value
102
- }, {
103
- default: V(() => [
104
- z("span", X, w(l.text), 1),
105
- l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : G("", !0)
106
- ]),
107
- _: 2
108
- }, 1032, ["label", "value"]))), 128))
109
- ]),
110
- _: 1
111
- }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
112
- };
113
- }
114
- });
115
- export {
116
- ue as default
117
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Text.vue_vue_type_style_index_0_lang-DzXYuudk.js";
2
- export {
3
- f as default
4
- };