@skyfox2000/webui 1.2.11 → 1.2.12
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/.vscode/settings.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"explorer.fileNesting.patterns": {
|
|
6
6
|
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
|
7
7
|
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
|
|
8
|
-
"package.json": "index.html,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitignore,.gitattributes,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,.env.*,env.d.ts,.prettierrc,.eslintrc.js,*.md,.cursorignore",
|
|
8
|
+
"package.json": "index.html,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitignore,.gitattributes,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,.env.*,env.d.ts,.prettierrc,.eslintrc.js,*.md,.cursorignore,.npmignore",
|
|
9
9
|
"vite.config.ts": "tsconfig.*.json,postcss.config.ts,tailwind.config.ts,tsconfig.json"
|
|
10
10
|
},
|
|
11
11
|
"editor.formatOnSave": true,
|
package/lib/webui.es.js
CHANGED
|
@@ -577,7 +577,7 @@ const Ka = async (s, a, e) => {
|
|
|
577
577
|
nextLine: { type: Boolean }
|
|
578
578
|
},
|
|
579
579
|
setup(s) {
|
|
580
|
-
const a = s, e = Q(), t = oe(V.EditorControl, void 0), n = oe(V.LabelWidth, "85px"), i = Ee(a, t), f = b(!1);
|
|
580
|
+
const a = s, e = Q(), t = oe(V.EditorControl, void 0), n = oe(V.LabelWidth, "85px") ?? "85px", i = Ee(a, t), f = b(!1);
|
|
581
581
|
setTimeout(() => {
|
|
582
582
|
f.value = !0;
|
|
583
583
|
}, 30);
|
|
@@ -634,7 +634,7 @@ const Ka = async (s, a, e) => {
|
|
|
634
634
|
], 2)) : k("", !0),
|
|
635
635
|
l(i).errClass ? (m(), w("span", {
|
|
636
636
|
key: 2,
|
|
637
|
-
style: ce({ left: l(n) }),
|
|
637
|
+
style: ce({ left: o.nextLine ? "2px" : l(n) }),
|
|
638
638
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
639
639
|
}, F(l(i).msg), 5)) : k("", !0)
|
|
640
640
|
]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyfox2000/webui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "后台前端通用组件定义",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
+
"@json2csv/plainjs": "^7.0.6",
|
|
34
35
|
"@skyfox2000/fapi": "^1.1.19",
|
|
35
36
|
"@skyfox2000/microbase": "^1.2.1",
|
|
36
37
|
"@vue-office/excel": "^1.7.14",
|
|
37
|
-
"@json2csv/plainjs": "^7.0.6",
|
|
38
|
-
"async-validator": "^4.2.5",
|
|
39
|
-
"exceljs": "^4.4.0",
|
|
40
38
|
"ace-builds": "^1.42.0",
|
|
41
39
|
"ant-design-vue": "^4.2.6",
|
|
40
|
+
"async-validator": "^4.2.5",
|
|
42
41
|
"dayjs": "^1.11.13",
|
|
42
|
+
"exceljs": "^4.4.0",
|
|
43
43
|
"pinia": "^2.3.0",
|
|
44
44
|
"pinia-plugin-persistedstate": "^4.2.0",
|
|
45
45
|
"vue": "^3.5.16",
|
|
@@ -35,7 +35,7 @@ defineOptions({
|
|
|
35
35
|
const attrs = useAttrs(); // 手动获取 $attrs
|
|
36
36
|
|
|
37
37
|
const editorCtrl = inject(ProviderKeys.EditorControl, undefined) as EditorControl<AnyData> | undefined;
|
|
38
|
-
const labelWidth = inject(ProviderKeys.LabelWidth, '85px');
|
|
38
|
+
const labelWidth = inject(ProviderKeys.LabelWidth, '85px') ?? '85px';
|
|
39
39
|
const errInfo = useFormItemFactory(props, editorCtrl);
|
|
40
40
|
|
|
41
41
|
const visible = ref(false);
|
|
@@ -117,7 +117,7 @@ const required = computed(() => {
|
|
|
117
117
|
<slot></slot>
|
|
118
118
|
</div>
|
|
119
119
|
<span
|
|
120
|
-
:style="{ left: labelWidth }"
|
|
120
|
+
:style="{ left: nextLine ? '2px' : labelWidth }"
|
|
121
121
|
class="absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
122
122
|
v-if="errInfo.errClass"
|
|
123
123
|
>
|