tenghui-ui 1.2.4 → 1.2.7
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/tenghui-ui.es.js
CHANGED
|
@@ -7719,7 +7719,44 @@ const components = [
|
|
|
7719
7719
|
];
|
|
7720
7720
|
const install = (Vue2, ops = { config: {} }) => {
|
|
7721
7721
|
components.forEach((component) => Vue2.component(component.name, component));
|
|
7722
|
-
|
|
7722
|
+
const UIDefaultConfig = {
|
|
7723
|
+
tablePreset: {
|
|
7724
|
+
separator: "@",
|
|
7725
|
+
presetPropMap: {
|
|
7726
|
+
image(row, { field, params }) {
|
|
7727
|
+
const src2 = row[field].split("|");
|
|
7728
|
+
const size = params.size || 59;
|
|
7729
|
+
return ["com-image", { attrs: { src: src2, size } }];
|
|
7730
|
+
},
|
|
7731
|
+
link(row, { field, params }) {
|
|
7732
|
+
const text = row[field];
|
|
7733
|
+
let { target: target2, href, type, underline } = params;
|
|
7734
|
+
target2 = target2 || "_blank";
|
|
7735
|
+
href = row[href] || text;
|
|
7736
|
+
type = type || "primary";
|
|
7737
|
+
underline = !!underline;
|
|
7738
|
+
return [
|
|
7739
|
+
"el-link",
|
|
7740
|
+
{
|
|
7741
|
+
attrs: {
|
|
7742
|
+
target: target2,
|
|
7743
|
+
href,
|
|
7744
|
+
type,
|
|
7745
|
+
underline
|
|
7746
|
+
}
|
|
7747
|
+
},
|
|
7748
|
+
text
|
|
7749
|
+
];
|
|
7750
|
+
}
|
|
7751
|
+
}
|
|
7752
|
+
},
|
|
7753
|
+
formItemConfig: {
|
|
7754
|
+
input: {
|
|
7755
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
7756
|
+
}
|
|
7757
|
+
}
|
|
7758
|
+
};
|
|
7759
|
+
Vue2.prototype.$UICONFIG = __spreadValues(__spreadValues({}, UIDefaultConfig), ops.config);
|
|
7723
7760
|
};
|
|
7724
7761
|
const defaultConfig = {
|
|
7725
7762
|
version: "dev",
|