@archbiz/element-ui 0.1.0 → 0.1.1
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/element-ui.cjs +2 -3
- package/dist/element-ui.js +1648 -1652
- package/package.json +6 -6
- package/src/components/ab-toolbar/ab-toolbar.vue +5 -2
- package/src/core/form-render.js +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbiz/element-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Archbiz adapter for Vue 2 and Element UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"element-ui": "2.15.14",
|
|
38
38
|
"vue": "2.6.12",
|
|
39
|
-
"vue-router": "3.
|
|
40
|
-
"vxe-table": "3.
|
|
39
|
+
"vue-router": "3.0.2",
|
|
40
|
+
"vxe-table": "3.7.9"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@purge-icons/generated": "^0.10.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"vite": "^4.5.0",
|
|
46
46
|
"vite-plugin-vue2": "^2.0.3",
|
|
47
47
|
"vue": "2.6.12",
|
|
48
|
-
"vue-router": "3.
|
|
48
|
+
"vue-router": "3.0.2",
|
|
49
49
|
"vue-template-compiler": "2.6.12",
|
|
50
|
-
"vxe-table": "3.
|
|
50
|
+
"vxe-table": "3.7.9"
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|
|
@@ -84,8 +84,11 @@ export default {
|
|
|
84
84
|
size: this.vxeCurrentSize,
|
|
85
85
|
loading: this.loading,
|
|
86
86
|
export: this.exportEnable,
|
|
87
|
-
refresh: this.refreshEnable
|
|
88
|
-
|
|
87
|
+
refresh: this.refreshEnable
|
|
88
|
+
? this.refreshHandler
|
|
89
|
+
? { query: this.refreshHandler }
|
|
90
|
+
: true
|
|
91
|
+
: false,
|
|
89
92
|
custom: !!this.settingEnable,
|
|
90
93
|
vertical: this.vertical
|
|
91
94
|
},
|
package/src/core/form-render.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { isFunction, preventDefault, toString, isString, isType } from "@archbiz/utils";
|
|
2
2
|
import { BaseForm } from "@archbiz/core-v2";
|
|
3
|
-
import
|
|
3
|
+
import "../style/index.css";
|
|
4
4
|
import { resolveRuleFormatter } from "../rule/formatter.js";
|
|
5
5
|
import { isRouterLinkConfig } from "../utils/router-link.js";
|
|
6
6
|
import AbRouterLink from "../components/ab-router-link.vue";
|
|
7
7
|
|
|
8
|
-
const styleClass = style || {};
|
|
9
8
|
const upperCaseReg = /[A-Z]/;
|
|
10
9
|
|
|
11
10
|
const injectTypes = new Set(["select", "treeselect", "radio", "checkbox", "inputrange", "timeperiod", "tree", "upload", "uploadfile", "frame"]);
|
|
@@ -179,10 +178,7 @@ export default class Form extends BaseForm {
|
|
|
179
178
|
|
|
180
179
|
makeCol(col, parser, fItemUnique, VNodeFn) {
|
|
181
180
|
if (col.span === undefined) col.span = 24;
|
|
182
|
-
const cls = {
|
|
183
|
-
[styleClass.__fc_h]: !!parser.rule.hidden,
|
|
184
|
-
[styleClass.__fc_v]: !!parser.rule.visibility,
|
|
185
|
-
};
|
|
181
|
+
const cls = {};
|
|
186
182
|
if (col.class) cls[col.class] = true;
|
|
187
183
|
return this.vNode.col(
|
|
188
184
|
{
|