@vtj/ui 0.0.6 → 0.4.0
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/LICENSE +21 -0
- package/cdn/index.js +1 -0
- package/cdn/style.css +1 -0
- package/lib/index.js +2039 -0
- package/lib/style.css +1 -1
- package/package.json +24 -33
- package/types/components/block/Block.vue.d.ts +143 -0
- package/types/components/block/block.d.ts +68 -0
- package/types/components/block/index.d.ts +319 -0
- package/types/components/config/Config.d.ts +26 -0
- package/types/components/config/index.d.ts +19 -0
- package/types/components/config/props.d.ts +6 -0
- package/types/components/container/Container.vue.d.ts +52 -0
- package/types/components/container/container.d.ts +46 -0
- package/types/components/container/index.d.ts +159 -0
- package/types/components/cron/Cron.vue.d.ts +9 -0
- package/types/components/cron/cron.d.ts +23 -0
- package/types/components/cron/index.d.ts +11 -0
- package/types/components/dialog/Dialog.vue.d.ts +289 -0
- package/types/components/dialog/create.d.ts +6 -0
- package/types/components/dialog/dialog.d.ts +155 -0
- package/types/components/dialog/hooks.d.ts +927 -0
- package/types/components/dialog/index.d.ts +638 -0
- package/types/components/element/Element.d.ts +25 -0
- package/types/components/element/index.d.ts +21 -0
- package/types/components/field/Field.vue.d.ts +802 -0
- package/types/components/field/field.d.ts +230 -0
- package/types/components/field/hooks.d.ts +23 -0
- package/types/components/field/index.d.ts +2034 -0
- package/types/components/field/setters/InputSetter.d.ts +45 -0
- package/types/components/field/setters/SelectSetter.d.ts +45 -0
- package/types/components/field/setters/factory.d.ts +54 -0
- package/types/components/field/setters/index.d.ts +93 -0
- package/types/components/form/Form.vue.d.ts +5352 -0
- package/types/components/form/form.d.ts +384 -0
- package/types/components/form/hooks.d.ts +1906 -0
- package/types/components/form/index.d.ts +15373 -0
- package/types/components/help/Help.vue.d.ts +315 -0
- package/types/components/help/help.d.ts +172 -0
- package/types/components/help/hooks.d.ts +18 -0
- package/types/components/help/index.d.ts +316 -0
- package/types/components/icon/Icon.vue.d.ts +52 -0
- package/types/components/icon/icon.d.ts +30 -0
- package/types/components/icon/index.d.ts +166 -0
- package/types/components/index.d.ts +16 -0
- package/types/components/page/Page.vue.d.ts +22 -0
- package/types/components/page/index.d.ts +118 -0
- package/types/components/page/page.d.ts +9 -0
- package/types/components/panel/Panel.vue.d.ts +573 -0
- package/types/components/panel/index.d.ts +1207 -0
- package/types/components/panel/panel.d.ts +227 -0
- package/types/components/text/Text.vue.d.ts +52 -0
- package/types/components/text/index.d.ts +165 -0
- package/types/components/text/text.d.ts +37 -0
- package/types/components/tool/Tool.vue.d.ts +158 -0
- package/types/components/tool/Trigger.d.ts +29 -0
- package/types/components/tool/hooks.d.ts +250 -0
- package/types/components/tool/index.d.ts +371 -0
- package/types/components/tool/tool.d.ts +91 -0
- package/types/components/toolbar/Toolbar.vue.d.ts +44 -0
- package/types/components/toolbar/hooks.d.ts +14 -0
- package/types/components/toolbar/index.d.ts +161 -0
- package/types/components/toolbar/toolbar.d.ts +45 -0
- package/types/components/wrapper/Wrapper.vue.d.ts +268 -0
- package/types/components/wrapper/index.d.ts +601 -0
- package/types/components/wrapper/wrapper.d.ts +145 -0
- package/types/constants.d.ts +4 -0
- package/types/hooks/index.d.ts +4 -0
- package/types/hooks/useConfig.d.ts +5 -0
- package/types/hooks/useDraggable.d.ts +13 -0
- package/types/hooks/useIcon.d.ts +4 -0
- package/types/hooks/useResizable.d.ts +25 -0
- package/types/index.d.ts +13 -4
- package/types/list.d.ts +21588 -0
- package/types/utils/emits.d.ts +6 -0
- package/types/utils/index.d.ts +4 -0
- package/types/utils/install.d.ts +9 -0
- package/types/utils/make-install.d.ts +5 -0
- package/types/utils/util.d.ts +8 -0
- package/README.md +0 -4
- package/lib/cdn/index.cjs.js +0 -1
- package/lib/cdn/index.es.js +0 -261
- package/lib/cdn/index.umd.js +0 -1
- package/lib/cdn/style.css +0 -1
- package/lib/index.cjs.js +0 -1
- package/lib/index.es.js +0 -265
- package/lib/index.umd.js +0 -1
- package/src/components/XChart/Chart.vue +0 -42
- package/src/components/XChart/index.ts +0 -8
- package/src/components/XChart/style.scss +0 -0
- package/src/components/XChartBar/Bar.vue +0 -27
- package/src/components/XChartBar/index.ts +0 -8
- package/src/components/XChartLine/Line.vue +0 -27
- package/src/components/XChartLine/index.ts +0 -8
- package/src/components/XChartPie/Pie.vue +0 -54
- package/src/components/XChartPie/index.ts +0 -8
- package/src/components/XElement/Element.vue +0 -14
- package/src/components/XElement/index.ts +0 -8
- package/src/components/XTestSuit/TestSuit.vue +0 -47
- package/src/components/XTestSuit/index.ts +0 -8
- package/src/components/XTestSuit/style.scss +0 -14
- package/src/hooks/useECharts.ts +0 -55
- package/src/hooks/useRectChart.ts +0 -46
- package/src/index.ts +0 -25
- package/src/theme/_vars.scss +0 -8
- package/src/theme/base.scss +0 -0
- package/src/theme/index.scss +0 -4
- package/types/dev/vite-env.d.ts +0 -7
- package/types/src/components/XChart/Chart.vue.d.ts +0 -69
- package/types/src/components/XChart/index.d.ts +0 -2
- package/types/src/components/XChartBar/Bar.vue.d.ts +0 -124
- package/types/src/components/XChartBar/index.d.ts +0 -2
- package/types/src/components/XChartLine/Line.vue.d.ts +0 -124
- package/types/src/components/XChartLine/index.d.ts +0 -2
- package/types/src/components/XChartPie/Pie.vue.d.ts +0 -111
- package/types/src/components/XChartPie/index.d.ts +0 -2
- package/types/src/components/XElement/Element.vue.d.ts +0 -23
- package/types/src/components/XElement/index.d.ts +0 -2
- package/types/src/components/XTestSuit/TestSuit.vue.d.ts +0 -59
- package/types/src/components/XTestSuit/index.d.ts +0 -2
- package/types/src/hooks/useECharts.d.ts +0 -15
- package/types/src/hooks/useRectChart.d.ts +0 -4
- package/types/src/index.d.ts +0 -7
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.x-
|
|
1
|
+
div::-webkit-scrollbar{z-index:11;width:6px}div::-webkit-scrollbar:horizontal{height:6px}div::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}div::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}div::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}div::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}body.is-dragging,body.is-resizing{user-select:none}body.is-dragging iframe,body.is-resizing iframe{user-select:none;pointer-events:none}:root{--el-x-block-background: #fafafa;--el-x-block-padding: 10px;--el-x-block-radius: 4px;--el-x-block-border: 1px solid #e4e7ed;--el-x-block-split: 10px}.x-block{flex-shrink:0}.x-block.is-flex{display:flex}.x-block.is-background{background-color:var(--el-x-block-background)}.x-block.is-split-column>.x-block+.x-block{margin-top:10px}.x-block.is-split-row>.x-block+.x-block{margin-left:10px}.x-block.is-padding{padding:var(--el-x-block-padding);box-sizing:border-box}.x-block.is-radius{border-radius:var(--el-x-block-radius)}.x-block.is-border{border:var(--el-x-block-border)}.x-block.is-fit{width:100%;height:100%}.x-block.is-row{flex-direction:row}.x-block.is-column{flex-direction:column}.x-block.is-row-reverse{flex-direction:row-reverse}.x-block.is-column-reverse{flex-direction:column-reverse}.x-block.is-overflow-auto{overflow:auto}.x-block.is-overflow-hidden{overflow:hidden}.x-block.is-overflow-visible{overflow:visible}.x-block.is-grow{flex-grow:1}.x-block.is-grow-height{height:1px}.x-block.is-grow-width{width:1px}.x-block.is-shrink{flex-shrink:1}.x-block.is-wrap{flex-wrap:wrap}.x-block.is-nowrap{flex-wrap:nowrap}.x-block.is-wrap-reverse{flex-wrap:wrap-reverse}.x-block.is-justify-center{justify-content:center}.x-block.is-justify-start{justify-content:flex-start}.x-block.is-justify-end{justify-content:flex-end}.x-block.is-justify-between{justify-content:space-between}.x-block.is-justify-around{justify-content:space-around}.x-block.is-align-baseline{align-items:baseline}.x-block.is-align-center{align-items:center}.x-block.is-align-start{align-items:flex-start}.x-block.is-align-end{align-items:flex-end}:root{--el-x-page-background: #ffffff}.x-page{background-color:var(--el-x-page-background)}.x-page *{box-sizing:border-box}.x-icon{line-height:1}.x-icon.is-pointer{cursor:pointer}.x-icon.is-pointer:hover{opacity:.7}.x-icon img{width:100%;height:100%;transform:translateY(1px)}.x-icon+.x-icon{margin-left:10px}:root{--el-x-text-color: var(--el-text-color-regular);--el-x-text-color-primary: var(--el-text-color-primary);--el-x-text-font-size: var(--el-font-size-base)}.x-text{line-height:1.5;padding:0;margin:0;font-size:var(--el-x-text-font-size);color:var(--el-x-text-color);font-family:var(--el-font-family)}.x-text+.x-text{margin-top:.5em}.x-text.is-indent{text-indent:2em}.x-text.is-secondary{color:var(--el-text-color-secondary)}.x-text.is-type-h1{font-weight:700;font-size:var(--el-font-size-extra-large);color:var(--el-x-text-color-primary)}.x-text.is-type-h2{font-weight:700;font-size:var(--el-font-size-large);color:var(--el-x-text-color-primary)}.x-text.is-type-h3{font-weight:700;font-size:var(--el-font-size-medium);color:var(--el-x-text-color-primary)}.x-text.is-type-h4{font-weight:700;font-size:var(--el-font-size-base);color:var(--el-x-text-color-primary)}.x-text.is-type-h5{font-weight:700;font-size:var(--el-font-size-small);color:var(--el-x-text-color-primary)}.x-text.is-type-h6{font-weight:700;font-size:var(--el-font-size-extra-small);color:var(--el-x-text-color-primary)}.x-text.is-type-strong{font-weight:700}.x-text.is-type-ol,.x-text.is-type-ul{margin-left:3em}.x-text.is-type-li+.x-text.is-type-li{margin-top:0}.x-text.is-placeholder{color:var(--el-text-color-placeholder)}.x-text.is-disabled{color:var(--el-text-color-disabled)}:root{--el-x-tool-hover: rgba(0, 0, 0, .1);--el-x-tool-color: var(--el-text-color-regular);--el-x-tool-hover-radius: 4px;--el-x-tool-hover-padding: 5px}.x-tool{display:inline-block;vertical-align:middle}.x-tool+.x-tool{margin-left:5px}.x-tool__trigger{outline:none!important;line-height:1}.x-tool__trigger.is-icon{padding:var(--el-x-tool-hover-padding);border-radius:var(--el-x-tool-hover-radius);cursor:pointer;color:var(--el-x-tool-color);line-height:0}.x-tool__trigger.is-icon:hover{background-color:var(--el-x-tool-hover);opacity:.9}.x-tool__trigger.is-disabled{opacity:.5;cursor:not-allowed}.x-tool__inner{display:inline-flex;align-content:center;align-items:center}.x-tool__inner>.x-icon+span{margin-left:5px}.x-tool__label{line-height:1}.x-tool__menu{display:flex;flex-direction:row;justify-content:space-between;padding:2px 8px!important}.x-tool__menu.el-dropdown-menu__item--divided{margin:0}.x-tool__menu.is-active{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.x-tool__item{flex-grow:1}.x-tool__close{margin-left:10px;transform:translate(5px);padding:2px;font-size:16px;cursor:pointer}.x-tool__close:hover{background-color:#0000001a;border-radius:100%;color:#000c}:root{--el-x-panel-padding-small: 5px}.x-panel{background-color:#fff}.x-panel__header{--el-x-block-padding: 8px 10px}.x-panel__title{display:flex;justify-content:flex-start;align-items:center;line-height:1;white-space:nowrap;text-overflow:ellipsis}.x-panel__icon{margin-right:5px}.x-panel.is-small{--el-x-block-padding: var(--el-x-panel-padding-small);--el-x-tool-hover-padding: 3px}.x-panel.is-small>.x-panel__header{--el-x-block-padding: var(--el-x-panel-padding-small)}.x-panel.is-shadow-always,.x-panel.is-shadow-hover:hover{box-shadow:var(--el-box-shadow-lighter)}.x-toolbar__divider+.x-toolbar__divider{display:none}.x-toolbar__divider:first-child{display:none}:root{--el-x-dialog-newpearl-color: #0068c8}.x-dialog{border-top-width:0!important;position:absolute;pointer-events:initial;overflow:hidden}.x-dialog>.x-panel__header{color:#303133;--el-x-tool-color: #303133;border-bottom:1px solid #f2f6fc}.x-dialog>.x-panel__header>.x-toolbar{font-size:12px}.x-dialog>.x-panel__header>.x-toolbar>.x-tool__trigger{line-height:1}.x-dialog>.x-panel__body{height:1px}.x-dialog>.x-panel__footer{border-top:1px solid #f2f6fc}.x-dialog.is-theme-newpearl{--el-x-block-border: 2px solid var(--el-x-dialog-newpearl-color);--el-x-block-background: var(--el-x-dialog-newpearl-color)}.x-dialog.is-theme-newpearl>.x-panel__header{color:#fff;--el-x-tool-color: #ffffff;border-bottom:1px solid var(--el-x-dialog-newpearl-color)}.x-dialog.is-draggable>.x-panel__header{cursor:move}.x-dialog.is-maximized{width:100%!important;height:100%!important;left:0!important;top:0!important}.x-dialog.is-resizing iframe,.x-dialog.is-dragging iframe{pointer-events:none}.x-dialog__wrapper{position:absolute;width:100vw;height:100vh;left:0;top:0;z-index:1000;pointer-events:none;overflow:hidden}.x-dialog__modal{pointer-events:initial;position:absolute;width:100vw;height:100vh;left:0;top:0;background-color:#0000000d}.x-dialog__frame{width:100%;height:100%;border:none}.x-dialog__main{width:100%;height:100%}.x-dialog__action{overflow:hidden;white-space:nowrap}:root{--el-x-wrapper-background: #ffffff;--el-x-wrapper-fixed-background: rgba(255, 255, 255, .5)}.x-wrapper{position:relative}.x-wrapper__fixed{position:absolute;z-index:1;left:0;width:100%;background-color:var(--el-x-wrapper-fixed-background);backdrop-filter:saturate(50%) blur(5px);-webkit-backdrop-filter:saturate(50%) blur(5px)}.x-wrapper__fixed.is-fixed-top{top:0}.x-wrapper__fixed.is-fixed-bottom{bottom:0}.x-wrapper__fixed.is-fixed-none{position:static}.x-wrapper__body{width:100%;height:100%;background-color:var(--el-x-wrapper-background)}.x-wrapper__body.is-fixed-none{height:auto}.x-container.is-split-border{border-right:none;border-bottom:none}.x-container.is-fit .x-container__row{height:100%}.x-container__col.is-split{border:var(--el-x-block-border);border-left:none;border-top:none}.x-field__error{--el-x-tool-hover-padding: 3px;--el-x-tool-color: #f56c6c;position:absolute;right:0;width:18px;height:18px;font-size:12px;transition:none}.x-field.is-has-extra .el-form-item__content{flex-wrap:nowrap}.x-field .el-select,.x-field .el-date-editor,.x-field .el-cascader{width:100%}.x-form{color:var(--el-x-form-color)}.x-form .el-form--inline .el-form-item{margin-right:0}.x-form .el-form-item--small{margin-bottom:10px}.x-help__inner{padding:10px}:root{--el-x-cron-color: #333}.x-cron{color:var(--el-x-cron-color)}
|
package/package.json
CHANGED
|
@@ -1,55 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"setup": "pnpm install --registry=https://registry.npmmirror.com",
|
|
7
8
|
"dev": "cross-env ENV_TYPE=dev vite",
|
|
8
|
-
"build": "vue-tsc --noEmit &&
|
|
9
|
-
"build:cdn": "vue-tsc --noEmit && cross-env
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
9
|
+
"build": "vue-tsc --noEmit && vite build && pnpm run build:cdn",
|
|
10
|
+
"build:cdn": "vue-tsc --noEmit && cross-env CDN=true vite build",
|
|
11
|
+
"build:dts": "rimraf ./types && vue-tsc --declaration --emitDeclarationOnly",
|
|
12
|
+
"test:unit": "vitest --environment jsdom",
|
|
13
|
+
"coverage": "vitest run --coverage --environment jsdom"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=16.0.0"
|
|
14
17
|
},
|
|
15
18
|
"dependencies": {
|
|
16
|
-
"@vtj/
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
+
"@vtj/deps": "0.3.8",
|
|
20
|
+
"@vtj/icons": "0.0.3",
|
|
21
|
+
"@vtj/utils": "0.3.8"
|
|
19
22
|
},
|
|
20
23
|
"devDependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@types/lodash-es": "^4.17.6",
|
|
23
|
-
"@types/node": "^18.7.8",
|
|
24
|
-
"@vitejs/plugin-legacy": "^2.0.1",
|
|
25
|
-
"@vitejs/plugin-vue": "^3.0.3",
|
|
26
|
-
"@vitejs/plugin-vue-jsx": "^2.0.0",
|
|
27
|
-
"cross-env": "^7.0.3",
|
|
28
|
-
"rollup-plugin-external-globals": "^0.6.1",
|
|
29
|
-
"sass": "^1.54.5",
|
|
30
|
-
"typescript": "^4.7.4",
|
|
31
|
-
"unplugin-element-plus": "^0.4.1",
|
|
32
|
-
"vite": "^3.0.7",
|
|
33
|
-
"vite-plugin-dts": "^1.4.1",
|
|
34
|
-
"vue": "^3.2.37",
|
|
35
|
-
"vue-router": "^4.1.3",
|
|
36
|
-
"vue-tsc": "^0.39.5",
|
|
37
|
-
"@vueuse/core": "^9.1.0"
|
|
24
|
+
"@vtj/cli": "0.3.7"
|
|
38
25
|
},
|
|
39
26
|
"files": [
|
|
40
27
|
"lib",
|
|
41
28
|
"types",
|
|
42
|
-
"
|
|
29
|
+
"cdn"
|
|
43
30
|
],
|
|
44
|
-
"main": "lib/index.
|
|
45
|
-
"module": "lib/index.
|
|
31
|
+
"main": "lib/index.js",
|
|
32
|
+
"module": "lib/index.js",
|
|
46
33
|
"types": "types/index.d.ts",
|
|
47
34
|
"exports": {
|
|
48
35
|
"./lib/style.css": "./lib/style.css",
|
|
49
36
|
".": {
|
|
50
37
|
"types": "./types/index.d.ts",
|
|
51
|
-
"import": "./lib/index.
|
|
52
|
-
"require": "./lib/index.
|
|
38
|
+
"import": "./lib/index.js",
|
|
39
|
+
"require": "./lib/index.js"
|
|
53
40
|
}
|
|
54
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "117025d35e5a9660bc17d158c32bfd638e0eeac8"
|
|
55
46
|
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { BlockWrap, BlockOverflow } from '../..';
|
|
2
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import { BlockDirection } from './block';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
|
+
flex: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
height: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
direction: {
|
|
16
|
+
type: PropType<BlockDirection>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
grow: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
shrink: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
wrap: {
|
|
28
|
+
type: PropType<BlockWrap>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
justify: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
align: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
border: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
};
|
|
42
|
+
radius: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
45
|
+
background: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
};
|
|
48
|
+
split: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
};
|
|
51
|
+
fit: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
overflow: {
|
|
55
|
+
type: PropType<BlockOverflow>;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
padding: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
63
|
+
flex: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
width: {
|
|
68
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
69
|
+
};
|
|
70
|
+
height: {
|
|
71
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
|
+
};
|
|
73
|
+
direction: {
|
|
74
|
+
type: PropType<BlockDirection>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
grow: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
shrink: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
wrap: {
|
|
86
|
+
type: PropType<BlockWrap>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
justify: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
align: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
border: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
};
|
|
100
|
+
radius: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
background: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
};
|
|
106
|
+
split: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
};
|
|
109
|
+
fit: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
};
|
|
112
|
+
overflow: {
|
|
113
|
+
type: PropType<BlockOverflow>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
padding: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
}>>, {
|
|
121
|
+
wrap: BlockWrap;
|
|
122
|
+
flex: boolean;
|
|
123
|
+
direction: BlockDirection;
|
|
124
|
+
grow: boolean;
|
|
125
|
+
shrink: boolean;
|
|
126
|
+
justify: string;
|
|
127
|
+
align: string;
|
|
128
|
+
border: boolean;
|
|
129
|
+
radius: boolean;
|
|
130
|
+
background: boolean;
|
|
131
|
+
split: boolean;
|
|
132
|
+
fit: boolean;
|
|
133
|
+
overflow: BlockOverflow;
|
|
134
|
+
padding: boolean;
|
|
135
|
+
}, {}>, {
|
|
136
|
+
default?(_: {}): any;
|
|
137
|
+
}>;
|
|
138
|
+
export default _default;
|
|
139
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
140
|
+
new (): {
|
|
141
|
+
$slots: S;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type Block from './Block.vue';
|
|
3
|
+
export type BlockDirection = 'column' | 'row' | 'column-reverse' | 'row-reverse';
|
|
4
|
+
export type BlockWrap = 'initial' | 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
5
|
+
export type BlockJustifyContent = 'center' | 'around' | 'between' | 'start' | 'end';
|
|
6
|
+
export type BlockAlignItems = 'center' | 'stretch' | 'start' | 'end';
|
|
7
|
+
export type BlockOverflow = 'auto' | 'hidden' | 'visible' | 'scroll';
|
|
8
|
+
export declare const blockProps: {
|
|
9
|
+
flex: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
width: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
};
|
|
16
|
+
height: {
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
};
|
|
19
|
+
direction: {
|
|
20
|
+
type: PropType<BlockDirection>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
grow: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
shrink: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
wrap: {
|
|
32
|
+
type: PropType<BlockWrap>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
justify: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
align: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
border: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
};
|
|
46
|
+
radius: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
};
|
|
49
|
+
background: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
};
|
|
52
|
+
split: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
};
|
|
55
|
+
fit: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
};
|
|
58
|
+
overflow: {
|
|
59
|
+
type: PropType<BlockOverflow>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
padding: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type BlockProps = Partial<ExtractPropTypes<typeof blockProps>>;
|
|
68
|
+
export type BlockInstance = InstanceType<typeof Block>;
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { BlockWrap, BlockDirection, BlockOverflow } from './block';
|
|
2
|
+
import { ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
import { WithInstall } from '../../utils';
|
|
4
|
+
import Block from './Block.vue';
|
|
5
|
+
export declare const XBlock: WithInstall<{
|
|
6
|
+
new (...args: any[]): {
|
|
7
|
+
$: ComponentInternalInstance;
|
|
8
|
+
$data: {};
|
|
9
|
+
$props: {
|
|
10
|
+
wrap?: BlockWrap | undefined;
|
|
11
|
+
flex?: boolean | undefined;
|
|
12
|
+
direction?: BlockDirection | undefined;
|
|
13
|
+
grow?: boolean | undefined;
|
|
14
|
+
shrink?: boolean | undefined;
|
|
15
|
+
justify?: string | undefined;
|
|
16
|
+
align?: string | undefined;
|
|
17
|
+
border?: boolean | undefined;
|
|
18
|
+
radius?: boolean | undefined;
|
|
19
|
+
background?: boolean | undefined;
|
|
20
|
+
split?: boolean | undefined;
|
|
21
|
+
fit?: boolean | undefined;
|
|
22
|
+
overflow?: BlockOverflow | undefined;
|
|
23
|
+
padding?: boolean | undefined;
|
|
24
|
+
readonly width?: string | number | undefined;
|
|
25
|
+
readonly height?: string | number | undefined;
|
|
26
|
+
key?: string | number | symbol | undefined;
|
|
27
|
+
ref?: VNodeRef | undefined;
|
|
28
|
+
ref_for?: boolean | undefined;
|
|
29
|
+
ref_key?: string | undefined;
|
|
30
|
+
onVnodeBeforeMount?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>) => void)[] | undefined;
|
|
35
|
+
onVnodeMounted?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>) => void)[] | undefined;
|
|
40
|
+
onVnodeBeforeUpdate?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>, oldVNode: VNode<RendererNode, RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>, oldVNode: VNode<RendererNode, RendererElement, {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}>) => void)[] | undefined;
|
|
49
|
+
onVnodeUpdated?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>, oldVNode: VNode<RendererNode, RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>, oldVNode: VNode<RendererNode, RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}>) => void)[] | undefined;
|
|
58
|
+
onVnodeBeforeUnmount?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>) => void)[] | undefined;
|
|
63
|
+
onVnodeUnmounted?: ((vnode: VNode<RendererNode, RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>) => void)[] | undefined;
|
|
68
|
+
class?: unknown;
|
|
69
|
+
style?: unknown;
|
|
70
|
+
};
|
|
71
|
+
$attrs: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
$refs: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
$slots: Readonly<{
|
|
78
|
+
[name: string]: Slot<any> | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
81
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
82
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
83
|
+
$el: any;
|
|
84
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
85
|
+
flex: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
width: {
|
|
90
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
91
|
+
};
|
|
92
|
+
height: {
|
|
93
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
94
|
+
};
|
|
95
|
+
direction: {
|
|
96
|
+
type: PropType<BlockDirection>;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
grow: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
shrink: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
wrap: {
|
|
108
|
+
type: PropType<BlockWrap>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
justify: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
align: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
border: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
};
|
|
122
|
+
radius: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
};
|
|
125
|
+
background: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
};
|
|
128
|
+
split: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
};
|
|
131
|
+
fit: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
};
|
|
134
|
+
overflow: {
|
|
135
|
+
type: PropType<BlockOverflow>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
padding: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
143
|
+
wrap: BlockWrap;
|
|
144
|
+
flex: boolean;
|
|
145
|
+
direction: BlockDirection;
|
|
146
|
+
grow: boolean;
|
|
147
|
+
shrink: boolean;
|
|
148
|
+
justify: string;
|
|
149
|
+
align: string;
|
|
150
|
+
border: boolean;
|
|
151
|
+
radius: boolean;
|
|
152
|
+
background: boolean;
|
|
153
|
+
split: boolean;
|
|
154
|
+
fit: boolean;
|
|
155
|
+
overflow: BlockOverflow;
|
|
156
|
+
padding: boolean;
|
|
157
|
+
}, {}, string, {}> & {
|
|
158
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
159
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
160
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
161
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
162
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
163
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
164
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
165
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
166
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
167
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
168
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
169
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
170
|
+
renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
171
|
+
renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
|
|
172
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
173
|
+
};
|
|
174
|
+
$forceUpdate: () => void;
|
|
175
|
+
$nextTick: typeof nextTick;
|
|
176
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
177
|
+
} & Readonly<ExtractPropTypes<{
|
|
178
|
+
flex: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
width: {
|
|
183
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
184
|
+
};
|
|
185
|
+
height: {
|
|
186
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
187
|
+
};
|
|
188
|
+
direction: {
|
|
189
|
+
type: PropType<BlockDirection>;
|
|
190
|
+
default: string;
|
|
191
|
+
};
|
|
192
|
+
grow: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
shrink: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
wrap: {
|
|
201
|
+
type: PropType<BlockWrap>;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
justify: {
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
default: string;
|
|
207
|
+
};
|
|
208
|
+
align: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
border: {
|
|
213
|
+
type: BooleanConstructor;
|
|
214
|
+
};
|
|
215
|
+
radius: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
};
|
|
218
|
+
background: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
};
|
|
221
|
+
split: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
};
|
|
224
|
+
fit: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
};
|
|
227
|
+
overflow: {
|
|
228
|
+
type: PropType<BlockOverflow>;
|
|
229
|
+
default: string;
|
|
230
|
+
};
|
|
231
|
+
padding: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
236
|
+
__isFragment?: undefined;
|
|
237
|
+
__isTeleport?: undefined;
|
|
238
|
+
__isSuspense?: undefined;
|
|
239
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
240
|
+
flex: {
|
|
241
|
+
type: BooleanConstructor;
|
|
242
|
+
default: boolean;
|
|
243
|
+
};
|
|
244
|
+
width: {
|
|
245
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
246
|
+
};
|
|
247
|
+
height: {
|
|
248
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
249
|
+
};
|
|
250
|
+
direction: {
|
|
251
|
+
type: PropType<BlockDirection>;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
254
|
+
grow: {
|
|
255
|
+
type: BooleanConstructor;
|
|
256
|
+
default: boolean;
|
|
257
|
+
};
|
|
258
|
+
shrink: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
wrap: {
|
|
263
|
+
type: PropType<BlockWrap>;
|
|
264
|
+
default: string;
|
|
265
|
+
};
|
|
266
|
+
justify: {
|
|
267
|
+
type: StringConstructor;
|
|
268
|
+
default: string;
|
|
269
|
+
};
|
|
270
|
+
align: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
default: string;
|
|
273
|
+
};
|
|
274
|
+
border: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
};
|
|
277
|
+
radius: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
};
|
|
280
|
+
background: {
|
|
281
|
+
type: BooleanConstructor;
|
|
282
|
+
};
|
|
283
|
+
split: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
};
|
|
286
|
+
fit: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
};
|
|
289
|
+
overflow: {
|
|
290
|
+
type: PropType<BlockOverflow>;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
padding: {
|
|
294
|
+
type: BooleanConstructor;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
297
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
298
|
+
wrap: BlockWrap;
|
|
299
|
+
flex: boolean;
|
|
300
|
+
direction: BlockDirection;
|
|
301
|
+
grow: boolean;
|
|
302
|
+
shrink: boolean;
|
|
303
|
+
justify: string;
|
|
304
|
+
align: string;
|
|
305
|
+
border: boolean;
|
|
306
|
+
radius: boolean;
|
|
307
|
+
background: boolean;
|
|
308
|
+
split: boolean;
|
|
309
|
+
fit: boolean;
|
|
310
|
+
overflow: BlockOverflow;
|
|
311
|
+
padding: boolean;
|
|
312
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
313
|
+
$slots: {
|
|
314
|
+
default?(_: {}): any;
|
|
315
|
+
};
|
|
316
|
+
})> & Record<string, any>;
|
|
317
|
+
export default XBlock;
|
|
318
|
+
export { Block };
|
|
319
|
+
export * from './block';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, App, ExtractPropTypes, InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { configProps } from './props';
|
|
3
|
+
export { configProps };
|
|
4
|
+
export type ConfigProps = ExtractPropTypes<typeof configProps>;
|
|
5
|
+
export type ConfigContext = Partial<ConfigProps>;
|
|
6
|
+
export declare const configContextKey: InjectionKey<Ref<ConfigContext>>;
|
|
7
|
+
export declare function provideConfig(config: ConfigContext | Ref<ConfigContext>, app?: App): Ref<Partial<ConfigProps> | {
|
|
8
|
+
elementTag?: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const Config: DefineComponent<{
|
|
11
|
+
elementTag: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
elementTag: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>>, {
|
|
23
|
+
elementTag: string;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export type ConfigInstance = InstanceType<typeof Config>;
|
|
26
|
+
export default Config;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { WithInstall } from '../../utils';
|
|
3
|
+
export declare const XConfig: WithInstall<DefineComponent<{
|
|
4
|
+
elementTag: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
11
|
+
elementTag: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
elementTag: string;
|
|
17
|
+
}, {}>> & Record<string, any>;
|
|
18
|
+
export default XConfig;
|
|
19
|
+
export * from './Config';
|