@fangzhongya/fang-ui 0.1.19 → 0.1.21

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 (151) hide show
  1. package/dist/components/array/src/data.cjs +4 -0
  2. package/dist/components/array/src/data.d.ts +4 -0
  3. package/dist/components/array/src/data.js +4 -0
  4. package/dist/components/array/src/index2.cjs +22 -21
  5. package/dist/components/array/src/index2.js +12 -11
  6. package/dist/components/common/compons.cjs +4 -2
  7. package/dist/components/common/compons.d.ts +1 -1
  8. package/dist/components/common/compons.js +4 -2
  9. package/dist/components/forms/src/data.cjs +5 -5
  10. package/dist/components/forms/src/data.d.ts +1 -1
  11. package/dist/components/forms/src/data.js +5 -5
  12. package/dist/components/forms/src/index2.cjs +5 -3
  13. package/dist/components/forms/src/index2.js +5 -3
  14. package/dist/components/forms/src/setup.cjs +0 -7
  15. package/dist/components/forms/src/setup.js +0 -7
  16. package/dist/components/forms-div/src/data.cjs +1 -1
  17. package/dist/components/forms-div/src/data.js +1 -1
  18. package/dist/components/forms-div/src/index2.cjs +11 -4
  19. package/dist/components/forms-div/src/index2.js +10 -3
  20. package/dist/components/forms-item/src/data.cjs +1 -1
  21. package/dist/components/forms-item/src/data.js +1 -1
  22. package/dist/components/forms-item/src/index2.cjs +4 -2
  23. package/dist/components/forms-item/src/index2.js +4 -2
  24. package/dist/components/forms-item/src/label.cjs +3 -2
  25. package/dist/components/forms-item/src/label.js +3 -2
  26. package/dist/components/forms-items/src/data.cjs +1 -1
  27. package/dist/components/forms-items/src/data.js +1 -1
  28. package/dist/components/forms-items/src/index2.cjs +4 -2
  29. package/dist/components/forms-items/src/index2.js +4 -2
  30. package/dist/components/global-config/src/data.cjs +12 -0
  31. package/dist/components/global-config/src/data.d.ts +12 -0
  32. package/dist/components/global-config/src/data.js +12 -0
  33. package/dist/components/index.cjs +16 -12
  34. package/dist/components/index.d.ts +2 -0
  35. package/dist/components/index.js +4 -0
  36. package/dist/components/index.scss +2 -0
  37. package/dist/components/index2.scss +2 -0
  38. package/dist/components/list/index.css +12 -0
  39. package/dist/components/list/index.scss +15 -0
  40. package/dist/components/list/src/data.cjs +21 -2
  41. package/dist/components/list/src/data.d.ts +22 -1
  42. package/dist/components/list/src/data.js +21 -2
  43. package/dist/components/list/src/index2.cjs +75 -23
  44. package/dist/components/list/src/index2.js +76 -24
  45. package/dist/components/list/style/index2.scss +1 -0
  46. package/dist/components/lists/index.css +2 -2
  47. package/dist/components/lists/index.scss +7 -2
  48. package/dist/components/lists/src/data.cjs +12 -1
  49. package/dist/components/lists/src/data.d.ts +10 -0
  50. package/dist/components/lists/src/data.js +12 -1
  51. package/dist/components/lists/src/index2.cjs +7 -5
  52. package/dist/components/lists/src/index2.js +7 -5
  53. package/dist/components/listsp/index.css +2 -2
  54. package/dist/components/listsp/src/data.d.ts +1 -5
  55. package/dist/components/listspd/index.cjs +9 -0
  56. package/dist/components/listspd/index.css +99 -0
  57. package/dist/components/listspd/index.d.ts +4 -0
  58. package/dist/components/listspd/index.js +9 -0
  59. package/dist/components/listspd/index.scss +30 -0
  60. package/dist/components/listspd/src/data.cjs +13 -0
  61. package/dist/components/listspd/src/data.d.ts +14 -0
  62. package/dist/components/listspd/src/data.js +13 -0
  63. package/dist/components/listspd/src/index.cjs +4 -0
  64. package/dist/components/listspd/src/index.js +4 -0
  65. package/dist/components/listspd/src/index2.cjs +111 -0
  66. package/dist/components/listspd/src/index2.js +111 -0
  67. package/dist/components/listspd/style/index2.scss +4 -0
  68. package/dist/components/page/index.css +11 -0
  69. package/dist/components/tables/common/config.cjs +1 -1
  70. package/dist/components/tables/common/config.js +1 -1
  71. package/dist/components/tables/common/pagin.cjs +60 -16
  72. package/dist/components/tables/common/pagin.d.ts +8 -0
  73. package/dist/components/tables/common/pagin.js +60 -16
  74. package/dist/components/tables/common/tooltip.cjs +101 -0
  75. package/dist/components/tables/common/tooltip.d.ts +6 -0
  76. package/dist/components/tables/common/tooltip.js +101 -0
  77. package/dist/components/tables/common/util.cjs +3 -3
  78. package/dist/components/tables/common/util.js +3 -3
  79. package/dist/components/tables/src/column.cjs +19 -15
  80. package/dist/components/tables/src/column.d.ts +3 -2
  81. package/dist/components/tables/src/column.js +17 -13
  82. package/dist/components/tables/src/columns3.cjs +16 -32
  83. package/dist/components/tables/src/columns3.js +15 -31
  84. package/dist/components/tables/src/data.cjs +3 -2
  85. package/dist/components/tables/src/data.d.ts +1 -0
  86. package/dist/components/tables/src/data.js +3 -2
  87. package/dist/components/tablespd/index.cjs +9 -0
  88. package/dist/components/tablespd/index.css +88 -0
  89. package/dist/components/tablespd/index.d.ts +4 -0
  90. package/dist/components/tablespd/index.js +9 -0
  91. package/dist/components/tablespd/index.scss +40 -0
  92. package/dist/components/tablespd/src/data.cjs +13 -0
  93. package/dist/components/tablespd/src/data.d.ts +18 -0
  94. package/dist/components/tablespd/src/data.js +13 -0
  95. package/dist/components/tablespd/src/index.cjs +4 -0
  96. package/dist/components/tablespd/src/index.js +4 -0
  97. package/dist/components/tablespd/src/index2.cjs +111 -0
  98. package/dist/components/tablespd/src/index2.js +111 -0
  99. package/dist/components/tablespd/style/index2.scss +4 -0
  100. package/dist/components/tablesv/src/column.cjs +4 -4
  101. package/dist/components/tablesv/src/column.js +3 -3
  102. package/dist/css/index.css +65 -2
  103. package/dist/css/list.css +12 -0
  104. package/dist/css/lists.css +2 -2
  105. package/dist/css/listsp.css +2 -2
  106. package/dist/css/listspd.css +99 -0
  107. package/dist/css/page.css +11 -0
  108. package/dist/css/tablespd.css +88 -0
  109. package/dist/directives/adjust/index.cjs +10 -6
  110. package/dist/directives/adjust/index.js +10 -6
  111. package/dist/directives/index.cjs +6 -4
  112. package/dist/directives/index.d.ts +1 -0
  113. package/dist/directives/index.js +4 -2
  114. package/dist/directives/sortable/index.cjs +45 -0
  115. package/dist/directives/{adjust/index copy 2.d.ts → sortable/index.d.ts} +1 -1
  116. package/dist/directives/sortable/index.js +45 -0
  117. package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-2L4PC7LZ.cjs} +5 -0
  118. package/dist/expand/{chunk-XY53LCPN.js → chunk-RBGCE6BS.js} +5 -0
  119. package/dist/expand/components.cjs +5 -5
  120. package/dist/expand/components.js +1 -1
  121. package/dist/expand/config.cjs +2 -2
  122. package/dist/expand/config.js +1 -1
  123. package/dist/hooks/cssname/index.d.ts +2 -2
  124. package/dist/hooks/index.cjs +0 -1
  125. package/dist/hooks/index.js +1 -2
  126. package/dist/hooks/inherit/index.cjs +0 -8
  127. package/dist/hooks/inherit/index.d.ts +0 -1
  128. package/dist/hooks/inherit/index.js +0 -8
  129. package/dist/icons/index.json +1 -1
  130. package/dist/index.cjs +38 -32
  131. package/dist/index.css +65 -2
  132. package/dist/index.js +8 -2
  133. package/dist/utils/vues/getAttrValue.cjs +11 -0
  134. package/dist/utils/vues/getAttrValue.d.ts +3 -0
  135. package/dist/utils/vues/getAttrValue.js +11 -0
  136. package/dist/utils/vues/index.cjs +2 -0
  137. package/dist/utils/vues/index.d.ts +1 -0
  138. package/dist/utils/vues/index.js +2 -0
  139. package/package.json +4 -2
  140. package/dist/directives/adjust/index copy 3.d.ts +0 -6
  141. package/dist/directives/adjust/index copy 4.d.ts +0 -6
  142. package/dist/directives/adjust/index copy 5.d.ts +0 -6
  143. package/dist/directives/adjust/index copy 6.d.ts +0 -6
  144. package/dist/directives/adjust/index copy 7.d.ts +0 -6
  145. package/dist/directives/adjust/index copy 8.d.ts +0 -6
  146. package/dist/directives/adjust/index copy 9.d.ts +0 -6
  147. package/dist/directives/adjust/index copy.d.ts +0 -6
  148. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  149. /package/dist/components/{date-picker → keep-com}/index.css +0 -0
  150. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  151. /package/dist/css/{date-picker.css → keep-com.css} +0 -0
