@gct-paas/design 0.1.5-dev.6 → 0.1.5-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.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/es/components/design/design-content/design-content.css +76 -0
- package/es/components/design/design-content/design-content.d.ts +190 -0
- package/es/components/design/design-content/design-content.mjs +274 -0
- package/es/components/design/design-drag-item/design-drag-item.css +179 -0
- package/es/components/design/design-drag-item/design-drag-item.d.ts +56 -0
- package/es/components/design/design-drag-item/design-drag-item.mjs +237 -0
- package/es/components/design/design-drop-container/design-drop-container.css +103 -0
- package/es/components/design/design-drop-container/design-drop-container.d.ts +92 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +182 -0
- package/es/components/design/design-drop-line/design-drop-line.css +165 -0
- package/es/components/design/design-drop-line/design-drop-line.d.ts +73 -0
- package/es/components/design/design-drop-line/design-drop-line.mjs +136 -0
- package/es/components/design/design-item-actions/design-item-actions.css +97 -0
- package/es/components/design/design-item-actions/design-item-actions.d.ts +42 -0
- package/es/components/design/design-item-actions/design-item-actions.mjs +147 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.css +70 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.d.ts +168 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.mjs +155 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.css +85 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.d.ts +53 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.mjs +169 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.css +12 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.d.ts +60 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.mjs +60 -0
- package/es/components/design/design-item-preview/design-item-preview.css +91 -0
- package/es/components/design/design-item-preview/design-item-preview.d.ts +1 -0
- package/es/components/design/design-item-preview/design-item-preview.mjs +32 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.css +67 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.d.ts +50 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.mjs +68 -0
- package/es/components/design/design-not-found/design-not-found.css +68 -0
- package/es/components/design/design-not-found/design-not-found.d.ts +14 -0
- package/es/components/design/design-not-found/design-not-found.mjs +19 -0
- package/es/components/design/index.d.ts +2 -0
- package/es/components/design/index.mjs +2 -0
- package/es/components/design-save-tip/design-save-tip.mjs +1 -1
- package/es/components/editor/index.mjs +2 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue.d.ts +13 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue.mjs +5 -0
- package/es/components/editor/length-unit-editor/length-unit-editor.vue_vue_type_script_setup_true_name_length-unit-editor_lang.mjs +47 -0
- package/es/components/field-transfer/components/field-transfer-modal.vue.d.ts +5 -1
- package/es/components/field-transfer/components/field-transfer-modal.vue.mjs +2 -2
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_script_setup_true_name_field-transfer-modal_lang.mjs +2 -1
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_711e6992_lang.css +8 -0
- package/es/components/field-transfer/index.d.ts +2 -0
- package/es/components/field-transfer/index.mjs +1 -0
- package/es/components/index.d.ts +5 -2
- package/es/components/index.mjs +10 -2
- package/es/components/material/index.d.ts +1 -0
- package/es/components/material/index.mjs +1 -0
- package/es/components/material/material-content/material-content.css +86 -0
- package/es/components/material/material-content/material-content.d.ts +1 -0
- package/es/components/material/material-content/material-content.mjs +49 -0
- package/es/components/material/material-module/material-module.css +104 -0
- package/es/components/material/material-module/material-module.d.ts +60 -0
- package/es/components/material/material-module/material-module.mjs +67 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.css +69 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts +56 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.mjs +21 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.css +83 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.d.ts +13 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.mjs +66 -0
- package/es/components/material/material-outline-tree/material-outline-tree.css +81 -0
- package/es/components/material/material-outline-tree/material-outline-tree.d.ts +13 -0
- package/es/components/material/material-outline-tree/material-outline-tree.mjs +67 -0
- package/es/components/material/material-tab-pane/material-tab-pane.css +68 -0
- package/es/components/material/material-tab-pane/material-tab-pane.d.ts +13 -0
- package/es/components/material/material-tab-pane/material-tab-pane.mjs +19 -0
- package/es/components/material/material-tabs/material-tabs.css +105 -0
- package/es/components/material/material-tabs/material-tabs.d.ts +103 -0
- package/es/components/material/material-tabs/material-tabs.mjs +44 -0
- package/es/components/modal-name-editor/modal-name-editor.d.ts +1 -11
- package/es/components/modal-name-editor/modal-name-editor.mjs +27 -38
- package/es/components/multi-field/index.d.ts +2 -0
- package/es/components/multi-field/index.mjs +1 -0
- package/es/components/multi-field/multi-field-display.vue.d.ts +8 -0
- package/es/components/multi-field/multi-field-display.vue.mjs +7 -0
- package/es/components/multi-field/multi-field-display.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/components/multi-field/multi-field-display.vue_vue_type_style_index_0_scoped_802ade7b_lang.css +4 -0
- package/es/components/multi-field/multi-field-item.vue.d.ts +6 -0
- package/es/components/multi-field/multi-field-item.vue.mjs +7 -0
- package/es/components/multi-field/multi-field-item.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/es/components/multi-field/multi-field-item.vue_vue_type_style_index_0_scoped_881cb08e_lang.css +31 -0
- package/es/components/panel/index.d.ts +1 -0
- package/es/components/panel/index.mjs +1 -0
- package/es/components/panel/panel-content/panel-content.css +189 -0
- package/es/components/panel/panel-content/panel-content.d.ts +19 -0
- package/es/components/panel/panel-content/panel-content.mjs +48 -0
- package/es/components/panel/panel-form/panel-form.css +67 -0
- package/es/components/panel/panel-form/panel-form.d.ts +62 -0
- package/es/components/panel/panel-form/panel-form.mjs +59 -0
- package/es/components/panel/panel-path/panel-path.css +89 -0
- package/es/components/panel/panel-path/panel-path.d.ts +35 -0
- package/es/components/panel/panel-path/panel-path.mjs +52 -0
- package/es/components/user-occupy/user-occupy.vue.mjs +2 -2
- package/es/components/user-occupy/user-occupy.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/user-occupy/{user-occupy.vue_vue_type_style_index_0_scoped_24cb9749_lang.css → user-occupy.vue_vue_type_style_index_0_scoped_9b136922_lang.css} +6 -6
- package/es/controller/index.d.ts +1 -0
- package/es/controller/index.mjs +1 -0
- package/es/controller/view/design-view.controller.d.ts +48 -0
- package/es/controller/view/design-view.controller.mjs +150 -0
- package/es/create-app-vue.mjs +2 -0
- package/es/editor/content-tag-style/content-tag-style.css +164 -0
- package/es/editor/content-tag-style/content-tag-style.d.ts +112 -0
- package/es/editor/content-tag-style/content-tag-style.mjs +80 -0
- package/es/editor/content-tag-style/index.d.ts +8 -0
- package/es/editor/content-tag-style/index.mjs +11 -0
- package/es/editor/field-info-editor/field-info-editor.css +125 -0
- package/es/editor/field-info-editor/field-info-editor.d.ts +111 -0
- package/es/editor/field-info-editor/field-info-editor.mjs +38 -0
- package/es/editor/field-info-editor/index.d.ts +8 -0
- package/es/editor/field-info-editor/index.mjs +9 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +19 -0
- package/es/editor/model-field-select/index.d.ts +8 -0
- package/es/editor/model-field-select/index.mjs +9 -0
- package/es/editor/model-field-select/model-field-select.css +148 -0
- package/es/editor/model-field-select/model-field-select.d.ts +42 -0
- package/es/editor/model-field-select/model-field-select.mjs +217 -0
- package/es/editor/style-border/index.d.ts +4 -0
- package/es/editor/style-border/index.mjs +11 -0
- package/es/editor/style-border/style-border.d.ts +35 -0
- package/es/editor/style-border/style-border.mjs +38 -0
- package/es/editor/style-font/index.d.ts +4 -0
- package/es/editor/style-font/index.mjs +11 -0
- package/es/editor/style-font/style-font.css +86 -0
- package/es/editor/style-font/style-font.d.ts +35 -0
- package/es/editor/style-font/style-font.mjs +36 -0
- package/es/editor/style-position/index.d.ts +4 -0
- package/es/editor/style-position/index.mjs +11 -0
- package/es/editor/style-position/style-position.d.ts +35 -0
- package/es/editor/style-position/style-position.mjs +35 -0
- package/es/editor/style-spacing/index.d.ts +4 -0
- package/es/editor/style-spacing/index.mjs +11 -0
- package/es/editor/style-spacing/style-spacing.d.ts +34 -0
- package/es/editor/style-spacing/style-spacing.mjs +60 -0
- package/es/hooks/design-view/designer/useDesignSave.mjs +3 -1
- package/es/hooks/index.d.ts +2 -1
- package/es/hooks/index.mjs +3 -2
- package/es/hooks/use-design-view-controller/use-design-view-controller.d.ts +11 -0
- package/es/hooks/use-design-view-controller/use-design-view-controller.mjs +31 -0
- package/es/index.d.ts +5 -2
- package/es/index.mjs +23 -8
- package/es/interface/controller/i-design-view.controller.d.ts +3 -5
- package/es/interface/form-editor/child-list-editor/child-list-editor.d.ts +114 -0
- package/es/interface/form-editor/index.d.ts +9 -0
- package/es/interface/form-editor/style-border/i-style-border.controller.d.ts +11 -0
- package/es/interface/form-editor/style-border/i-style-border.d.ts +22 -0
- package/es/interface/form-editor/style-font/i-style-font.controller.d.ts +11 -0
- package/es/interface/form-editor/style-font/i-style-font.d.ts +13 -0
- package/es/interface/form-editor/style-position/i-style-position.controller.d.ts +11 -0
- package/es/interface/form-editor/style-position/i-style-position.d.ts +13 -0
- package/es/interface/form-editor/style-spacing/i-style-spacing.controller.d.ts +11 -0
- package/es/interface/form-editor/style-spacing/i-style-spacing.d.ts +22 -0
- package/es/interface/index.d.ts +2 -0
- package/es/interface/provider/i-node-provider.d.ts +140 -0
- package/es/provider/design-editor-node/design-editor-node.provider.d.ts +41 -0
- package/es/provider/design-editor-node/design-editor-node.provider.mjs +57 -0
- package/es/provider/index.d.ts +2 -0
- package/es/provider/index.mjs +2 -0
- package/es/provider/node-base/node-base.provider.d.ts +25 -0
- package/es/provider/node-base/node-base.provider.mjs +34 -0
- package/es/register/index.d.ts +1 -0
- package/es/register/index.mjs +1 -0
- package/es/register/node/node.register.d.ts +113 -0
- package/es/register/node/node.register.mjs +141 -0
- package/es/store/index.d.ts +1 -0
- package/es/store/index.mjs +1 -0
- package/es/store/view/design-view.store.d.ts +12 -0
- package/es/store/view/design-view.store.mjs +327 -0
- package/es/utils/can-drop/can-drop.d.ts +12 -0
- package/es/utils/can-drop/can-drop.mjs +48 -0
- package/es/utils/design-plugin-pkg-util/design-plugin-pkg-util.d.ts +1 -1
- package/es/utils/design-plugin-pkg-util/design-plugin-pkg-util.mjs +29 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/package.json +12 -11
- package/es/components/field-cascader/index.d.ts +0 -2
- package/es/components/field-cascader/index.mjs +0 -1
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +0 -87
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +0 -6
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +0 -115
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +0 -69
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +0 -11
- package/es/components/field-cascader/src/SearchInput.vue.mjs +0 -7
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +0 -38
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +0 -9
- package/es/components/field-cascader/src/hooks.d.ts +0 -129
- package/es/components/field-cascader/src/hooks.mjs +0 -163
- package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_0c9dd8a1_lang.css +0 -5
package/es/components/material/material-module-drag-container/material-module-drag-container.css
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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-material-module-drag-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
}
|
package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IMaterialData } from '../../../interface';
|
|
2
|
+
export declare const MaterialModuleDragContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
items: {
|
|
4
|
+
type: {
|
|
5
|
+
(arrayLength: number): IMaterialData[];
|
|
6
|
+
(...items: IMaterialData[]): IMaterialData[];
|
|
7
|
+
new (arrayLength: number): IMaterialData[];
|
|
8
|
+
new (...items: IMaterialData[]): IMaterialData[];
|
|
9
|
+
isArray(arg: any): arg is any[];
|
|
10
|
+
readonly prototype: any[];
|
|
11
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
12
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
13
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
14
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
of<T>(...items: T[]): T[];
|
|
16
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
17
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
18
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
19
|
+
};
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
items: {
|
|
24
|
+
type: {
|
|
25
|
+
(arrayLength: number): IMaterialData[];
|
|
26
|
+
(...items: IMaterialData[]): IMaterialData[];
|
|
27
|
+
new (arrayLength: number): IMaterialData[];
|
|
28
|
+
new (...items: IMaterialData[]): IMaterialData[];
|
|
29
|
+
isArray(arg: any): arg is any[];
|
|
30
|
+
readonly prototype: any[];
|
|
31
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
32
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
33
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
34
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
35
|
+
of<T>(...items: T[]): T[];
|
|
36
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
37
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
38
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
39
|
+
};
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
items: IMaterialData[];
|
|
44
|
+
}, {}, {
|
|
45
|
+
MaterialModuleDragItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
46
|
+
data: {
|
|
47
|
+
type: import('vue').PropType<IMaterialData>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
data: {
|
|
52
|
+
type: import('vue').PropType<IMaterialData>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/es/components/material/material-module-drag-container/material-module-drag-container.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MaterialModuleDragItem } from "../material-module-drag-item/material-module-drag-item.mjs";
|
|
2
|
+
import './material-module-drag-container.css';/* empty css */
|
|
3
|
+
import { useNamespace } from "@gct-paas/core";
|
|
4
|
+
import { createVNode, defineComponent } from "vue";
|
|
5
|
+
//#region src/components/material/material-module-drag-container/material-module-drag-container.tsx
|
|
6
|
+
var MaterialModuleDragContainer = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "MaterialModuleDragContainer",
|
|
8
|
+
components: { MaterialModuleDragItem },
|
|
9
|
+
props: { items: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
} },
|
|
13
|
+
setup(props) {
|
|
14
|
+
const ns = useNamespace("material-module-drag-container");
|
|
15
|
+
return () => {
|
|
16
|
+
return createVNode("div", { "class": ns.b() }, [props.items.map((item) => createVNode(MaterialModuleDragItem, { "data": item }, null))]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { MaterialModuleDragContainer };
|
|
@@ -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-material-module-drag-item {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
width: 108px;
|
|
69
|
+
height: 34px;
|
|
70
|
+
padding: 8px;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
73
|
+
border: 1px solid #E8EBF0;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
}
|
|
76
|
+
.gct-material-module-drag-item__icon {
|
|
77
|
+
margin-right: 8px;
|
|
78
|
+
color: #797A7D;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.gct-material-module-drag-item__label {
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IMaterialData } from '../../../interface';
|
|
3
|
+
export declare const MaterialModuleDragItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<IMaterialData>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
data: {
|
|
10
|
+
type: PropType<IMaterialData>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DesignViewPrefix } from "../../../constant/index.mjs";
|
|
2
|
+
import { NodeRegister } from "../../../register/node/node.register.mjs";
|
|
3
|
+
import "../../../register/index.mjs";
|
|
4
|
+
import { useDesignViewController } from "../../../hooks/use-design-view-controller/use-design-view-controller.mjs";
|
|
5
|
+
import "../../../hooks/index.mjs";
|
|
6
|
+
import './material-module-drag-item.css';/* empty css */
|
|
7
|
+
import { useNamespace } from "@gct-paas/core";
|
|
8
|
+
import { createVNode, defineComponent, onMounted } from "vue";
|
|
9
|
+
import { useDrag } from "vue3-dnd";
|
|
10
|
+
import { getEmptyImage } from "react-dnd-html5-backend";
|
|
11
|
+
//#region src/components/material/material-module-drag-item/material-module-drag-item.tsx
|
|
12
|
+
var MaterialModuleDragItem = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "MaterialModuleDragItem",
|
|
14
|
+
props: { data: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
} },
|
|
18
|
+
setup(props) {
|
|
19
|
+
const ns = useNamespace("material-module-drag-item");
|
|
20
|
+
const c = useDesignViewController();
|
|
21
|
+
const [collect, drag, preview] = useDrag({
|
|
22
|
+
type: DesignViewPrefix.CUSTOM_HOME,
|
|
23
|
+
item: () => {
|
|
24
|
+
const provider = NodeRegister.get(props.data.type, c.store.prefix);
|
|
25
|
+
if (!provider) throw new Error(`未找到素材 ${props.data.type} 适配器`);
|
|
26
|
+
c.store.setDragging(true);
|
|
27
|
+
const data = provider.create();
|
|
28
|
+
return {
|
|
29
|
+
id: data.id,
|
|
30
|
+
data,
|
|
31
|
+
group: "",
|
|
32
|
+
index: -1,
|
|
33
|
+
mode: "create",
|
|
34
|
+
types: [data.type]
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
collect: (monitor) => {
|
|
38
|
+
return {
|
|
39
|
+
canDrag: monitor.canDrag(),
|
|
40
|
+
isDragging: monitor.isDragging()
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
end: async (_, monitor) => {
|
|
44
|
+
c.store.setDragging(false);
|
|
45
|
+
const r = monitor.getDropResult();
|
|
46
|
+
if (r && r.asyncDrop) {
|
|
47
|
+
const result = await r.asyncDrop;
|
|
48
|
+
if (result && result.success) {}
|
|
49
|
+
}
|
|
50
|
+
c.dropEnd();
|
|
51
|
+
},
|
|
52
|
+
options: { dropEffect: "copy" }
|
|
53
|
+
});
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
if (preview) preview(getEmptyImage(), { captureDraggingState: true });
|
|
56
|
+
});
|
|
57
|
+
return () => {
|
|
58
|
+
return createVNode("div", {
|
|
59
|
+
"ref": drag,
|
|
60
|
+
"class": [ns.b(), ns.is("dragging", collect.value.isDragging)]
|
|
61
|
+
}, [createVNode("div", { "class": ns.e("icon") }, [createVNode("i", { "class": ["iconfont", props.data.icon] }, null)]), createVNode("div", { "class": ns.e("label") }, [props.data.label])]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
export { MaterialModuleDragItem };
|
|
@@ -0,0 +1,81 @@
|
|
|
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-material-outline-tree__tree .ant-tree-treenode {
|
|
66
|
+
color: #666;
|
|
67
|
+
}
|
|
68
|
+
.gct-material-outline-tree__tree .ant-tree-treenode .ant-tree-switcher {
|
|
69
|
+
width: 16px;
|
|
70
|
+
}
|
|
71
|
+
.gct-material-outline-tree__tree .ant-tree-treenode .ant-tree-switcher .ant-tree-switcher-icon {
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
}
|
|
75
|
+
.gct-material-outline-tree__tree .ant-tree-treenode .ant-tree-node-content-wrapper {
|
|
76
|
+
padding-left: 0;
|
|
77
|
+
}
|
|
78
|
+
.gct-material-outline-tree__tree .ant-tree-treenode .ant-tree-node-selected {
|
|
79
|
+
color: var(--ant-primary-color);
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface TreeNode {
|
|
2
|
+
key: string;
|
|
3
|
+
title: string;
|
|
4
|
+
icon: unknown;
|
|
5
|
+
children: TreeNode[];
|
|
6
|
+
}
|
|
7
|
+
export declare const MaterialOutlineTree: import('vue').DefineComponent<{}, {
|
|
8
|
+
ns: import('@gct-paas/core').Namespace;
|
|
9
|
+
treeRef: import('vue').Ref<any, any>;
|
|
10
|
+
selectedKeys: import('vue').Ref<string[], string[]>;
|
|
11
|
+
treeData: import('vue').ComputedRef<TreeNode[]>;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { MaterialRegister } from "../../../register/material/material.register.mjs";
|
|
2
|
+
import "../../../register/index.mjs";
|
|
3
|
+
import { useDesignViewController } from "../../../hooks/use-design-view-controller/use-design-view-controller.mjs";
|
|
4
|
+
import "../../../hooks/index.mjs";
|
|
5
|
+
import './material-outline-tree.css';/* empty css */
|
|
6
|
+
import { useNamespace } from "@gct-paas/core";
|
|
7
|
+
import { computed, createVNode, defineComponent, ref, resolveComponent, watch } from "vue";
|
|
8
|
+
//#region src/components/material/material-outline-tree/material-outline-tree.tsx
|
|
9
|
+
var MaterialOutlineTree = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "MaterialOutlineTree",
|
|
11
|
+
setup() {
|
|
12
|
+
const ns = useNamespace("material-outline-tree");
|
|
13
|
+
const treeRef = ref();
|
|
14
|
+
const selectedKeys = ref([]);
|
|
15
|
+
const c = useDesignViewController();
|
|
16
|
+
watch(() => c.store.selected, () => {
|
|
17
|
+
if (c.store.selected) selectedKeys.value = [c.store.selected.id];
|
|
18
|
+
else selectedKeys.value = [];
|
|
19
|
+
});
|
|
20
|
+
watch(selectedKeys, () => {
|
|
21
|
+
const val = selectedKeys.value[0];
|
|
22
|
+
if (val) {
|
|
23
|
+
const node = c.store.getNode(val);
|
|
24
|
+
if (node && node.id !== c.store.selected?.id) c.store.setActive(node);
|
|
25
|
+
} else c.store.setActive(null);
|
|
26
|
+
});
|
|
27
|
+
const calcDeepTree = (items) => {
|
|
28
|
+
const arr = [];
|
|
29
|
+
items.forEach((_) => {
|
|
30
|
+
const p = MaterialRegister.getMaterial(_.type, c.store.prefix);
|
|
31
|
+
const node = {
|
|
32
|
+
key: _.id,
|
|
33
|
+
title: _.label,
|
|
34
|
+
icon: p && p.icon ? createVNode("i", { "class": `iconfont ${p.icon}` }, null) : "",
|
|
35
|
+
children: []
|
|
36
|
+
};
|
|
37
|
+
const children = c.store.getChildren(_.id);
|
|
38
|
+
if (children && children.length > 0) node.children = calcDeepTree(children);
|
|
39
|
+
arr.push(node);
|
|
40
|
+
});
|
|
41
|
+
return arr;
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
ns,
|
|
45
|
+
treeRef,
|
|
46
|
+
selectedKeys,
|
|
47
|
+
treeData: computed(() => {
|
|
48
|
+
return calcDeepTree(c.store.getChildren());
|
|
49
|
+
})
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
render() {
|
|
53
|
+
return createVNode("div", { "class": this.ns.b() }, [createVNode(resolveComponent("a-tree"), {
|
|
54
|
+
"ref": "treeRef",
|
|
55
|
+
"class": this.ns.e("tree"),
|
|
56
|
+
"selectedKeys": this.selectedKeys,
|
|
57
|
+
"onUpdate:selectedKeys": ($event) => this.selectedKeys = $event,
|
|
58
|
+
"treeData": this.treeData,
|
|
59
|
+
"blockNode": true,
|
|
60
|
+
"show-icon": true,
|
|
61
|
+
"autoExpandParent": true,
|
|
62
|
+
"default-expand-all": true
|
|
63
|
+
}, null)]);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { MaterialOutlineTree };
|
|
@@ -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-material-tab-pane {
|
|
66
|
+
height: 100%;
|
|
67
|
+
overflow: hidden auto;
|
|
68
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const MaterialTabPane: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
tabTag: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {
|
|
7
|
+
ns: import('@gct-paas/core').Namespace;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
tabTag: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import './material-tab-pane.css';/* empty css */
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
import { createVNode, defineComponent } from "vue";
|
|
4
|
+
//#region src/components/material/material-tab-pane/material-tab-pane.tsx
|
|
5
|
+
var MaterialTabPane = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "MaterialTabPane",
|
|
7
|
+
props: { tabTag: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: true
|
|
10
|
+
} },
|
|
11
|
+
setup() {
|
|
12
|
+
return { ns: useNamespace("material-tab-pane") };
|
|
13
|
+
},
|
|
14
|
+
render() {
|
|
15
|
+
return createVNode("div", { "class": this.ns.b() }, [this.$slots.default?.()]);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { MaterialTabPane };
|
|
@@ -0,0 +1,105 @@
|
|
|
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-material-tabs {
|
|
66
|
+
display: flex;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
.gct-material-tabs__item {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
height: 74px;
|
|
75
|
+
color: #5D6474;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
.gct-material-tabs__item.is-active {
|
|
79
|
+
color: #000;
|
|
80
|
+
background-color: #cdd1d6;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.gct-material-tabs__item-icon {
|
|
84
|
+
height: 28px;
|
|
85
|
+
}
|
|
86
|
+
.gct-material-tabs__item-icon .iconfont {
|
|
87
|
+
font-size: 22px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.gct-material-tabs__item-label {
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.gct-material-tabs-left {
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
width: 48px;
|
|
98
|
+
background-color: #E6E9EF;
|
|
99
|
+
border: 2px solid #E0E3EA;
|
|
100
|
+
border-radius: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.gct-material-tabs-right {
|
|
104
|
+
flex-grow: 1;
|
|
105
|
+
}
|