3h1-ui 3.0.0-next.24 → 3.0.0-next.25
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/es/index.js +20 -6
- package/es/style.css +3 -0
- package/lib/index.js +20 -6
- package/lib/style.css +3 -0
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -30815,6 +30815,10 @@ const setConstConfig = (config) => {
|
|
|
30815
30815
|
DEFAULT_ALIGN = config.align;
|
|
30816
30816
|
};
|
|
30817
30817
|
const shyTableBasicProps = reactive({
|
|
30818
|
+
isShowTitle: {
|
|
30819
|
+
type: Boolean,
|
|
30820
|
+
default: true
|
|
30821
|
+
},
|
|
30818
30822
|
headerAlign: {
|
|
30819
30823
|
type: String,
|
|
30820
30824
|
default: "left"
|
|
@@ -36333,6 +36337,9 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36333
36337
|
headerAlign: {
|
|
36334
36338
|
type: String,
|
|
36335
36339
|
default: "left"
|
|
36340
|
+
},
|
|
36341
|
+
isShowTitle: {
|
|
36342
|
+
type: Boolean
|
|
36336
36343
|
}
|
|
36337
36344
|
},
|
|
36338
36345
|
setup(props2, {
|
|
@@ -36348,6 +36355,16 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36348
36355
|
"onColumnsChange": handleColumnChange
|
|
36349
36356
|
}, null) : null;
|
|
36350
36357
|
};
|
|
36358
|
+
const isShowTitle = () => {
|
|
36359
|
+
return props2.isShowTitle ? createVNode(ShyTableTitle, null, {
|
|
36360
|
+
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36361
|
+
var _a2;
|
|
36362
|
+
return props2.title || ((_a2 = slots == null ? void 0 : slots.title) == null ? void 0 : _a2.call(slots));
|
|
36363
|
+
} : null
|
|
36364
|
+
}) : createVNode("div", {
|
|
36365
|
+
"class": `${prefixCls2}-placeholder`
|
|
36366
|
+
}, null);
|
|
36367
|
+
};
|
|
36351
36368
|
const handleColumnChange = (data) => {
|
|
36352
36369
|
emit("columns-change", data);
|
|
36353
36370
|
};
|
|
@@ -36358,12 +36375,7 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36358
36375
|
"class": prefixCls2
|
|
36359
36376
|
}, [createVNode("div", {
|
|
36360
36377
|
"class": getAlignClass.value
|
|
36361
|
-
}, [
|
|
36362
|
-
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36363
|
-
var _a3;
|
|
36364
|
-
return props2.title || ((_a3 = slots == null ? void 0 : slots.title) == null ? void 0 : _a3.call(slots));
|
|
36365
|
-
} : null
|
|
36366
|
-
}), createVNode("div", {
|
|
36378
|
+
}, [isShowTitle(), createVNode("div", {
|
|
36367
36379
|
"class": `${prefixCls2}-button`
|
|
36368
36380
|
}, [(_a2 = slots == null ? void 0 : slots.toolbar) == null ? void 0 : _a2.call(slots)])]), createVNode("div", {
|
|
36369
36381
|
"class": `${prefixCls2}-toolbar`
|
|
@@ -36378,6 +36390,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36378
36390
|
const getHeaderProps = computed(() => {
|
|
36379
36391
|
const {
|
|
36380
36392
|
title = null,
|
|
36393
|
+
isShowTitle,
|
|
36381
36394
|
showTableSetting,
|
|
36382
36395
|
titleHelpMessage,
|
|
36383
36396
|
tableSetting,
|
|
@@ -36388,6 +36401,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36388
36401
|
return {};
|
|
36389
36402
|
}
|
|
36390
36403
|
const headerProps = {
|
|
36404
|
+
isShowTitle,
|
|
36391
36405
|
headerAlign,
|
|
36392
36406
|
title,
|
|
36393
36407
|
titleHelpMessage,
|
package/es/style.css
CHANGED
|
@@ -8922,6 +8922,9 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8922
8922
|
justify-content: space-between;
|
|
8923
8923
|
align-items: center;
|
|
8924
8924
|
}
|
|
8925
|
+
.shy-table-header-placeholder {
|
|
8926
|
+
flex: 1;
|
|
8927
|
+
}
|
|
8925
8928
|
.shy-table-header-toolbar {
|
|
8926
8929
|
display: flex;
|
|
8927
8930
|
align-items: center;
|
package/lib/index.js
CHANGED
|
@@ -30839,6 +30839,10 @@ const setConstConfig = (config) => {
|
|
|
30839
30839
|
DEFAULT_ALIGN = config.align;
|
|
30840
30840
|
};
|
|
30841
30841
|
const shyTableBasicProps = vue.reactive({
|
|
30842
|
+
isShowTitle: {
|
|
30843
|
+
type: Boolean,
|
|
30844
|
+
default: true
|
|
30845
|
+
},
|
|
30842
30846
|
headerAlign: {
|
|
30843
30847
|
type: String,
|
|
30844
30848
|
default: "left"
|
|
@@ -36357,6 +36361,9 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36357
36361
|
headerAlign: {
|
|
36358
36362
|
type: String,
|
|
36359
36363
|
default: "left"
|
|
36364
|
+
},
|
|
36365
|
+
isShowTitle: {
|
|
36366
|
+
type: Boolean
|
|
36360
36367
|
}
|
|
36361
36368
|
},
|
|
36362
36369
|
setup(props2, {
|
|
@@ -36372,6 +36379,16 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36372
36379
|
"onColumnsChange": handleColumnChange
|
|
36373
36380
|
}, null) : null;
|
|
36374
36381
|
};
|
|
36382
|
+
const isShowTitle = () => {
|
|
36383
|
+
return props2.isShowTitle ? vue.createVNode(ShyTableTitle, null, {
|
|
36384
|
+
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36385
|
+
var _a2;
|
|
36386
|
+
return props2.title || ((_a2 = slots == null ? void 0 : slots.title) == null ? void 0 : _a2.call(slots));
|
|
36387
|
+
} : null
|
|
36388
|
+
}) : vue.createVNode("div", {
|
|
36389
|
+
"class": `${prefixCls2}-placeholder`
|
|
36390
|
+
}, null);
|
|
36391
|
+
};
|
|
36375
36392
|
const handleColumnChange = (data) => {
|
|
36376
36393
|
emit("columns-change", data);
|
|
36377
36394
|
};
|
|
@@ -36382,12 +36399,7 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36382
36399
|
"class": prefixCls2
|
|
36383
36400
|
}, [vue.createVNode("div", {
|
|
36384
36401
|
"class": getAlignClass.value
|
|
36385
|
-
}, [vue.createVNode(
|
|
36386
|
-
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36387
|
-
var _a3;
|
|
36388
|
-
return props2.title || ((_a3 = slots == null ? void 0 : slots.title) == null ? void 0 : _a3.call(slots));
|
|
36389
|
-
} : null
|
|
36390
|
-
}), vue.createVNode("div", {
|
|
36402
|
+
}, [isShowTitle(), vue.createVNode("div", {
|
|
36391
36403
|
"class": `${prefixCls2}-button`
|
|
36392
36404
|
}, [(_a2 = slots == null ? void 0 : slots.toolbar) == null ? void 0 : _a2.call(slots)])]), vue.createVNode("div", {
|
|
36393
36405
|
"class": `${prefixCls2}-toolbar`
|
|
@@ -36402,6 +36414,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36402
36414
|
const getHeaderProps = vue.computed(() => {
|
|
36403
36415
|
const {
|
|
36404
36416
|
title = null,
|
|
36417
|
+
isShowTitle,
|
|
36405
36418
|
showTableSetting,
|
|
36406
36419
|
titleHelpMessage,
|
|
36407
36420
|
tableSetting,
|
|
@@ -36412,6 +36425,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36412
36425
|
return {};
|
|
36413
36426
|
}
|
|
36414
36427
|
const headerProps = {
|
|
36428
|
+
isShowTitle,
|
|
36415
36429
|
headerAlign,
|
|
36416
36430
|
title,
|
|
36417
36431
|
titleHelpMessage,
|
package/lib/style.css
CHANGED
|
@@ -8922,6 +8922,9 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8922
8922
|
justify-content: space-between;
|
|
8923
8923
|
align-items: center;
|
|
8924
8924
|
}
|
|
8925
|
+
.shy-table-header-placeholder {
|
|
8926
|
+
flex: 1;
|
|
8927
|
+
}
|
|
8925
8928
|
.shy-table-header-toolbar {
|
|
8926
8929
|
display: flex;
|
|
8927
8930
|
align-items: center;
|