@@ -0,0 +1,99 @@
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
+ .lists {
16
+ width: 100%;
17
+ min-height: 100px;
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ background-color: #eee;
23
+ }
24
+ .lists-list {
25
+ padding: 0 var(--lists-interval-horizon, var(--lists-interval));
26
+ }
27
+ .lists-list.is-absolute {
28
+ position: absolute;
29
+ inset: 0;
30
+ overflow-y: auto;
31
+ }
32
+ .lists-list--column .lists-list-item {
33
+ display: inline-block;
34
+ }
35
+ .lists-list-item:first-child {
36
+ margin-top: calc(var(--lists-interval) * 2);
37
+ }
38
+ .lists-list-item {
39
+ background-color: #fff;
40
+ margin: 0 var(--lists-interval-horizon, var(--lists-interval));
41
+ margin-bottom: calc(var(--lists-interval) * 2);
42
+ }
43
+ .lists-list-item.is-active {
44
+ background-color: rgb(250, 235, 215);
45
+ }
46
+ .lists-list-item.is-selected {
47
+ background-color: rgb(215, 250, 224);
48
+ }
49
+ .lists-list-item .el-card {
50
+ background-color: transparent;
51
+ }
52
+
53
+ .paging {
54
+ width: 100%;
55
+ padding: 10px;
56
+ }
57
+ .paging-pagination {
58
+ width: 100%;
59
+ }
60
+ .paging-slot {
61
+ padding-left: 10px;
62
+ font-size: 14px;
63
+ font-weight: 400;
64
+ color: #9b9b9b;
65
+ white-space: pre-wrap;
66
+ }
67
+ .paging-slot > span {
68
+ margin-right: 10px;
69
+ white-space: nowrap;
70
+ }
71
+ .paging .el-pagination__total {
72
+ font-size: 14px;
73
+ font-weight: 400;
74
+ color: #9b9b9b;
75
+ }
76
+
77
+ .listspd {
78
+ width: 100%;
79
+ flex: 1;
80
+ display: flex;
81
+ flex-direction: column;
82
+ }
83
+ .listspd-main {
84
+ display: flex;
85
+ flex-direction: column;
86
+ flex: 1;
87
+ width: 100%;
88
+ }
89
+ .listspd-main.is-scroll .v-scroll-add {
90
+ text-align: center;
91
+ padding: 10px;
92
+ color: #999;
93
+ }
94
+ .listspd-paginat {
95
+ overflow: hidden;
96
+ }
97
+ .listspd-paginat .el-pagination {
98
+ justify-content: flex-end;
99
+ }
package/dist/css/page.css CHANGED
@@ -697,6 +697,17 @@
697
697
  .list-div .list-table .list-table-th {
698
698
  text-align: left;
699
699
  }
