@fangzhongya/fang-ui 0.0.53 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/components/common/use.cjs +2 -0
  2. package/dist/components/common/use.js +2 -0
  3. package/dist/components/index.cjs +84 -80
  4. package/dist/components/index.d.ts +3 -1
  5. package/dist/components/index.js +5 -1
  6. package/dist/components/index.scss +3 -1
  7. package/dist/components/index2.scss +3 -1
  8. package/dist/components/list/index.cjs +9 -0
  9. package/dist/components/list/index.css +96 -0
  10. package/dist/components/list/index.d.ts +2 -0
  11. package/dist/components/list/index.js +9 -0
  12. package/dist/components/list/index.scss +110 -0
  13. package/dist/components/list/src/data.cjs +97 -0
  14. package/dist/components/list/src/data.d.ts +100 -0
  15. package/dist/components/list/src/data.js +97 -0
  16. package/dist/components/list/src/index.cjs +4 -0
  17. package/dist/components/list/src/index.js +4 -0
  18. package/dist/components/list/src/index2.cjs +337 -0
  19. package/dist/components/list/src/index2.js +337 -0
  20. package/dist/components/lists/index.cjs +2 -2
  21. package/dist/components/lists/index.css +27 -72
  22. package/dist/components/lists/index.scss +30 -98
  23. package/dist/components/lists/src/data.cjs +80 -49
  24. package/dist/components/lists/src/data.d.ts +103 -48
  25. package/dist/components/lists/src/data.js +81 -50
  26. package/dist/components/lists/src/index.cjs +2 -2
  27. package/dist/components/lists/src/index2.cjs +237 -303
  28. package/dist/components/lists/src/index2.js +237 -303
  29. package/dist/components/listsp/index.cjs +9 -0
  30. package/dist/components/listsp/index.css +86 -0
  31. package/dist/components/listsp/index.d.ts +2 -0
  32. package/dist/components/listsp/index.js +9 -0
  33. package/dist/components/listsp/index.scss +23 -0
  34. package/dist/components/listsp/src/data.d.ts +14 -0
  35. package/dist/components/listsp/src/index.cjs +4 -0
  36. package/dist/components/listsp/src/index.js +4 -0
  37. package/dist/components/listsp/src/index2.cjs +98 -0
  38. package/dist/components/listsp/src/index2.js +98 -0
  39. package/dist/components/listsp/style/index2.scss +4 -0
  40. package/dist/components/page/index.css +35 -38
  41. package/dist/components/page/index.scss +1 -1
  42. package/dist/components/page/src/index2.cjs +2 -2
  43. package/dist/components/page/src/index2.js +2 -2
  44. package/dist/components/page/style/index2.scss +1 -1
  45. package/dist/components/scss/function.scss +1 -1
  46. package/dist/components/tables/common/pagin.cjs +23 -7
  47. package/dist/components/tables/common/pagin.d.ts +8 -1
  48. package/dist/components/tables/common/pagin.js +23 -7
  49. package/dist/components/tables/index.css +1 -4
  50. package/dist/components/tables/index.scss +1 -4
  51. package/dist/components/tablesp/index.css +1 -4
  52. package/dist/css/index.css +100 -46
  53. package/dist/css/list.css +96 -0
  54. package/dist/css/lists.css +27 -72
  55. package/dist/css/listsp.css +86 -0
  56. package/dist/css/page.css +35 -38
  57. package/dist/css/tables.css +1 -4
  58. package/dist/css/tablesp.css +1 -4
  59. package/dist/directives/scroll/index.cjs +36 -11
  60. package/dist/directives/scroll/index.js +36 -11
  61. package/dist/expand/{chunk-LSKJOV4K.cjs → chunk-S7R2FI5L.cjs} +6 -2
  62. package/dist/expand/{chunk-ZS2GF6MH.js → chunk-VCOMWNQB.js} +6 -2
  63. package/dist/expand/components.cjs +5 -5
  64. package/dist/expand/components.js +1 -1
  65. package/dist/expand/config.cjs +2 -2
  66. package/dist/expand/config.js +1 -1
  67. package/dist/icons/index.css +32 -32
  68. package/dist/icons/index.json +10 -10
  69. package/dist/index.cjs +102 -98
  70. package/dist/index.css +100 -46
  71. package/dist/index.js +5 -1
  72. package/dist/type.d.ts +7 -0
  73. package/package.json +4 -4
  74. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  75. /package/dist/components/{cascader-panel → keep-com}/index.css +0 -0
  76. /package/dist/components/{lists → list}/src/setup.d.ts +0 -0
  77. /package/dist/components/{lists → list}/src/util.cjs +0 -0
  78. /package/dist/components/{lists → list}/src/util.d.ts +0 -0
  79. /package/dist/components/{lists → list}/src/util.js +0 -0
  80. /package/dist/components/{lists → tables}/common/img.cjs +0 -0
  81. /package/dist/components/{lists → tables}/common/img.js +0 -0
  82. /package/dist/components/{lists → tables}/common/img2.cjs +0 -0
  83. /package/dist/components/{lists → tables}/common/img2.js +0 -0
  84. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  85. /package/dist/css/{cascader-panel.css → keep-com.css} +0 -0
