@gct-paas/core-web 0.1.4-dev.8 → 0.1.4-dev.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/dist/index-BghCpvxN.js +76 -0
- package/dist/index-PLrMc0gl.cjs +76 -0
- package/dist/index-oVPMi6Ep.js +29160 -0
- package/dist/index.esm.min.mjs +34 -24962
- package/dist/index.min.cjs +1 -67
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -67
- package/dist/monaco-editor-B8X-ou0h.js +20245 -0
- package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
- package/dist/monaco-editor-NIWDtQNB.js +19 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/app-modal/app-modal-component.css +149 -0
- package/es/components/app-modal/app-modal-component.d.ts +26 -0
- package/es/components/app-modal/app-modal-component.mjs +140 -0
- package/es/components/base-button/base-button.css +74 -0
- package/es/components/base-button/base-button.vue.d.ts +173 -0
- package/es/components/base-button/base-button.vue.mjs +7 -0
- package/es/components/base-button/base-button.vue3.mjs +179 -0
- package/es/components/basic-button/basic-button.css +25 -0
- package/es/components/basic-button/basic-button.vue.d.ts +100 -0
- package/es/components/basic-button/basic-button.vue.mjs +7 -0
- package/es/components/basic-button/basic-button.vue3.mjs +130 -0
- package/es/components/code-editor/code-editor.d.ts +1 -1
- package/es/components/index.d.ts +10 -1
- package/es/components/index.mjs +22 -0
- package/es/components/layout/flex-container/flex-container.mjs +94 -0
- package/es/components/layout/flex-item/flex-item.mjs +55 -0
- package/es/components/layout/grid-container/grid-container.mjs +51 -0
- package/es/components/layout/view-container/view-container.mjs +38 -0
- package/es/components/svg-icon/svg-icon.css +73 -0
- package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
- package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
- package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
- package/es/create-app-vue.d.ts +9 -0
- package/es/create-app-vue.mjs +17 -0
- package/es/directives/drag-resize.d.ts +4 -0
- package/es/directives/drag-resize.mjs +42 -0
- package/es/directives/index.d.ts +8 -0
- package/es/directives/index.mjs +9 -0
- package/es/directives/target-loading.d.ts +4 -0
- package/es/directives/target-loading.mjs +40 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useDragLine.d.ts +6 -0
- package/es/hooks/useDragLine.mjs +79 -0
- package/es/index.d.ts +5 -4
- package/es/index.mjs +29 -13
- package/es/modules/code-editor/index.d.ts +163 -0
- package/es/modules/code-editor/index.mjs +8 -0
- package/es/modules/code-editor/monaco-editor.css +49 -0
- package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
- package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
- package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
- package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
- package/es/modules/code-editor/useEditorConsole.mjs +194 -0
- package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
- package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
- package/es/modules/color-picker/index.d.ts +2 -0
- package/es/modules/color-picker/src/ColorPicker.css +16 -0
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
- package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
- package/es/modules/color-picker/src/ColorPicker2.css +156 -0
- package/es/modules/gct-dnd/constants/index.d.ts +7 -9
- package/es/modules/gct-dnd/constants/index.mjs +18 -7
- package/es/modules/global-modal/index.d.ts +5 -0
- package/es/modules/global-modal/index.mjs +16 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
- package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
- package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
- package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
- package/es/modules/global-modal/src/components/ModalClose.css +95 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
- package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
- package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
- package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
- package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
- package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
- package/es/modules/global-modal/src/index.css +153 -0
- package/es/modules/global-modal/src/props.d.ts +156 -0
- package/es/modules/global-modal/src/props.mjs +57 -0
- package/es/modules/global-modal/src/typing.d.ts +174 -0
- package/es/modules/target-loading/index.d.ts +4 -0
- package/es/modules/target-loading/src/createLoading.d.ts +13 -0
- package/es/modules/target-loading/src/createLoading.mjs +57 -0
- package/es/modules/target-loading/src/target-loading.css +18 -0
- package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
- package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
- package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
- package/es/modules/target-loading/src/typing.d.ts +9 -0
- package/es/modules/target-loading/src/useLoading.d.ts +9 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +4 -0
- package/es/types/index.d.ts +190 -0
- package/es/utils/index.d.ts +4 -1
- package/es/utils/message-util/message-util.d.ts +7 -0
- package/es/utils/message-util/message-util.mjs +26 -0
- package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
- package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
- package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
- package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
- package/package.json +14 -6
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
/* 模态 start */
|
|
66
|
+
/* 模态 end */
|
|
67
|
+
.gct-modal {
|
|
68
|
+
--gct-modal-z-index: var(--gct-z-index-modal);
|
|
69
|
+
--gct-modal-background-color: var(--gct-color-bg-1);
|
|
70
|
+
}
|
|
71
|
+
.gct-modal__full-screen {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
right: 48px;
|
|
75
|
+
padding: 16px 8px;
|
|
76
|
+
color: #212528;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
line-height: 1;
|
|
79
|
+
line-height: 22px;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.gct-modal.is-hidden-footer > .ant-modal-content > .ant-modal-footer {
|
|
84
|
+
display: none;
|
|
85
|
+
padding: 16px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.gct-modal.is-hidden-close-btn > .ant-modal-content > .ant-modal-close {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.gct-modal.is-hidden-cancel-btn > .ant-modal-content > .ant-modal-footer > button:first-child {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.gct-modal.is-full-screen {
|
|
97
|
+
top: 0;
|
|
98
|
+
width: 100vw !important;
|
|
99
|
+
height: 100vh !important;
|
|
100
|
+
max-width: 100%;
|
|
101
|
+
max-height: fit-content;
|
|
102
|
+
margin: 0;
|
|
103
|
+
padding-bottom: 0;
|
|
104
|
+
}
|
|
105
|
+
.gct-modal.is-full-screen .ant-modal-content {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
width: 100vw;
|
|
109
|
+
max-width: 100vw;
|
|
110
|
+
height: 100vh;
|
|
111
|
+
max-height: 100vh;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.gct-modal > .ant-modal-content {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
max-height: 85vh;
|
|
120
|
+
}
|
|
121
|
+
.gct-modal > .ant-modal-content > .ant-modal-close > .ant-modal-close-x {
|
|
122
|
+
width: auto;
|
|
123
|
+
height: auto;
|
|
124
|
+
padding: 16px;
|
|
125
|
+
color: #212528;
|
|
126
|
+
line-height: 1;
|
|
127
|
+
line-height: 22px;
|
|
128
|
+
}
|
|
129
|
+
.gct-modal > .ant-modal-content > .ant-modal-header {
|
|
130
|
+
border-bottom: 1px solid #e0e3ea;
|
|
131
|
+
}
|
|
132
|
+
.gct-modal > .ant-modal-content > .ant-modal-footer {
|
|
133
|
+
border-top: 1px solid #e0e3ea;
|
|
134
|
+
}
|
|
135
|
+
.gct-modal > .ant-modal-content > .ant-modal-header,
|
|
136
|
+
.gct-modal > .ant-modal-content > .ant-modal-footer {
|
|
137
|
+
flex-shrink: 0;
|
|
138
|
+
padding: 16px;
|
|
139
|
+
}
|
|
140
|
+
.gct-modal > .ant-modal-content > .ant-modal-header .ant-modal-title {
|
|
141
|
+
color: #000;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
min-height: 22px;
|
|
144
|
+
}
|
|
145
|
+
.gct-modal > .ant-modal-content > .ant-modal-body {
|
|
146
|
+
flex-grow: 1;
|
|
147
|
+
padding: 0;
|
|
148
|
+
overflow: hidden auto;
|
|
149
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { IModalOptions, IOverlayContainer } from '@gct-paas/core';
|
|
3
|
+
export declare const AppModalComponent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
opts: {
|
|
5
|
+
type: PropType<IModalOptions>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
opts: {
|
|
10
|
+
type: PropType<IModalOptions>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
opts: IModalOptions;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
/**
|
|
17
|
+
* 创建模态框
|
|
18
|
+
*
|
|
19
|
+
* @author zhanghanrui
|
|
20
|
+
* @date 2024-03-19 21:03:37
|
|
21
|
+
* @export
|
|
22
|
+
* @param {() => VNode} render
|
|
23
|
+
* @param {(IModalOptions)} [opts]
|
|
24
|
+
* @return {*} {IOverlayContainer}
|
|
25
|
+
*/
|
|
26
|
+
export declare function createModal(render: () => VNode, opts?: IModalOptions): IOverlayContainer;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent, ref, provide, createVNode, h, resolveComponent, isVNode } from 'vue';
|
|
2
|
+
import { ConfigProvider } from 'ant-design-vue';
|
|
3
|
+
import { OverlayContainer, useNamespace, Modal } from '@gct-paas/core';
|
|
4
|
+
import { DndProvider } from 'vue3-dnd';
|
|
5
|
+
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
6
|
+
import './app-modal-component.css';/* empty css */
|
|
7
|
+
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
10
|
+
}
|
|
11
|
+
const AppModalComponent = /* @__PURE__ */ defineComponent({
|
|
12
|
+
props: {
|
|
13
|
+
opts: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({})
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(props, ctx) {
|
|
19
|
+
const ns = useNamespace('modal');
|
|
20
|
+
const isShow = ref(false);
|
|
21
|
+
// 是否全屏
|
|
22
|
+
const isFullScreen = ref(props.opts.defaultFullscreen ? true : false);
|
|
23
|
+
const onFullScreen = () => {
|
|
24
|
+
isFullScreen.value = !isFullScreen.value;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// 合并options
|
|
28
|
+
const options = ref({});
|
|
29
|
+
if (props.opts) {
|
|
30
|
+
Object.assign(options.value, props.opts);
|
|
31
|
+
}
|
|
32
|
+
let data = null;
|
|
33
|
+
const modal = new Modal({
|
|
34
|
+
dismiss: result => {
|
|
35
|
+
isShow.value = false;
|
|
36
|
+
data = result;
|
|
37
|
+
ctx.emit('dismiss', data);
|
|
38
|
+
},
|
|
39
|
+
setOptions(opt) {
|
|
40
|
+
Object.assign(options.value, opt);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
provide('modal', modal);
|
|
44
|
+
const dismiss = _data => {
|
|
45
|
+
return modal.dismiss(_data);
|
|
46
|
+
};
|
|
47
|
+
const present = () => {
|
|
48
|
+
isShow.value = true;
|
|
49
|
+
};
|
|
50
|
+
ctx.expose({
|
|
51
|
+
present,
|
|
52
|
+
dismiss
|
|
53
|
+
});
|
|
54
|
+
const isConfirmLoading = ref(false);
|
|
55
|
+
const ok = async () => {
|
|
56
|
+
if (modal.ok) {
|
|
57
|
+
try {
|
|
58
|
+
isConfirmLoading.value = true;
|
|
59
|
+
const result = await modal.ok();
|
|
60
|
+
isConfirmLoading.value = false;
|
|
61
|
+
if (result && (result.ok === true || result.close === true)) {
|
|
62
|
+
dismiss(result);
|
|
63
|
+
}
|
|
64
|
+
} finally {
|
|
65
|
+
isConfirmLoading.value = false;
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
console.warn('打开模态未实现ok方法');
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const cancel = async () => {
|
|
72
|
+
if (modal.cancel) {
|
|
73
|
+
const bol = await modal.cancel();
|
|
74
|
+
if (bol === false) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
dismiss();
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// TODO: 需要注入 antd 的多语言,待实现
|
|
82
|
+
const locale = {
|
|
83
|
+
getAntdLocale: {
|
|
84
|
+
locale: {}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const {
|
|
88
|
+
getAntdLocale
|
|
89
|
+
} = locale;
|
|
90
|
+
return () => {
|
|
91
|
+
let _slot;
|
|
92
|
+
const slot = ctx.slots.default?.();
|
|
93
|
+
if (slot && slot.length > 0) {
|
|
94
|
+
slot[0].props.modal = modal;
|
|
95
|
+
}
|
|
96
|
+
return createVNode(ConfigProvider, {
|
|
97
|
+
"locale": getAntdLocale
|
|
98
|
+
}, {
|
|
99
|
+
default: () => [createVNode(DndProvider, {
|
|
100
|
+
"backend": HTML5Backend
|
|
101
|
+
}, _isSlot(_slot = h(resolveComponent('a-modal'), {
|
|
102
|
+
visible: isShow,
|
|
103
|
+
class: [ns.b(), options.value.placement && ns.m(options.value.placement), options.value.modalClass, ns.is('hidden-footer', options.value.showFooter === false), ns.is('hidden-close-btn', options.value.showCloseBtn === false), ns.is('hidden-cancel-btn', options.value.showCancelBtn === false), ns.is('full-screen', isFullScreen.value)],
|
|
104
|
+
centered: true,
|
|
105
|
+
onOk: ok,
|
|
106
|
+
confirmLoading: isConfirmLoading,
|
|
107
|
+
onCancel: cancel,
|
|
108
|
+
okText: '确认',
|
|
109
|
+
okButtonProps: {
|
|
110
|
+
disabled: modal.state.okDisabled
|
|
111
|
+
},
|
|
112
|
+
...options.value
|
|
113
|
+
}, [options.value.canFullscreen !== false ? createVNode("div", {
|
|
114
|
+
"class": ns.e('full-screen'),
|
|
115
|
+
"onClick": onFullScreen
|
|
116
|
+
}, [createVNode("i", {
|
|
117
|
+
"class": `iconfont ${isFullScreen.value ? 'icon-tuichuquanping' : 'icon-quanping'}`
|
|
118
|
+
}, null)]) : null, slot])) ? _slot : {
|
|
119
|
+
default: () => [_slot]
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 创建模态框
|
|
128
|
+
*
|
|
129
|
+
* @author zhanghanrui
|
|
130
|
+
* @date 2024-03-19 21:03:37
|
|
131
|
+
* @export
|
|
132
|
+
* @param {() => VNode} render
|
|
133
|
+
* @param {(IModalOptions)} [opts]
|
|
134
|
+
* @return {*} {IOverlayContainer}
|
|
135
|
+
*/
|
|
136
|
+
function createModal(render, opts) {
|
|
137
|
+
return new OverlayContainer(AppModalComponent, render, opts);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { AppModalComponent, createModal };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.ant-btn[data-v-5375ec2b] {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
.ant-btn.btn-font-color[data-v-5375ec2b] {
|
|
7
|
+
color: var(--v8d035854) !important;
|
|
8
|
+
}
|
|
9
|
+
.ant-btn.btn-bg-style[data-v-5375ec2b] {
|
|
10
|
+
border-color: var(--e376d652) !important;
|
|
11
|
+
background: var(--v4ee5fd6d) !important;
|
|
12
|
+
}
|
|
13
|
+
.square[data-v-5375ec2b] {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
width: 72px;
|
|
19
|
+
height: 72px;
|
|
20
|
+
padding: 0;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
}
|
|
23
|
+
.square .icon-next[data-v-5375ec2b] {
|
|
24
|
+
margin: 0 !important;
|
|
25
|
+
}
|
|
26
|
+
.square .btn-title[data-v-5375ec2b] {
|
|
27
|
+
width: inherit;
|
|
28
|
+
padding: 0 8px;
|
|
29
|
+
}
|
|
30
|
+
.square.ant-btn-sm[data-v-5375ec2b] {
|
|
31
|
+
width: 72px;
|
|
32
|
+
height: 64px;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
}
|
|
35
|
+
.square.ant-btn-sm .btn-title[data-v-5375ec2b] {
|
|
36
|
+
padding: 0 4px;
|
|
37
|
+
}
|
|
38
|
+
.square.ant-btn-lg[data-v-5375ec2b] {
|
|
39
|
+
width: 80px;
|
|
40
|
+
height: 88px;
|
|
41
|
+
}
|
|
42
|
+
.squaref[data-v-5375ec2b] {
|
|
43
|
+
min-width: 72px;
|
|
44
|
+
height: 56px;
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
.line[data-v-5375ec2b] {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
[data-v-5375ec2b] .group .ant-btn {
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
55
|
+
[data-v-5375ec2b] .ant-btn-loading-icon {
|
|
56
|
+
width: 0;
|
|
57
|
+
height: 0;
|
|
58
|
+
line-height: 0;
|
|
59
|
+
}
|
|
60
|
+
[data-v-5375ec2b] .ant-btn-icon-only {
|
|
61
|
+
vertical-align: -2px;
|
|
62
|
+
}
|
|
63
|
+
.gct-text-overflow-2[data-v-5375ec2b] {
|
|
64
|
+
display: -webkit-inline-box;
|
|
65
|
+
display: -moz-inline-box;
|
|
66
|
+
display: inline-flexbox;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
-webkit-line-clamp: 2;
|
|
70
|
+
line-clamp: 2;
|
|
71
|
+
-webkit-box-orient: vertical;
|
|
72
|
+
-moz-box-orient: vertical;
|
|
73
|
+
box-orient: 2;
|
|
74
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ButtonSize, ButtonStyle } from '@gct-paas/core';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
block: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
disabled: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
loading: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
title: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
type: PropType<ButtonSize>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
type: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
hasIcon: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
hasText: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
danger: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
buttonStyle: {
|
|
45
|
+
type: PropType<ButtonStyle>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
i18nConfig: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
hidden: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
confirm: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
confirmText: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
enableCustomColor: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
backgroundColor: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
fontColor: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
|
+
click: (...args: any[]) => void;
|
|
78
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
79
|
+
block: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
disabled: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
loading: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
title: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
size: {
|
|
96
|
+
type: PropType<ButtonSize>;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
icon: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
type: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
hasIcon: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
hasText: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
danger: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
buttonStyle: {
|
|
120
|
+
type: PropType<ButtonStyle>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
i18nConfig: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
hidden: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
confirm: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
confirmText: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
enableCustomColor: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
backgroundColor: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
fontColor: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
}>> & Readonly<{
|
|
152
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
}>, {
|
|
154
|
+
type: string;
|
|
155
|
+
title: string;
|
|
156
|
+
loading: boolean;
|
|
157
|
+
size: ButtonSize;
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
block: boolean;
|
|
160
|
+
danger: boolean;
|
|
161
|
+
icon: string;
|
|
162
|
+
hidden: boolean;
|
|
163
|
+
confirm: boolean;
|
|
164
|
+
hasIcon: boolean;
|
|
165
|
+
hasText: boolean;
|
|
166
|
+
buttonStyle: ButtonStyle;
|
|
167
|
+
i18nConfig: string;
|
|
168
|
+
confirmText: string;
|
|
169
|
+
enableCustomColor: boolean;
|
|
170
|
+
backgroundColor: string;
|
|
171
|
+
fontColor: string;
|
|
172
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
173
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './base-button.vue3.mjs';
|
|
2
|
+
import './base-button.css';/* empty css */
|
|
3
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const baseButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5375ec2b"]]);
|
|
6
|
+
|
|
7
|
+
export { baseButton as default };
|