700
+ .list-div .list-table .list-table-value {
701
+ word-break: break-all;
702
+ white-space: normal;
703
+ display: block;
704
+ max-height: var(--list-row-max-height);
705
+ display: -webkit-box;
706
+ -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
707
+ -webkit-box-orient: vertical;
708
+ overflow: hidden;
709
+ text-overflow: ellipsis;
710
+ }
700
711
  .list-div .list-table.right .list-table-th {
701
712
  text-align: right;
702
713
  }
@@ -0,0 +1,88 @@
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
+ .tables {
16
+ width: 100%;
17
+ min-height: var(--tables-min-height, 70px);
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+ .tables-table.is-absolute {
24
+ position: absolute;
25
+ inset: 0;
26
+ }
27
+ .tables-table {
28
+ background-color: transparent;
29
+ --el-table-header-bg-color: rgb(248, 248, 249);
30
+ }
31
+ .tables-table.el-table--default .el-table__cell {
32
+ padding: var(--tables-interval) 0;
33
+ }
34
+ .tables-table.el-table--default .cell {
35
+ padding: 0 var(--tables-interval-horizon, var(--tables-interval));
36
+ }
37
+
38
+ .paging {
39
+ width: 100%;
40
+ padding: 10px;
41
+ }
42
+ .paging-pagination {
43
+ width: 100%;
44
+ }
45
+ .paging-slot {
46
+ padding-left: 10px;
47
+ font-size: 14px;
48
+ font-weight: 400;
49
+ color: #9b9b9b;
50
+ white-space: pre-wrap;
51
+ }
52
+ .paging-slot > span {
53
+ margin-right: 10px;
54
+ white-space: nowrap;
55
+ }
56
+ .paging .el-pagination__total {
57
+ font-size: 14px;
58
+ font-weight: 400;
59
+ color: #9b9b9b;
60
+ }
61
+
62
+ .tablespd {
63
+ width: 100%;
64
+ flex: 1;
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
68
+ .tablespd-main {
69
+ display: flex;
70
+ flex-direction: column;
71
+ flex: 1;
72
+ width: 100%;
73
+ }
74
+ .tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
75
+ display: none;
76
+ }
77
+ .tablespd-main.is-scroll .v-scroll-add {
78
+ text-align: center;
79
+ padding: 10px;
80
+ color: #999;
81
+ background-color: #eee;
82
+ }
83
+ .tablespd-paginat {
84
+ overflow: hidden;
85
+ }
86
+ .tablespd-paginat .el-pagination {
87
+ justify-content: flex-end;
88
+ }
@@ -82,38 +82,42 @@ function getWidth(el) {
82
82
  return 0;
83
83
  }
84
84
  }
