@gct-paas/core-web 0.1.4-dev.6 → 0.1.4-dev.8
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.esm.min.mjs +24964 -0
- package/dist/index.min.cjs +59 -12
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +59 -12
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +35 -0
- package/es/components/code-editor/code-editor.mjs +15 -20
- package/es/components/index.d.ts +1 -0
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.d.ts +4 -4
- package/es/components/layout/flex-item/flex-item.d.ts +4 -4
- package/es/components/layout/grid-container/grid-container.d.ts +4 -4
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.d.ts +4 -4
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +7 -7
- package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +6 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.d.ts +17 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue.d.ts +3 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +8 -8
- package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +8 -8
- package/es/editor/gct-form-info/gct-form-info.d.ts +7 -7
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +6 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +8 -8
- package/es/editor/gct-form-number/gct-form-number.d.ts +7 -7
- package/es/editor/gct-form-picker/gct-form-picker.d.ts +8 -8
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +7 -7
- package/es/editor/gct-form-select/gct-form-select.d.ts +7 -7
- package/es/editor/gct-form-span/gct-form-span.d.ts +5 -5
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +6 -6
- package/es/editor/gct-form-text/gct-form-text.d.ts +7 -7
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +7 -7
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +5 -6
- package/es/index.mjs +19 -24
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +24 -0
- package/es/modules/gct-dnd/constants/index.mjs +9 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/types/index.d.ts +1 -1
- package/es/utils/with-install.mjs +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +9 -9
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +6 -6
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +4 -4
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +5 -5
- package/es/widgets/gct-form/gct-form.d.ts +5 -5
- package/package.json +15 -13
- package/dist/core-web.css +0 -1
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/index.mjs +0 -7
- package/es/components/layout/flex-container/flex-container.mjs +0 -90
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.mjs +0 -53
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/grid-container/grid-container.mjs +0 -47
- package/es/components/layout/view-container/view-container.mjs +0 -39
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/utils/index.mjs +0 -3
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -110
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -0,0 +1,67 @@
|
|
|
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-code-editor {
|
|
66
|
+
height: 100%;
|
|
67
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { editor } from 'monaco-editor';
|
|
3
|
+
export declare const CodeEditor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
config: {
|
|
9
|
+
type: PropType<editor.IStandaloneEditorConstructionOptions>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
language: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
value: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
config: {
|
|
22
|
+
type: PropType<editor.IStandaloneEditorConstructionOptions>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
language: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
value: string;
|
|
33
|
+
config: editor.IStandaloneEditorConstructionOptions;
|
|
34
|
+
language: string;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, onUnmounted, createVNode } from 'vue';
|
|
2
2
|
import { useNamespace, deepMerge } from '@gct-paas/core';
|
|
3
3
|
import loader from '@monaco-editor/loader';
|
|
4
|
-
import './code-editor.
|
|
4
|
+
import './code-editor.css';/* empty css */
|
|
5
5
|
|
|
6
|
-
"use strict";
|
|
7
6
|
const CodeEditor = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name:
|
|
7
|
+
name: 'CodeEditor',
|
|
9
8
|
props: {
|
|
10
9
|
value: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: ''
|
|
13
12
|
},
|
|
14
13
|
config: {
|
|
15
14
|
type: Object,
|
|
@@ -17,26 +16,26 @@ const CodeEditor = /* @__PURE__ */ defineComponent({
|
|
|
17
16
|
},
|
|
18
17
|
language: {
|
|
19
18
|
type: String,
|
|
20
|
-
default:
|
|
19
|
+
default: 'typescript'
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
|
-
emits: [
|
|
22
|
+
emits: ['update:value'],
|
|
24
23
|
setup(props, {
|
|
25
24
|
emit
|
|
26
25
|
}) {
|
|
27
|
-
const ns = useNamespace(
|
|
26
|
+
const ns = useNamespace('code-editor');
|
|
28
27
|
const val = computed({
|
|
29
28
|
get() {
|
|
30
|
-
return props.value ||
|
|
29
|
+
return props.value || '';
|
|
31
30
|
},
|
|
32
31
|
set(v) {
|
|
33
|
-
emit(
|
|
32
|
+
emit('update:value', v);
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
const el = ref(null);
|
|
37
36
|
let monacoEditor = null;
|
|
38
37
|
onMounted(() => {
|
|
39
|
-
loader.init().then(
|
|
38
|
+
loader.init().then(m => {
|
|
40
39
|
if (el.value) {
|
|
41
40
|
monacoEditor = m.editor.create(el.value, deepMerge({
|
|
42
41
|
value: val.value,
|
|
@@ -55,16 +54,12 @@ const CodeEditor = /* @__PURE__ */ defineComponent({
|
|
|
55
54
|
onUnmounted(() => {
|
|
56
55
|
monacoEditor?.dispose();
|
|
57
56
|
});
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
return () => {
|
|
58
|
+
return createVNode("div", {
|
|
59
|
+
"ref": el,
|
|
60
|
+
"class": ns.b()
|
|
61
|
+
}, null);
|
|
61
62
|
};
|
|
62
|
-
},
|
|
63
|
-
render() {
|
|
64
|
-
return createVNode("div", {
|
|
65
|
-
"ref": "el",
|
|
66
|
-
"class": this.ns.b()
|
|
67
|
-
}, null);
|
|
68
63
|
}
|
|
69
64
|
});
|
|
70
65
|
|
package/es/components/index.d.ts
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
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-flex-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
@@ -3,13 +3,13 @@ import { IFlexContainer, IFormGroup } from '@gct-paas/core';
|
|
|
3
3
|
/**
|
|
4
4
|
* flex 布局容器
|
|
5
5
|
*/
|
|
6
|
-
export declare const FlexContainer: import('vue').DefineComponent<{
|
|
6
|
+
export declare const FlexContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
layout: PropType<IFlexContainer>;
|
|
8
|
-
}
|
|
8
|
+
}>, {
|
|
9
9
|
ns: import('@gct-paas/core').Namespace;
|
|
10
10
|
getStyle: () => IData;
|
|
11
11
|
getItemStyle: (model: IFormGroup) => IData;
|
|
12
|
-
},
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
13
|
layout: PropType<IFlexContainer>;
|
|
14
|
-
}
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
15
|
export default FlexContainer;
|
|
@@ -3,12 +3,12 @@ import { IFlexItem } from '@gct-paas/core';
|
|
|
3
3
|
/**
|
|
4
4
|
* flex 布局容器项
|
|
5
5
|
*/
|
|
6
|
-
export declare const FlexItem: import('vue').DefineComponent<{
|
|
6
|
+
export declare const FlexItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
layout: PropType<IFlexItem>;
|
|
8
|
-
}
|
|
8
|
+
}>, {
|
|
9
9
|
ns: import('@gct-paas/core').Namespace;
|
|
10
10
|
getStyle: () => IData;
|
|
11
|
-
},
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
12
|
layout: PropType<IFlexItem>;
|
|
13
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default FlexItem;
|
|
@@ -3,11 +3,11 @@ import { IGridContainer } from '@gct-paas/core';
|
|
|
3
3
|
/**
|
|
4
4
|
* 栅格布局
|
|
5
5
|
*/
|
|
6
|
-
export declare const GridContainer: import('vue').DefineComponent<{
|
|
6
|
+
export declare const GridContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
layout: PropType<IGridContainer>;
|
|
8
|
-
}
|
|
8
|
+
}>, {
|
|
9
9
|
ns: import('@gct-paas/core').Namespace;
|
|
10
|
-
},
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
11
|
layout: PropType<IGridContainer>;
|
|
12
|
-
}
|
|
12
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
export default GridContainer;
|
|
@@ -0,0 +1,83 @@
|
|
|
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-view-container {
|
|
66
|
+
background-color: white;
|
|
67
|
+
height: 100%;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.gct-view-container-header {
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.gct-view-container-content {
|
|
77
|
+
flex-grow: 1;
|
|
78
|
+
overflow: hidden auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.gct-view-container-footer {
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ViewContainer: import('vue').DefineComponent<{
|
|
1
|
+
export declare const ViewContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
context: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
};
|
|
@@ -9,9 +9,9 @@ export declare const ViewContainer: import('vue').DefineComponent<{
|
|
|
9
9
|
type: ObjectConstructor;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
},
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
15
|
context: {
|
|
16
16
|
type: ObjectConstructor;
|
|
17
17
|
};
|
|
@@ -22,4 +22,4 @@ export declare const ViewContainer: import('vue').DefineComponent<{
|
|
|
22
22
|
type: ObjectConstructor;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ import { IFormItem, ICheckSwitchEditor, EditorController } from '@gct-paas/core'
|
|
|
3
3
|
/**
|
|
4
4
|
* 文本编辑器
|
|
5
5
|
*/
|
|
6
|
-
export declare const GctFormCheckSwitch: import('vue').DefineComponent<{
|
|
6
|
+
export declare const GctFormCheckSwitch: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
7
|
itemModel: {
|
|
8
8
|
type: PropType<IFormItem>;
|
|
9
9
|
required: true;
|
|
@@ -16,11 +16,11 @@ export declare const GctFormCheckSwitch: import('vue').DefineComponent<{
|
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
}>, {
|
|
20
20
|
ns: import('@gct-paas/core').Namespace;
|
|
21
21
|
c: EditorController<ICheckSwitchEditor>;
|
|
22
|
-
val: import('vue').WritableComputedRef<any
|
|
23
|
-
},
|
|
22
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
itemModel: {
|
|
25
25
|
type: PropType<IFormItem>;
|
|
26
26
|
required: true;
|
|
@@ -33,8 +33,8 @@ export declare const GctFormCheckSwitch: import('vue').DefineComponent<{
|
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
|
-
}>> & {
|
|
36
|
+
}>> & Readonly<{
|
|
37
37
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
}
|
|
38
|
+
}>, {
|
|
39
39
|
value: boolean;
|
|
40
|
-
}, {}>;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, ICheckboxEditor, IDictionaryItem } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormCheckbox: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormCheckbox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,14 +13,14 @@ export declare const GctFormCheckbox: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
18
|
checked: import('vue').ComputedRef<any>;
|
|
19
19
|
onChange: (checkVal: any) => void;
|
|
20
20
|
options: import('vue').ComputedRef<(IDictionaryItem & {
|
|
21
21
|
checked?: boolean;
|
|
22
22
|
})[]>;
|
|
23
|
-
},
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
c: {
|
|
25
25
|
type: PropType<IFormItemController>;
|
|
26
26
|
required: true;
|
|
@@ -33,9 +33,9 @@ export declare const GctFormCheckbox: import('vue').DefineComponent<{
|
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
|
-
}>> & {
|
|
36
|
+
}>> & Readonly<{
|
|
37
37
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
}
|
|
38
|
+
}>, {
|
|
39
39
|
value: string;
|
|
40
|
-
}, {}>;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
export default GctFormCheckbox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, ISelectEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormFieldSelect: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormFieldSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,10 +13,10 @@ export declare const GctFormFieldSelect: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
visible: import('vue').Ref<boolean>;
|
|
19
|
-
},
|
|
18
|
+
visible: import('vue').Ref<boolean, boolean>;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
20
|
c: {
|
|
21
21
|
type: PropType<IFormItemController>;
|
|
22
22
|
required: true;
|
|
@@ -29,9 +29,19 @@ export declare const GctFormFieldSelect: import('vue').DefineComponent<{
|
|
|
29
29
|
type: StringConstructor;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
-
}>> & {
|
|
32
|
+
}>> & Readonly<{
|
|
33
33
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
}
|
|
34
|
+
}>, {
|
|
35
35
|
value: string;
|
|
36
|
-
}, {}
|
|
36
|
+
}, {}, {
|
|
37
|
+
modal: import('vue').DefineComponent<{
|
|
38
|
+
value: boolean;
|
|
39
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
"update:value": (...args: any[]) => void;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
42
|
+
value: boolean;
|
|
43
|
+
}> & Readonly<{
|
|
44
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
47
|
export default GctFormFieldSelect;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
value: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
5
|
"update:value": (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
7
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}, {}, {}>;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
export default _default;
|
|
10
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type __VLS_TypePropsToOption<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
-
} : {
|
|
15
|
-
type: import('vue').PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IFormItemController, INumberEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormI18n: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormI18n: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
c: {
|
|
5
5
|
type: PropType<IFormItemController>;
|
|
6
6
|
required: true;
|
|
@@ -13,11 +13,11 @@ export declare const GctFormI18n: import('vue').DefineComponent<{
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, {
|
|
17
17
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
val: import('vue').WritableComputedRef<any
|
|
19
|
-
i18nConfigValue: import('vue').WritableComputedRef<any>;
|
|
20
|
-
},
|
|
18
|
+
val: import('vue').WritableComputedRef<any, any>;
|
|
19
|
+
i18nConfigValue: import('vue').WritableComputedRef<any, any>;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
21
|
c: {
|
|
22
22
|
type: PropType<IFormItemController>;
|
|
23
23
|
required: true;
|
|
@@ -30,9 +30,9 @@ export declare const GctFormI18n: import('vue').DefineComponent<{
|
|
|
30
30
|
type: StringConstructor;
|
|
31
31
|
default: string;
|
|
32
32
|
};
|
|
33
|
-
}>> & {
|
|
33
|
+
}>> & Readonly<{
|
|
34
34
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}
|
|
35
|
+
}>, {
|
|
36
36
|
value: string;
|
|
37
|
-
}, {}>;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default GctFormI18n;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IIconSelectEditor } from '@gct-paas/core';
|
|
3
|
-
export declare const GctFormIconSelect: import('vue').DefineComponent<{
|
|
3
|
+
export declare const GctFormIconSelect: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
value: {
|
|
5
5
|
type: PropType<any>;
|
|
6
6
|
};
|
|
@@ -8,15 +8,15 @@ export declare const GctFormIconSelect: import('vue').DefineComponent<{
|
|
|
8
8
|
type: PropType<IIconSelectEditor>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, {
|
|
12
12
|
ns: import('@gct-paas/core').Namespace;
|
|
13
|
-
icon: import('vue').Ref<string>;
|
|
14
|
-
color: import('vue').Ref<string>;
|
|
15
|
-
background: import('vue').Ref<string>;
|
|
13
|
+
icon: import('vue').Ref<string, string>;
|
|
14
|
+
color: import('vue').Ref<string, string>;
|
|
15
|
+
background: import('vue').Ref<string, string>;
|
|
16
16
|
nextPickerStyle: import('vue').ComputedRef<{
|
|
17
17
|
'--box-size': string;
|
|
18
18
|
} | undefined>;
|
|
19
|
-
},
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
20
|
value: {
|
|
21
21
|
type: PropType<any>;
|
|
22
22
|
};
|
|
@@ -24,6 +24,6 @@ export declare const GctFormIconSelect: import('vue').DefineComponent<{
|
|
|
24
24
|
type: PropType<IIconSelectEditor>;
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
|
-
}>> & {
|
|
27
|
+
}>> & Readonly<{
|
|
28
28
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
}, {}, {}>;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|