@fangzhongya/fang-ui 0.1.27 → 0.1.28

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 (214) hide show
  1. package/dist/components/array/index.css +4 -0
  2. package/dist/components/array/src/index2.cjs +5 -5
  3. package/dist/components/array/src/index2.js +2 -2
  4. package/dist/components/audios/index.css +4 -0
  5. package/dist/components/box/index.css +4 -0
  6. package/dist/components/box-adjust/index.css +4 -0
  7. package/dist/components/box-local/index.css +4 -0
  8. package/dist/components/box-mask/index.css +4 -0
  9. package/dist/components/box-title/index.css +4 -0
  10. package/dist/components/buttons/index.css +4 -0
  11. package/dist/components/cascaders/index.css +4 -0
  12. package/dist/components/checks/index.css +4 -0
  13. package/dist/components/common/compons/components.cjs +52 -0
  14. package/dist/components/common/compons/components.d.ts +27 -0
  15. package/dist/components/common/compons/components.js +52 -0
  16. package/dist/components/common/compons/index.scss +23 -0
  17. package/dist/components/common/compons/index2.scss +23 -0
  18. package/dist/components/common/use.cjs +29 -3
  19. package/dist/components/common/use.d.ts +2 -2
  20. package/dist/components/common/use.js +29 -3
  21. package/dist/components/dates/index.css +4 -0
  22. package/dist/components/dates-divide/index.css +4 -0
  23. package/dist/components/dates-picker/index.css +4 -0
  24. package/dist/components/dates2/index.css +4 -0
  25. package/dist/components/dialogs/index.css +4 -0
  26. package/dist/components/edit/index.css +4 -0
  27. package/dist/components/edit-float/index.css +4 -0
  28. package/dist/components/forms/common/config.cjs +11 -1
  29. package/dist/components/forms/common/config.d.ts +1 -0
  30. package/dist/components/forms/common/config.js +11 -1
  31. package/dist/components/forms/index.css +10 -6
  32. package/dist/components/forms/index.scss +2 -1
  33. package/dist/components/forms/src/data.cjs +7 -0
  34. package/dist/components/forms/src/data.d.ts +7 -0
  35. package/dist/components/forms/src/data.js +7 -0
  36. package/dist/components/forms/src/setup.cjs +3 -12
  37. package/dist/components/forms/src/setup.d.ts +1 -1
  38. package/dist/components/forms/src/setup.js +4 -13
  39. package/dist/components/forms/style/index2.scss +3 -1
  40. package/dist/components/forms-div/index.css +4 -0
  41. package/dist/components/forms-div/src/index2.cjs +4 -4
  42. package/dist/components/forms-div/src/index2.js +2 -2
  43. package/dist/components/forms-item/index.css +4 -0
  44. package/dist/components/forms-item/src/indexts.d.ts +1 -1
  45. package/dist/components/forms-item/src/label.cjs +15 -28
  46. package/dist/components/forms-item/src/label.js +16 -29
  47. package/dist/components/full-screen/index.css +4 -0
  48. package/dist/components/history/index.css +4 -0
  49. package/dist/components/icon/index.css +4 -0
  50. package/dist/components/icon-picker/index.css +4 -0
  51. package/dist/components/iframe/index.css +4 -0
  52. package/dist/components/images/index.css +4 -0
  53. package/dist/components/index.cjs +2 -0
  54. package/dist/components/index.d.ts +1 -0
  55. package/dist/components/index.js +2 -0
  56. package/dist/components/index.scss +2 -1
  57. package/dist/components/index2.scss +2 -1
  58. package/dist/components/input-array/index.css +4 -0
  59. package/dist/components/input-history/index.css +4 -0
  60. package/dist/components/input-num/index.css +4 -0
  61. package/dist/components/input-select/index.css +4 -0
  62. package/dist/components/inputs/index.css +4 -0
  63. package/dist/components/{global-config → keep-com}/index.css +4 -0
  64. package/dist/components/labels/index.css +4 -0
  65. package/dist/components/list/index.css +4 -0
  66. package/dist/components/list/src/data.cjs +6 -0
  67. package/dist/components/list/src/data.d.ts +6 -0
  68. package/dist/components/list/src/data.js +6 -0
  69. package/dist/components/list/src/index2.cjs +6 -6
  70. package/dist/components/list/src/index2.js +2 -2
  71. package/dist/components/lists/index.css +4 -0
  72. package/dist/components/listsp/index.css +4 -0
  73. package/dist/components/listspd/index.css +4 -0
  74. package/dist/components/menus/index.css +4 -0
  75. package/dist/components/no-data/index.css +4 -0
  76. package/dist/components/page/index.css +10 -6
  77. package/dist/components/paging/index.css +4 -0
  78. package/dist/components/popup/index.css +4 -0
  79. package/dist/components/retract/index.css +4 -0
  80. package/dist/components/right-key/index.css +4 -0
  81. package/dist/components/scss/common.scss +4 -0
  82. package/dist/components/seamless-scroll/index.css +4 -0
  83. package/dist/components/select-scroll/index.css +4 -0
  84. package/dist/components/selector/index.css +4 -0
  85. package/dist/components/selects/index.css +4 -0
  86. package/dist/components/sliders/index.css +4 -0
  87. package/dist/components/switchs/index.css +4 -0
  88. package/dist/components/tables/common/config.cjs +1 -1
  89. package/dist/components/tables/common/config.js +1 -1
  90. package/dist/components/tables/common/pagin.cjs +74 -32
  91. package/dist/components/tables/common/pagin.d.ts +8 -1
  92. package/dist/components/tables/common/pagin.js +74 -32
  93. package/dist/components/tables/index.css +4 -0
  94. package/dist/components/tables/src/column.cjs +22 -20
  95. package/dist/components/tables/src/column.d.ts +3 -0
  96. package/dist/components/tables/src/column.js +14 -12
  97. package/dist/components/tables/src/data.cjs +15 -0
  98. package/dist/components/tables/src/data.d.ts +13 -0
  99. package/dist/components/tables/src/data.js +15 -0
  100. package/dist/components/tables/src/index2.cjs +17 -9
  101. package/dist/components/tables/src/index2.js +11 -3
  102. package/dist/components/tablesp/index.css +4 -0
  103. package/dist/components/tablespd/index.css +4 -0
  104. package/dist/components/tabless/index.css +4 -0
  105. package/dist/components/tablesv/index.css +4 -0
  106. package/dist/components/tablesv/src/column.cjs +116 -112
  107. package/dist/components/tablesv/src/column.d.ts +3 -1
  108. package/dist/components/tablesv/src/column.js +110 -106
  109. package/dist/components/tablesv/src/data.cjs +44 -0
  110. package/dist/components/tablesv/src/data.d.ts +43 -1
  111. package/dist/components/tablesv/src/data.js +44 -0
  112. package/dist/components/tablesv/src/index2.cjs +37 -14
  113. package/dist/components/tablesv/src/index2.js +36 -13
  114. package/dist/components/tablesv/style/index2.scss +3 -1
  115. package/dist/components/tablesvp/index.css +10 -0
  116. package/dist/components/tablesvp/index.scss +8 -0
  117. package/dist/components/tablesvp/src/index2.cjs +15 -5
  118. package/dist/components/tablesvp/src/index2.js +15 -5
  119. package/dist/components/tablesvpd/index.cjs +9 -0
  120. package/dist/components/tablesvpd/index.css +157 -0
  121. package/dist/components/tablesvpd/index.d.ts +4 -0
  122. package/dist/components/tablesvpd/index.js +9 -0
  123. package/dist/components/tablesvpd/index.scss +41 -0
  124. package/dist/components/tablesvpd/src/data.cjs +13 -0
  125. package/dist/components/tablesvpd/src/data.d.ts +18 -0
  126. package/dist/components/tablesvpd/src/data.js +13 -0
  127. package/dist/components/tablesvpd/src/index.cjs +4 -0
  128. package/dist/components/tablesvpd/src/index.js +4 -0
  129. package/dist/components/tablesvpd/src/index2.cjs +107 -0
  130. package/dist/components/tablesvpd/src/index2.js +107 -0
  131. package/dist/components/tablesvpd/style/index2.scss +4 -0
  132. package/dist/components/uploads/index.css +4 -0
  133. package/dist/components/videos/index.css +4 -0
  134. package/dist/components/window/index.css +4 -0
  135. package/dist/css/array.css +4 -0
  136. package/dist/css/audios.css +4 -0
  137. package/dist/css/box-adjust.css +4 -0
  138. package/dist/css/box-local.css +4 -0
  139. package/dist/css/box-mask.css +4 -0
  140. package/dist/css/box-title.css +4 -0
  141. package/dist/css/box.css +4 -0
  142. package/dist/css/buttons.css +4 -0
  143. package/dist/css/cascaders.css +4 -0
  144. package/dist/css/checks.css +4 -0
  145. package/dist/css/dates-divide.css +4 -0
  146. package/dist/css/dates-picker.css +4 -0
  147. package/dist/css/dates.css +4 -0
  148. package/dist/css/dates2.css +4 -0
  149. package/dist/css/dialogs.css +4 -0
  150. package/dist/css/edit-float.css +4 -0
  151. package/dist/css/edit.css +4 -0
  152. package/dist/css/forms-div.css +4 -0
  153. package/dist/css/forms-item.css +4 -0
  154. package/dist/css/forms.css +10 -6
  155. package/dist/css/full-screen.css +4 -0
  156. package/dist/css/history.css +4 -0
  157. package/dist/css/icon-picker.css +4 -0
  158. package/dist/css/icon.css +4 -0
  159. package/dist/css/iframe.css +4 -0
  160. package/dist/css/images.css +4 -0
  161. package/dist/css/index.css +44 -6
  162. package/dist/css/input-array.css +4 -0
  163. package/dist/css/input-history.css +4 -0
  164. package/dist/css/input-num.css +4 -0
  165. package/dist/css/input-select.css +4 -0
  166. package/dist/css/inputs.css +4 -0
  167. package/dist/css/{global-config.css → keep-com.css} +4 -0
  168. package/dist/css/labels.css +4 -0
  169. package/dist/css/list.css +4 -0
  170. package/dist/css/lists.css +4 -0
  171. package/dist/css/listsp.css +4 -0
  172. package/dist/css/listspd.css +4 -0
  173. package/dist/css/menus.css +4 -0
  174. package/dist/css/no-data.css +4 -0
  175. package/dist/css/page.css +10 -6
  176. package/dist/css/paging.css +4 -0
  177. package/dist/css/popup.css +4 -0
  178. package/dist/css/retract.css +4 -0
  179. package/dist/css/right-key.css +4 -0
  180. package/dist/css/seamless-scroll.css +4 -0
  181. package/dist/css/select-scroll.css +4 -0
  182. package/dist/css/selector.css +4 -0
  183. package/dist/css/selects.css +4 -0
  184. package/dist/css/sliders.css +4 -0
  185. package/dist/css/switchs.css +4 -0
  186. package/dist/css/tables.css +4 -0
  187. package/dist/css/tablesp.css +4 -0
  188. package/dist/css/tablespd.css +4 -0
  189. package/dist/css/tabless.css +4 -0
  190. package/dist/css/tablesv.css +4 -0
  191. package/dist/css/tablesvp.css +10 -0
  192. package/dist/css/tablesvpd.css +157 -0
  193. package/dist/css/uploads.css +4 -0
  194. package/dist/css/videos.css +4 -0
  195. package/dist/css/window.css +4 -0
  196. package/dist/expand/{chunk-MC76Q3TQ.cjs → chunk-3HP2ZDNG.cjs} +3 -1
  197. package/dist/expand/{chunk-CV4O5V2F.js → chunk-7C25SBCF.js} +3 -1
  198. package/dist/expand/components.cjs +5 -5
  199. package/dist/expand/components.js +1 -1
  200. package/dist/expand/config.cjs +2 -2
  201. package/dist/expand/config.js +1 -1
  202. package/dist/hooks/compons/index.cjs +44 -0
  203. package/dist/hooks/compons/index.d.ts +7 -0
  204. package/dist/hooks/compons/index.js +44 -0
  205. package/dist/icons/index.json +1 -1
  206. package/dist/index.cjs +24 -22
  207. package/dist/index.css +44 -6
  208. package/dist/index.js +2 -0
  209. package/package.json +12 -12
  210. package/dist/components/common/compons.cjs +0 -76
  211. package/dist/components/common/compons.d.ts +0 -9
  212. package/dist/components/common/compons.js +0 -76
  213. package/dist/components/common/compons.scss +0 -26
  214. package/dist/components/common/compons2.scss +0 -26