85
+ const cssHeightName = "v-adjust-xux-";
86
+ const border = "3px dashed #1d8bfa";
85
87
  function getDomHeight() {
86
- const dom = document.querySelector(".v-adjust-xux-height");
88
+ const name = "height";
89
+ const dom = document.querySelector("." + cssHeightName + name);
87
90
  if (dom) {
88
91
  return dom;
89
92
  } else {
90
93
  const xux = document.createElement("div");
91
- xux.className = "v-adjust-xux-height";
94
+ xux.className = cssHeightName + name;
92
95
  xux.style.zIndex = "100000";
93
96
  xux.style.position = "fixed";
94
97
  xux.style.left = "0";
95
98
  xux.style.right = "0";
96
99
  xux.style.height = "0";
97
100
  xux.style.display = "none";
98
- xux.style.borderBottom = "3px dashed #1d8bfa";
101
+ xux.style.borderBottom = border;
99
102
  document.body.appendChild(xux);
100
103
  return xux;
101
104
  }
102
105
  }
103
106
  function getDomWidth() {
104
- const dom = document.querySelector(".v-adjust-xux-width");
107
+ const name = "width";
108
+ const dom = document.querySelector("." + cssHeightName + name);
105
109
  if (dom) {
106
110
  return dom;
107
111
  } else {
108
112
  const xux = document.createElement("div");
109
- xux.className = "v-adjust-xux-width";
113
+ xux.className = cssHeightName + name;
110
114
  xux.style.zIndex = "100000";
111
115
  xux.style.position = "fixed";
112
116
  xux.style.top = "0";
113
117
  xux.style.bottom = "0";
114
118
  xux.style.width = "0";
115
119
  xux.style.display = "none";
116
- xux.style.borderLeft = "3px dashed #1d8bfa";
120
+ xux.style.borderLeft = border;
117
121
  document.body.appendChild(xux);
118
122
  return xux;
119
123
  }
@@ -80,38 +80,42 @@ function getWidth(el) {
80
80
  return 0;
81
81
  }
82
82
  }
