@gct-paas/core-web 0.1.5-dev.3 → 0.1.5-dev.5
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/_plugin-vue_export-helper-4vvM2fiX.js +1 -0
- package/dist/icon-next-picker-CShmDJI0.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/monaco-editor-B8f_I6sY.js +1 -0
- package/dist/overlayscrollbars-vue-B2LfyB-V.js +1 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.d.ts +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue.d.ts +6 -6
- package/es/components/I18nSelect/src/i18n-select-textarea.vue.d.ts +6 -6
- package/es/components/UserPick/index.d.ts +1 -1
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/base-button/base-button.vue.d.ts +6 -6
- package/es/components/base-button/base-button.vue.mjs +1 -1
- package/es/components/basic-button/basic-button.vue.d.ts +4 -4
- package/es/components/field-upload/src/FieldUpload.vue.d.ts +3 -3
- package/es/components/field-upload/src/components/base-upload.vue.d.ts +2 -2
- package/es/components/field-upload/src/components/base-upload.vue.mjs +2 -2
- package/es/components/field-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +4 -3
- package/es/components/field-upload/src/components/{base-upload.vue_vue_type_style_index_0_scoped_f53b6ac6_lang.css → base-upload.vue_vue_type_style_index_0_scoped_65872e0a_lang.css} +18 -18
- package/es/components/field-upload/src/components/file-list.vue.mjs +2 -2
- package/es/components/field-upload/src/components/file-list.vue_vue_type_script_setup_true_name_fileList_lang.mjs +2 -2
- package/es/components/field-upload/src/components/{file-list.vue_vue_type_style_index_0_scoped_3918aad0_lang.css → file-list.vue_vue_type_style_index_0_scoped_543b5221_lang.css} +25 -25
- package/es/components/field-upload/src/components/upload-design.vue.mjs +2 -2
- package/es/components/field-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +4 -3
- package/es/components/field-upload/src/components/{upload-design.vue_vue_type_style_index_0_scoped_1e5189c1_lang.css → upload-design.vue_vue_type_style_index_0_scoped_5fd18cf8_lang.css} +10 -10
- package/es/components/field-upload/src/hooks/hooks.d.ts +1 -1
- package/es/components/icon-next-picker/icon-next-picker.vue.mjs +6 -0
- package/es/components/{icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs → icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs} +7 -11
- package/es/components/image-upload/index.mjs +1 -1
- package/es/components/image-upload/src/ImageUpload.vue.d.ts +2 -2
- package/es/components/image-upload/src/components/base-upload.vue.d.ts +2 -2
- package/es/components/index.d.ts +1 -5
- package/es/components/index.mjs +2 -11
- package/es/create-app-vue.mjs +5 -3
- package/es/hooks/index.d.ts +0 -1
- package/es/hooks/index.mjs +0 -1
- package/es/index.mjs +35 -40
- package/es/modules/code-editor/index.d.ts +24 -24
- package/es/modules/code-editor/monaco-editor.vue.d.ts +9 -9
- package/es/modules/code-editor/useEditorConsole.d.ts +1 -1
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +2 -2
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
- package/es/modules/formula-editor/formula-editor.mjs +1 -2
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +1 -1
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.d.ts +4 -4
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.d.ts +4 -4
- package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.d.ts +2 -2
- package/es/modules/gct-form/editor/gct-form-table/gct-form-table.d.ts +2 -2
- package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.d.ts +2 -2
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/es/modules/gct-table/widgets/gct-table/gct-table.d.ts +2 -2
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +32 -32
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +10 -10
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +10 -10
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +5 -5
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +3 -3
- package/es/modules/picture-cropper/src/Cropper.vue.d.ts +9 -9
- package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +1 -3
- package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_af219c4c_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css} +7 -7
- package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +3 -3
- package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +1 -3
- package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_015ef4a4_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css} +16 -16
- package/es/modules/picture-preview/src/Functional.vue.d.ts +4 -4
- package/es/modules/target-loading/src/target-loading.vue.d.ts +2 -2
- package/es/setup-app.d.ts +2 -1
- package/es/setup-app.mjs +3 -1
- package/package.json +10 -8
- package/dist/monaco-editor-DCEyjUmJ.js +0 -1
- package/dist/useMonacoEditor-kyCCXYcK.js +0 -1
- package/es/components/assets-svg-icon/assets-svg-icon.css +0 -188
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +0 -134
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +0 -167
- package/es/components/assets-svg-icon/request.d.ts +0 -2
- package/es/components/assets-svg-icon/request.mjs +0 -68
- package/es/components/assets-svg-icon/utils.d.ts +0 -9
- package/es/components/assets-svg-icon/utils.mjs +0 -23
- package/es/components/assets-svg-icon/validate.d.ts +0 -4
- package/es/components/assets-svg-icon/validate.mjs +0 -29
- package/es/components/icon-next/data/icons.data.d.ts +0 -5
- package/es/components/icon-next/hooks/useIconAsset.d.ts +0 -16
- package/es/components/icon-next/hooks/useIconAsset.mjs +0 -36
- package/es/components/icon-next/hooks/useIconPark.d.ts +0 -16
- package/es/components/icon-next/hooks/useIconPark.mjs +0 -52
- package/es/components/icon-next/hooks/useIconPlatform.d.ts +0 -8
- package/es/components/icon-next/hooks/useIconPlatform.mjs +0 -43
- package/es/components/icon-next/index.d.ts +0 -3
- package/es/components/icon-next/index.mjs +0 -3
- package/es/components/icon-next/src/IconNext.vue.d.ts +0 -40
- package/es/components/icon-next/src/IconNext.vue.mjs +0 -7
- package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +0 -113
- package/es/components/icon-next/src/IconNext.vue_vue_type_style_index_0_scoped_360a87c9_lang.css +0 -18
- package/es/components/icon-next/src/IconNextPicker.vue.mjs +0 -6
- package/es/components/icon-next/types/index.d.ts +0 -17
- package/es/components/icon-next/types/index.mjs +0 -11
- package/es/components/svg-icon/svg-icon.vue.d.ts +0 -40
- package/es/components/svg-icon/svg-icon.vue.mjs +0 -6
- package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +0 -52
- package/es/components/svg-icon/svg-icon.vue_vue_type_style_index_0_lang.css +0 -73
- package/es/components/wujie-container/wujie-container.css +0 -74
- package/es/components/wujie-container/wujie-container.d.ts +0 -11
- package/es/components/wujie-container/wujie-container.mjs +0 -61
- package/es/hooks/useFile.d.ts +0 -4
- package/es/hooks/useFile.mjs +0 -22
- package/dist/{cropper-DyP6CFER.js → cropper-DPh9NaIi.js} +0 -0
- package/dist/{de_DE-DIDpd1gQ.js → de_DE-BY1He8Sf.js} +0 -0
- package/dist/{en_US-BaP-b1tP.js → en_US-CuX-vrWy.js} +0 -0
- package/dist/{es_ES-NOVlNQnw.js → es_ES-BqHRjpc9.js} +0 -0
- package/dist/{fr_FR-Bk_x0L7S.js → fr_FR-C4TFcMTv.js} +0 -0
- package/dist/{ja_JP-CeseBQS9.js → ja_JP-CgXnA74i.js} +0 -0
- package/dist/{pt_PT-DFlFmzXZ.js → pt_PT-C0ALlHDr.js} +0 -0
- package/dist/{ru_RU-C5XPaRfl.js → ru_RU-D39vUeFW.js} +0 -0
- package/dist/{tr_TR-CODhj5X1.js → tr_TR-Cm3P61iH.js} +0 -0
- package/dist/{vi_VN-BjwID8XV.js → vi_VN-BZ_iPKuE.js} +0 -0
- package/dist/{zh_CN-BKmwBYsr.js → zh_CN-DY_wA21D.js} +0 -0
- package/dist/{zh_TW-BSGEo2Qx.js → zh_TW-A1Y7MG2g.js} +0 -0
- package/es/components/{icon-next/src/IconNextPicker.vue.d.ts → icon-next-picker/icon-next-picker.vue.d.ts} +5 -5
- /package/es/components/{icon-next/src/IconNextPicker.vue_vue_type_style_index_0_lang.css → icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css} +0 -0
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
package/es/components/icon-next/src/IconNext.vue_vue_type_style_index_0_scoped_360a87c9_lang.css
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.icon-next[data-v-360a87c9] {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
color: var(--color);
|
|
5
|
-
background-color: var(--bg-color);
|
|
6
|
-
transition: all 0.3s;
|
|
7
|
-
}
|
|
8
|
-
.icon-next > svg[data-v-360a87c9] {
|
|
9
|
-
transform: translateY(1px);
|
|
10
|
-
}
|
|
11
|
-
i.icon-next[data-v-360a87c9] {
|
|
12
|
-
height: var(--size);
|
|
13
|
-
width: var(--size);
|
|
14
|
-
background-image: var(--bg-image);
|
|
15
|
-
background-size: contain;
|
|
16
|
-
background-position: center;
|
|
17
|
-
background-repeat: no-repeat;
|
|
18
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import IconNextPicker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_default from "./IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs";
|
|
2
|
-
import './IconNextPicker.vue_vue_type_style_index_0_lang.css';/* empty css */
|
|
3
|
-
//#region src/components/icon-next/src/IconNextPicker.vue
|
|
4
|
-
var IconNextPicker_default = IconNextPicker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_default;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { IconNextPicker_default as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ICategory {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
icons?: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
_filter_: string[];
|
|
8
|
-
}[];
|
|
9
|
-
children?: ICategory[];
|
|
10
|
-
}
|
|
11
|
-
export declare enum IconNamespaceEnum {
|
|
12
|
-
Preset = "icon-preset",
|
|
13
|
-
IconPark = "icon-park",
|
|
14
|
-
Asset = "icon-assert",
|
|
15
|
-
Platform = "icon-platform",
|
|
16
|
-
GctIconFont = "gct-iconfont"
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/components/icon-next/types/index.ts
|
|
2
|
-
var IconNamespaceEnum = /* @__PURE__ */ function(IconNamespaceEnum) {
|
|
3
|
-
IconNamespaceEnum["Preset"] = "icon-preset";
|
|
4
|
-
IconNamespaceEnum["IconPark"] = "icon-park";
|
|
5
|
-
IconNamespaceEnum["Asset"] = "icon-assert";
|
|
6
|
-
IconNamespaceEnum["Platform"] = "icon-platform";
|
|
7
|
-
IconNamespaceEnum["GctIconFont"] = "gct-iconfont";
|
|
8
|
-
return IconNamespaceEnum;
|
|
9
|
-
}({});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { IconNamespaceEnum };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
prefix: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
name: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
-
default: number;
|
|
13
|
-
};
|
|
14
|
-
spin: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
-
prefix: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
name: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
29
|
-
default: number;
|
|
30
|
-
};
|
|
31
|
-
spin: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
}>> & Readonly<{}>, {
|
|
36
|
-
size: string | number;
|
|
37
|
-
prefix: string;
|
|
38
|
-
spin: boolean;
|
|
39
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
40
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default from "./svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs";
|
|
2
|
-
import './svg-icon.vue_vue_type_style_index_0_lang.css';/* empty css */
|
|
3
|
-
//#region src/components/svg-icon/svg-icon.vue
|
|
4
|
-
var svg_icon_default = svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { svg_icon_default as default };
|
package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
|
|
2
|
-
import { useNamespace } from "@gct-paas/core";
|
|
3
|
-
//#region src/components/svg-icon/svg-icon.vue?vue&type=script&setup=true&name=SvgIcon&lang.ts
|
|
4
|
-
var _hoisted_1 = ["xlink:href"];
|
|
5
|
-
var svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "svg-icon",
|
|
7
|
-
props: {
|
|
8
|
-
prefix: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: "icon"
|
|
11
|
-
},
|
|
12
|
-
name: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
type: [Number, String],
|
|
18
|
-
default: 16
|
|
19
|
-
},
|
|
20
|
-
spin: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(__props) {
|
|
26
|
-
const ns = useNamespace("svg-icon");
|
|
27
|
-
const props = __props;
|
|
28
|
-
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
|
|
29
|
-
const getStyle = computed(() => {
|
|
30
|
-
const { size } = props;
|
|
31
|
-
let s = `${size}`;
|
|
32
|
-
s = `${s.replace("px", "")}px`;
|
|
33
|
-
return {
|
|
34
|
-
width: s,
|
|
35
|
-
height: s
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
return openBlock(), createElementBlock("svg", {
|
|
40
|
-
class: normalizeClass([
|
|
41
|
-
_ctx.$attrs.class,
|
|
42
|
-
unref(ns).b(),
|
|
43
|
-
__props.spin && unref(ns).m("spin")
|
|
44
|
-
]),
|
|
45
|
-
style: normalizeStyle(getStyle.value),
|
|
46
|
-
"aria-hidden": "true"
|
|
47
|
-
}, [createElementVNode("use", { "xlink:href": symbolId.value }, null, 8, _hoisted_1)], 6);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
//#endregion
|
|
52
|
-
export { svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default as default };
|
|
@@ -1,73 +0,0 @@
|
|
|
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-svg-icon {
|
|
66
|
-
display: inline-block;
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
fill: currentcolor;
|
|
69
|
-
vertical-align: -0.15em;
|
|
70
|
-
}
|
|
71
|
-
.gct-svg-icon--spin {
|
|
72
|
-
animation: loadingCircle 1s infinite linear;
|
|
73
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
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-wujie-container {
|
|
66
|
-
height: 100%;
|
|
67
|
-
width: 100%;
|
|
68
|
-
}
|
|
69
|
-
.gct-wujie-container .__vue-devtools-container__ {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
.gct-wujie-container iframe {
|
|
73
|
-
border: 0;
|
|
74
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const WuJieContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
wuJieName: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
wuJieName: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import './wujie-container.css';/* empty css */
|
|
2
|
-
import { computed, createVNode, defineComponent, mergeProps, onUnmounted, resolveComponent, useAttrs } from "vue";
|
|
3
|
-
import { getToken, useNamespace, useUserStore } from "@gct-paas/core";
|
|
4
|
-
import WujieVue3 from "wujie-vue3";
|
|
5
|
-
//#region src/components/wujie-container/wujie-container.tsx
|
|
6
|
-
var { destroyApp } = WujieVue3;
|
|
7
|
-
var WuJieContainer = /* @__PURE__ */ defineComponent({
|
|
8
|
-
name: "WuJieContainer",
|
|
9
|
-
props: { wuJieName: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true
|
|
12
|
-
} },
|
|
13
|
-
setup(props) {
|
|
14
|
-
const ns = useNamespace("wujie-container");
|
|
15
|
-
const attr = useAttrs();
|
|
16
|
-
function beforeLoad(win) {
|
|
17
|
-
Object.defineProperty(win, "pSystem", { get: () => {
|
|
18
|
-
return window.System;
|
|
19
|
-
} });
|
|
20
|
-
Object.defineProperty(win, "_gct", { get: () => {
|
|
21
|
-
return window._gct;
|
|
22
|
-
} });
|
|
23
|
-
Object.defineProperty(win, "_api", { get: () => {
|
|
24
|
-
return window._api;
|
|
25
|
-
} });
|
|
26
|
-
}
|
|
27
|
-
function beforeMount(win) {
|
|
28
|
-
console.debug("beforeMount System", win.System);
|
|
29
|
-
console.debug("beforeMount _gct", win._gct);
|
|
30
|
-
console.debug("beforeMount _api", win._api);
|
|
31
|
-
}
|
|
32
|
-
function loadError(win) {
|
|
33
|
-
console.debug("loadError", win.System);
|
|
34
|
-
}
|
|
35
|
-
const { userInfo } = useUserStore();
|
|
36
|
-
const token = getToken();
|
|
37
|
-
const _props = computed(() => {
|
|
38
|
-
return {
|
|
39
|
-
appInfo: _gct.store.appInfo,
|
|
40
|
-
userInfo,
|
|
41
|
-
token,
|
|
42
|
-
...attr.props ?? {}
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
onUnmounted(() => {
|
|
46
|
-
if (attr.alive === true) return;
|
|
47
|
-
destroyApp(props.wuJieName);
|
|
48
|
-
});
|
|
49
|
-
return () => {
|
|
50
|
-
return createVNode(resolveComponent("wujieVue"), mergeProps({
|
|
51
|
-
"class": ns.b(),
|
|
52
|
-
"name": props.wuJieName,
|
|
53
|
-
"beforeLoad": beforeLoad,
|
|
54
|
-
"beforeMount": beforeMount,
|
|
55
|
-
"loadError": loadError
|
|
56
|
-
}, attr, { "props": _props.value }), null);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
//#endregion
|
|
61
|
-
export { WuJieContainer };
|
package/es/hooks/useFile.d.ts
DELETED
package/es/hooks/useFile.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { VITE_MINIO_PATH } from "@gct-paas/core";
|
|
2
|
-
//#region src/hooks/useFile.ts
|
|
3
|
-
var urlCacheMap = {};
|
|
4
|
-
function transformUrl(url, { random = true } = {}) {
|
|
5
|
-
if (!url) return "/404.png";
|
|
6
|
-
const url2 = `${VITE_MINIO_PATH}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
7
|
-
if (!random) return url2;
|
|
8
|
-
if (urlCacheMap[url] && Date.now() - urlCacheMap[url].timestamp < 60 * 1e3) return `${url2}?${urlCacheMap[url].random}`;
|
|
9
|
-
if (Object.keys(urlCacheMap).length > 100) urlCacheMap = {};
|
|
10
|
-
const r = Math.random();
|
|
11
|
-
urlCacheMap[url] = {
|
|
12
|
-
random: r,
|
|
13
|
-
timestamp: Date.now()
|
|
14
|
-
};
|
|
15
|
-
return `${url2}?${r}`;
|
|
16
|
-
}
|
|
17
|
-
function fileUrlParser(url) {
|
|
18
|
-
if (!url) return url;
|
|
19
|
-
return `${VITE_MINIO_PATH}${url.startsWith("/") ? "" : "/"}${url}`;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { fileUrlParser, transformUrl };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -27,9 +27,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
"update:value": (...args: any[]) => void;
|
|
31
|
-
"update:color": (...args: any[]) => void;
|
|
32
30
|
"update:background": (...args: any[]) => void;
|
|
31
|
+
"update:color": (...args: any[]) => void;
|
|
32
|
+
"update:value": (...args: any[]) => void;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
34
34
|
value: {
|
|
35
35
|
type: StringConstructor;
|
|
@@ -59,13 +59,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
}>> & Readonly<{
|
|
62
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
63
|
-
"onUpdate:color"?: ((...args: any[]) => any) | undefined;
|
|
64
62
|
"onUpdate:background"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
"onUpdate:color"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
+
disabled: boolean;
|
|
66
67
|
color: string;
|
|
67
68
|
size: number;
|
|
68
|
-
disabled: boolean;
|
|
69
69
|
showColor: boolean;
|
|
70
70
|
showBackground: boolean;
|
|
71
71
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
File without changes
|
|
File without changes
|