@@ -0,0 +1,157 @@
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
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
24
+ .tablesv {
25
+ width: 100%;
26
+ min-height: 100px;
27
+ position: relative;
28
+ flex: 1;
29
+ display: flex;
30
+ flex-direction: column;
31
+ }
32
+ .tablesv-table.is-absolute {
33
+ position: absolute;
34
+ top: 0;
35
+ right: 0;
36
+ bottom: 0;
37
+ left: 0;
38
+ }
39
+ .tablesv-table {
40
+ background-color: transparent;
41
+ }
42
+ .tablesv-table .vxe-body--column {
43
+ overflow: hidden;
44
+ padding: 8px 0;
45
+ }
46
+ .tablesv-table .col--checkbox .vxe-checkbox--label {
47
+ padding-left: 0;
48
+ }
49
+ .tablesv .fv-custom-checkbox {
50
+ cursor: pointer;
51
+ }
52
+ .tablesv .fv-custom-checkbox.is-disabled {
53
+ cursor: not-allowed;
54
+ }
55
+ .tablesv .fv-custom-checkbox .el-checkbox__label {
56
+ color: var(--vxe-table-header-font-color);
57
+ font-weight: var(--vxe-table-header-font-weight);
58
+ }
59
+ .tablesv .fv-custom-checkbox {
60
+ position: relative;
61
+ }
62
+ .tablesv .fv-custom-checkbox .fv-custom-checkbox-mask {
63
+ position: absolute;
64
+ top: 0;
65
+ right: 0;
66
+ bottom: 0;
67
+ left: 0;
68
+ z-index: 1;
69
+ opacity: 0;
70
+ }
71
+ .tablesv .fv-custom-radio {
72
+ cursor: pointer;
73
+ }
74
+ .tablesv .fv-custom-radio.is-disabled {
75
+ cursor: not-allowed;
76
+ }
77
+ .tablesv .fv-custom-radio {
78
+ position: relative;
79
+ }
80
+ .tablesv .fv-custom-radio .el-radio {
81
+ height: auto;
82
+ }
83
+ .tablesv .fv-custom-radio.center .el-radio {
84
+ text-align: center;
85
+ display: table-cell;
86
+ }
87
+ .tablesv .fv-custom-radio.center .el-radio__label {
88
+ display: none;
89
+ }
90
+ .tablesv .fv-custom-radio.right .el-radio {
91
+ text-align: right;
92
+ display: table-cell;
93
+ }
94
+ .tablesv .fv-custom-radio.right .el-radio__label {
95
+ display: none;
96
+ }
97
+ .tablesv .fv-custom-radio .fv-custom-radio-mask {
98
+ position: absolute;
99
+ top: 0;
100
+ right: 0;
101
+ bottom: 0;
102
+ left: 0;
103
+ z-index: 1;
104
+ opacity: 0;
105
+ }
106
+
107
+ .paging {
108
+ width: 100%;
109
+ padding: 10px;
110
+ }
111
+ .paging-pagination {
112
+ width: 100%;
113
+ }
114
+ .paging-slot {
115
+ padding-left: 10px;
116
+ font-size: 14px;
117
+ font-weight: 400;
118
+ color: #9b9b9b;
119
+ white-space: pre-wrap;
120
+ }
121
+ .paging-slot > span {
122
+ margin-right: 10px;
123
+ white-space: nowrap;
124
+ }
125
+ .paging .el-pagination__total {
126
+ font-size: 14px;
127
+ font-weight: 400;
128
+ color: #9b9b9b;
129
+ }
130
+
131
+ .tablesvpd {
132
+ width: 100%;
133
+ height: var(--tablesvpd-height);
134
+ display: flex;
135
+ flex-direction: column;
136
+ }
137
+ .tablesvpd-main {
138
+ display: flex;
139
+ flex-direction: column;
140
+ flex: 1;
141
+ width: 100%;
142
+ }
143
+ .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
144
+ display: none;
145
+ }
146
+ .tablesvpd-main.is-scroll .v-scroll-add {
147
+ text-align: center;
148
+ padding: 10px;
149
+ color: #999;
150
+ background-color: #eee;
151
+ }
152
+ .tablesvpd-paginat {
153
+ overflow: hidden;
154
+ }
155
+ .tablesvpd-paginat .el-pagination {
156
+ justify-content: flex-end;
157
+ }
@@ -18,6 +18,10 @@
18
18
  padding: 20px 20px;