83
+ const cssHeightName = "v-adjust-xux-";
84
+ const border = "3px dashed #1d8bfa";
83
85
  function getDomHeight() {
84
- const dom = document.querySelector(".v-adjust-xux-height");
86
+ const name = "height";
87
+ const dom = document.querySelector("." + cssHeightName + name);
85
88
  if (dom) {
86
89
  return dom;
87
90
  } else {
88
91
  const xux = document.createElement("div");
89
- xux.className = "v-adjust-xux-height";
92
+ xux.className = cssHeightName + name;
90
93
  xux.style.zIndex = "100000";
91
94
  xux.style.position = "fixed";
92
95
  xux.style.left = "0";
93
96
  xux.style.right = "0";
94
97
  xux.style.height = "0";
95
98
  xux.style.display = "none";
96
- xux.style.borderBottom = "3px dashed #1d8bfa";
99
+ xux.style.borderBottom = border;
97
100
  document.body.appendChild(xux);
98
101
  return xux;
99
102
  }
100
103
  }
101
104
  function getDomWidth() {
102
- const dom = document.querySelector(".v-adjust-xux-width");
105
+ const name = "width";
106
+ const dom = document.querySelector("." + cssHeightName + name);
103
107
  if (dom) {
104
108
  return dom;
105
109
  } else {
106
110
  const xux = document.createElement("div");
107
- xux.className = "v-adjust-xux-width";
111
+ xux.className = cssHeightName + name;
108
112
  xux.style.zIndex = "100000";
109
113
  xux.style.position = "fixed";
110
114
  xux.style.top = "0";
111
115
  xux.style.bottom = "0";
112
116
  xux.style.width = "0";
113
117
  xux.style.display = "none";
114
- xux.style.borderLeft = "3px dashed #1d8bfa";
118
+ xux.style.borderLeft = border;
115
119
  document.body.appendChild(xux);
116
120
  return xux;
117
121
  }
@@ -6,17 +6,19 @@ const index$2 = require("./expose/index.cjs");
6
6
  const index$3 = require("./inserted/index.cjs");
7
7
  const index$4 = require("./locus/index.cjs");
8
8
  const index$5 = require("./scroll/index.cjs");
9
- const index$6 = require("./stick/index.cjs");
9
+ const index$6 = require("./sortable/index.cjs");
10
+ const index$7 = require("./stick/index.cjs");
10
11
  require("./v-loading/index.cjs");
11
- const index$7 = require("element-plus/es/components/loading/index");
12
+ const index$8 = require("element-plus/es/components/loading/index");
12
13
  exports.Adjust = index.default;
13
14
  exports.Drag = index$1.default;
14
15
  exports.Expose = index$2.default;
15
16
  exports.Inserted = index$3.default;
16
17
  exports.Locus = index$4.default;
17
18
  exports.Scroll = index$5.default;
18
- exports.Stick = index$6.default;
19
+ exports.Sortable = index$6.default;
20
+ exports.Stick = index$7.default;
19
21
  Object.defineProperty(exports, "VLoading", {
20
22
  enumerable: true,
21
- get: () => index$7.vLoading
23
+ get: () => index$8.vLoading
22
24
  });
@@ -4,5 +4,6 @@ export { default as Expose } from './expose';
4
4
  export { default as Inserted } from './inserted';
5
5
  export { default as Locus } from './locus';
6
6
  export { default as Scroll } from './scroll';
7
+ export { default as Sortable } from './sortable';
7
8
  export { default as Stick } from './stick';
8
9
  export { default as VLoading } from './v-loading';
@@ -4,7 +4,8 @@ import { default as default4 } from "./expose/index.js";
4
4
  import { default as default5 } from "./inserted/index.js";
5
5
  import { default as default6 } from "./locus/index.js";
6
6
  import { default as default7 } from "./scroll/index.js";
7
- import { default as default8 } from "./stick/index.js";
7
+ import { default as default8 } from "./sortable/index.js";
8
+ import { default as default9 } from "./stick/index.js";
8
9
  import "./v-loading/index.js";
9
10
  import { vLoading } from "element-plus/es/components/loading/index";
10
11
  export {
@@ -14,6 +15,7 @@ export {
14
15
  default5 as Inserted,
15
16
  default6 as Locus,
16
17
  default7 as Scroll,
17
- default8 as Stick,
18
+ default8 as Sortable,
19
+ default9 as Stick,
18
20
  vLoading as VLoading
19
21
  };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const Sortable = require("sortablejs");
4
+ const vSortable = {
5
+ name: "Sortable",
6
+ mounted(el, binding) {
7
+ const value = binding.value;
8
+ let selector = el.getAttribute(`sortable-selector`);
9
+ let dom;
10
+ if (value.dom) {
11
+ if (typeof value.dom == "string") {
12
+ dom = el.querySelector(value.dom);
13
+ } else {
14
+ dom = value.dom;
15
+ }
16
+ } else {
17
+ if (selector) {
18
+ dom = el.querySelector(selector);
19
+ } else {
20
+ dom = el;
21
+ }
22
+ }
23
+ if (dom && value.is !== false) {
24
+ const options = Object.assign(
25
+ {
26
+ animation: 150,
27
+ // 动画时长
28
+ ghostClass: "sortable-ghost",
29
+ // 拖拽时占位元素的样式
30
+ chosenClass: "sortable-chosen",
31
+ // 被选中元素的样式
32
+ dragClass: "sortable-drag"
33
+ // 拖拽元素的样式
34
+ },
35
+ value.options || {
36
+ ...value,
37
+ dom: void 0,
38
+ is: void 0
39
+ }
40
+ );
41
+ Sortable.create(dom, options);
42
+ }
43
+ }
44
+ };
45
+ exports.default = vSortable;
@@ -1,6 +1,6 @@
1
1
  import { Directive } from 'vue';
2
2
  /**
3
- * Adjust
3
+ * Sortable
4
4
  */
5
5
  declare const _default: Directive;
6
6
  export default _default;
@@ -0,0 +1,45 @@
1
+ import Sortable from "sortablejs";
2
+ const vSortable = {
3
+ name: "Sortable",
4
+ mounted(el, binding) {
5
+ const value = binding.value;
6
+ let selector = el.getAttribute(`sortable-selector`);
7
+ let dom;
8
+ if (value.dom) {
9
+ if (typeof value.dom == "string") {
10
+ dom = el.querySelector(value.dom);
11
+ } else {
12
+ dom = value.dom;
13
+ }
14
+ } else {
15
+ if (selector) {
16
+ dom = el.querySelector(selector);
17
+ } else {
18
+ dom = el;
19
+ }
20
+ }
21
+ if (dom && value.is !== false) {
22
+ const options = Object.assign(
23
+ {
24
+ animation: 150,
25
+ // 动画时长
26
+ ghostClass: "sortable-ghost",
27
+ // 拖拽时占位元素的样式
28
+ chosenClass: "sortable-chosen",
29
+ // 被选中元素的样式
30
+ dragClass: "sortable-drag"
31
+ // 拖拽元素的样式
32
+ },
33
+ value.options || {
34
+ ...value,
35
+ dom: void 0,
36
+ is: void 0
37
+ }
38
+ );
39
+ Sortable.create(dom, options);
40
+ }
41
+ }
42
+ };
43
+ export {
44
+ vSortable as default
45
+ };
@@ -129,9 +129,11 @@ var config_default = {
129
129
  "list",
130
130
  "lists",
131
131
  "listsp",
132
+ "listspd",
132
133
  "paging",
133
134
  "tables",
134
135
  "tablesp",
136
+ "tablespd",
135
137
  "tabless",
136
138
  "tablesv",
137
139
  "tablesvp"
@@ -143,6 +145,7 @@ var config_default = {
143
145
  "inserted",
144
146
  "locus",
145
147
  "scroll",
148
+ "sortable",
146
149
  "stick",
147
150
  "v-loading"
148
151
  ],
@@ -196,9 +199,11 @@ var config_default = {
196
199
  "list",
197
200
  "lists",
198
201
  "listsp",
202
+ "listspd",
199
203
  "paging",
200
204
  "tables",
201
205
  "tablesp",
206
+ "tablespd",
202
207
  "tabless",
203
208
  "tablesv",
204
209
  "tablesvp",
@@ -129,9 +129,11 @@ var config_default = {
129
129
  "list",
130
130
  "lists",
131
131
  "listsp",
132
+ "listspd",
132
133
  "paging",
133
134
  "tables",
134
135
  "tablesp",
136
+ "tablespd",
135
137
  "tabless",
136
138
  "tablesv",
137
139
  "tablesvp"
@@ -143,6 +145,7 @@ var config_default = {
143
145
  "inserted",
144
146
  "locus",
145
147
  "scroll",
148
+ "sortable",
146
149
  "stick",
147
150
  "v-loading"
148
151
  ],
@@ -196,9 +199,11 @@ var config_default = {
196
199
  "list",
197
200
  "lists",
198
201
  "listsp",
202
+ "listspd",
199
203
  "paging",
200
204
  "tables",
201
205
  "tablesp",
206
+ "tablespd",
202
207
  "tabless",
203
208
  "tablesv",
204
209
  "tablesvp",
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIEODUGVJcjs = require('./chunk-IEODUGVJ.cjs');
3
+ var _chunk2L4PC7LZcjs = require('./chunk-2L4PC7LZ.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 (_chunkIEODUGVJcjs.config_default.components.includes(filename)) {
38
+ if (_chunk2L4PC7LZcjs.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 (_chunkIEODUGVJcjs.config_default.sideEffects.includes(filename)) {
42
+ if (_chunk2L4PC7LZcjs.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 (_chunkIEODUGVJcjs.config_default.directives.includes(filename)) {
58
+ if (_chunk2L4PC7LZcjs.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 (_chunkIEODUGVJcjs.config_default.directives.includes("v-" + filename)) {
65
+ } else if (_chunk2L4PC7LZcjs.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-XY53LCPN.js";
3
+ } from "./chunk-RBGCE6BS.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 _chunkIEODUGVJcjs = require('./chunk-IEODUGVJ.cjs');
3
+ var _chunk2L4PC7LZcjs = require('./chunk-2L4PC7LZ.cjs');
4
4
 
5
5
 
6
- exports.default = _chunkIEODUGVJcjs.config_default;
6
+ exports.default = _chunk2L4PC7LZcjs.config_default;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_default
3
- } from "./chunk-XY53LCPN.js";
3
+ } from "./chunk-RBGCE6BS.js";
4
4
  export {
5
5
  config_default as default
6
6
  };
@@ -12,9 +12,9 @@ export declare const useCssName: (block: string) => {
12
12
  ec: (name?: string, blockSuffix?: string, element?: string, modifier?: string) => string;
13
13
  is: (name: string, state?: boolean) => string;
14
14
  zis: (blockSuffix?: string, modifier?: string, state?: boolean) => string;
15
- vo: (object: Record<string, string>) => Record<string, string>;
15
+ vo: (object: Record<string, string | number>) => Record<string, string | number>;
16
16
  vm: (name: string) => string;
17
- vdo: (object: Record<string, string | undefined>) => Record<string, string>;
17
+ vdo: (object: Record<string, string | number | undefined>) => Record<string, string | number>;
18
18
  vdm: (name: string) => string;
19
19
  };
20
20
  export type UseCssNameReturn = ReturnType<typeof useCssName>;
@@ -19,7 +19,6 @@ exports.provideGlobalConfig = index$5.provideGlobalConfig;
19
19
  exports.setGlobalConfig = index$5.setGlobalConfig;
20
20
  exports.setGlobalConfigs = index$5.setGlobalConfigs;
21
21
  exports.useGlobalConfig = index$5.useGlobalConfig;
22
- exports.useAttrValue = index$6.useAttrValue;
23
22
  exports.useInherit = index$6.useInherit;
24
23
  exports.buildLocaleAdd = index$7.buildLocaleAdd;
25
24
  exports.buildLocaleContext = index$7.buildLocaleContext;
@@ -4,7 +4,7 @@ import { eventAliass } from "./event-aliass/index.js";
4
4
  import { useExpose } from "./expose/index.js";
5
5
  import { useFullscreen } from "./full-screen/index.js";
6
6
  import { provideGlobalConfig, setGlobalConfig, setGlobalConfigs, useGlobalConfig } from "./global-config/index.js";
7
- import { useAttrValue, useInherit } from "./inherit/index.js";
7
+ import { useInherit } from "./inherit/index.js";
8
8
  import { buildLocaleAdd, buildLocaleContext, buildTranslator, useLocale } from "./locale/index.js";
9
9
  import { getProps, usePropsDefault, viewProps } from "./props-default/index.js";
10
10
  export {
@@ -16,7 +16,6 @@ export {
16
16
  provideGlobalConfig,
17
17
  setGlobalConfig,
18
18
  setGlobalConfigs,
19
- useAttrValue,
20
19
  useCssName,
21
20
  useDefaultConfig,
22
21
  useDefaultConfigs,
@@ -45,12 +45,4 @@ const useInherit = (attrs = vue.useAttrs(), name) => {
45
45
  })
46
46
  };
47
47
  };
48
- function useAttrValue(attrs, k) {
49
- if (typeof k === "string") {
50
- return attrs[k] ?? attrs[humpToLine.humpToLine(k)];
51
- } else {
52
- return attrs[k];
53
- }
54
- }
55
- exports.useAttrValue = useAttrValue;
56
48
  exports.useInherit = useInherit;
@@ -9,6 +9,5 @@ export declare const useInherit: (attrs?: {
9
9
  root: Data;
10
10
  assem: Assem;
11
11
  };
12
- export declare function useAttrValue(attrs: Data, k: string | symbol): unknown;
13
12
  export type UseInheritReturn = ReturnType<typeof useInherit>;
14
13
  export {};
@@ -43,14 +43,6 @@ const useInherit = (attrs = useAttrs(), name) => {
43
43
  })
44
44
  };
45
45
  };
46
- function useAttrValue(attrs, k) {
47
- if (typeof k === "string") {
48
- return attrs[k] ?? attrs[humpToLine(k)];
49
- } else {
50
- return attrs[k];
51
- }
52
- }
53
46
  export {
54
- useAttrValue,
55
47
  useInherit
56
48
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1762779395198,
4
+ "lastModified": 1762873785830,
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> "