3h1-ui 3.0.0-next.23 → 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 +27 -8
- package/es/style.css +7 -3
- package/lib/index.js +27 -8
- package/lib/style.css +7 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -25344,6 +25344,10 @@ const basicContainerProps = reactive({
|
|
|
25344
25344
|
type: Boolean,
|
|
25345
25345
|
default: true
|
|
25346
25346
|
},
|
|
25347
|
+
isShowBack: {
|
|
25348
|
+
type: Boolean,
|
|
25349
|
+
default: false
|
|
25350
|
+
},
|
|
25347
25351
|
isShowFooter: {
|
|
25348
25352
|
type: Boolean,
|
|
25349
25353
|
default: true
|
|
@@ -25427,14 +25431,14 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25427
25431
|
createElementVNode("div", {
|
|
25428
25432
|
class: normalizeClass(`${_ctx.prefixCls}-header-title`)
|
|
25429
25433
|
}, [
|
|
25430
|
-
!_ctx.loading ? (openBlock(), createElementBlock("div", {
|
|
25434
|
+
!_ctx.loading && _ctx.isShowBack ? (openBlock(), createElementBlock("div", {
|
|
25431
25435
|
key: 0,
|
|
25432
25436
|
class: normalizeClass(`${_ctx.prefixCls}-header-title-icon`),
|
|
25433
25437
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.emit("cancel"))
|
|
25434
25438
|
}, [
|
|
25435
25439
|
createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `16px` } })
|
|
25436
25440
|
], 2)) : createCommentVNode("", true),
|
|
25437
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", {
|
|
25441
|
+
_ctx.loading && _ctx.isShowBack ? (openBlock(), createElementBlock("div", {
|
|
25438
25442
|
key: 1,
|
|
25439
25443
|
class: normalizeClass(`${_ctx.prefixCls}-header-title-loading-icon`)
|
|
25440
25444
|
}, [
|
|
@@ -30811,6 +30815,10 @@ const setConstConfig = (config) => {
|
|
|
30811
30815
|
DEFAULT_ALIGN = config.align;
|
|
30812
30816
|
};
|
|
30813
30817
|
const shyTableBasicProps = reactive({
|
|
30818
|
+
isShowTitle: {
|
|
30819
|
+
type: Boolean,
|
|
30820
|
+
default: true
|
|
30821
|
+
},
|
|
30814
30822
|
headerAlign: {
|
|
30815
30823
|
type: String,
|
|
30816
30824
|
default: "left"
|
|
@@ -36329,6 +36337,9 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36329
36337
|
headerAlign: {
|
|
36330
36338
|
type: String,
|
|
36331
36339
|
default: "left"
|
|
36340
|
+
},
|
|
36341
|
+
isShowTitle: {
|
|
36342
|
+
type: Boolean
|
|
36332
36343
|
}
|
|
36333
36344
|
},
|
|
36334
36345
|
setup(props2, {
|
|
@@ -36344,6 +36355,16 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36344
36355
|
"onColumnsChange": handleColumnChange
|
|
36345
36356
|
}, null) : null;
|
|
36346
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
|
+
};
|
|
36347
36368
|
const handleColumnChange = (data) => {
|
|
36348
36369
|
emit("columns-change", data);
|
|
36349
36370
|
};
|
|
@@ -36354,12 +36375,7 @@ const ShyTableHeader = /* @__PURE__ */ defineComponent({
|
|
|
36354
36375
|
"class": prefixCls2
|
|
36355
36376
|
}, [createVNode("div", {
|
|
36356
36377
|
"class": getAlignClass.value
|
|
36357
|
-
}, [
|
|
36358
|
-
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36359
|
-
var _a3;
|
|
36360
|
-
return props2.title || ((_a3 = slots == null ? void 0 : slots.title) == null ? void 0 : _a3.call(slots));
|
|
36361
|
-
} : null
|
|
36362
|
-
}), createVNode("div", {
|
|
36378
|
+
}, [isShowTitle(), createVNode("div", {
|
|
36363
36379
|
"class": `${prefixCls2}-button`
|
|
36364
36380
|
}, [(_a2 = slots == null ? void 0 : slots.toolbar) == null ? void 0 : _a2.call(slots)])]), createVNode("div", {
|
|
36365
36381
|
"class": `${prefixCls2}-toolbar`
|
|
@@ -36374,6 +36390,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36374
36390
|
const getHeaderProps = computed(() => {
|
|
36375
36391
|
const {
|
|
36376
36392
|
title = null,
|
|
36393
|
+
isShowTitle,
|
|
36377
36394
|
showTableSetting,
|
|
36378
36395
|
titleHelpMessage,
|
|
36379
36396
|
tableSetting,
|
|
@@ -36384,6 +36401,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36384
36401
|
return {};
|
|
36385
36402
|
}
|
|
36386
36403
|
const headerProps = {
|
|
36404
|
+
isShowTitle,
|
|
36387
36405
|
headerAlign,
|
|
36388
36406
|
title,
|
|
36389
36407
|
titleHelpMessage,
|
|
@@ -38176,6 +38194,7 @@ export {
|
|
|
38176
38194
|
TableImg,
|
|
38177
38195
|
_sfc_main$n as TablePlus,
|
|
38178
38196
|
ToolbarEnum,
|
|
38197
|
+
basicContainerProps,
|
|
38179
38198
|
componentMap$3 as componentMap,
|
|
38180
38199
|
createLoading,
|
|
38181
38200
|
descriptionsForm,
|
package/es/style.css
CHANGED
|
@@ -8403,8 +8403,8 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8403
8403
|
width: 100%;
|
|
8404
8404
|
height: fit-content;
|
|
8405
8405
|
align-items: center;
|
|
8406
|
-
padding: 10px;
|
|
8407
|
-
border-bottom: 1px solid
|
|
8406
|
+
padding-block: 10px;
|
|
8407
|
+
border-bottom: 1px solid var(--gray-3);
|
|
8408
8408
|
gap: 8px;
|
|
8409
8409
|
}
|
|
8410
8410
|
.shy-basic-container-header-title {
|
|
@@ -8431,7 +8431,8 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8431
8431
|
justify-content: flex-end;
|
|
8432
8432
|
align-items: center;
|
|
8433
8433
|
gap: 8px;
|
|
8434
|
-
border-top: 1px solid
|
|
8434
|
+
border-top: 1px solid var(--gray-3);
|
|
8435
|
+
background-color: var(--gray-2);
|
|
8435
8436
|
}
|
|
8436
8437
|
.shy-basic-container-footer-buttons {
|
|
8437
8438
|
display: flex;
|
|
@@ -8921,6 +8922,9 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8921
8922
|
justify-content: space-between;
|
|
8922
8923
|
align-items: center;
|
|
8923
8924
|
}
|
|
8925
|
+
.shy-table-header-placeholder {
|
|
8926
|
+
flex: 1;
|
|
8927
|
+
}
|
|
8924
8928
|
.shy-table-header-toolbar {
|
|
8925
8929
|
display: flex;
|
|
8926
8930
|
align-items: center;
|
package/lib/index.js
CHANGED
|
@@ -25368,6 +25368,10 @@ const basicContainerProps = vue.reactive({
|
|
|
25368
25368
|
type: Boolean,
|
|
25369
25369
|
default: true
|
|
25370
25370
|
},
|
|
25371
|
+
isShowBack: {
|
|
25372
|
+
type: Boolean,
|
|
25373
|
+
default: false
|
|
25374
|
+
},
|
|
25371
25375
|
isShowFooter: {
|
|
25372
25376
|
type: Boolean,
|
|
25373
25377
|
default: true
|
|
@@ -25451,14 +25455,14 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25451
25455
|
vue.createElementVNode("div", {
|
|
25452
25456
|
class: vue.normalizeClass(`${_ctx.prefixCls}-header-title`)
|
|
25453
25457
|
}, [
|
|
25454
|
-
!_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25458
|
+
!_ctx.loading && _ctx.isShowBack ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25455
25459
|
key: 0,
|
|
25456
25460
|
class: vue.normalizeClass(`${_ctx.prefixCls}-header-title-icon`),
|
|
25457
25461
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.emit("cancel"))
|
|
25458
25462
|
}, [
|
|
25459
25463
|
vue.createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `16px` } })
|
|
25460
25464
|
], 2)) : vue.createCommentVNode("", true),
|
|
25461
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25465
|
+
_ctx.loading && _ctx.isShowBack ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25462
25466
|
key: 1,
|
|
25463
25467
|
class: vue.normalizeClass(`${_ctx.prefixCls}-header-title-loading-icon`)
|
|
25464
25468
|
}, [
|
|
@@ -30835,6 +30839,10 @@ const setConstConfig = (config) => {
|
|
|
30835
30839
|
DEFAULT_ALIGN = config.align;
|
|
30836
30840
|
};
|
|
30837
30841
|
const shyTableBasicProps = vue.reactive({
|
|
30842
|
+
isShowTitle: {
|
|
30843
|
+
type: Boolean,
|
|
30844
|
+
default: true
|
|
30845
|
+
},
|
|
30838
30846
|
headerAlign: {
|
|
30839
30847
|
type: String,
|
|
30840
30848
|
default: "left"
|
|
@@ -36353,6 +36361,9 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36353
36361
|
headerAlign: {
|
|
36354
36362
|
type: String,
|
|
36355
36363
|
default: "left"
|
|
36364
|
+
},
|
|
36365
|
+
isShowTitle: {
|
|
36366
|
+
type: Boolean
|
|
36356
36367
|
}
|
|
36357
36368
|
},
|
|
36358
36369
|
setup(props2, {
|
|
@@ -36368,6 +36379,16 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36368
36379
|
"onColumnsChange": handleColumnChange
|
|
36369
36380
|
}, null) : null;
|
|
36370
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
|
+
};
|
|
36371
36392
|
const handleColumnChange = (data) => {
|
|
36372
36393
|
emit("columns-change", data);
|
|
36373
36394
|
};
|
|
@@ -36378,12 +36399,7 @@ const ShyTableHeader = /* @__PURE__ */ vue.defineComponent({
|
|
|
36378
36399
|
"class": prefixCls2
|
|
36379
36400
|
}, [vue.createVNode("div", {
|
|
36380
36401
|
"class": getAlignClass.value
|
|
36381
|
-
}, [vue.createVNode(
|
|
36382
|
-
title: props2.title || (slots == null ? void 0 : slots.title) ? () => {
|
|
36383
|
-
var _a3;
|
|
36384
|
-
return props2.title || ((_a3 = slots == null ? void 0 : slots.title) == null ? void 0 : _a3.call(slots));
|
|
36385
|
-
} : null
|
|
36386
|
-
}), vue.createVNode("div", {
|
|
36402
|
+
}, [isShowTitle(), vue.createVNode("div", {
|
|
36387
36403
|
"class": `${prefixCls2}-button`
|
|
36388
36404
|
}, [(_a2 = slots == null ? void 0 : slots.toolbar) == null ? void 0 : _a2.call(slots)])]), vue.createVNode("div", {
|
|
36389
36405
|
"class": `${prefixCls2}-toolbar`
|
|
@@ -36398,6 +36414,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36398
36414
|
const getHeaderProps = vue.computed(() => {
|
|
36399
36415
|
const {
|
|
36400
36416
|
title = null,
|
|
36417
|
+
isShowTitle,
|
|
36401
36418
|
showTableSetting,
|
|
36402
36419
|
titleHelpMessage,
|
|
36403
36420
|
tableSetting,
|
|
@@ -36408,6 +36425,7 @@ const useTableHeader = (propsRef, slots, handlers2) => {
|
|
|
36408
36425
|
return {};
|
|
36409
36426
|
}
|
|
36410
36427
|
const headerProps = {
|
|
36428
|
+
isShowTitle,
|
|
36411
36429
|
headerAlign,
|
|
36412
36430
|
title,
|
|
36413
36431
|
titleHelpMessage,
|
|
@@ -38199,6 +38217,7 @@ exports.TableDict = TableDict;
|
|
|
38199
38217
|
exports.TableImg = TableImg;
|
|
38200
38218
|
exports.TablePlus = _sfc_main$n;
|
|
38201
38219
|
exports.ToolbarEnum = ToolbarEnum;
|
|
38220
|
+
exports.basicContainerProps = basicContainerProps;
|
|
38202
38221
|
exports.componentMap = componentMap$3;
|
|
38203
38222
|
exports.createLoading = createLoading;
|
|
38204
38223
|
exports.descriptionsForm = descriptionsForm;
|
package/lib/style.css
CHANGED
|
@@ -8403,8 +8403,8 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8403
8403
|
width: 100%;
|
|
8404
8404
|
height: fit-content;
|
|
8405
8405
|
align-items: center;
|
|
8406
|
-
padding: 10px;
|
|
8407
|
-
border-bottom: 1px solid
|
|
8406
|
+
padding-block: 10px;
|
|
8407
|
+
border-bottom: 1px solid var(--gray-3);
|
|
8408
8408
|
gap: 8px;
|
|
8409
8409
|
}
|
|
8410
8410
|
.shy-basic-container-header-title {
|
|
@@ -8431,7 +8431,8 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8431
8431
|
justify-content: flex-end;
|
|
8432
8432
|
align-items: center;
|
|
8433
8433
|
gap: 8px;
|
|
8434
|
-
border-top: 1px solid
|
|
8434
|
+
border-top: 1px solid var(--gray-3);
|
|
8435
|
+
background-color: var(--gray-2);
|
|
8435
8436
|
}
|
|
8436
8437
|
.shy-basic-container-footer-buttons {
|
|
8437
8438
|
display: flex;
|
|
@@ -8921,6 +8922,9 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
|
|
|
8921
8922
|
justify-content: space-between;
|
|
8922
8923
|
align-items: center;
|
|
8923
8924
|
}
|
|
8925
|
+
.shy-table-header-placeholder {
|
|
8926
|
+
flex: 1;
|
|
8927
|
+
}
|
|
8924
8928
|
.shy-table-header-toolbar {
|
|
8925
8929
|
display: flex;
|
|
8926
8930
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "^4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
-
"@shy-plugins/use": "1.0.0-next.1",
|
|
33
32
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
|
+
"@shy-plugins/use": "1.0.0-next.1",
|
|
34
34
|
"@shy-plugins/utils": "1.0.0-next.1"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|