@gct-paas/core-web 0.1.6-dev.18 → 0.1.6-dev.19
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/{JsBarcode-BHGaO9dz.js → JsBarcode-nqhcZPvn.js} +2 -2
- package/dist/{_plugin-vue_export-helper-CVA7dXVu.js → _plugin-vue_export-helper-CyelNe0I.js} +2 -2
- package/dist/{chunk-BNkb119g.js → chunk-C9ZKDnvz.js} +1 -1
- package/dist/components-DtFY5KCF.js +2 -0
- package/dist/{cropper-CYj8Bfd1.js → cropper-BuY_n52N.js} +2 -2
- package/dist/{de_DE-CqvjMewI.js → de_DE-B3kLT_zG.js} +2 -2
- package/dist/{defineProperty-YzDFxjHJ.js → defineProperty-DiReHMuo.js} +1 -1
- package/dist/{diagram-config-item-C0dNHnv8.js → diagram-config-item-DYCiDqAy.js} +2 -2
- package/dist/{diagram-config-item-reverse-CPqmFsFd.js → diagram-config-item-reverse-BKf_yXvB.js} +2 -2
- package/dist/{diagram-config-item-virtual-CqPkYosK.js → diagram-config-item-virtual-Dw36zOeJ.js} +2 -2
- package/dist/{en_US-Cy3_1Rt6.js → en_US-tZ7NgN80.js} +2 -2
- package/dist/{es_ES-C6ghJagB.js → es_ES-DY2QXYwT.js} +2 -2
- package/dist/{fr_FR-B_boR4BS.js → fr_FR-DbN-1gO0.js} +2 -2
- package/dist/{hooks-BqvX2KLt.js → hooks-BuOffqGU.js} +2 -2
- package/dist/{icon-next-picker-CMsbLe7r.js → icon-next-picker-BmnIn29K.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-DhLuasFw.js → ja_JP-BRcXbHEH.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-Cl_E7g__.js → monaco-editor-CHnBEX6V.js} +2 -2
- package/dist/{objectSpread2-B962Mxf_.js → objectSpread2-BHKS0stT.js} +1 -1
- package/dist/{overlayscrollbars-vue-BfwUd3EM.js → overlayscrollbars-vue-Cc8URtSg.js} +1 -1
- package/dist/{pt_PT-BdlIINyT.js → pt_PT-DjiZFPmH.js} +2 -2
- package/dist/{relationship-diagram-config-GxEGtkql.js → relationship-diagram-config-BwVOMUAb.js} +2 -2
- package/dist/{rich-editor-D7vzpB9U.js → rich-editor-DfsJmv_B.js} +2 -2
- package/dist/{ru_RU-Bw0Fk9MV.js → ru_RU-Dw9N99Ox.js} +2 -2
- package/dist/template-D-UpvSne.js +2 -0
- package/dist/{tr_TR-CUUs9qjY.js → tr_TR-DCCv6rhK.js} +2 -2
- package/dist/{useMonacoEditor-BDC4VLbE.js → useMonacoEditor-C3S2BSui.js} +2 -2
- package/dist/{vi_VN--jG2lM6p.js → vi_VN-BNMXRAom.js} +2 -2
- package/dist/{zh_CN-Br1qCqWn.js → zh_CN-ywcxTWfr.js} +2 -2
- package/dist/{zh_TW-BMGkBv3z.js → zh_TW-DL4FRJVy.js} +2 -2
- package/es/components/design-view-layout/design-view-layout.mjs +3 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +11 -1
- package/es/components/ui/basic-grid/basic-grid.vue.d.ts +81 -0
- package/es/components/ui/basic-grid/basic-grid.vue.mjs +7 -0
- package/es/components/ui/basic-grid/basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs +134 -0
- package/es/components/ui/basic-grid/basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css +90 -0
- package/es/components/ui/basic-grid/index.d.ts +3 -0
- package/es/components/ui/basic-grid/index.mjs +1 -0
- package/es/components/ui/basic-grid/types.d.ts +6 -0
- package/es/components/ui/embed-grid/embed-grid.vue.d.ts +62 -0
- package/es/components/ui/embed-grid/embed-grid.vue.mjs +7 -0
- package/es/components/ui/embed-grid/embed-grid.vue_vue_type_script_setup_true_name_embed-grid_lang.mjs +73 -0
- package/es/components/ui/embed-grid/index.d.ts +3 -0
- package/es/components/ui/embed-grid/index.mjs +1 -0
- package/es/components/ui/embed-grid/types.d.ts +5 -0
- package/es/components/ui/form-alert/form-alert.vue.d.ts +10 -0
- package/es/components/ui/form-alert/form-alert.vue.mjs +7 -0
- package/es/components/ui/form-alert/form-alert.vue_vue_type_script_setup_true_name_form-alert_lang.mjs +31 -0
- package/es/components/ui/form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css +64 -0
- package/es/components/ui/grid-btns/grid-btns.vue.d.ts +2 -0
- package/es/components/ui/grid-btns/grid-btns.vue.mjs +7 -0
- package/es/components/ui/grid-btns/grid-btns.vue_vue_type_script_setup_true_name_grid-btns_lang.mjs +15 -0
- package/es/components/ui/grid-btns/grid-btns.vue_vue_type_style_index_0_scoped_e3385a9e_lang.css +70 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue.d.ts +12 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue.mjs +7 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_script_setup_true_name_grid-pagination_lang.mjs +57 -0
- package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_style_index_0_scoped_4905eabf_lang.css +68 -0
- package/es/components/ui/grid-pagination/index.d.ts +3 -0
- package/es/components/ui/grid-pagination/index.mjs +1 -0
- package/es/components/ui/grid-pagination/types.d.ts +24 -0
- package/es/components/ui/highlight/highlight.vue.d.ts +6 -0
- package/es/components/ui/highlight/highlight.vue.mjs +7 -0
- package/es/components/ui/highlight/highlight.vue_vue_type_script_setup_true_name_highlight_lang.mjs +30 -0
- package/es/components/ui/highlight/highlight.vue_vue_type_style_index_0_scoped_e17c6606_lang.css +6 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue.d.ts +10 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue.mjs +7 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_script_setup_true_name_icon-tooltip_lang.mjs +27 -0
- package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_style_index_0_scoped_a35580e4_lang.css +68 -0
- package/es/components/ui/index.d.ts +10 -0
- package/es/components/ui/index.mjs +12 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue.d.ts +26 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue.mjs +7 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_script_setup_true_name_modal-wrapper_lang.mjs +78 -0
- package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_style_index_0_scoped_6b8a9609_lang.css +28 -0
- package/es/components/ui/notice/index.d.ts +8 -0
- package/es/components/ui/notice/index.mjs +31 -0
- package/es/index.mjs +11 -2
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +9 -7
- package/dist/components-DjUk_DX6.js +0 -2
- package/dist/template-CbCwf9Cr.js +0 -2
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
package/es/components/ui/basic-grid/basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-basic-grid[data-v-e9d09c1d] {
|
|
66
|
+
--gct-basic-grid-expand-col-width: 40px;
|
|
67
|
+
--gct-basic-grid-pagination-height: 56px;
|
|
68
|
+
}
|
|
69
|
+
.gct-basic-grid--fit-parent[data-v-e9d09c1d] {
|
|
70
|
+
height: 100%;
|
|
71
|
+
}
|
|
72
|
+
.gct-basic-grid--fit-content[data-v-e9d09c1d] .vxe-grid--pager-wrapper {
|
|
73
|
+
height: calc(var(--gct-basic-grid-pagination-height) / 2);
|
|
74
|
+
}
|
|
75
|
+
.gct-basic-grid[data-v-e9d09c1d] .col--expand + .vxe-header--column > .vxe-cell {
|
|
76
|
+
position: relative;
|
|
77
|
+
left: calc(-1 * var(--gct-basic-grid-expand-col-width));
|
|
78
|
+
}
|
|
79
|
+
.gct-basic-grid[data-v-e9d09c1d] .vxe-table--render-default {
|
|
80
|
+
--vxe-font-color: #212528;
|
|
81
|
+
}
|
|
82
|
+
[data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-table--border-line {
|
|
83
|
+
border-width: 0;
|
|
84
|
+
}
|
|
85
|
+
[data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid table.vxe-table--header {
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
}
|
|
88
|
+
[data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-header--column:first-child > .vxe-cell,[data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-body--column:first-child > .vxe-cell {
|
|
89
|
+
padding-left: 40px;
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./basic-grid.vue.mjs";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { GridColumn } from '../basic-grid';
|
|
2
|
+
import { EmbedGridRowData } from './types';
|
|
3
|
+
import { GridPaginationValue } from '../grid-pagination';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
columns: GridColumn[];
|
|
6
|
+
embedColumns: GridColumn[];
|
|
7
|
+
data: EmbedGridRowData[];
|
|
8
|
+
pagination?: GridPaginationValue;
|
|
9
|
+
/** 是否展开所有,每次数据变更的时候 */
|
|
10
|
+
isExpandAll?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: Partial<Record<NonNullable<string | symbol>, (_: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
$table: import('vxe-table').VxeTableConstructor<any>;
|
|
17
|
+
$grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
|
|
18
|
+
row: any;
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
$rowIndex: number;
|
|
21
|
+
_rowIndex: number;
|
|
22
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
|
|
23
|
+
columnIndex: number;
|
|
24
|
+
$columnIndex: number;
|
|
25
|
+
_columnIndex: number;
|
|
26
|
+
checked?: boolean;
|
|
27
|
+
indeterminate?: boolean;
|
|
28
|
+
items: any[];
|
|
29
|
+
}) => any>> & Partial<Record<NonNullable<string | symbol>, (_: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
$table: import('vxe-table').VxeTableConstructor<any>;
|
|
32
|
+
$grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
|
|
33
|
+
row: any;
|
|
34
|
+
rowIndex: number;
|
|
35
|
+
$rowIndex: number;
|
|
36
|
+
_rowIndex: number;
|
|
37
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
|
|
38
|
+
columnIndex: number;
|
|
39
|
+
$columnIndex: number;
|
|
40
|
+
_columnIndex: number;
|
|
41
|
+
checked?: boolean;
|
|
42
|
+
indeterminate?: boolean;
|
|
43
|
+
items: any[];
|
|
44
|
+
}) => any>>;
|
|
45
|
+
refs: {};
|
|
46
|
+
rootEl: any;
|
|
47
|
+
};
|
|
48
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
49
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
50
|
+
"update:pagination": (value: GridPaginationValue) => any;
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
52
|
+
"onUpdate:pagination"?: ((value: GridPaginationValue) => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
isExpandAll: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
56
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
57
|
+
export default _default;
|
|
58
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default from "./embed-grid.vue_vue_type_script_setup_true_name_embed-grid_lang.mjs";
|
|
3
|
+
import '../form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/embed-grid/embed-grid.vue
|
|
5
|
+
var embed_grid_default = /* @__PURE__ */ _plugin_vue_export_helper_default(embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default, [["__scopeId", "data-v-5ad2d28b"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { embed_grid_default as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import basic_grid_default from "../basic-grid/basic-grid.vue.mjs";
|
|
2
|
+
import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, renderList, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
3
|
+
import { useNamespace } from "@gct-paas/core";
|
|
4
|
+
//#region src/components/ui/embed-grid/embed-grid.vue?vue&type=script&setup=true&name=embed-grid&lang.ts
|
|
5
|
+
var embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "embed-grid",
|
|
7
|
+
props: {
|
|
8
|
+
columns: {},
|
|
9
|
+
embedColumns: {},
|
|
10
|
+
data: {},
|
|
11
|
+
pagination: {},
|
|
12
|
+
isExpandAll: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:pagination"],
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const slots = useSlots();
|
|
20
|
+
const ns = useNamespace("embed-grid");
|
|
21
|
+
const props = __props;
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const _pagination = computed({
|
|
24
|
+
get() {
|
|
25
|
+
return props.pagination;
|
|
26
|
+
},
|
|
27
|
+
set(v) {
|
|
28
|
+
emit("update:pagination", v);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(basic_grid_default, {
|
|
33
|
+
pagination: _pagination.value,
|
|
34
|
+
"onUpdate:pagination": _cache[0] || (_cache[0] = ($event) => _pagination.value = $event),
|
|
35
|
+
class: normalizeClass([unref(ns).b()]),
|
|
36
|
+
columns: __props.columns,
|
|
37
|
+
data: __props.data,
|
|
38
|
+
"has-row-embed": true,
|
|
39
|
+
height: "auto",
|
|
40
|
+
"is-expand-all": __props.isExpandAll
|
|
41
|
+
}, createSlots({
|
|
42
|
+
row_embed: withCtx(({ row }) => [createVNode(basic_grid_default, {
|
|
43
|
+
class: normalizeClass([unref(ns).e("row-grid")]),
|
|
44
|
+
columns: __props.embedColumns,
|
|
45
|
+
data: row.children
|
|
46
|
+
}, createSlots({ _: 2 }, [renderList(unref(slots), (_, name) => {
|
|
47
|
+
return {
|
|
48
|
+
name,
|
|
49
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
50
|
+
};
|
|
51
|
+
})]), 1032, [
|
|
52
|
+
"class",
|
|
53
|
+
"columns",
|
|
54
|
+
"data"
|
|
55
|
+
])]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, [renderList(unref(slots), (_, name) => {
|
|
58
|
+
return {
|
|
59
|
+
name,
|
|
60
|
+
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
61
|
+
};
|
|
62
|
+
})]), 1032, [
|
|
63
|
+
"pagination",
|
|
64
|
+
"class",
|
|
65
|
+
"columns",
|
|
66
|
+
"data",
|
|
67
|
+
"is-expand-all"
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./embed-grid.vue.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
message: string;
|
|
3
|
+
span?: string | number;
|
|
4
|
+
offset?: string | number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
span: string | number;
|
|
8
|
+
offset: string | number;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import form_alert_vue_vue_type_script_setup_true_name_form_alert_lang_default from "./form-alert.vue_vue_type_script_setup_true_name_form-alert_lang.mjs";
|
|
3
|
+
import './form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/form-alert/form-alert.vue
|
|
5
|
+
var form_alert_default = /* @__PURE__ */ _plugin_vue_export_helper_default(form_alert_vue_vue_type_script_setup_true_name_form_alert_lang_default, [["__scopeId", "data-v-a6bdad9c"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { form_alert_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
//#region src/components/ui/form-alert/form-alert.vue?vue&type=script&setup=true&name=form-alert&lang.ts
|
|
4
|
+
var _hoisted_1 = { class: "flex items-center color-[#F77E4A] bg-[#F77E4A1A] h-28px w-full mb-20px" };
|
|
5
|
+
var form_alert_vue_vue_type_script_setup_true_name_form_alert_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "form-alert",
|
|
7
|
+
props: {
|
|
8
|
+
message: {},
|
|
9
|
+
span: { default: 16 },
|
|
10
|
+
offset: { default: 6 }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const ns = useNamespace("form-alert");
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
const _component_a_col = resolveComponent("a-col");
|
|
16
|
+
const _component_a_row = resolveComponent("a-row");
|
|
17
|
+
return openBlock(), createBlock(_component_a_row, { class: normalizeClass([unref(ns).b()]) }, {
|
|
18
|
+
default: withCtx(() => [createVNode(_component_a_col, {
|
|
19
|
+
span: __props.span,
|
|
20
|
+
offset: __props.offset
|
|
21
|
+
}, {
|
|
22
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [_cache[0] || (_cache[0] = createElementVNode("i", { class: "iconfont icon-a-zhuyi_attention2 color-[#F77E4A] mr-8px ml-8px" }, null, -1)), createTextVNode(" " + toDisplayString(__props.message), 1)])]),
|
|
23
|
+
_: 1
|
|
24
|
+
}, 8, ["span", "offset"])]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { form_alert_vue_vue_type_script_setup_true_name_form_alert_lang_default as default };
|
package/es/components/ui/form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import grid_btns_vue_vue_type_script_setup_true_name_grid_btns_lang_default from "./grid-btns.vue_vue_type_script_setup_true_name_grid-btns_lang.mjs";
|
|
3
|
+
import './grid-btns.vue_vue_type_style_index_0_scoped_e3385a9e_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/grid-btns/grid-btns.vue
|
|
5
|
+
var grid_btns_default = /* @__PURE__ */ _plugin_vue_export_helper_default(grid_btns_vue_vue_type_script_setup_true_name_grid_btns_lang_default, [["__scopeId", "data-v-e3385a9e"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { grid_btns_default as default };
|
package/es/components/ui/grid-btns/grid-btns.vue_vue_type_script_setup_true_name_grid-btns_lang.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, unref } from "vue";
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { TableActionAuto } from "@gct-paas/v-ben";
|
|
4
|
+
//#region src/components/ui/grid-btns/grid-btns.vue?vue&type=script&setup=true&name=grid-btns&lang.ts
|
|
5
|
+
var grid_btns_vue_vue_type_script_setup_true_name_grid_btns_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "grid-btns",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const ns = useNamespace("grid-btns");
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createBlock(unref(TableActionAuto), { class: normalizeClass([unref(ns).b()]) }, null, 8, ["class"]);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { grid_btns_vue_vue_type_script_setup_true_name_grid_btns_lang_default as default };
|
package/es/components/ui/grid-btns/grid-btns.vue_vue_type_style_index_0_scoped_e3385a9e_lang.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-grid-btns[data-v-e3385a9e] .ant-btn.ant-btn-sm {
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
.gct-grid-btns[data-v-e3385a9e] .ant-dropdown-trigger {
|
|
69
|
+
transform: rotate(90deg);
|
|
70
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GridPaginationValue } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: GridPaginationValue;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:value": (value: GridPaginationValue) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:value"?: ((value: GridPaginationValue) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
value: GridPaginationValue;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import grid_pagination_vue_vue_type_script_setup_true_name_grid_pagination_lang_default from "./grid-pagination.vue_vue_type_script_setup_true_name_grid-pagination_lang.mjs";
|
|
3
|
+
import './grid-pagination.vue_vue_type_style_index_0_scoped_4905eabf_lang.css';/* empty css */
|
|
4
|
+
//#region src/components/ui/grid-pagination/grid-pagination.vue
|
|
5
|
+
var grid_pagination_default = /* @__PURE__ */ _plugin_vue_export_helper_default(grid_pagination_vue_vue_type_script_setup_true_name_grid_pagination_lang_default, [["__scopeId", "data-v-4905eabf"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { grid_pagination_default as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createBlock, defineComponent, mergeProps, openBlock, resolveComponent, unref } from "vue";
|
|
2
|
+
import { computedEx, t, useNamespace } from "@gct-paas/core";
|
|
3
|
+
//#region src/components/ui/grid-pagination/grid-pagination.vue?vue&type=script&setup=true&name=grid-pagination&lang.ts
|
|
4
|
+
var grid_pagination_vue_vue_type_script_setup_true_name_grid_pagination_lang_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "grid-pagination",
|
|
6
|
+
props: { value: { default: () => ({
|
|
7
|
+
current: 1,
|
|
8
|
+
pageSize: 10,
|
|
9
|
+
total: 0
|
|
10
|
+
}) } },
|
|
11
|
+
emits: ["update:value"],
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const ns = useNamespace("grid-pagination");
|
|
14
|
+
const props = __props;
|
|
15
|
+
const styleAttr = {
|
|
16
|
+
class: "ant-pagination mini ant-table-pagination ant-table-pagination-right",
|
|
17
|
+
size: "small",
|
|
18
|
+
showSizeChanger: true,
|
|
19
|
+
pageSizeOptions: [
|
|
20
|
+
"10",
|
|
21
|
+
"20",
|
|
22
|
+
"30",
|
|
23
|
+
"40",
|
|
24
|
+
"50"
|
|
25
|
+
],
|
|
26
|
+
showTotal: (total) => t("sys.component.table.total", { total })
|
|
27
|
+
};
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const local = computedEx({
|
|
30
|
+
get: () => {
|
|
31
|
+
return props.value;
|
|
32
|
+
},
|
|
33
|
+
set: (v) => {
|
|
34
|
+
emit("update:value", v);
|
|
35
|
+
},
|
|
36
|
+
deep: true
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
const _component_a_pagination = resolveComponent("a-pagination");
|
|
40
|
+
return openBlock(), createBlock(_component_a_pagination, mergeProps({
|
|
41
|
+
current: unref(local).current,
|
|
42
|
+
"onUpdate:current": _cache[0] || (_cache[0] = ($event) => unref(local).current = $event),
|
|
43
|
+
"page-size": unref(local).pageSize,
|
|
44
|
+
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => unref(local).pageSize = $event),
|
|
45
|
+
class: [unref(ns).b()],
|
|
46
|
+
total: unref(local).total
|
|
47
|
+
}, styleAttr), null, 16, [
|
|
48
|
+
"current",
|
|
49
|
+
"page-size",
|
|
50
|
+
"class",
|
|
51
|
+
"total"
|
|
52
|
+
]);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { grid_pagination_vue_vue_type_script_setup_true_name_grid_pagination_lang_default as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-grid-pagination.ant-table-pagination.ant-pagination[data-v-4905eabf] {
|
|
66
|
+
margin: 0;
|
|
67
|
+
padding: 16px 0;
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./grid-pagination.vue.mjs";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表格分页数据
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface GridPaginationValue
|
|
6
|
+
*/
|
|
7
|
+
export interface GridPaginationValue {
|
|
8
|
+
/**
|
|
9
|
+
* total number of data items
|
|
10
|
+
* @default 0
|
|
11
|
+
* @type number
|
|
12
|
+
*/
|
|
13
|
+
total?: number;
|
|
14
|
+
/**
|
|
15
|
+
* current page number
|
|
16
|
+
* @type number
|
|
17
|
+
*/
|
|
18
|
+
current?: number;
|
|
19
|
+
/**
|
|
20
|
+
* number of data items per page
|
|
21
|
+
* @type number
|
|
22
|
+
*/
|
|
23
|
+
pageSize?: number;
|
|
24
|
+
}
|