next-element-vue 0.5.6 → 0.5.8
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 +58 -26
- package/dist/index.min.js +3 -3
- package/dist/index.umd.js +58 -26
- package/dist/index.umd.min.js +3 -3
- package/dist/packages/components/crud-table-virtualized/src/index.test.d.ts +1 -1
- 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.8 v
|
|
6
|
+
* 发布日期:2025-04-15
|
|
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: "",
|
|
1151
1152
|
isHeaderBarColorGradual: !1,
|
|
1152
1153
|
asidebarColor: "#282c34",
|
|
1153
1154
|
asidebarFontColor: "#ffffff",
|
|
@@ -1489,7 +1490,9 @@
|
|
|
1489
1490
|
render() {
|
|
1490
1491
|
const _slots = vue.inject("__slots__", {}), _ns = vue.inject("__ns__", {}), _config = vue.inject("options", {}), _updateOptions = vue.inject("updateOptions", null), settingConfig = vue.reactive({
|
|
1491
1492
|
..._config.setting
|
|
1492
|
-
})
|
|
1493
|
+
});
|
|
1494
|
+
settingConfig.headerBarFontActiveColor || (settingConfig.headerBarFontActiveColor = settingConfig.themeColor);
|
|
1495
|
+
const _changeUpdateOptions = () => {
|
|
1493
1496
|
const options = {
|
|
1494
1497
|
..._config,
|
|
1495
1498
|
setting: {
|
|
@@ -1587,6 +1590,18 @@
|
|
|
1587
1590
|
class: _ns.b("config-bar-item")
|
|
1588
1591
|
}, [ vue.createVNode("span", {
|
|
1589
1592
|
class: _ns.be("config-bar-item", "label")
|
|
1593
|
+
}, [ vue.createTextVNode("顶栏激活字体颜色") ]), vue.createVNode("div", {
|
|
1594
|
+
class: _ns.be("config-bar-item", "value")
|
|
1595
|
+
}, [ vue.createVNode(elementPlus.ElColorPicker, {
|
|
1596
|
+
modelValue: settingConfig.headerBarFontActiveColor,
|
|
1597
|
+
"onUpdate:modelValue": $event => settingConfig.headerBarFontActiveColor = $event,
|
|
1598
|
+
predefine: [ "#282c34", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "#FB07A0" ],
|
|
1599
|
+
"show-alpha": !0,
|
|
1600
|
+
onChange: color => _onChangeColor(color, "headerBarFontActiveColor", "--next-layout-active-color")
|
|
1601
|
+
}, null) ]) ]), vue.createVNode("div", {
|
|
1602
|
+
class: _ns.b("config-bar-item")
|
|
1603
|
+
}, [ vue.createVNode("span", {
|
|
1604
|
+
class: _ns.be("config-bar-item", "label")
|
|
1590
1605
|
}, [ vue.createTextVNode("顶栏背景渐变") ]), vue.createVNode("div", {
|
|
1591
1606
|
class: _ns.be("config-bar-item", "value")
|
|
1592
1607
|
}, [ vue.createVNode(vue.resolveComponent("el-switch"), {
|
|
@@ -3946,6 +3961,7 @@
|
|
|
3946
3961
|
const item = dicData.find((o => o[_dicKey] == value));
|
|
3947
3962
|
return item ? item[_dicLabel] : value;
|
|
3948
3963
|
}, renderCustomItem = (row, $index) => {
|
|
3964
|
+
const prop = columnOption.prop, _prop = prop?.replace(/\./g, "-");
|
|
3949
3965
|
if (columnOption.children?.length > 0) return vue.createVNode(vue.Fragment, null, [ columnOption.children.map((column => {
|
|
3950
3966
|
return vue.createVNode(TableColumnDynamic, {
|
|
3951
3967
|
columnOption: column
|
|
@@ -3954,7 +3970,7 @@
|
|
|
3954
3970
|
});
|
|
3955
3971
|
var s;
|
|
3956
3972
|
})) ]);
|
|
3957
|
-
if (slots[columnSlotName(
|
|
3973
|
+
if (slots[columnSlotName(_prop)]) return slots[columnSlotName(_prop)]({
|
|
3958
3974
|
row: row,
|
|
3959
3975
|
index: $index,
|
|
3960
3976
|
column: columnOption
|
|
@@ -3973,9 +3989,9 @@
|
|
|
3973
3989
|
temp.push(item);
|
|
3974
3990
|
})), temp;
|
|
3975
3991
|
}, mergeDicData = loopDicData(columnOption.dicData);
|
|
3976
|
-
return vue.createVNode("span", null, [ _formatterColumnValue(row[
|
|
3992
|
+
return vue.createVNode("span", null, [ _formatterColumnValue(row[prop], mergeDicData) ]);
|
|
3977
3993
|
}
|
|
3978
|
-
return columnOption.cellUnit ? vue.createVNode(vue.Fragment, null, [ vue.createVNode("span", null, [ row[
|
|
3994
|
+
return columnOption.cellUnit ? vue.createVNode(vue.Fragment, null, [ vue.createVNode("span", null, [ row[prop] ]), vue.createVNode("em", {
|
|
3979
3995
|
class: "cell-unit"
|
|
3980
3996
|
}, [ columnOption.cellUnit ]) ]) : columnOption.renderColumnCell ? columnOption.renderColumnCell({
|
|
3981
3997
|
row: row,
|
|
@@ -4384,7 +4400,7 @@
|
|
|
4384
4400
|
}
|
|
4385
4401
|
},
|
|
4386
4402
|
emits: [ "select" ],
|
|
4387
|
-
setup(props, {emit: emit}) {
|
|
4403
|
+
setup(props, {emit: emit, slots: slots}) {
|
|
4388
4404
|
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
4405
|
value: "id",
|
|
4390
4406
|
label: "name"
|
|
@@ -4535,7 +4551,8 @@
|
|
|
4535
4551
|
align: _options.cellAlign
|
|
4536
4552
|
}, {
|
|
4537
4553
|
default: ({row: row}) => renderSelectTypeContent(row)
|
|
4538
|
-
}) ]
|
|
4554
|
+
}) ],
|
|
4555
|
+
...slots
|
|
4539
4556
|
}) ]
|
|
4540
4557
|
}) : vue.createVNode(elementPlus.ElRadioGroup, {
|
|
4541
4558
|
modelValue: _sinleSelection.value
|
|
@@ -4556,7 +4573,8 @@
|
|
|
4556
4573
|
align: _options.cellAlign
|
|
4557
4574
|
}, {
|
|
4558
4575
|
default: ({row: row}) => renderSelectTypeContent(row)
|
|
4559
|
-
}) ]
|
|
4576
|
+
}) ],
|
|
4577
|
+
...slots
|
|
4560
4578
|
}) ]
|
|
4561
4579
|
}) ]), vue.createVNode("div", {
|
|
4562
4580
|
class: ns$a.em("input-table", "footer")
|
|
@@ -5183,7 +5201,7 @@
|
|
|
5183
5201
|
shortcuts: col.shortcuts || _defaultShortcuts
|
|
5184
5202
|
}, null);
|
|
5185
5203
|
}
|
|
5186
|
-
|
|
5204
|
+
if ("numberRange" === col.type) return vue.createVNode(NumberRangePicker, {
|
|
5187
5205
|
modelValue: formParams[col.prop],
|
|
5188
5206
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5189
5207
|
disabled: col.disabled,
|
|
@@ -5192,19 +5210,30 @@
|
|
|
5192
5210
|
void (formParams[key] = Number(value));
|
|
5193
5211
|
var value, key;
|
|
5194
5212
|
}
|
|
5195
|
-
}, null)
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
formParams[col.prop] =
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5213
|
+
}, null);
|
|
5214
|
+
if ("inputTableSelect" === col.type) {
|
|
5215
|
+
const _slots = {};
|
|
5216
|
+
for (const key in col.tableSelect.slots) _slots[key] = (...arg) => col.tableSelect.slots[key]?.({
|
|
5217
|
+
column: col,
|
|
5218
|
+
formParams: formParams
|
|
5219
|
+
}, ...arg);
|
|
5220
|
+
return vue.createVNode(InputTableSelect, {
|
|
5221
|
+
modelValue: formParams[col.prop],
|
|
5222
|
+
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5223
|
+
formParams: formParams,
|
|
5224
|
+
column: col,
|
|
5225
|
+
disabled: valueExist(col.disabled, !1),
|
|
5226
|
+
onSelect: rows => ((rows, col) => {
|
|
5227
|
+
rows && (col.tableSelectRows = rows);
|
|
5228
|
+
const {value: value} = col.tableSelectProps || {};
|
|
5229
|
+
formParams[col.prop] = rows.map((row => row[value || "value"])), col.onTableSelect?.(formParams, rows, col),
|
|
5230
|
+
ruleFormRef.value?.validateField(col.prop);
|
|
5231
|
+
})(rows, col)
|
|
5232
|
+
}, _isSlot$2(_slots) ? _slots : {
|
|
5233
|
+
default: () => [ _slots ]
|
|
5234
|
+
});
|
|
5235
|
+
}
|
|
5236
|
+
return "uploadImage" === col.type ? vue.createVNode(UploadImage, {
|
|
5208
5237
|
modelValue: formParams[col.prop],
|
|
5209
5238
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5210
5239
|
disabled: valueExist(col.disabled, !1),
|
|
@@ -5607,7 +5636,10 @@
|
|
|
5607
5636
|
updateColumns: ops => {
|
|
5608
5637
|
_updateColumnsAll(ops);
|
|
5609
5638
|
},
|
|
5610
|
-
getSearchFormParams: () => _searchFormParams.value
|
|
5639
|
+
getSearchFormParams: () => _searchFormParams.value,
|
|
5640
|
+
reloadData: () => {
|
|
5641
|
+
onClickRefresh();
|
|
5642
|
+
}
|
|
5611
5643
|
});
|
|
5612
5644
|
return () => vue.createVNode(vue.Fragment, null, [ vue.createVNode(vue.Fragment, null, [ vue.createVNode("div", {
|
|
5613
5645
|
ref: crudTableRef,
|
|
@@ -8270,7 +8302,7 @@
|
|
|
8270
8302
|
})(app);
|
|
8271
8303
|
};
|
|
8272
8304
|
var index = {
|
|
8273
|
-
version: "0.5.
|
|
8305
|
+
version: "0.5.8",
|
|
8274
8306
|
install: install
|
|
8275
8307
|
};
|
|
8276
8308
|
exports.NextCarousel = NextCarousel, exports.NextContainer = NextContainer, exports.NextCrudTable = NextCrudTable,
|
|
@@ -8318,7 +8350,7 @@
|
|
|
8318
8350
|
}), exports.useGetDerivedNamespace = useGetDerivedNamespace, exports.useLanguage = (locale, lang) => {
|
|
8319
8351
|
const localeRef = vue.isRef(locale) ? locale : vue.ref(locale), nextLang = localeLang[lang] || localeLang["zh-cn"];
|
|
8320
8352
|
localeRef.value.name = lang, localeRef.value.next = nextLang.next;
|
|
8321
|
-
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.5.
|
|
8353
|
+
}, exports.useLocale = useLocale, exports.useNamespace = useNamespace, exports.version = "0.5.8",
|
|
8322
8354
|
Object.defineProperty(exports, "__esModule", {
|
|
8323
8355
|
value: !0
|
|
8324
8356
|
});
|