@wlydfe/pro-ui 0.2.7 → 0.2.9
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/README.md +119 -119
- package/es/components/check-card/index.d.ts +4 -4
- package/es/components/check-card/src/index.vue.d.ts +1 -1
- package/es/components/check-card-group/index.d.ts +4 -4
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +11 -11
- package/es/components/date-picker/src/index.vue.d.ts +11 -11
- package/es/components/descriptions/index.d.ts +19 -19
- package/es/components/descriptions/src/index.vue.d.ts +1 -1
- package/es/components/dialog/index.d.ts +30 -30
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +6 -6
- package/es/components/dialog-form/src/index.vue.d.ts +3 -3
- package/es/components/display-item/index.d.ts +25 -25
- package/es/components/display-item/src/index.vue.d.ts +7 -7
- package/es/components/display-item/src/index.vue2.mjs +3 -0
- package/es/components/drawer-form/index.d.ts +36 -36
- package/es/components/drawer-form/src/index.vue.d.ts +5 -5
- package/es/components/form/index.d.ts +88 -88
- package/es/components/form/src/form-content.vue.d.ts +9 -9
- package/es/components/form/src/index.vue.d.ts +11 -11
- package/es/components/form/src/index.vue2.mjs +5 -5
- package/es/components/form-item/index.d.ts +84 -84
- package/es/components/form-item/src/index.vue.d.ts +16 -12
- package/es/components/input-tag/index.d.ts +6 -6
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +1039 -994
- package/es/components/page/src/index.vue.d.ts +361 -374
- package/es/components/page/src/index.vue2.mjs +10 -3
- package/es/components/pagination/index.d.ts +27 -27
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/popover/index.d.ts +49 -49
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/src/index.vue.d.ts +2 -2
- package/es/components/render/index.d.ts +14 -14
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +266 -266
- package/es/components/search/src/index.vue.d.ts +77 -77
- package/es/components/search/src/index.vue2.mjs +1 -1
- package/es/components/sidebar/index.d.ts +16 -16
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +183 -164
- package/es/components/table/src/index.vue.d.ts +16 -13
- package/es/components/table/src/index.vue2.mjs +4 -2
- package/es/components/table/src/table-action-bar.vue.d.ts +6 -2
- package/es/components/table/src/table-action-bar.vue2.mjs +3 -1
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
- package/es/components/table/src/table-column-index.vue.d.ts +1 -1
- package/es/components/table/src/table-column-index.vue2.mjs +1 -1
- package/es/components/table/src/table-column.vue.d.ts +25 -43
- package/es/components/table/src/table-column.vue2.mjs +8 -1
- package/es/components/table/src/table-title-bar.vue.d.ts +1 -1
- package/es/components/table/src/type.d.ts +2 -0
- package/es/index.css +8 -8
- package/global.d.ts +29 -29
- package/index.js +35 -14
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +35 -14
- package/lib/components/check-card/index.d.ts +4 -4
- package/lib/components/check-card/src/index.vue.d.ts +1 -1
- package/lib/components/check-card-group/index.d.ts +4 -4
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/date-picker/index.d.ts +11 -11
- package/lib/components/date-picker/src/index.vue.d.ts +11 -11
- package/lib/components/descriptions/index.d.ts +19 -19
- package/lib/components/descriptions/src/index.vue.d.ts +1 -1
- package/lib/components/dialog/index.d.ts +30 -30
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +6 -6
- package/lib/components/dialog-form/src/index.vue.d.ts +3 -3
- package/lib/components/display-item/index.d.ts +25 -25
- package/lib/components/display-item/src/index.vue.d.ts +7 -7
- package/lib/components/display-item/src/index.vue2.js +3 -0
- package/lib/components/drawer-form/index.d.ts +36 -36
- package/lib/components/drawer-form/src/index.vue.d.ts +5 -5
- package/lib/components/form/index.d.ts +88 -88
- package/lib/components/form/src/form-content.vue.d.ts +9 -9
- package/lib/components/form/src/index.vue.d.ts +11 -11
- package/lib/components/form/src/index.vue2.js +5 -5
- package/lib/components/form-item/index.d.ts +84 -84
- package/lib/components/form-item/src/index.vue.d.ts +16 -12
- package/lib/components/input-tag/index.d.ts +6 -6
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +1039 -994
- package/lib/components/page/src/index.vue.d.ts +361 -374
- package/lib/components/page/src/index.vue2.js +9 -2
- package/lib/components/pagination/index.d.ts +27 -27
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/popover/index.d.ts +49 -49
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/src/index.vue.d.ts +2 -2
- package/lib/components/render/index.d.ts +14 -14
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +266 -266
- package/lib/components/search/src/index.vue.d.ts +77 -77
- package/lib/components/search/src/index.vue2.js +1 -1
- package/lib/components/sidebar/index.d.ts +16 -16
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +183 -164
- package/lib/components/table/src/index.vue.d.ts +16 -13
- package/lib/components/table/src/index.vue2.js +4 -2
- package/lib/components/table/src/table-action-bar.vue.d.ts +6 -2
- package/lib/components/table/src/table-action-bar.vue2.js +3 -1
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
- package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
- package/lib/components/table/src/table-column-index.vue2.js +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +25 -43
- package/lib/components/table/src/table-column.vue2.js +8 -1
- package/lib/components/table/src/table-title-bar.vue.d.ts +1 -1
- package/lib/components/table/src/type.d.ts +2 -0
- package/lib/index.css +13 -13
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/src/breadcrumb.scss +9 -9
- package/theme-chalk/src/date-picker.scss +96 -96
- package/theme-chalk/src/descriptions.scss +41 -41
- package/theme-chalk/src/display-item.scss +82 -82
- package/theme-chalk/src/drawer-form.scss +16 -16
- package/theme-chalk/src/form.scss +34 -34
- package/theme-chalk/src/input-tag.scss +91 -91
- package/theme-chalk/src/layout.scss +36 -36
- package/theme-chalk/src/mixins/function.scss +73 -73
- package/theme-chalk/src/search.scss +49 -49
- package/theme-chalk/src/sidebar.scss +93 -93
- package/theme-chalk/src/table.scss +170 -170
- package/theme-chalk/src/var/index.scss +6 -6
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @wlydfe/pro-ui v0.2.
|
|
1
|
+
/*! @wlydfe/pro-ui v0.2.9 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
|
|
@@ -5107,7 +5107,9 @@
|
|
|
5107
5107
|
type: { default: "link" },
|
|
5108
5108
|
buttons: { default: () => [] },
|
|
5109
5109
|
width: { default: 200 },
|
|
5110
|
-
actionBarTableColumnProps: { default: () => ({
|
|
5110
|
+
actionBarTableColumnProps: { default: () => ({
|
|
5111
|
+
align: "center"
|
|
5112
|
+
}) },
|
|
5111
5113
|
confirmType: { default: "messageBox" }
|
|
5112
5114
|
},
|
|
5113
5115
|
emits: ["clickAction", "clickActionConfirmCancel"],
|
|
@@ -6664,7 +6666,7 @@
|
|
|
6664
6666
|
modelValue: { default: () => ({}) },
|
|
6665
6667
|
defaultValues: { default: () => ({}) },
|
|
6666
6668
|
columns: { default: () => [] },
|
|
6667
|
-
labelWidth: { default: "
|
|
6669
|
+
labelWidth: { default: "110px" },
|
|
6668
6670
|
labelPosition: { default: "left" },
|
|
6669
6671
|
rowProps: { default: () => ({}) },
|
|
6670
6672
|
colProps: { default: () => ({}) },
|
|
@@ -6786,7 +6788,7 @@
|
|
|
6786
6788
|
}), {
|
|
6787
6789
|
default: vue.withCtx(() => [
|
|
6788
6790
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
6789
|
-
vue.createCommentVNode("
|
|
6791
|
+
vue.createCommentVNode(" group form "),
|
|
6790
6792
|
subGroup.value ? (vue.openBlock(true), vue.createElementBlock(
|
|
6791
6793
|
vue.Fragment,
|
|
6792
6794
|
{ key: 0 },
|
|
@@ -6866,7 +6868,7 @@
|
|
|
6866
6868
|
vue.Fragment,
|
|
6867
6869
|
{ key: 1 },
|
|
6868
6870
|
[
|
|
6869
|
-
vue.createCommentVNode("
|
|
6871
|
+
vue.createCommentVNode(" normal form "),
|
|
6870
6872
|
vue.createVNode(PlusFormContent, {
|
|
6871
6873
|
modelValue: values.value,
|
|
6872
6874
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => values.value = $event),
|
|
@@ -6910,7 +6912,7 @@
|
|
|
6910
6912
|
onClick: handleReset
|
|
6911
6913
|
}, {
|
|
6912
6914
|
default: vue.withCtx(() => [
|
|
6913
|
-
vue.createCommentVNode("
|
|
6915
|
+
vue.createCommentVNode(" reset "),
|
|
6914
6916
|
vue.createTextVNode(
|
|
6915
6917
|
" " + vue.toDisplayString(_ctx.resetText || vue.unref(t)("plus.form.resetText")),
|
|
6916
6918
|
1
|
|
@@ -6926,7 +6928,7 @@
|
|
|
6926
6928
|
onClick: handleSubmit
|
|
6927
6929
|
}, {
|
|
6928
6930
|
default: vue.withCtx(() => [
|
|
6929
|
-
vue.createCommentVNode("
|
|
6931
|
+
vue.createCommentVNode(" submit "),
|
|
6930
6932
|
vue.createTextVNode(
|
|
6931
6933
|
" " + vue.toDisplayString(_ctx.submitText || vue.unref(t)("plus.form.submitText")),
|
|
6932
6934
|
1
|
|
@@ -7097,6 +7099,9 @@
|
|
|
7097
7099
|
);
|
|
7098
7100
|
}
|
|
7099
7101
|
}
|
|
7102
|
+
if (value === void 0 || value === null || value === "") {
|
|
7103
|
+
return "-";
|
|
7104
|
+
}
|
|
7100
7105
|
return value;
|
|
7101
7106
|
});
|
|
7102
7107
|
const modelValues = vue.computed({
|
|
@@ -7655,6 +7660,13 @@
|
|
|
7655
7660
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
7656
7661
|
const props = __props;
|
|
7657
7662
|
const emit = __emit;
|
|
7663
|
+
const getDefaultColumnProps = (item) => {
|
|
7664
|
+
return {
|
|
7665
|
+
align: "center",
|
|
7666
|
+
headerAlign: "center",
|
|
7667
|
+
...item.tableColumnProps
|
|
7668
|
+
};
|
|
7669
|
+
};
|
|
7658
7670
|
const plusDisplayItemInstance = vue.ref();
|
|
7659
7671
|
const formRefs = vue.inject(TableFormRefInjectionKey);
|
|
7660
7672
|
const setFormRef = () => {
|
|
@@ -7707,7 +7719,7 @@
|
|
|
7707
7719
|
key: getKey(item),
|
|
7708
7720
|
"class-name": "plus-table-column " + (hasPropsEditIcon.value ? "plus-table-column__edit" : ""),
|
|
7709
7721
|
index
|
|
7710
|
-
}, item
|
|
7722
|
+
}, getDefaultColumnProps(item), {
|
|
7711
7723
|
prop: item.prop,
|
|
7712
7724
|
width: item.width,
|
|
7713
7725
|
"min-width": item.minWidth
|
|
@@ -7880,7 +7892,7 @@
|
|
|
7880
7892
|
return (_ctx, _cache) => {
|
|
7881
7893
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTableColumn), vue.mergeProps({
|
|
7882
7894
|
key: "index",
|
|
7883
|
-
label: "
|
|
7895
|
+
label: "\u5E8F\u53F7",
|
|
7884
7896
|
fixed: "left",
|
|
7885
7897
|
type: "index",
|
|
7886
7898
|
"class-name": "plus-table-column-index",
|
|
@@ -11596,8 +11608,9 @@
|
|
|
11596
11608
|
defaultSize: { default: "default" },
|
|
11597
11609
|
pagination: { type: [Boolean, Object], default: false },
|
|
11598
11610
|
actionBar: { type: [Boolean, Object], default: false },
|
|
11599
|
-
hasIndexColumn: { type: Boolean, default:
|
|
11611
|
+
hasIndexColumn: { type: Boolean, default: true },
|
|
11600
11612
|
titleBar: { type: [Boolean, Object], default: true },
|
|
11613
|
+
showOverflowTooltip: { type: Boolean, default: true },
|
|
11601
11614
|
isSelection: { type: [Boolean, String], default: false },
|
|
11602
11615
|
isRadio: { type: Boolean, default: false },
|
|
11603
11616
|
hasExpand: { type: Boolean, default: false },
|
|
@@ -11859,6 +11872,7 @@
|
|
|
11859
11872
|
"header-cell-style": _ctx.headerCellStyle,
|
|
11860
11873
|
size: vue.unref(size),
|
|
11861
11874
|
"row-key": _ctx.rowKey,
|
|
11875
|
+
"show-overflow-tooltip": _ctx.showOverflowTooltip,
|
|
11862
11876
|
"highlight-current-row": "",
|
|
11863
11877
|
"scrollbar-always-on": ""
|
|
11864
11878
|
}, _ctx.$attrs, {
|
|
@@ -11998,7 +12012,7 @@
|
|
|
11998
12012
|
]),
|
|
11999
12013
|
_: 3
|
|
12000
12014
|
/* FORWARDED */
|
|
12001
|
-
}, 16, ["data", "height", "header-cell-style", "size", "row-key"])), [
|
|
12015
|
+
}, 16, ["data", "height", "header-cell-style", "size", "row-key", "show-overflow-tooltip"])), [
|
|
12002
12016
|
[vue.unref(elementPlus.vLoading), _ctx.loadingStatus]
|
|
12003
12017
|
]),
|
|
12004
12018
|
vue.createCommentVNode(" \u5206\u9875 "),
|
|
@@ -12263,7 +12277,7 @@
|
|
|
12263
12277
|
hasFooter: { type: Boolean, default: true },
|
|
12264
12278
|
hasReset: { type: Boolean, default: true },
|
|
12265
12279
|
hasUnfold: { type: Boolean, default: true },
|
|
12266
|
-
defaultUnfold: { type: Boolean, default:
|
|
12280
|
+
defaultUnfold: { type: Boolean, default: true },
|
|
12267
12281
|
searchText: { default: "" },
|
|
12268
12282
|
resetText: { default: "" },
|
|
12269
12283
|
retractText: { default: "" },
|
|
@@ -12835,6 +12849,13 @@
|
|
|
12835
12849
|
var _a;
|
|
12836
12850
|
const props = __props;
|
|
12837
12851
|
const emit = __emit;
|
|
12852
|
+
const processedColumns = vue.computed(() => {
|
|
12853
|
+
return props.columns.map((column) => ({
|
|
12854
|
+
hideInSearch: true,
|
|
12855
|
+
// 默认为 true
|
|
12856
|
+
...column
|
|
12857
|
+
}));
|
|
12858
|
+
});
|
|
12838
12859
|
const formSlotList = [
|
|
12839
12860
|
getFieldSlotName(),
|
|
12840
12861
|
getLabelSlotName(),
|
|
@@ -12968,7 +12989,7 @@
|
|
|
12968
12989
|
}, _ctx.search, {
|
|
12969
12990
|
modelValue: values.value,
|
|
12970
12991
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => values.value = $event),
|
|
12971
|
-
columns:
|
|
12992
|
+
columns: processedColumns.value,
|
|
12972
12993
|
"search-loading": vue.unref(loadingStatus),
|
|
12973
12994
|
onSearch: handleSearch,
|
|
12974
12995
|
onReset: handleReset
|
|
@@ -13016,7 +13037,7 @@
|
|
|
13016
13037
|
}, _ctx.table, {
|
|
13017
13038
|
"table-data": vue.unref(tableData),
|
|
13018
13039
|
"loading-status": vue.unref(loadingStatus),
|
|
13019
|
-
columns:
|
|
13040
|
+
columns: processedColumns.value,
|
|
13020
13041
|
pagination: _ctx.pagination === false ? void 0 : {
|
|
13021
13042
|
..._ctx.pagination,
|
|
13022
13043
|
total: vue.unref(total),
|