@fangzhongya/fang-ui 0.1.26 → 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.
- package/dist/components/array/index.css +9 -0
- package/dist/components/array/src/index2.cjs +5 -6
- package/dist/components/array/src/index2.js +2 -3
- package/dist/components/audios/index.css +9 -0
- package/dist/components/box/index.css +9 -0
- package/dist/components/box-adjust/index.css +9 -0
- package/dist/components/box-fun/index.cjs +7 -0
- package/dist/components/box-fun/index.d.ts +7 -0
- package/dist/components/box-fun/index.js +7 -0
- package/dist/components/box-fun/src/data.cjs +34 -0
- package/dist/components/box-fun/src/data.d.ts +35 -0
- package/dist/components/box-fun/src/data.js +34 -0
- package/dist/components/box-fun/src/function.cjs +97 -0
- package/dist/components/box-fun/src/function.d.ts +8 -0
- package/dist/components/box-fun/src/function.js +97 -0
- package/dist/components/box-fun/src/index.cjs +5 -0
- package/dist/components/box-fun/src/index.d.ts +2 -0
- package/dist/components/box-fun/src/index.js +5 -0
- package/dist/components/box-local/index.css +9 -0
- package/dist/components/box-mask/index.css +9 -0
- package/dist/components/box-teleport/src/index2.cjs +2 -11
- package/dist/components/box-teleport/src/index2.js +2 -11
- package/dist/components/box-title/index.css +9 -0
- package/dist/components/buttons/index.css +9 -0
- package/dist/components/cascaders/index.css +9 -0
- package/dist/components/checks/index.css +9 -0
- package/dist/components/common/compons/components.cjs +52 -0
- package/dist/components/common/compons/components.d.ts +27 -0
- package/dist/components/common/compons/components.js +52 -0
- package/dist/components/common/compons/index.scss +23 -0
- package/dist/components/common/compons/index2.scss +23 -0
- package/dist/components/common/use.cjs +29 -3
- package/dist/components/common/use.d.ts +2 -2
- package/dist/components/common/use.js +29 -3
- package/dist/components/dates/index.css +9 -0
- package/dist/components/dates-divide/index.css +9 -0
- package/dist/components/dates-picker/index.css +9 -0
- package/dist/components/dates2/index.css +9 -0
- package/dist/components/dialogs/index.css +9 -0
- package/dist/components/draggable/index.cjs +9 -0
- package/dist/components/draggable/index.d.ts +4 -0
- package/dist/components/draggable/index.js +9 -0
- package/dist/components/draggable/index.scss +5 -0
- package/dist/components/draggable/src/data.cjs +37 -0
- package/dist/components/draggable/src/data.d.ts +60 -0
- package/dist/components/draggable/src/data.js +37 -0
- package/dist/components/draggable/src/index.cjs +4 -0
- package/dist/components/draggable/src/index.js +4 -0
- package/dist/components/draggable/src/index2.cjs +101 -0
- package/dist/components/draggable/src/index2.js +101 -0
- package/dist/components/edit/index.css +9 -0
- package/dist/components/edit-float/index.css +9 -0
- package/dist/components/forms/common/config.cjs +17 -0
- package/dist/components/forms/common/config.d.ts +5 -0
- package/dist/components/forms/common/config.js +17 -0
- package/dist/components/forms/index.css +15 -6
- package/dist/components/forms/index.scss +2 -1
- package/dist/components/forms/src/data.cjs +7 -5
- package/dist/components/forms/src/data.d.ts +7 -4
- package/dist/components/forms/src/data.js +8 -6
- package/dist/components/forms/src/setup.cjs +5 -13
- package/dist/components/forms/src/setup.d.ts +1 -1
- package/dist/components/forms/src/setup.js +5 -13
- package/dist/components/forms/style/index2.scss +3 -1
- package/dist/components/forms-div/index.css +9 -0
- package/dist/components/forms-div/src/index2.cjs +5 -5
- package/dist/components/forms-div/src/index2.js +3 -3
- package/dist/components/forms-drag/src/index2.cjs +12 -12
- package/dist/components/forms-drag/src/index2.js +1 -1
- package/dist/components/{forms-items → forms-item}/index.css +9 -0
- package/dist/components/forms-item/src/index2.cjs +2 -2
- package/dist/components/forms-item/src/index2.js +1 -1
- package/dist/components/forms-item/src/indexts.d.ts +1 -1
- package/dist/components/forms-item/src/label.cjs +17 -30
- package/dist/components/forms-item/src/label.js +17 -30
- package/dist/components/forms-items/src/index2.cjs +9 -9
- package/dist/components/forms-items/src/index2.js +1 -1
- package/dist/components/full-screen/index.css +9 -0
- package/dist/components/global-config/index.d.ts +1 -1
- package/dist/components/global-config/src/index.d.ts +1 -1
- package/dist/components/history/index.css +9 -0
- package/dist/components/icon/index.css +9 -0
- package/dist/components/icon-picker/index.css +9 -0
- package/dist/components/iframe/index.css +9 -0
- package/dist/components/images/index.css +9 -0
- package/dist/components/index.cjs +413 -407
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.scss +4 -1
- package/dist/components/index2.scss +4 -1
- package/dist/components/input-array/index.css +9 -0
- package/dist/components/input-history/index.css +9 -0
- package/dist/components/input-num/index.css +9 -0
- package/dist/components/input-select/index.css +9 -0
- package/dist/components/inputs/index.css +9 -0
- package/dist/components/keep-com/index.css +9 -0
- package/dist/components/labels/index.css +9 -0
- package/dist/components/list/index.css +9 -0
- package/dist/components/list/src/data.cjs +6 -0
- package/dist/components/list/src/data.d.ts +6 -0
- package/dist/components/list/src/data.js +6 -0
- package/dist/components/list/src/index2.cjs +6 -6
- package/dist/components/list/src/index2.js +2 -2
- package/dist/components/lists/index.css +9 -0
- package/dist/components/lists/src/index2.cjs +9 -9
- package/dist/components/lists/src/index2.js +9 -9
- package/dist/components/listsp/index.css +9 -0
- package/dist/components/listspd/index.css +9 -0
- package/dist/components/loading/src/data.cjs +13 -0
- package/dist/components/loading/src/data.d.ts +17 -0
- package/dist/components/loading/src/data.js +13 -0
- package/dist/components/loading/src/index.cjs +1 -0
- package/dist/components/loading/src/index.d.ts +0 -4
- package/dist/components/loading/src/index.js +1 -0
- package/dist/components/menus/index.css +9 -0
- package/dist/components/message/src/data.cjs +13 -0
- package/dist/components/message/src/data.d.ts +17 -0
- package/dist/components/message/src/data.js +13 -0
- package/dist/components/message/src/index.cjs +1 -0
- package/dist/components/message/src/index.d.ts +0 -4
- package/dist/components/message/src/index.js +1 -0
- package/dist/components/message-box/src/data.cjs +13 -0
- package/dist/components/message-box/src/data.d.ts +17 -0
- package/dist/components/message-box/src/data.js +13 -0
- package/dist/components/message-box/src/index.cjs +1 -0
- package/dist/components/message-box/src/index.d.ts +0 -4
- package/dist/components/message-box/src/index.js +1 -0
- package/dist/components/no-data/index.css +9 -0
- package/dist/components/page/index.css +15 -6
- package/dist/components/page/src/set-column2.cjs +2 -2
- package/dist/components/page/src/set-column2.js +1 -1
- package/dist/components/paging/index.css +9 -0
- package/dist/components/popup/index.css +9 -0
- package/dist/components/retract/index.css +9 -0
- package/dist/components/right-key/index.css +9 -0
- package/dist/components/scss/common.scss +9 -0
- package/dist/components/seamless-scroll/index.css +9 -0
- package/dist/components/select-scroll/index.css +9 -0
- package/dist/components/selector/index.css +9 -0
- package/dist/components/selects/index.css +9 -0
- package/dist/components/sliders/index.css +9 -0
- package/dist/components/switchs/index.css +9 -0
- package/dist/components/tables/common/config.cjs +1 -1
- package/dist/components/tables/common/config.js +1 -1
- package/dist/components/tables/common/pagin.cjs +123 -52
- package/dist/components/tables/common/pagin.d.ts +40 -9
- package/dist/components/tables/common/pagin.js +123 -52
- package/dist/components/tables/index.css +9 -0
- package/dist/components/tables/src/column.cjs +23 -22
- package/dist/components/tables/src/column.d.ts +3 -0
- package/dist/components/tables/src/column.js +15 -14
- package/dist/components/tables/src/data.cjs +15 -0
- package/dist/components/tables/src/data.d.ts +14 -1
- package/dist/components/tables/src/data.js +15 -0
- package/dist/components/tables/src/index2.cjs +29 -10
- package/dist/components/tables/src/index2.js +23 -4
- package/dist/components/tablesp/index.css +9 -0
- package/dist/components/tablesp/src/index2.cjs +9 -5
- package/dist/components/tablesp/src/index2.js +9 -5
- package/dist/components/tablespd/index.css +9 -0
- package/dist/components/tabless/index.css +9 -0
- package/dist/components/tablesv/index.css +9 -0
- package/dist/components/tablesv/src/column.cjs +116 -112
- package/dist/components/tablesv/src/column.d.ts +3 -1
- package/dist/components/tablesv/src/column.js +110 -106
- package/dist/components/tablesv/src/data.cjs +44 -0
- package/dist/components/tablesv/src/data.d.ts +43 -1
- package/dist/components/tablesv/src/data.js +44 -0
- package/dist/components/tablesv/src/index2.cjs +37 -14
- package/dist/components/tablesv/src/index2.js +36 -13
- package/dist/components/tablesv/style/index2.scss +3 -1
- package/dist/components/tablesvp/index.css +15 -0
- package/dist/components/tablesvp/index.scss +8 -0
- package/dist/components/tablesvp/src/index2.cjs +15 -5
- package/dist/components/tablesvp/src/index2.js +15 -5
- package/dist/components/tablesvpd/index.cjs +9 -0
- package/dist/components/tablesvpd/index.css +157 -0
- package/dist/components/tablesvpd/index.d.ts +4 -0
- package/dist/components/tablesvpd/index.js +9 -0
- package/dist/components/tablesvpd/index.scss +41 -0
- package/dist/components/tablesvpd/src/data.cjs +13 -0
- package/dist/components/tablesvpd/src/data.d.ts +18 -0
- package/dist/components/tablesvpd/src/data.js +13 -0
- package/dist/components/tablesvpd/src/index.cjs +4 -0
- package/dist/components/tablesvpd/src/index.js +4 -0
- package/dist/components/tablesvpd/src/index2.cjs +107 -0
- package/dist/components/tablesvpd/src/index2.js +107 -0
- package/dist/components/tablesvpd/style/index2.scss +4 -0
- package/dist/components/uploads/index.css +9 -0
- package/dist/components/videos/index.css +9 -0
- package/dist/components/window/index.css +9 -0
- package/dist/css/array.css +9 -0
- package/dist/css/audios.css +9 -0
- package/dist/css/box-adjust.css +9 -0
- package/dist/css/box-local.css +9 -0
- package/dist/css/box-mask.css +9 -0
- package/dist/css/box-title.css +9 -0
- package/dist/css/box.css +9 -0
- package/dist/css/buttons.css +9 -0
- package/dist/css/cascaders.css +9 -0
- package/dist/css/checks.css +9 -0
- package/dist/css/dates-divide.css +9 -0
- package/dist/css/dates-picker.css +9 -0
- package/dist/css/dates.css +9 -0
- package/dist/css/dates2.css +9 -0
- package/dist/css/dialogs.css +9 -0
- package/dist/css/edit-float.css +9 -0
- package/dist/css/edit.css +9 -0
- package/dist/css/forms-div.css +9 -0
- package/dist/css/{forms-items.css → forms-item.css} +9 -0
- package/dist/css/forms.css +15 -6
- package/dist/css/full-screen.css +9 -0
- package/dist/css/history.css +9 -0
- package/dist/css/icon-picker.css +9 -0
- package/dist/css/icon.css +9 -0
- package/dist/css/iframe.css +9 -0
- package/dist/css/images.css +9 -0
- package/dist/css/index.css +71 -6
- package/dist/css/input-array.css +9 -0
- package/dist/css/input-history.css +9 -0
- package/dist/css/input-num.css +9 -0
- package/dist/css/input-select.css +9 -0
- package/dist/css/inputs.css +9 -0
- package/dist/css/keep-com.css +9 -0
- package/dist/css/labels.css +9 -0
- package/dist/css/list.css +9 -0
- package/dist/css/lists.css +9 -0
- package/dist/css/listsp.css +9 -0
- package/dist/css/listspd.css +9 -0
- package/dist/css/menus.css +9 -0
- package/dist/css/no-data.css +9 -0
- package/dist/css/page.css +15 -6
- package/dist/css/paging.css +9 -0
- package/dist/css/popup.css +9 -0
- package/dist/css/retract.css +9 -0
- package/dist/css/right-key.css +9 -0
- package/dist/css/seamless-scroll.css +9 -0
- package/dist/css/select-scroll.css +9 -0
- package/dist/css/selector.css +9 -0
- package/dist/css/selects.css +9 -0
- package/dist/css/sliders.css +9 -0
- package/dist/css/switchs.css +9 -0
- package/dist/css/tables.css +9 -0
- package/dist/css/tablesp.css +9 -0
- package/dist/css/tablespd.css +9 -0
- package/dist/css/tabless.css +9 -0
- package/dist/css/tablesv.css +9 -0
- package/dist/css/tablesvp.css +15 -0
- package/dist/css/tablesvpd.css +157 -0
- package/dist/css/uploads.css +9 -0
- package/dist/css/videos.css +9 -0
- package/dist/css/window.css +9 -0
- package/dist/expand/{chunk-2L4PC7LZ.cjs → chunk-3HP2ZDNG.cjs} +6 -1
- package/dist/expand/{chunk-RBGCE6BS.js → chunk-7C25SBCF.js} +6 -1
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/compons/index.cjs +44 -0
- package/dist/hooks/compons/index.d.ts +7 -0
- package/dist/hooks/compons/index.js +44 -0
- package/dist/hooks/props-default/index.cjs +0 -12
- package/dist/hooks/props-default/index.d.ts +1 -1
- package/dist/hooks/props-default/index.js +0 -12
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +437 -431
- package/dist/index.css +71 -6
- package/dist/index.js +6 -0
- package/dist/type.d.ts +10 -5
- package/dist/utils/vues/getBoxDom.cjs +22 -0
- package/dist/utils/vues/getBoxDom.d.ts +1 -0
- package/dist/utils/vues/getBoxDom.js +22 -0
- package/dist/utils/vues/index.cjs +2 -0
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/index.js +2 -0
- package/package.json +14 -15
- package/dist/components/common/compons.cjs +0 -76
- package/dist/components/common/compons.d.ts +0 -9
- package/dist/components/common/compons.js +0 -76
- package/dist/components/common/compons.scss +0 -26
- package/dist/components/common/compons2.scss +0 -26
package/dist/index.css
CHANGED
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
--g-main-bg: var(--bg-color-page);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.com-footer {
|
|
17
|
+
border-top: 1px solid var(--border);
|
|
18
|
+
padding: 20px 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.com-lable-array {
|
|
22
|
+
line-height: 18px;
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
.forms-div {
|
|
17
26
|
width: 100%;
|
|
18
27
|
height: 100%;
|
|
@@ -101,12 +110,6 @@
|
|
|
101
110
|
font-size: 0;
|
|
102
111
|
}
|
|
103
112
|
|
|
104
|
-
.dates .dates-date {
|
|
105
|
-
height: 100%;
|
|
106
|
-
width: 100%;
|
|
107
|
-
box-sizing: border-box;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
113
|
.selects-select {
|
|
111
114
|
height: 100%;
|
|
112
115
|
min-width: 60px;
|
|
@@ -116,6 +119,12 @@
|
|
|
116
119
|
height: 100%;
|
|
117
120
|
}
|
|
118
121
|
|
|
122
|
+
.dates .dates-date {
|
|
123
|
+
height: 100%;
|
|
124
|
+
width: 100%;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
}
|
|
127
|
+
|
|
119
128
|
.inputs-input {
|
|
120
129
|
height: 100%;
|
|
121
130
|
}
|
|
@@ -1835,4 +1844,60 @@
|
|
|
1835
1844
|
left: 0;
|
|
1836
1845
|
z-index: 1;
|
|
1837
1846
|
opacity: 0;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.tablesvp {
|
|
1850
|
+
width: 100%;
|
|
1851
|
+
height: var(--tablesvp-height);
|
|
1852
|
+
display: flex;
|
|
1853
|
+
flex-direction: column;
|
|
1854
|
+
}
|
|
1855
|
+
.tablesvp-main {
|
|
1856
|
+
display: flex;
|
|
1857
|
+
flex-direction: column;
|
|
1858
|
+
flex: 1;
|
|
1859
|
+
width: 100%;
|
|
1860
|
+
}
|
|
1861
|
+
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1862
|
+
display: none;
|
|
1863
|
+
}
|
|
1864
|
+
.tablesvp-main.is-scroll .v-scroll-add {
|
|
1865
|
+
text-align: center;
|
|
1866
|
+
padding: 10px;
|
|
1867
|
+
color: #999;
|
|
1868
|
+
background-color: #eee;
|
|
1869
|
+
}
|
|
1870
|
+
.tablesvp-paginat {
|
|
1871
|
+
overflow: hidden;
|
|
1872
|
+
}
|
|
1873
|
+
.tablesvp-paginat .el-pagination {
|
|
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;
|
|
1838
1903
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as index$K from "./components/index.js";
|
|
2
2
|
import * as index$L from "./directives/index.js";
|
|
3
3
|
import icons from "./icons/index.js";
|
|
4
|
+
import { Draggable } from "./components/draggable/index.js";
|
|
4
5
|
export * from "element-plus/es/components/button/index";
|
|
5
6
|
import { Button } from "./components/button/index.js";
|
|
6
7
|
export * from "element-plus/es/components/card/index";
|
|
@@ -114,6 +115,7 @@ import { FormsItem } from "./components/forms-item/index.js";
|
|
|
114
115
|
import { FormsItems } from "./components/forms-items/index.js";
|
|
115
116
|
import { Forms } from "./components/forms/index.js";
|
|
116
117
|
import { BoxAdjust } from "./components/box-adjust/index.js";
|
|
118
|
+
import { BoxFun } from "./components/box-fun/index.js";
|
|
117
119
|
import { BoxLocal } from "./components/box-local/index.js";
|
|
118
120
|
import { BoxMask } from "./components/box-mask/index.js";
|
|
119
121
|
import { BoxTeleport } from "./components/box-teleport/index.js";
|
|
@@ -183,6 +185,7 @@ import { Tablespd } from "./components/tablespd/index.js";
|
|
|
183
185
|
import { Tabless } from "./components/tabless/index.js";
|
|
184
186
|
import { Tablesv } from "./components/tablesv/index.js";
|
|
185
187
|
import { Tablesvp } from "./components/tablesvp/index.js";
|
|
188
|
+
import { Tablesvpd } from "./components/tablesvpd/index.js";
|
|
186
189
|
import { default as default2 } from "./directives/adjust/index.js";
|
|
187
190
|
import { default as default3 } from "./directives/drag/index.js";
|
|
188
191
|
import { default as default4 } from "./directives/expose/index.js";
|
|
@@ -214,6 +217,7 @@ export {
|
|
|
214
217
|
Autocomplete,
|
|
215
218
|
Box,
|
|
216
219
|
BoxAdjust,
|
|
220
|
+
BoxFun,
|
|
217
221
|
BoxLocal,
|
|
218
222
|
BoxMask,
|
|
219
223
|
BoxTeleport,
|
|
@@ -245,6 +249,7 @@ export {
|
|
|
245
249
|
Dialogs,
|
|
246
250
|
Divider,
|
|
247
251
|
default3 as Drag,
|
|
252
|
+
Draggable,
|
|
248
253
|
Drawer,
|
|
249
254
|
Dropdown,
|
|
250
255
|
DropdownItem,
|
|
@@ -335,6 +340,7 @@ export {
|
|
|
335
340
|
Tabless,
|
|
336
341
|
Tablesv,
|
|
337
342
|
Tablesvp,
|
|
343
|
+
Tablesvpd,
|
|
338
344
|
Tabs,
|
|
339
345
|
Tag,
|
|
340
346
|
Text,
|
package/dist/type.d.ts
CHANGED
|
@@ -168,8 +168,6 @@ type TableConfig = {
|
|
|
168
168
|
align?: string;
|
|
169
169
|
//拖动改变宽度
|
|
170
170
|
resizable?: boolean;
|
|
171
|
-
// 排序方式 前端/后端
|
|
172
|
-
sort?: boolean;
|
|
173
171
|
//列的宽度是否自撑开
|
|
174
172
|
fit?: boolean;
|
|
175
173
|
// 是否显示表头
|
|
@@ -190,9 +188,16 @@ type TableConfig = {
|
|
|
190
188
|
[key: string]: string | Function;
|
|
191
189
|
};
|
|
192
190
|
// 排序
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
191
|
+
sort?: {
|
|
192
|
+
is?: boolean;
|
|
193
|
+
// 分页方式 前端/后端
|
|
194
|
+
front?: boolean;
|
|
195
|
+
// 前端排序的方法
|
|
196
|
+
frontSort?: Function;
|
|
197
|
+
default?: {
|
|
198
|
+
prop?: string;
|
|
199
|
+
order?: 'asc' | 'ascending' | 'desc' | 'descending' | '';
|
|
200
|
+
};
|
|
196
201
|
};
|
|
197
202
|
// 分页
|
|
198
203
|
paginat?: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const enums = require("../enums.cjs");
|
|
4
|
+
function getBoxDom() {
|
|
5
|
+
const id = enums.FunctConfig.BOXIDNAME.trim();
|
|
6
|
+
if (document) {
|
|
7
|
+
const dom = document == null ? void 0 : document.querySelector(id);
|
|
8
|
+
if (!dom) {
|
|
9
|
+
const d = document.createElement("div");
|
|
10
|
+
if (id.startsWith("#")) {
|
|
11
|
+
d.id = id.replace(/^#/, "");
|
|
12
|
+
} else if (id.startsWith(".")) {
|
|
13
|
+
d.className = id.replace(/./g, " ");
|
|
14
|
+
}
|
|
15
|
+
document.body.appendChild(d);
|
|
16
|
+
return d;
|
|
17
|
+
} else {
|
|
18
|
+
return dom;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.getBoxDom = getBoxDom;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getBoxDom(): Element | undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FunctConfig } from "../enums.js";
|
|
2
|
+
function getBoxDom() {
|
|
3
|
+
const id = FunctConfig.BOXIDNAME.trim();
|
|
4
|
+
if (document) {
|
|
5
|
+
const dom = document == null ? void 0 : document.querySelector(id);
|
|
6
|
+
if (!dom) {
|
|
7
|
+
const d = document.createElement("div");
|
|
8
|
+
if (id.startsWith("#")) {
|
|
9
|
+
d.id = id.replace(/^#/, "");
|
|
10
|
+
} else if (id.startsWith(".")) {
|
|
11
|
+
d.className = id.replace(/./g, " ");
|
|
12
|
+
}
|
|
13
|
+
document.body.appendChild(d);
|
|
14
|
+
return d;
|
|
15
|
+
} else {
|
|
16
|
+
return dom;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
getBoxDom
|
|
22
|
+
};
|
|
@@ -4,6 +4,7 @@ const buildProps = require("./buildProps.cjs");
|
|
|
4
4
|
const common = require("./common.cjs");
|
|
5
5
|
const definePropType = require("./definePropType.cjs");
|
|
6
6
|
const getAttrValue = require("./getAttrValue.cjs");
|
|
7
|
+
const getBoxDom = require("./getBoxDom.cjs");
|
|
7
8
|
const getBuildProps = require("./getBuildProps.cjs");
|
|
8
9
|
const withInstall = require("./withInstall.cjs");
|
|
9
10
|
const withInstallFunction = require("./withInstallFunction.cjs");
|
|
@@ -15,6 +16,7 @@ exports.setMinWidth = common.setMinWidth;
|
|
|
15
16
|
exports.setVueValue = common.setVueValue;
|
|
16
17
|
exports.definePropType = definePropType.definePropType;
|
|
17
18
|
exports.getAttrValue = getAttrValue.getAttrValue;
|
|
19
|
+
exports.getBoxDom = getBoxDom.getBoxDom;
|
|
18
20
|
exports.ObjConfig = getBuildProps.ObjConfig;
|
|
19
21
|
exports.epPropKey = getBuildProps.epPropKey;
|
|
20
22
|
exports.getBuildProps = getBuildProps.getBuildProps;
|
package/dist/utils/vues/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { buildProps } from "./buildProps.js";
|
|
|
2
2
|
import { eventAliass, setClass, setHide, setMinWidth, setVueValue } from "./common.js";
|
|
3
3
|
import { definePropType } from "./definePropType.js";
|
|
4
4
|
import { getAttrValue } from "./getAttrValue.js";
|
|
5
|
+
import { getBoxDom } from "./getBoxDom.js";
|
|
5
6
|
import { ObjConfig, epPropKey, getBuildProps } from "./getBuildProps.js";
|
|
6
7
|
import { withInstall } from "./withInstall.js";
|
|
7
8
|
import { withInstallFunction } from "./withInstallFunction.js";
|
|
@@ -12,6 +13,7 @@ export {
|
|
|
12
13
|
epPropKey,
|
|
13
14
|
eventAliass,
|
|
14
15
|
getAttrValue,
|
|
16
|
+
getBoxDom,
|
|
15
17
|
getBuildProps,
|
|
16
18
|
setClass,
|
|
17
19
|
setHide,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.28",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -24,41 +24,40 @@
|
|
|
24
24
|
"fangui": "bin/fang-ui.js"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@fangzhongya/utils": "0.0.
|
|
27
|
+
"@fangzhongya/utils": "0.0.48"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@fangzhongya/create": "0.2.41",
|
|
31
|
-
"@types/node": "^24.10.
|
|
31
|
+
"@types/node": "^24.10.1",
|
|
32
32
|
"@types/sortablejs": "1.15.9",
|
|
33
33
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
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.
|
|
37
|
+
"element-plus": "^2.11.8",
|
|
38
38
|
"fast-glob": "^3.3.3",
|
|
39
|
-
"sass": "^1.
|
|
39
|
+
"sass": "^1.94.1",
|
|
40
40
|
"sortablejs": "1.15.6",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
|
-
"tsup": "^8.5.
|
|
42
|
+
"tsup": "^8.5.1",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"unplugin-auto-import": "20.2.0",
|
|
45
45
|
"unplugin-dts": "1.0.0-beta.6",
|
|
46
46
|
"unplugin-vue-components": "30.0.0",
|
|
47
47
|
"vite": "^6.3.5",
|
|
48
48
|
"vitepress": "1.6.4",
|
|
49
|
-
"vitest": "^4.0.
|
|
49
|
+
"vitest": "^4.0.10",
|
|
50
50
|
"vue": "^3.5.24",
|
|
51
|
-
"vue-tsc": "^3.1.
|
|
52
|
-
"
|
|
53
|
-
"vxe-table": "4.17.13",
|
|
54
|
-
"@fang-ui/directives": "0.0.1-0",
|
|
51
|
+
"vue-tsc": "^3.1.4",
|
|
52
|
+
"vxe-table": "4.6.20",
|
|
55
53
|
"@fang-ui/components": "0.0.1-0",
|
|
56
|
-
"@fang-ui/icons": "0.0.1-0",
|
|
57
54
|
"@fang-ui/hooks": "0.0.1-0",
|
|
58
|
-
"@fang-ui/theme": "0.0.1-0",
|
|
59
|
-
"@fang-ui/utils": "0.0.1-0",
|
|
60
55
|
"@fang-ui/locale": "0.0.1-0",
|
|
61
|
-
"@fang-ui/
|
|
56
|
+
"@fang-ui/directives": "0.0.1-0",
|
|
57
|
+
"@fang-ui/icons": "0.0.1-0",
|
|
58
|
+
"@fang-ui/theme": "0.0.1-0",
|
|
59
|
+
"@fang-ui/types": "0.0.1-0",
|
|
60
|
+
"@fang-ui/utils": "0.0.1-0"
|
|
62
61
|
},
|
|
63
62
|
"main": "./dist/index.cjs",
|
|
64
63
|
"module": "./dist/index.js",
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
require("../../utils/index.cjs");
|
|
5
|
-
const index$m = require("../array/index.cjs");
|
|
6
|
-
const index$l = require("../checks/index.cjs");
|
|
7
|
-
const index$j = require("../dates/index.cjs");
|
|
8
|
-
const index$k = require("../selects/index.cjs");
|
|
9
|
-
const index$i = require("../inputs/index.cjs");
|
|
10
|
-
const index$h = require("../labels/index.cjs");
|
|
11
|
-
const index$g = require("../switchs/index.cjs");
|
|
12
|
-
const index$f = require("../buttons/index.cjs");
|
|
13
|
-
const index$e = require("../dates-divide/index.cjs");
|
|
14
|
-
const index$d = require("../dates-picker/index.cjs");
|
|
15
|
-
const index$c = require("../edit-float/index.cjs");
|
|
16
|
-
const index$b = require("../edit/index.cjs");
|
|
17
|
-
const index$a = require("../history/index.cjs");
|
|
18
|
-
const index$9 = require("../images/index.cjs");
|
|
19
|
-
const index$8 = require("../input-array/index.cjs");
|
|
20
|
-
const index$7 = require("../input-history/index.cjs");
|
|
21
|
-
const index$6 = require("../input-select/index.cjs");
|
|
22
|
-
const index$5 = require("../select-scroll/index.cjs");
|
|
23
|
-
const index$4 = require("../selector/index.cjs");
|
|
24
|
-
const index$3 = require("../cascaders/index.cjs");
|
|
25
|
-
const index$2 = require("../input-num/index.cjs");
|
|
26
|
-
const index$1 = require("../texts/index.cjs");
|
|
27
|
-
const index = require("../uploads/index.cjs");
|
|
28
|
-
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
29
|
-
const components = {
|
|
30
|
-
Array: index$m.Array,
|
|
31
|
-
Check: index$l.Checks,
|
|
32
|
-
Select: index$k.Selects,
|
|
33
|
-
Date: index$j.Dates,
|
|
34
|
-
Input: index$i.Inputs,
|
|
35
|
-
Labels: index$h.Labels,
|
|
36
|
-
Switch: index$g.Switchs,
|
|
37
|
-
Buttons: index$f.Buttons,
|
|
38
|
-
DateDivide: index$e.DatesDivide,
|
|
39
|
-
DatePicker: index$d.DatesPicker,
|
|
40
|
-
EditFloat: index$c.EditFloat,
|
|
41
|
-
Edit: index$b.Edit,
|
|
42
|
-
History: index$a.History,
|
|
43
|
-
Images: index$9.Images,
|
|
44
|
-
InputArray: index$8.InputArray,
|
|
45
|
-
InputHistory: index$7.InputHistory,
|
|
46
|
-
InputSelect: index$6.InputSelect,
|
|
47
|
-
SelectScroll: index$5.SelectScroll,
|
|
48
|
-
Selector: index$4.Selector,
|
|
49
|
-
Cascader: index$3.Cascaders,
|
|
50
|
-
InputNum: index$2.InputNum,
|
|
51
|
-
Text: index$1.Texts,
|
|
52
|
-
Upload: index.Uploads
|
|
53
|
-
};
|
|
54
|
-
function getCompons(...arrs) {
|
|
55
|
-
const coms = { ...components };
|
|
56
|
-
arrs.forEach((obj) => {
|
|
57
|
-
Object.keys(obj).forEach((key) => {
|
|
58
|
-
const tkey = lineToLargeHump.lineToLargeHump(key);
|
|
59
|
-
coms[tkey] = obj[key];
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
return coms;
|
|
63
|
-
}
|
|
64
|
-
const comKey = "com-compons";
|
|
65
|
-
function useCompons(key, ...arrs) {
|
|
66
|
-
const tfcom = getCompons(...arrs);
|
|
67
|
-
vue.provide(key || comKey, tfcom);
|
|
68
|
-
return tfcom;
|
|
69
|
-
}
|
|
70
|
-
function useGetCompons(key, value = {}) {
|
|
71
|
-
return vue.inject(key || comKey, value);
|
|
72
|
-
}
|
|
73
|
-
exports.components = components;
|
|
74
|
-
exports.getCompons = getCompons;
|
|
75
|
-
exports.useCompons = useCompons;
|
|
76
|
-
exports.useGetCompons = useGetCompons;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
2
|
-
type Compons = {
|
|
3
|
-
[key: string]: Component;
|
|
4
|
-
};
|
|
5
|
-
export declare const components: Compons;
|
|
6
|
-
export declare function getCompons(...arrs: Compons[]): Compons;
|
|
7
|
-
export declare function useCompons(key: string, ...arrs: Compons[]): Compons;
|
|
8
|
-
export declare function useGetCompons(key: string, value?: Compons): Compons;
|
|
9
|
-
export {};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { provide, inject } from "vue";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
|
-
import { Array } from "../array/index.js";
|
|
4
|
-
import { Checks } from "../checks/index.js";
|
|
5
|
-
import { Dates } from "../dates/index.js";
|
|
6
|
-
import { Selects } from "../selects/index.js";
|
|
7
|
-
import { Inputs } from "../inputs/index.js";
|
|
8
|
-
import { Labels } from "../labels/index.js";
|
|
9
|
-
import { Switchs } from "../switchs/index.js";
|
|
10
|
-
import { Buttons } from "../buttons/index.js";
|
|
11
|
-
import { DatesDivide } from "../dates-divide/index.js";
|
|
12
|
-
import { DatesPicker } from "../dates-picker/index.js";
|
|
13
|
-
import { EditFloat } from "../edit-float/index.js";
|
|
14
|
-
import { Edit } from "../edit/index.js";
|
|
15
|
-
import { History } from "../history/index.js";
|
|
16
|
-
import { Images } from "../images/index.js";
|
|
17
|
-
import { InputArray } from "../input-array/index.js";
|
|
18
|
-
import { InputHistory } from "../input-history/index.js";
|
|
19
|
-
import { InputSelect } from "../input-select/index.js";
|
|
20
|
-
import { SelectScroll } from "../select-scroll/index.js";
|
|
21
|
-
import { Selector } from "../selector/index.js";
|
|
22
|
-
import { Cascaders } from "../cascaders/index.js";
|
|
23
|
-
import { InputNum } from "../input-num/index.js";
|
|
24
|
-
import { Texts } from "../texts/index.js";
|
|
25
|
-
import { Uploads } from "../uploads/index.js";
|
|
26
|
-
import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
27
|
-
const components = {
|
|
28
|
-
Array,
|
|
29
|
-
Check: Checks,
|
|
30
|
-
Select: Selects,
|
|
31
|
-
Date: Dates,
|
|
32
|
-
Input: Inputs,
|
|
33
|
-
Labels,
|
|
34
|
-
Switch: Switchs,
|
|
35
|
-
Buttons,
|
|
36
|
-
DateDivide: DatesDivide,
|
|
37
|
-
DatePicker: DatesPicker,
|
|
38
|
-
EditFloat,
|
|
39
|
-
Edit,
|
|
40
|
-
History,
|
|
41
|
-
Images,
|
|
42
|
-
InputArray,
|
|
43
|
-
InputHistory,
|
|
44
|
-
InputSelect,
|
|
45
|
-
SelectScroll,
|
|
46
|
-
Selector,
|
|
47
|
-
Cascader: Cascaders,
|
|
48
|
-
InputNum,
|
|
49
|
-
Text: Texts,
|
|
50
|
-
Upload: Uploads
|
|
51
|
-
};
|
|
52
|
-
function getCompons(...arrs) {
|
|
53
|
-
const coms = { ...components };
|
|
54
|
-
arrs.forEach((obj) => {
|
|
55
|
-
Object.keys(obj).forEach((key) => {
|
|
56
|
-
const tkey = lineToLargeHump(key);
|
|
57
|
-
coms[tkey] = obj[key];
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
return coms;
|
|
61
|
-
}
|
|
62
|
-
const comKey = "com-compons";
|
|
63
|
-
function useCompons(key, ...arrs) {
|
|
64
|
-
const tfcom = getCompons(...arrs);
|
|
65
|
-
provide(key || comKey, tfcom);
|
|
66
|
-
return tfcom;
|
|
67
|
-
}
|
|
68
|
-
function useGetCompons(key, value = {}) {
|
|
69
|
-
return inject(key || comKey, value);
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
components,
|
|
73
|
-
getCompons,
|
|
74
|
-
useCompons,
|
|
75
|
-
useGetCompons
|
|
76
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@use '../array/index.scss' as *;
|
|
2
|
-
@use '../checks/index.scss' as *;
|
|
3
|
-
@use '../dates/index.scss' as *;
|
|
4
|
-
@use '../selects/index.scss' as *;
|
|
5
|
-
@use '../inputs/index.scss' as *;
|
|
6
|
-
@use '../labels/index.scss' as *;
|
|
7
|
-
@use '../switchs/index.scss' as *;
|
|
8
|
-
|
|
9
|
-
@use '../buttons/index.scss' as *;
|
|
10
|
-
@use '../dates-divide/index.scss' as *;
|
|
11
|
-
@use '../dates-picker/index.scss' as *;
|
|
12
|
-
@use '../edit-float/index.scss' as *;
|
|
13
|
-
@use '../edit/index.scss' as *;
|
|
14
|
-
@use '../history/index.scss' as *;
|
|
15
|
-
@use '../images/index.scss' as *;
|
|
16
|
-
@use '../input-array/index.scss' as *;
|
|
17
|
-
@use '../input-history/index.scss' as *;
|
|
18
|
-
@use '../input-select/index.scss' as *;
|
|
19
|
-
@use '../select-scroll/index.scss' as *;
|
|
20
|
-
@use '../selector/index.scss' as *;
|
|
21
|
-
|
|
22
|
-
@use '../cascaders/index.scss' as *;
|
|
23
|
-
@use '../input-num/index.scss' as *;
|
|
24
|
-
@use '../texts/index.scss' as *;
|
|
25
|
-
|
|
26
|
-
@use '../uploads/index.scss' as *;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@use '../array/style/index2.scss' as *;
|
|
2
|
-
@use '../checks/style/index2.scss' as *;
|
|
3
|
-
@use '../dates/style/index2.scss' as *;
|
|
4
|
-
@use '../selects/style/index2.scss' as *;
|
|
5
|
-
@use '../inputs/style/index2.scss' as *;
|
|
6
|
-
@use '../labels/style/index2.scss' as *;
|
|
7
|
-
@use '../switchs/style/index2.scss' as *;
|
|
8
|
-
|
|
9
|
-
@use '../buttons/style/index2.scss' as *;
|
|
10
|
-
@use '../dates-divide/style/index2.scss' as *;
|
|
11
|
-
@use '../dates-picker/style/index2.scss' as *;
|
|
12
|
-
@use '../edit-float/style/index2.scss' as *;
|
|
13
|
-
@use '../edit/style/index2.scss' as *;
|
|
14
|
-
@use '../history/style/index2.scss' as *;
|
|
15
|
-
@use '../images/style/index2.scss' as *;
|
|
16
|
-
@use '../input-array/style/index2.scss' as *;
|
|
17
|
-
@use '../input-history/style/index2.scss' as *;
|
|
18
|
-
@use '../input-select/style/index2.scss' as *;
|
|
19
|
-
@use '../select-scroll/style/index2.scss' as *;
|
|
20
|
-
@use '../selector/style/index2.scss' as *;
|
|
21
|
-
|
|
22
|
-
@use '../cascaders/style/index2.scss' as *;
|
|
23
|
-
@use '../input-num/style/index2.scss' as *;
|
|
24
|
-
@use '../texts/style/index2.scss' as *;
|
|
25
|
-
|
|
26
|
-
@use '../uploads/style/index2.scss' as *;
|