@@ -146,6 +146,8 @@ function getValue(obj, data, index) {
146
146
  } else {
147
147
  cellValue = cdata[prop];
148
148
  }
149
+ } else {
150
+ cellValue = obj.value;
149
151
  }
150
152
  if (obj.formatter) {
151
153
  return obj.formatter(data, obj, cellValue, index, cdata);
@@ -144,6 +144,8 @@ function getValue(obj, data, index) {
144
144
  } else {
145
145
  cellValue = cdata[prop];
146
146
  }
147
+ } else {
148
+ cellValue = obj.value;
147
149
  }
148
150
  if (obj.formatter) {
149
151
  return obj.formatter(data, obj, cellValue, index, cdata);
@@ -73,46 +73,48 @@ const index$15 = require("./icon-picker/index.cjs");
73
73
  const index$16 = require("./icon/index.cjs");
74
74
  const index$17 = require("./iframe/index.cjs");
75
75
  const index$18 = require("./keep-com/index.cjs");
76
- const index$19 = require("./lists/index.cjs");
77
- const index$1a = require("./menus/index.cjs");
78
- const index$1b = require("./page/index.cjs");
79
- const index$1c = require("./retract/index.cjs");
80
- const index$1d = require("./choice-select/index.cjs");
81
- const index$1e = require("./company-select/index.cjs");
82
- const index$1f = require("./department-select/index.cjs");
83
- const index$1g = require("./role-select/index.cjs");
84
- const index$1h = require("./select-dialog/index.cjs");
85
- const index$1i = require("./select-popover/index.cjs");
86
- const index$1j = require("./tree-select-box/index.cjs");
87
- const index$1k = require("./user-select/index.cjs");
88
- const index$1l = require("./array/index.cjs");
89
- const index$1m = require("./buttons/index.cjs");
90
- const index$1n = require("./cascaders/index.cjs");
91
- const index$1o = require("./checks/index.cjs");
92
- const index$1p = require("./dates-divide/index.cjs");
93
- const index$1q = require("./dates-picker/index.cjs");
94
- const index$1r = require("./dates/index.cjs");
95
- const index$1s = require("./edit-float/index.cjs");
96
- const index$1t = require("./edit/index.cjs");
97
- const index$1u = require("./history/index.cjs");
98
- const index$1v = require("./images/index.cjs");
99
- const index$1w = require("./input-array/index.cjs");
100
- const index$1x = require("./input-history/index.cjs");
101
- const index$1y = require("./input-num/index.cjs");
102
- const index$1z = require("./input-select/index.cjs");
103
- const index$1A = require("./inputs/index.cjs");
104
- const index$1B = require("./labels/index.cjs");
105
- const index$1C = require("./select-scroll/index.cjs");
106
- const index$1D = require("./selector/index.cjs");
107
- const index$1E = require("./selects/index.cjs");
108
- const index$1F = require("./switchs/index.cjs");
109
- const index$1G = require("./text/index.cjs");
110
- const index$1H = require("./paging/index.cjs");
111
- const index$1I = require("./tables/index.cjs");
112
- const index$1J = require("./tablesp/index.cjs");
113
- const index$1K = require("./tabless/index.cjs");
114
- const index$1L = require("./tablesv/index.cjs");
115
- const index$1M = require("./tablesvp/index.cjs");
76
+ const index$19 = require("./menus/index.cjs");
77
+ const index$1a = require("./page/index.cjs");
78
+ const index$1b = require("./retract/index.cjs");
79
+ const index$1c = require("./choice-select/index.cjs");
80
+ const index$1d = require("./company-select/index.cjs");
81
+ const index$1e = require("./department-select/index.cjs");
82
+ const index$1f = require("./role-select/index.cjs");
83
+ const index$1g = require("./select-dialog/index.cjs");
84
+ const index$1h = require("./select-popover/index.cjs");
85
+ const index$1i = require("./tree-select-box/index.cjs");
86
+ const index$1j = require("./user-select/index.cjs");
87
+ const index$1k = require("./array/index.cjs");
88
+ const index$1l = require("./buttons/index.cjs");
89
+ const index$1m = require("./cascaders/index.cjs");
90
+ const index$1n = require("./checks/index.cjs");
91
+ const index$1o = require("./dates-divide/index.cjs");
92
+ const index$1p = require("./dates-picker/index.cjs");
93
+ const index$1q = require("./dates/index.cjs");
94
+ const index$1r = require("./edit-float/index.cjs");
95
+ const index$1s = require("./edit/index.cjs");
96
+ const index$1t = require("./history/index.cjs");
97
+ const index$1u = require("./images/index.cjs");
98
+ const index$1v = require("./input-array/index.cjs");
99
+ const index$1w = require("./input-history/index.cjs");
100
+ const index$1x = require("./input-num/index.cjs");
101
+ const index$1y = require("./input-select/index.cjs");
102
+ const index$1z = require("./inputs/index.cjs");
103
+ const index$1A = require("./labels/index.cjs");
104
+ const index$1B = require("./select-scroll/index.cjs");
105
+ const index$1C = require("./selector/index.cjs");
106
+ const index$1D = require("./selects/index.cjs");
107
+ const index$1E = require("./switchs/index.cjs");
108
+ const index$1F = require("./text/index.cjs");
109
+ const index$1G = require("./list/index.cjs");
110
+ const index$1H = require("./lists/index.cjs");
111
+ const index$1I = require("./listsp/index.cjs");
112
+ const index$1J = require("./paging/index.cjs");
113
+ const index$1K = require("./tables/index.cjs");
114
+ const index$1L = require("./tablesp/index.cjs");
115
+ const index$1M = require("./tabless/index.cjs");
116
+ const index$1N = require("./tablesv/index.cjs");
117
+ const index$1O = require("./tablesvp/index.cjs");
116
118
  const index$b = require("./loading/src/index.cjs");
117
119
  exports.Button = index.Button;
118
120
  exports.Card = index$1.Card;
@@ -186,44 +188,46 @@ exports.IconPicker = index$15.IconPicker;
186
188
  exports.Icon = index$16.Icon;
187
189
  exports.Iframe = index$17.Iframe;
188
190
  exports.KeepCom = index$18.KeepCom;
189
- exports.Lists = index$19.Lists;
190
- exports.Menus = index$1a.Menus;
191
- exports.Page = index$1b.Page;
192
- exports.Retract = index$1c.Retract;
193
- exports.ChoiceSelect = index$1d.ChoiceSelect;
194
- exports.CompanySelect = index$1e.CompanySelect;
195
- exports.DepartmentSelect = index$1f.DepartmentSelect;
196
- exports.RoleSelect = index$1g.RoleSelect;
197
- exports.SelectDialog = index$1h.SelectDialog;
198
- exports.SelectPopover = index$1i.SelectPopover;
199
- exports.TreeSelectBox = index$1j.TreeSelectBox;
200
- exports.UserSelect = index$1k.UserSelect;
201
- exports.Array = index$1l.Array;
202
- exports.Buttons = index$1m.Buttons;
203
- exports.Cascaders = index$1n.Cascaders;
204
- exports.Checks = index$1o.Checks;
205
- exports.DatesDivide = index$1p.DatesDivide;
206
- exports.DatesPicker = index$1q.DatesPicker;
207
- exports.Dates = index$1r.Dates;
208
- exports.EditFloat = index$1s.EditFloat;
209
- exports.Edit = index$1t.Edit;
210
- exports.History = index$1u.History;
211
- exports.Images = index$1v.Images;
212
- exports.InputArray = index$1w.InputArray;
213
- exports.InputHistory = index$1x.InputHistory;
214
- exports.InputNum = index$1y.InputNum;
215
- exports.InputSelect = index$1z.InputSelect;
216
- exports.Inputs = index$1A.Inputs;
217
- exports.Labels = index$1B.Labels;
218
- exports.SelectScroll = index$1C.SelectScroll;
219
- exports.Selector = index$1D.Selector;
220
- exports.Selects = index$1E.Selects;
221
- exports.Switchs = index$1F.Switchs;
222
- exports.Text = index$1G.Text;
223
- exports.Paging = index$1H.Paging;
224
- exports.Tables = index$1I.Tables;
225
- exports.Tablesp = index$1J.Tablesp;
226
- exports.Tabless = index$1K.Tabless;
227
- exports.Tablesv = index$1L.Tablesv;
228
- exports.Tablesvp = index$1M.Tablesvp;
191
+ exports.Menus = index$19.Menus;
192
+ exports.Page = index$1a.Page;
193
+ exports.Retract = index$1b.Retract;
194
+ exports.ChoiceSelect = index$1c.ChoiceSelect;
195
+ exports.CompanySelect = index$1d.CompanySelect;
196
+ exports.DepartmentSelect = index$1e.DepartmentSelect;
197
+ exports.RoleSelect = index$1f.RoleSelect;
198
+ exports.SelectDialog = index$1g.SelectDialog;
199
+ exports.SelectPopover = index$1h.SelectPopover;
200
+ exports.TreeSelectBox = index$1i.TreeSelectBox;
201
+ exports.UserSelect = index$1j.UserSelect;
202
+ exports.Array = index$1k.Array;
203
+ exports.Buttons = index$1l.Buttons;
204
+ exports.Cascaders = index$1m.Cascaders;
205
+ exports.Checks = index$1n.Checks;
206
+ exports.DatesDivide = index$1o.DatesDivide;
207
+ exports.DatesPicker = index$1p.DatesPicker;
208
+ exports.Dates = index$1q.Dates;
209
+ exports.EditFloat = index$1r.EditFloat;
210
+ exports.Edit = index$1s.Edit;
211
+ exports.History = index$1t.History;
212
+ exports.Images = index$1u.Images;
213
+ exports.InputArray = index$1v.InputArray;
214
+ exports.InputHistory = index$1w.InputHistory;
215
+ exports.InputNum = index$1x.InputNum;
216
+ exports.InputSelect = index$1y.InputSelect;
217
+ exports.Inputs = index$1z.Inputs;
218
+ exports.Labels = index$1A.Labels;
219
+ exports.SelectScroll = index$1B.SelectScroll;
220
+ exports.Selector = index$1C.Selector;
221
+ exports.Selects = index$1D.Selects;
222
+ exports.Switchs = index$1E.Switchs;
223
+ exports.Text = index$1F.Text;
224
+ exports.List = index$1G.List;
225
+ exports.Lists = index$1H.Lists;
226
+ exports.Listsp = index$1I.Listsp;
227
+ exports.Paging = index$1J.Paging;
228
+ exports.Tables = index$1K.Tables;
229
+ exports.Tablesp = index$1L.Tablesp;
230
+ exports.Tabless = index$1M.Tabless;
231
+ exports.Tablesv = index$1N.Tablesv;
232
+ exports.Tablesvp = index$1O.Tablesvp;
229
233
  exports.vLoading = index$b.vLoading;
@@ -70,7 +70,6 @@ export * from './icon-picker/index';
70
70
  export * from './icon/index';
71
71
  export * from './iframe/index';
72
72
  export * from './keep-com/index';
73
- export * from './lists/index';
74
73
  export * from './menus/index';
75
74
  export * from './page/index';
76
75
  export * from './retract/index';
@@ -104,6 +103,9 @@ export * from './selector/index';
104
103
  export * from './selects/index';
105
104
  export * from './switchs/index';
106
105
  export * from './text/index';
106
+ export * from './list/index';
107
+ export * from './lists/index';
108
+ export * from './listsp/index';
107
109
  export * from './paging/index';
108
110
  export * from './tables/index';
109
111
  export * from './tablesp/index';
@@ -71,7 +71,6 @@ import { IconPicker } from "./icon-picker/index.js";
71
71
  import { Icon } from "./icon/index.js";
72
72
  import { Iframe } from "./iframe/index.js";
73
73
  import { KeepCom } from "./keep-com/index.js";
74
- import { Lists } from "./lists/index.js";
75
74
  import { Menus } from "./menus/index.js";
76
75
  import { Page } from "./page/index.js";
77
76
  import { Retract } from "./retract/index.js";
@@ -105,6 +104,9 @@ import { Selector } from "./selector/index.js";
105
104
  import { Selects } from "./selects/index.js";
106
105
  import { Switchs } from "./switchs/index.js";
107
106
  import { Text } from "./text/index.js";
107
+ import { List } from "./list/index.js";
108
+ import { Lists } from "./lists/index.js";
109
+ import { Listsp } from "./listsp/index.js";
108
110
  import { Paging } from "./paging/index.js";
109
111
  import { Tables } from "./tables/index.js";
110
112
  import { Tablesp } from "./tablesp/index.js";
@@ -175,7 +177,9 @@ export {
175
177
  Inputs,
176
178
  KeepCom,
177
179
  Labels,
180
+ List,
178
181
  Lists,
182
+ Listsp,
179
183
  Loading,
180
184
  Mention,
181
185
  Menus,
@@ -61,7 +61,6 @@
61
61
  @use './icon/index.scss' as *;
62
62
  @use './iframe/index.scss' as *;
63
63
  @use './keep-com/index.scss' as *;
64
- @use './lists/index.scss' as *;
65
64
  @use './menus/index.scss' as *;
66
65
  @use './page/index.scss' as *;
67
66
  @use './retract/index.scss' as *;
@@ -78,6 +77,9 @@
78
77
  @use './selects/index.scss' as *;
79
78
  @use './switchs/index.scss' as *;
80
79
  @use './text/index.scss' as *;
80
+ @use './list/index.scss' as *;
81
+ @use './lists/index.scss' as *;
82
+ @use './listsp/index.scss' as *;
81
83
  @use './paging/index.scss' as *;
82
84
  @use './tables/index.scss' as *;
83
85
  @use './tablesp/index.scss' as *;
@@ -61,7 +61,6 @@
61
61
  @use './icon/style/index2.scss' as *;
62
62
  @use './iframe/style/index.scss' as *;
63
63
  @use './keep-com/style/index.scss' as *;
64
- @use './lists/style/index.scss' as *;
65
64
  @use './menus/style/index2.scss' as *;
66
65
  @use './page/style/index2.scss' as *;
67
66
  @use './retract/style/index.scss' as *;
@@ -78,6 +77,9 @@
78
77
  @use './selects/style/index2.scss' as *;
79
78
  @use './switchs/style/index2.scss' as *;
80
79
  @use './text/style/index.scss' as *;
80
+ @use './list/style/index.scss' as *;
81
+ @use './lists/style/index.scss' as *;
82
+ @use './listsp/style/index2.scss' as *;
81
83
  @use './paging/style/index2.scss' as *;
82
84
  @use './tables/style/index2.scss' as *;
83
85
  @use './tablesp/style/index2.scss' as *;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ ;/* empty css */
4
+ const withInstall = require("../../utils/vues/withInstall.cjs");
5
+ require("./src/index.cjs");
6
+ const index_vue_vue_type_script_lang = require("./src/index2.cjs");
7
+ const List = withInstall.withInstall(index_vue_vue_type_script_lang.default, "List");
8
+ exports.List = List;
9
+ exports.default = List;
@@ -0,0 +1,96 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #fff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ }
14
+
15
+ .list-div .list-table {
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+ .list-div .list-table td {
20
+ text-align: left;
21
+ }
22
+ .list-div .list-table th {
23
+ font-weight: initial;
24
+ }
25
+ .list-div .list-table .is-whole .list-table-auto {
26
+ width: 100%;
27
+ }
28
+ .list-div .list-table .is-whole .list-table-value {
29
+ width: 100%;
30
+ display: block;
31
+ }
32
+ .list-div .list-table .list-table-td,
33
+ .list-div .list-table .list-table-th {
34
+ padding: 6px;
35
+ }
36
+ .list-div .list-table .list-table-auto {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ }
40
+ .list-div .list-table .list-table-auto .list-table-label {
41
+ white-space: nowrap;
42
+ }
43
+ .list-div .list-table .list-table-th {
44
+ text-align: left;
45
+ }
46
+ .list-div .list-table.right .list-table-th {
47
+ text-align: right;
48
+ }
49
+ .list-div .list-table.center .list-table-th {
50
+ text-align: center;
51
+ }
52
+ .list-div .list-table.auto .list-table-th {
53
+ padding-right: 0;
54
+ }
55
+ .list-div .list-table.top .list-table-th {
56
+ padding-bottom: 0;
57
+ }
58
+ .list-div .list-table.is-aliquots {
59
+ table-layout: fixed;
60
+ }
61
+ .list-div .list-table.is-border {
62
+ border-right: 1px solid var(--list-border-color);
63
+ border-top: 1px solid var(--list-border-color);
64
+ border-bottom: 1px solid var(--list-border-color);
65
+ }
66
+ .list-div .list-table.is-border > tr > td {
67
+ border-bottom: 1px solid var(--list-border-color);
68
+ border-left: 1px solid var(--list-border-color);
69
+ }
70
+ .list-div .list-table.is-border > tr > td:last-child {
71
+ border-right: 1px solid var(--list-border-color);
72
+ }
73
+ .list-div .list-table.is-border > tr > th {
74
+ border-left: 1px solid var(--list-border-color);
75
+ border-bottom: 1px solid var(--list-border-color);
76
+ }
77
+ .list-div .list-table.is-border > tr > th:last-child {
78
+ border-right: 1px solid var(--list-border-color);
79
+ }
80
+ .list-div .list-table.is-border > tr:last-child > td {
81
+ border-bottom: 0;
82
+ }
83
+ .list-div .list-table.is-border > tr:last-child > th {
84
+ border-bottom: 0;
85
+ }
86
+ .list-div .list-table.is-border.top > tr > th {
87
+ border-bottom: 0;
88
+ }
89
+ .list-div .list-table .list-com {
90
+ display: flex;
91
+ align-items: center;
92
+ }
93
+ .list-div .list-table .list-com-img {
94
+ width: 50px;
95
+ height: 50px;
96
+ }
@@ -0,0 +1,2 @@
1
+ declare const List: any;
2
+ export { List, List as default };
@@ -0,0 +1,9 @@
1
+ /* empty css */
2
+ import { withInstall } from "../../utils/vues/withInstall.js";
3
+ import "./src/index.js";
4
+ import _sfc_main from "./src/index2.js";
5
+ const List = withInstall(_sfc_main, "List");
6
+ export {
7
+ List,
8
+ List as default
9
+ };
@@ -0,0 +1,110 @@
1
+ @use '../scss/common.scss' as *;
2
+
3
+ $list: 'list';
4
+ @include b($list) {
5
+ &-div {
6
+ .#{z($list, 'table')} {
7
+ width: 100%;
8
+ height: 100%;
9
+ td {
10
+ text-align: left;
11
+ }
12
+ th {
13
+ font-weight: initial;
14
+ }
15
+ .is-whole {
16
+ .#{z($list, 'table-auto')} {
17
+ width: 100%;
18
+ }
19
+ .#{z($list, 'table-value')} {
20
+ width: 100%;
21
+ display: block;
22
+ }
23
+ }
24
+ .#{z($list, 'table-td')},
25
+ .#{z($list, 'table-th')} {
26
+ padding: 6px;
27
+ }
28
+
29
+ .#{z($list, 'table-auto')} {
30
+ display: inline-flex;
31
+ align-items: center;
32
+ .#{z($list, 'table-label')} {
33
+ white-space: nowrap;
34
+ }
35
+ }
36
+ .#{z($list, 'table-th')} {
37
+ text-align: left;
38
+ }
39
+ &.right {
40
+ .#{z($list, 'table-th')} {
41
+ text-align: right;
42
+ }
43
+ }
44
+ &.center {
45
+ .#{z($list, 'table-th')} {
46
+ text-align: center;
47
+ }
48
+ }
49
+
50
+ &.auto {
51
+ .#{z($list, 'table-th')} {
52
+ padding-right: 0;
53
+ }
54
+ }
55
+ &.top {
56
+ .#{z($list, 'table-th')} {
57
+ padding-bottom: 0;
58
+ }
59
+ }
60
+
61
+ &.is-aliquots {
62
+ table-layout: fixed;
63
+ }
64
+
65
+ &.is-border {
66
+ border-right: 1px solid var(vdm('border-color', $list));
67
+ border-top: 1px solid var(vdm('border-color', $list));
68
+ border-bottom: 1px solid var(vdm('border-color', $list));
69
+ & > tr > td {
70
+ border-bottom: 1px solid var(vdm('border-color', $list));
71
+ border-left: 1px solid var(vdm('border-color', $list));
72
+ &:last-child {
73
+ border-right: 1px solid var(vdm('border-color', $list));
74
+ }
75
+ }
76
+ & > tr > th {
77
+ border-left: 1px solid var(vdm('border-color', $list));
78
+ border-bottom: 1px solid var(vdm('border-color', $list));
79
+ &:last-child {
80
+ border-right: 1px solid var(vdm('border-color', $list));
81
+ }
82
+ }
83
+ & > tr {
84
+ &:last-child {
85
+ > td {
86
+ border-bottom: 0;
87
+ }
88
+ > th {
89
+ border-bottom: 0;
90
+ }
91
+ }
92
+ }
93
+ &.top {
94
+ & > tr > th {
95
+ border-bottom: 0;
96
+ }
97
+ }
98
+ }
99
+
100
+ .#{z('list-com')} {
101
+ display: flex;
102
+ align-items: center;
103
+ &-img {
104
+ width: 50px;
105
+ height: 50px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const dataProps = {
4
+ /**
5
+ * @props { Object } options={}
6
+ * 选择数据集合
7
+ */
8
+ options: {
9
+ type: Object,
10
+ default() {
11
+ return {};
12
+ }
13
+ },
14
+ /**
15
+ * @props { Object } compons={}
16
+ * 外部组件集合
17
+ */
18
+ compons: {
19
+ type: Object,
20
+ default() {
21
+ return {};
22
+ }
23
+ },
24
+ /**
25
+ * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
26
+ * 标签位置
27
+ */
28
+ labelPosition: {
29
+ type: String,
30
+ default: "auto"
31
+ },
32
+ /**
33
+ * @props { Array<ListObj> } list=[]
34
+ * 列数据
35
+ */
36
+ list: {
37
+ type: Array,
38
+ default: () => {
39
+ return [];
40
+ }
41
+ },
42
+ value: {
43
+ type: Object,
44
+ default: () => {
45
+ return {};
46
+ }
47
+ },
48
+ /**
49
+ * @props { Number } column=2
50
+ * 一行展示多少列
51
+ */
52
+ column: {
53
+ type: Number,
54
+ default() {
55
+ return 2;
56
+ }
57
+ },
58
+ /**
59
+ * @props { Boolean, String } colon
60
+ * 标签后面是否加内容 true 是 :
61
+ */
62
+ colon: [Boolean, String],
63
+ /**
64
+ * @props {Number, String } labelWidth=[]
65
+ * 标签宽度
66
+ */
67
+ labelWidth: {
68
+ type: [Number, String]
69
+ // default: '60px',
70
+ },
71
+ /**
72
+ * @props { Boolean, String } border=true ( )
73
+ * 是否需要边框,边框颜色
74
+ */
75
+ border: {
76
+ type: [Boolean, String]
77
+ // default: true
78
+ },
79
+ /**
80
+ * @props { Boolean } aliquots=true ( )
81
+ * 是否等分
82
+ */
83
+ aliquots: {
84
+ type: Boolean,
85
+ default: true
86
+ },
87
+ /**
88
+ * @props { Boolean } componSelected
89
+ * 是否在选中时显示 compon 组件
90
+ */
91
+ componSelected: Boolean
92
+ };
93
+ const dataEmits = ["list-events"];
94
+ const dataExpose = [];
95
+ exports.dataEmits = dataEmits;
96
+ exports.dataExpose = dataExpose;
97
+ exports.dataProps = dataProps;