19
19
  }
20
20
 
21
+ .com-lable-array {
22
+ line-height: 18px;
23
+ }
24
+
21
25
  .uploads {
22
26
  display: flex;
23
27
  align-items: center;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .videos {
21
25
  display: flex;
22
26
  height: 100%;
@@ -17,6 +17,10 @@
17
17
  padding: 20px 20px;
18
18
  }
19
19
 
20
+ .com-lable-array {
21
+ line-height: 18px;
22
+ }
23
+
20
24
  .box-mask {
21
25
  display: block;
22
26
  opacity: 0.5;
@@ -138,7 +138,8 @@ var config_default = {
138
138
  "tablespd",
139
139
  "tabless",
140
140
  "tablesv",
141
- "tablesvp"
141
+ "tablesvp",
142
+ "tablesvpd"
142
143
  ],
143
144
  "directives": [
144
145
  "adjust",
@@ -210,6 +211,7 @@ var config_default = {
210
211
  "tabless",
211
212
  "tablesv",
212
213
  "tablesvp",
214
+ "tablesvpd",
213
215
  "button",
214
216
  "card",
215
217
  "color-picker",
@@ -138,7 +138,8 @@ var config_default = {
138
138
  "tablespd",
139
139
  "tabless",
140
140
  "tablesv",
141
- "tablesvp"
141
+ "tablesvp",
142
+ "tablesvpd"
142
143
  ],
143
144
  "directives": [
144
145
  "adjust",
@@ -210,6 +211,7 @@ var config_default = {
210
211
  "tabless",
211
212
  "tablesv",
212
213
  "tablesvp",
214
+ "tablesvpd",
213
215
  "button",
214
216
  "card",
215
217
  "color-picker",
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMC76Q3TQcjs = require('./chunk-MC76Q3TQ.cjs');
3
+ var _chunk3HP2ZDNGcjs = require('./chunk-3HP2ZDNG.cjs');
4
4
 
5
5
  // expand/components.ts
6
6
  var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
@@ -35,11 +35,11 @@ function getFrom(mc, type, conf) {
35
35
  const p = config.prefix ? config.prefix + "-" : "";
36
36
  const filename = p ? mc.replace(new RegExp("^" + p), "") : mc;
37
37
  if (type == 1) {
38
- if (_chunkMC76Q3TQcjs.config_default.components.includes(filename)) {
38
+ if (_chunk3HP2ZDNGcjs.config_default.components.includes(filename)) {
39
39
  const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
40
40
  const from = `${config.name}/components/${filename}/index`;
41
41
  let sideEffects;
42
- if (_chunkMC76Q3TQcjs.config_default.sideEffects.includes(filename)) {
42
+ if (_chunk3HP2ZDNGcjs.config_default.sideEffects.includes(filename)) {
43
43
  if (conf.css) {
44
44
  sideEffects = `${config.name}/components/${filename}/style/index${conf.css || 2}.scss`;
45
45
  } else {
@@ -55,14 +55,14 @@ function getFrom(mc, type, conf) {
55
55
  return;
56
56
  }
57
57
  } else {
58
- if (_chunkMC76Q3TQcjs.config_default.directives.includes(filename)) {
58
+ if (_chunk3HP2ZDNGcjs.config_default.directives.includes(filename)) {
59
59
  const name = "default";
60
60
  const from = `${config.name}/directives/${filename}/index`;
61
61
  return {
62
62
  name,
63
63
  from
64
64
  };
65
- } else if (_chunkMC76Q3TQcjs.config_default.directives.includes("v-" + filename)) {
65
+ } else if (_chunk3HP2ZDNGcjs.config_default.directives.includes("v-" + filename)) {
66
66
  const name = "default";
67
67
  const from = `${config.name}/directives/${"v-" + filename}/index`;
68
68
  return {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_default
3
- } from "./chunk-CV4O5V2F.js";
3
+ } from "./chunk-7C25SBCF.js";
4
4
 
5
5
  // expand/components.ts
6
6
  import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMC76Q3TQcjs = require('./chunk-MC76Q3TQ.cjs');
3
+ var _chunk3HP2ZDNGcjs = require('./chunk-3HP2ZDNG.cjs');
4
4
 
5
5
 
6
- exports.default = _chunkMC76Q3TQcjs.config_default;
6
+ exports.default = _chunk3HP2ZDNGcjs.config_default;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_default
3
- } from "./chunk-CV4O5V2F.js";
3
+ } from "./chunk-7C25SBCF.js";
4
4
  export {
5
5
  config_default as default
6
6
  };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const components = require("../../components/common/compons/components.cjs");
5
+ require("../../utils/index.cjs");
6
+ const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
7
+ function getCompons(...arrs) {
8
+ const coms = {};
9
+ arrs.forEach((obj) => {
10
+ Object.keys(obj).forEach((key) => {
11
+ const tkey = lineToLargeHump.lineToLargeHump(key);
12
+ coms[tkey] = obj[key];
13
+ });
14
+ });
15
+ return coms;
16
+ }
17
+ const comkey = "com";
18
+ const comKeyValue = "-compons";
19
+ let weakRef;
20
+ function useCompons(key = comkey, props, ...arrs) {
21
+ const is = props.isCompons;
22
+ if (is) {
23
+ weakRef = components.components;
24
+ }
25
+ const compons = props.compons || {};
26
+ const tfcom = getCompons(compons, ...arrs);
27
+ if (Object.keys(tfcom).length > 0) {
28
+ vue.provide(key + comKeyValue, tfcom);
29
+ }
30
+ return tfcom;
31
+ }
32
+ function useComponsGet(key = comkey, value = {}) {
33
+ const coms = vue.inject(key + comKeyValue, value);
34
+ if (weakRef) {
35
+ return {
36
+ ...weakRef,
37
+ ...coms
38
+ };
39
+ } else {
40
+ return coms;
41
+ }
42
+ }
43
+ exports.useCompons = useCompons;
44
+ exports.useComponsGet = useComponsGet;
@@ -0,0 +1,7 @@
1
+ import { Component } from 'vue';
2
+ type Compons = {
3
+ [key: string]: Component;
4
+ };
5
+ export declare function useCompons(key: string | undefined, props: ObjAny, ...arrs: Compons[]): Compons;
6
+ export declare function useComponsGet(key?: string, value?: Compons): Compons;
7
+ export {};
@@ -0,0 +1,44 @@
1
+ import { provide, inject } from "vue";
2
+ import { components } from "../../components/common/compons/components.js";
3
+ import "../../utils/index.js";
4
+ import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
5
+ function getCompons(...arrs) {
6
+ const coms = {};
7
+ arrs.forEach((obj) => {
8
+ Object.keys(obj).forEach((key) => {
9
+ const tkey = lineToLargeHump(key);
10
+ coms[tkey] = obj[key];
11
+ });
12
+ });
13
+ return coms;
14
+ }
15
+ const comkey = "com";
16
+ const comKeyValue = "-compons";
17
+ let weakRef;
18
+ function useCompons(key = comkey, props, ...arrs) {
19
+ const is = props.isCompons;
20
+ if (is) {
21
+ weakRef = components;
22
+ }
23
+ const compons = props.compons || {};
24
+ const tfcom = getCompons(compons, ...arrs);
25
+ if (Object.keys(tfcom).length > 0) {
26
+ provide(key + comKeyValue, tfcom);
27
+ }
28
+ return tfcom;
29
+ }
30
+ function useComponsGet(key = comkey, value = {}) {
31
+ const coms = inject(key + comKeyValue, value);
32
+ if (weakRef) {
33
+ return {
34
+ ...weakRef,
35
+ ...coms
36
+ };
37
+ } else {
38
+ return coms;
39
+ }
40
+ }
41
+ export {
42
+ useCompons,
43
+ useComponsGet
44
+ };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1763043663479,
4
+ "lastModified": 1763474711826,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index$30 = require("./components/index.cjs");
4
- const index$31 = require("./directives/index.cjs");
5
- const index$32 = require("./icons/index.cjs");
3
+ const index$31 = require("./components/index.cjs");
4
+ const index$32 = require("./directives/index.cjs");
5
+ const index$33 = require("./icons/index.cjs");
6
6
  const index$1 = require("./components/draggable/index.cjs");
7
7
  const index$3 = require("element-plus/es/components/button/index");
8
8
  const index$2 = require("./components/button/index.cjs");
@@ -186,27 +186,28 @@ const index$2Q = require("./components/tablespd/index.cjs");
186
186
  const index$2R = require("./components/tabless/index.cjs");
187
187
  const index$2S = require("./components/tablesv/index.cjs");
188
188
  const index$2T = require("./components/tablesvp/index.cjs");
189
- const index$2U = require("./directives/adjust/index.cjs");
190
- const index$2V = require("./directives/drag/index.cjs");
191
- const index$2W = require("./directives/expose/index.cjs");
192
- const index$2X = require("./directives/inserted/index.cjs");
193
- const index$2Y = require("./directives/locus/index.cjs");
194
- const index$2Z = require("./directives/scroll/index.cjs");
195
- const index$2_ = require("./directives/sortable/index.cjs");
196
- const index$2$ = require("./directives/stick/index.cjs");
189
+ const index$2U = require("./components/tablesvpd/index.cjs");
190
+ const index$2V = require("./directives/adjust/index.cjs");
191
+ const index$2W = require("./directives/drag/index.cjs");
192
+ const index$2X = require("./directives/expose/index.cjs");
193
+ const index$2Y = require("./directives/inserted/index.cjs");
194
+ const index$2Z = require("./directives/locus/index.cjs");
195
+ const index$2_ = require("./directives/scroll/index.cjs");
196
+ const index$2$ = require("./directives/sortable/index.cjs");
197
+ const index$30 = require("./directives/stick/index.cjs");
197
198
  const index = {
198
199
  install: function(app) {
199
- const com = index$30;
200
+ const com = index$31;
200
201
  Object.keys(com).forEach((key) => {
201
202
  if (com[key].install) {
202
203
  com[key].install(app);
203
204
  }
204
205
  });
205
- const dire = index$31;
206
+ const dire = index$32;
206
207
  Object.keys(dire).forEach((key) => {
207
208
  app.directive(key, dire[key]);
208
209
  });
209
- index$32.default(app);
210
+ index$33.default(app);
210
211
  }
211
212
  };
212
213
  exports.Draggable = index$1.Draggable;
@@ -351,14 +352,15 @@ exports.Tablespd = index$2Q.Tablespd;
351
352
  exports.Tabless = index$2R.Tabless;
352
353
  exports.Tablesv = index$2S.Tablesv;
353
354
  exports.Tablesvp = index$2T.Tablesvp;
354
- exports.Adjust = index$2U.default;
355
- exports.Drag = index$2V.default;
356
- exports.Expose = index$2W.default;
357
- exports.Inserted = index$2X.default;
358
- exports.Locus = index$2Y.default;
359
- exports.Scroll = index$2Z.default;
360
- exports.Sortable = index$2_.default;
361
- exports.Stick = index$2$.default;
355
+ exports.Tablesvpd = index$2U.Tablesvpd;
356
+ exports.Adjust = index$2V.default;
357
+ exports.Drag = index$2W.default;
358
+ exports.Expose = index$2X.default;
359
+ exports.Inserted = index$2Y.default;
360
+ exports.Locus = index$2Z.default;
361
+ exports.Scroll = index$2_.default;
362
+ exports.Sortable = index$2$.default;
363
+ exports.Stick = index$30.default;
362
364
  exports.default = index;
363
365
  Object.keys(index$3).forEach((k) => {
364
366
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/index.css CHANGED
@@ -18,6 +18,10 @@
18
18
  padding: 20px 20px;
19
19
  }
20
20
 
21
+ .com-lable-array {
22
+ line-height: 18px;
23
+ }
24
+
21
25
  .forms-div {
22
26
  width: 100%;
23
27
  height: 100%;
@@ -106,12 +110,6 @@
106
110
  font-size: 0;
107
111
  }
108
112
 
109
- .dates .dates-date {
110
- height: 100%;
111
- width: 100%;
112
- box-sizing: border-box;
113
- }
114
-
115
113
  .selects-select {
116
114
  height: 100%;
117
115
  min-width: 60px;
@@ -121,6 +119,12 @@
121
119
  height: 100%;
122
120
  }
123
121
 
122
+ .dates .dates-date {
123
+ height: 100%;
124
+ width: 100%;
125
+ box-sizing: border-box;
126
+ }
127
+
124
128
  .inputs-input {
125
129
  height: 100%;
126
130
  }
@@ -1857,9 +1861,43 @@
1857
1861
  .tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1858
1862
  display: none;
1859
1863
  }
1864
+ .tablesvp-main.is-scroll .v-scroll-add {
1865
+ text-align: center;
1866
+ padding: 10px;
1867
+ color: #999;
1868
+ background-color: #eee;
1869
+ }
1860
1870
  .tablesvp-paginat {
1861
1871
  overflow: hidden;
1862
1872
  }
1863
1873
  .tablesvp-paginat .el-pagination {
1864
1874
  justify-content: flex-end;
1875
+ }
1876
+
1877
+ .tablesvpd {
1878
+ width: 100%;
1879
+ height: var(--tablesvpd-height);
1880
+ display: flex;
1881
+ flex-direction: column;
1882
+ }
1883
+ .tablesvpd-main {
1884
+ display: flex;
1885
+ flex-direction: column;
1886
+ flex: 1;
1887
+ width: 100%;
1888
+ }
1889
+ .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1890
+ display: none;
1891
+ }
1892
+ .tablesvpd-main.is-scroll .v-scroll-add {
1893
+ text-align: center;
1894
+ padding: 10px;
1895
+ color: #999;
1896
+ background-color: #eee;
1897
+ }
1898
+ .tablesvpd-paginat {
1899
+ overflow: hidden;
1900
+ }
1901
+ .tablesvpd-paginat .el-pagination {
1902
+ justify-content: flex-end;
1865
1903
  }
package/dist/index.js CHANGED
@@ -185,6 +185,7 @@ import { Tablespd } from "./components/tablespd/index.js";
185
185
  import { Tabless } from "./components/tabless/index.js";
186
186
  import { Tablesv } from "./components/tablesv/index.js";
187
187
  import { Tablesvp } from "./components/tablesvp/index.js";
188
+ import { Tablesvpd } from "./components/tablesvpd/index.js";
188
189
  import { default as default2 } from "./directives/adjust/index.js";
189
190
  import { default as default3 } from "./directives/drag/index.js";
190
191
  import { default as default4 } from "./directives/expose/index.js";
@@ -339,6 +340,7 @@ export {
339
340
  Tabless,
340
341
  Tablesv,
341
342
  Tablesvp,
343
+ Tablesvpd,
342
344
  Tabs,
343
345
  Tag,
344
346
  Text,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.27",
4
+ "version": "0.1.28",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "fangui": "bin/fang-ui.js"
25
25
  },
26
26
  "dependencies": {
27
- "@fangzhongya/utils": "0.0.47"
27
+ "@fangzhongya/utils": "0.0.48"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fangzhongya/create": "0.2.41",
@@ -34,9 +34,9 @@
34
34
  "@vue/shared": "3.5.24",
35
35
  "axios": "^1.13.2",
36
36
  "d3-timer": "3.0.1",
37
- "element-plus": "^2.11.7",
37
+ "element-plus": "^2.11.8",
38
38
  "fast-glob": "^3.3.3",
39
- "sass": "^1.94.0",
39
+ "sass": "^1.94.1",
40
40
  "sortablejs": "1.15.6",
41
41
  "ts-node": "^10.9.2",
42
42
  "tsup": "^8.5.1",
@@ -46,18 +46,18 @@
46
46
  "unplugin-vue-components": "30.0.0",
47
47
  "vite": "^6.3.5",
48
48
  "vitepress": "1.6.4",
49
- "vitest": "^4.0.8",
49
+ "vitest": "^4.0.10",
50
50
  "vue": "^3.5.24",
51
- "vue-tsc": "^3.1.3",
52
- "vxe-table": "4.17.14",
51
+ "vue-tsc": "^3.1.4",
52
+ "vxe-table": "4.6.20",
53
53
  "@fang-ui/components": "0.0.1-0",
54
- "@fang-ui/theme": "0.0.1-0",
54
+ "@fang-ui/hooks": "0.0.1-0",
55
+ "@fang-ui/locale": "0.0.1-0",
56
+ "@fang-ui/directives": "0.0.1-0",
55
57
  "@fang-ui/icons": "0.0.1-0",
58
+ "@fang-ui/theme": "0.0.1-0",
56
59
  "@fang-ui/types": "0.0.1-0",
57
- "@fang-ui/directives": "0.0.1-0",
58
- "@fang-ui/hooks": "0.0.1-0",
59
- "@fang-ui/utils": "0.0.1-0",
60
- "@fang-ui/locale": "0.0.1-0"
60
+ "@fang-ui/utils": "0.0.1-0"
61
61
  },
62
62
  "main": "./dist/index.cjs",
63
63
  "module": "./dist/index.js",