next-element-vue 0.5.6 → 0.5.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/index.css +1 -1
- package/dist/index.js +51 -24
- package/dist/index.min.js +3 -3
- package/dist/index.umd.js +51 -24
- package/dist/index.umd.min.js +3 -3
- package/dist/packages/components/layout/src/config.d.ts +1 -0
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 作 者:huangteng
|
|
4
4
|
* 邮 箱:htengweb@163.com
|
|
5
|
-
* 当前版本:0.5.
|
|
6
|
-
* 发布日期:2025-
|
|
5
|
+
* 当前版本:0.5.7 v
|
|
6
|
+
* 发布日期:2025-04-10
|
|
7
7
|
* 地 址:https://www.npmjs.com/package/next-element-vue
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -1148,6 +1148,7 @@
|
|
|
1148
1148
|
themeColor: "#c71585",
|
|
1149
1149
|
headerBarColor: "#282c34",
|
|
1150
1150
|
headerBarFontColor: "#FFFFFF",
|
|
1151
|
+
headerBarFontActiveColor: "#c71585",
|
|
1151
1152
|
isHeaderBarColorGradual: !1,
|
|
1152
1153
|
asidebarColor: "#282c34",
|
|
1153
1154
|
asidebarFontColor: "#ffffff",
|
|
@@ -1587,6 +1588,18 @@
|
|
|
1587
1588
|
class: _ns.b("config-bar-item")
|
|
1588
1589
|
}, [ vue.createVNode("span", {
|
|
1589
1590
|
class: _ns.be("config-bar-item", "label")
|
|
1591
|
+
}, [ vue.createTextVNode("顶栏激活字体颜色") ]), vue.createVNode("div", {
|
|
1592
|
+
class: _ns.be("config-bar-item", "value")
|
|
1593
|
+
}, [ vue.createVNode(elementPlus.ElColorPicker, {
|
|
1594
|
+
modelValue: settingConfig.headerBarFontActiveColor,
|
|
1595
|
+
"onUpdate:modelValue": $event => settingConfig.headerBarFontActiveColor = $event,
|
|
1596
|
+
predefine: [ "#282c34", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "#FB07A0" ],
|
|
1597
|
+
"show-alpha": !0,
|
|
1598
|
+
onChange: color => _onChangeColor(color, "headerBarFontActiveColor", "--next-layout-active-color")
|
|
1599
|
+
}, null) ]) ]), vue.createVNode("div", {
|
|
1600
|
+
class: _ns.b("config-bar-item")
|
|
1601
|
+
}, [ vue.createVNode("span", {
|
|
1602
|
+
class: _ns.be("config-bar-item", "label")
|
|
1590
1603
|
}, [ vue.createTextVNode("顶栏背景渐变") ]), vue.createVNode("div", {
|
|
1591
1604
|
class: _ns.be("config-bar-item", "value")
|
|
1592
1605
|
}, [ vue.createVNode(vue.resolveComponent("el-switch"), {
|
|
@@ -3946,6 +3959,7 @@
|
|
|
3946
3959
|
const item = dicData.find((o => o[_dicKey] == value));
|
|
3947
3960
|
return item ? item[_dicLabel] : value;
|
|
3948
3961
|
}, renderCustomItem = (row, $index) => {
|
|
3962
|
+
const prop = columnOption.prop, _prop = prop?.replace(/\./g, "-");
|
|
3949
3963
|
if (columnOption.children?.length > 0) return vue.createVNode(vue.Fragment, null, [ columnOption.children.map((column => {
|
|
3950
3964
|
return vue.createVNode(TableColumnDynamic, {
|
|
3951
3965
|
columnOption: column
|
|
@@ -3954,7 +3968,7 @@
|
|
|
3954
3968
|
});
|
|
3955
3969
|
var s;
|
|
3956
3970
|
})) ]);
|
|
3957
|
-
if (slots[columnSlotName(
|
|
3971
|
+
if (slots[columnSlotName(_prop)]) return slots[columnSlotName(_prop)]({
|
|
3958
3972
|
row: row,
|
|
3959
3973
|
index: $index,
|
|
3960
3974
|
column: columnOption
|
|
@@ -3973,9 +3987,9 @@
|
|
|
3973
3987
|
temp.push(item);
|
|
3974
3988
|
})), temp;
|
|
3975
3989
|
}, mergeDicData = loopDicData(columnOption.dicData);
|
|
3976
|
-
return vue.createVNode("span", null, [ _formatterColumnValue(row[
|
|
3990
|
+
return vue.createVNode("span", null, [ _formatterColumnValue(row[prop], mergeDicData) ]);
|
|
3977
3991
|
}
|
|
3978
|
-
return columnOption.cellUnit ? vue.createVNode(vue.Fragment, null, [ vue.createVNode("span", null, [ row[
|
|
3992
|
+
return columnOption.cellUnit ? vue.createVNode(vue.Fragment, null, [ vue.createVNode("span", null, [ row[prop] ]), vue.createVNode("em", {
|
|
3979
3993
|
class: "cell-unit"
|
|
3980
3994
|
}, [ columnOption.cellUnit ]) ]) : columnOption.renderColumnCell ? columnOption.renderColumnCell({
|
|
3981
3995
|
row: row,
|
|
@@ -4384,7 +4398,7 @@
|
|
|
4384
4398
|
}
|
|
4385
4399
|
},
|
|
4386
4400
|
emits: [ "select" ],
|
|
4387
|
-
setup(props, {emit: emit}) {
|
|
4401
|
+
setup(props, {emit: emit, slots: slots}) {
|
|
4388
4402
|
const {t: t} = useLocale(), _disabled = props.disabled, _closable = props.closable, _column = props.column, _placeholder = _column.placeholder || t("next.form.select") + _column.label, _tableDefaultConfig = deepClone(defaultConfig$4), _tableSelectConfig = deepClone(tableSelectConfig), _options = merge(_tableDefaultConfig, _tableSelectConfig, _column.tableSelect), {value: propsValue, label: propsLabel} = _column.tableSelectProps || {
|
|
4389
4403
|
value: "id",
|
|
4390
4404
|
label: "name"
|
|
@@ -4535,7 +4549,8 @@
|
|
|
4535
4549
|
align: _options.cellAlign
|
|
4536
4550
|
}, {
|
|
4537
4551
|
default: ({row: row}) => renderSelectTypeContent(row)
|
|
4538
|
-
}) ]
|
|
4552
|
+
}) ],
|
|
4553
|
+
...slots
|
|
4539
4554
|
}) ]
|
|
4540
4555
|
}) : vue.createVNode(elementPlus.ElRadioGroup, {
|
|
4541
4556
|
modelValue: _sinleSelection.value
|
|
@@ -4556,7 +4571,8 @@
|
|
|
4556
4571
|
align: _options.cellAlign
|
|
4557
4572
|
}, {
|
|
4558
4573
|
default: ({row: row}) => renderSelectTypeContent(row)
|
|
4559
|
-
}) ]
|
|
4574
|
+
}) ],
|
|
4575
|
+
...slots
|
|
4560
4576
|
}) ]
|
|
4561
4577
|
}) ]), vue.createVNode("div", {
|
|
4562
4578
|
class: ns$a.em("input-table", "footer")
|
|
@@ -5183,7 +5199,7 @@
|
|
|
5183
5199
|
shortcuts: col.shortcuts || _defaultShortcuts
|
|
5184
5200
|
}, null);
|
|
5185
5201
|
}
|
|
5186
|
-
|
|
5202
|
+
if ("numberRange" === col.type) return vue.createVNode(NumberRangePicker, {
|
|
5187
5203
|
modelValue: formParams[col.prop],
|
|
5188
5204
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5189
5205
|
disabled: col.disabled,
|
|
@@ -5192,19 +5208,30 @@
|
|
|
5192
5208
|
void (formParams[key] = Number(value));
|
|
5193
5209
|
var value, key;
|
|
5194
5210
|
}
|
|
5195
|
-
}, null)
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
formParams[col.prop] =
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5211
|
+
}, null);
|
|
5212
|
+
if ("inputTableSelect" === col.type) {
|
|
5213
|
+
const _slots = {};
|
|
5214
|
+
for (const key in col.tableSelect.slots) _slots[key] = () => col.tableSelect.slots[key]?.({
|
|
5215
|
+
column: col,
|
|
5216
|
+
formParams: formParams
|
|
5217
|
+
});
|
|
5218
|
+
return vue.createVNode(InputTableSelect, {
|
|
5219
|
+
modelValue: formParams[col.prop],
|
|
5220
|
+
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5221
|
+
formParams: formParams,
|
|
5222
|
+
column: col,
|
|
5223
|
+
disabled: valueExist(col.disabled, !1),
|
|
5224
|
+
onSelect: rows => ((rows, col) => {
|
|
5225
|
+
rows && (col.tableSelectRows = rows);
|
|
5226
|
+
const {value: value} = col.tableSelectProps || {};
|
|
5227
|
+
formParams[col.prop] = rows.map((row => row[value || "value"])), col.onTableSelect?.(formParams, rows, col),
|
|
5228
|
+
ruleFormRef.value?.validateField(col.prop);
|
|
5229
|
+
})(rows, col)
|
|
5230
|
+
}, _isSlot$2(_slots) ? _slots : {
|
|
5231
|
+
default: () => [ _slots ]
|
|
5232
|
+
});
|
|
5233
|
+
}
|
|
5234
|
+
return "uploadImage" === col.type ? vue.createVNode(UploadImage, {
|
|
5208
5235
|
modelValue: formParams[col.prop],
|
|
5209
5236
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5210
5237
|
disabled: valueExist(col.disabled, !1),
|
|
@@ -8270,7 +8297,7 @@
|
|
|
8270
8297
|
})(app);
|
|
8271
8298
|
};
|
|
8272
8299
|
var index = {
|
|
8273
|
-
version: "0.5.
|
|
8300
|
+
version: "0.5.7",
|
|
8274
8301
|
install: install
|
|
8275
8302
|
};
|
|
8276
8303
|
exports.NextCarousel = NextCarousel, exports.NextContainer = NextContainer, exports.NextCrudTable = NextCrudTable,
|
|
@@ -8318,7 +8345,7 @@
|
|
|
8318
8345
|
}), exports.useGetDerivedNamespace = useGetDerivedNamespace, exports.useLanguage = (locale, lang) => {
|
|
8319
8346
|
const localeRef = vue.isRef(locale) ? locale : vue.ref(locale), nextLang = localeLang[lang] || localeLang["zh-cn"];
|
|
8320
8347
|
localeRef.value.name = lang, localeRef.value.next = nextLang.next;
|
|
8321
|
-
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.5.
|
|
8348
|
+
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.5.7",
|
|
8322
8349
|
Object.defineProperty(exports, "__esModule", {
|
|
8323
8350
|
value: !0
|
|
8324
8351
|
});
|