@vipl520/dk-ui 1.0.48 → 1.0.50
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.js +193 -92
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +4 -4
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +193 -92
- package/dist/web-types.json +1 -1
- package/es/style-box-input/index.d.ts +5 -5
- package/es/style-box-input/src/props.d.ts +2 -2
- package/es/style-box-input/src/props.mjs +2 -2
- package/es/style-box-input/src/props.mjs.map +1 -1
- package/es/style-box-input/src/style-box-input.vue.d.ts +5 -5
- package/es/style-box-input/src/style-box-input.vue2.mjs +85 -71
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-input/index.d.ts +35 -0
- package/es/style-input/src/props.d.ts +16 -0
- package/es/style-input/src/props.mjs +18 -0
- package/es/style-input/src/props.mjs.map +1 -1
- package/es/style-input/src/style-input.vue.d.ts +35 -0
- package/es/style-input/src/style-input.vue2.mjs +73 -3
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/lib/style-box-input/index.d.ts +5 -5
- package/lib/style-box-input/src/props.d.ts +2 -2
- package/lib/style-box-input/src/props.js +2 -2
- package/lib/style-box-input/src/props.js.map +1 -1
- package/lib/style-box-input/src/style-box-input.vue.d.ts +5 -5
- package/lib/style-box-input/src/style-box-input.vue2.js +84 -70
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-input/index.d.ts +35 -0
- package/lib/style-input/src/props.d.ts +16 -0
- package/lib/style-input/src/props.js +18 -0
- package/lib/style-input/src/props.js.map +1 -1
- package/lib/style-input/src/style-input.vue.d.ts +35 -0
- package/lib/style-input/src/style-input.vue2.js +72 -2
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,24 @@ const styleInputProps = {
|
|
|
24
24
|
return {};
|
|
25
25
|
},
|
|
26
26
|
type: Object
|
|
27
|
+
},
|
|
28
|
+
isDrawer: {
|
|
29
|
+
default: false,
|
|
30
|
+
type: Boolean
|
|
31
|
+
},
|
|
32
|
+
drawerProps: {
|
|
33
|
+
default: () => {
|
|
34
|
+
return {
|
|
35
|
+
title: "\u7F16\u8F91\u6837\u5F0F",
|
|
36
|
+
direction: "rtl",
|
|
37
|
+
size: "400px"
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
type: Object
|
|
41
|
+
},
|
|
42
|
+
drawerText: {
|
|
43
|
+
default: "\u7F16\u8F91\u6837\u5F0F",
|
|
44
|
+
type: String
|
|
27
45
|
}
|
|
28
46
|
};
|
|
29
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.mjs","sources":["../../../src/style-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { defaultConfig, type StyleInputConfig } from './default'\n\nexport const styleInputProps = {\n /**\n * 引入组件\n */\n components: {\n default: () => {\n return defaultConfig\n },\n type: Array as () => StyleInputConfig,\n },\n /**\n * 需要隐藏组件\n */\n hideComponents: {\n default: () => {\n return []\n },\n type: Array as () => string[],\n },\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n}\n\nexport type StyleInputProps = ExtractPropTypes<typeof styleInputProps>\n"],"names":[],"mappings":";;AAGO,MAAM,eAAkB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI7B,UAAY,EAAA;AAAA,IACV,SAAS,MAAM;AACb,MAAO,OAAA,aAAA,CAAA;AAAA,KACT;AAAA,IACA,IAAM,EAAA,KAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA,KAAA;AAAA,GACR;AAAA,EACA,UAAY,EAAA;AAAA,IACV,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA,MAAA;AAAA,GACR;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"props.mjs","sources":["../../../src/style-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { defaultConfig, type StyleInputConfig } from './default'\n\nexport const styleInputProps = {\n /**\n * 引入组件\n */\n components: {\n default: () => {\n return defaultConfig\n },\n type: Array as () => StyleInputConfig,\n },\n /**\n * 需要隐藏组件\n */\n hideComponents: {\n default: () => {\n return []\n },\n type: Array as () => string[],\n },\n modelValue: {\n default: () => {\n return {}\n },\n type: Object,\n },\n isDrawer: {\n default: false,\n type: Boolean,\n },\n drawerProps: {\n default: () => {\n return {\n title: '编辑样式',\n direction: 'rtl',\n size: '400px',\n }\n },\n type: Object,\n },\n drawerText: {\n default: '编辑样式',\n type: String,\n },\n}\n\nexport type StyleInputProps = ExtractPropTypes<typeof styleInputProps>\n"],"names":[],"mappings":";;AAGO,MAAM,eAAkB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI7B,UAAY,EAAA;AAAA,IACV,SAAS,MAAM;AACb,MAAO,OAAA,aAAA,CAAA;AAAA,KACT;AAAA,IACA,IAAM,EAAA,KAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA,KAAA;AAAA,GACR;AAAA,EACA,UAAY,EAAA;AAAA,IACV,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,OAAS,EAAA,KAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,GACR;AAAA,EACA,WAAa,EAAA;AAAA,IACX,SAAS,MAAM;AACb,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,0BAAA;AAAA,QACP,SAAW,EAAA,KAAA;AAAA,QACX,IAAM,EAAA,OAAA;AAAA,OACR,CAAA;AAAA,KACF;AAAA,IACA,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,UAAY,EAAA;AAAA,IACV,OAAS,EAAA,0BAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AACF;;;;"}
|
|
@@ -11,6 +11,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
default: () => {};
|
|
12
12
|
type: ObjectConstructor;
|
|
13
13
|
};
|
|
14
|
+
isDrawer: {
|
|
15
|
+
default: boolean;
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
};
|
|
18
|
+
drawerProps: {
|
|
19
|
+
default: () => {
|
|
20
|
+
title: string;
|
|
21
|
+
direction: string;
|
|
22
|
+
size: string;
|
|
23
|
+
};
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
};
|
|
26
|
+
drawerText: {
|
|
27
|
+
default: string;
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
14
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
31
|
components: {
|
|
16
32
|
default: () => import("./default").StyleInputConfig;
|
|
@@ -24,11 +40,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
40
|
default: () => {};
|
|
25
41
|
type: ObjectConstructor;
|
|
26
42
|
};
|
|
43
|
+
isDrawer: {
|
|
44
|
+
default: boolean;
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
drawerProps: {
|
|
48
|
+
default: () => {
|
|
49
|
+
title: string;
|
|
50
|
+
direction: string;
|
|
51
|
+
size: string;
|
|
52
|
+
};
|
|
53
|
+
type: ObjectConstructor;
|
|
54
|
+
};
|
|
55
|
+
drawerText: {
|
|
56
|
+
default: string;
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
27
59
|
}>> & {
|
|
28
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
61
|
}, {
|
|
30
62
|
modelValue: Record<string, any>;
|
|
31
63
|
components: import("./default").StyleInputConfig;
|
|
32
64
|
hideComponents: string[];
|
|
65
|
+
isDrawer: boolean;
|
|
66
|
+
drawerProps: Record<string, any>;
|
|
67
|
+
drawerText: string;
|
|
33
68
|
}, {}>;
|
|
34
69
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, Fragment, renderList, createTextVNode, toDisplayString, resolveDynamicComponent, mergeProps, createCommentVNode, createVNode } from 'vue';
|
|
2
2
|
import { styleInputProps } from './props.mjs';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = { class: "dk-style-input" };
|
|
@@ -6,6 +6,7 @@ const _hoisted_2 = {
|
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "p-5px"
|
|
8
8
|
};
|
|
9
|
+
const _hoisted_3 = { key: 1 };
|
|
9
10
|
const __default__ = defineComponent({
|
|
10
11
|
name: "DkStyleInput"
|
|
11
12
|
});
|
|
@@ -15,6 +16,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
16
|
emits: ["update:modelValue"],
|
|
16
17
|
setup(__props, { emit }) {
|
|
17
18
|
const props = __props;
|
|
19
|
+
const drawer = ref(false);
|
|
18
20
|
const activeNames = ref([0]);
|
|
19
21
|
const values = ref({});
|
|
20
22
|
const loading = ref(true);
|
|
@@ -63,9 +65,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
65
|
return (_ctx, _cache) => {
|
|
64
66
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
65
67
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
68
|
+
const _component_el_button = resolveComponent("el-button");
|
|
69
|
+
const _component_el_drawer = resolveComponent("el-drawer");
|
|
66
70
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
67
71
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
68
|
-
|
|
72
|
+
!props.isDrawer ? (openBlock(), createBlock(_component_el_collapse, {
|
|
73
|
+
key: 0,
|
|
69
74
|
modelValue: activeNames.value,
|
|
70
75
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event)
|
|
71
76
|
}, {
|
|
@@ -103,7 +108,72 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
108
|
]),
|
|
104
109
|
_: 1
|
|
105
110
|
/* STABLE */
|
|
106
|
-
}, 8, ["modelValue"])
|
|
111
|
+
}, 8, ["modelValue"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
112
|
+
createVNode(_component_el_button, {
|
|
113
|
+
type: "primary",
|
|
114
|
+
plain: "",
|
|
115
|
+
style: { "width": "100%" },
|
|
116
|
+
onClick: _cache[1] || (_cache[1] = ($event) => drawer.value = true)
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createTextVNode(
|
|
120
|
+
toDisplayString(props.drawerText),
|
|
121
|
+
1
|
|
122
|
+
/* TEXT */
|
|
123
|
+
)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
/* STABLE */
|
|
127
|
+
}),
|
|
128
|
+
createVNode(_component_el_drawer, mergeProps({
|
|
129
|
+
modelValue: drawer.value,
|
|
130
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => drawer.value = $event)
|
|
131
|
+
}, props.drawerProps), {
|
|
132
|
+
default: withCtx(() => [
|
|
133
|
+
createVNode(_component_el_collapse, {
|
|
134
|
+
modelValue: activeNames.value,
|
|
135
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => activeNames.value = $event)
|
|
136
|
+
}, {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
(openBlock(true), createElementBlock(
|
|
139
|
+
Fragment,
|
|
140
|
+
null,
|
|
141
|
+
renderList(_components.value, (item, key) => {
|
|
142
|
+
return openBlock(), createBlock(_component_el_collapse_item, {
|
|
143
|
+
key,
|
|
144
|
+
title: "",
|
|
145
|
+
name: key
|
|
146
|
+
}, {
|
|
147
|
+
title: withCtx(() => [
|
|
148
|
+
createTextVNode(
|
|
149
|
+
toDisplayString(item.title),
|
|
150
|
+
1
|
|
151
|
+
/* TEXT */
|
|
152
|
+
)
|
|
153
|
+
]),
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
activeNames.value.includes(key) ? (openBlock(), createBlock(resolveDynamicComponent(item.name), mergeProps({
|
|
156
|
+
key: 0,
|
|
157
|
+
modelValue: values.value[item.name],
|
|
158
|
+
"onUpdate:modelValue": ($event) => values.value[item.name] = $event
|
|
159
|
+
}, item.props, { onChange }), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
160
|
+
]),
|
|
161
|
+
_: 2
|
|
162
|
+
/* DYNAMIC */
|
|
163
|
+
}, 1032, ["name"]);
|
|
164
|
+
}),
|
|
165
|
+
128
|
|
166
|
+
/* KEYED_FRAGMENT */
|
|
167
|
+
))
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
/* STABLE */
|
|
171
|
+
}, 8, ["modelValue"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
/* STABLE */
|
|
175
|
+
}, 16, ["modelValue"])
|
|
176
|
+
]))
|
|
107
177
|
])) : createCommentVNode("v-if", true)
|
|
108
178
|
]);
|
|
109
179
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-input.vue2.mjs","sources":["../../../src/style-input/src/style-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleInput',\n});\n</script>\n<template>\n <div class=\"dk-style-input\">\n <div v-if=\"!loading\" class=\"p-5px\">\n <el-collapse v-model=\"activeNames\">\n <el-collapse-item v-for=\"(item, key) in _components\" :key=\"key\" title=\"\" :name=\"key\">\n <template #title>\n {{ item.title }}\n </template>\n <component\n :is=\"item.name\"\n v-if=\"activeNames.includes(key)\"\n v-model=\"values[item.name]\"\n v-bind=\"item.props\"\n @change=\"onChange\"\n />\n </el-collapse-item>\n </el-collapse>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleInputProps } from './props'\nimport { onMounted, ref, watch } from 'vue'\n\n\nconst props = defineProps(styleInputProps)\nconst activeNames = ref([0])\nconst values: any = ref({})\nconst loading = ref(true)\n\nconst emit = defineEmits(['update:modelValue'])\nconst onChange = () => {\n const obj: any = {}\n Object.keys(values.value).forEach((key) => {\n Object.keys(values.value[key]).forEach((k) => {\n obj[k] = values.value[key][k]\n })\n })\n emit('update:modelValue', obj)\n}\n\nconst _components: any = ref([])\nconst init = () => {\n _components.value = props.components.filter((item: any) => {\n console.log('item.name', item.name)\n return !props.hideComponents.includes(item.name)\n })\n const obj: any = {}\n _components.value.forEach((item: any) => {\n const params = item.params\n const paramsObj: any = {}\n Object.keys(params).forEach((key) => {\n const param = params[key]\n if (props.modelValue[param]) {\n paramsObj[param] = props.modelValue[param]\n }\n })\n obj[item.name] = paramsObj\n })\n values.value = obj\n loading.value = false\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":"
|
|
1
|
+
{"version":3,"file":"style-input.vue2.mjs","sources":["../../../src/style-input/src/style-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleInput',\n});\n</script>\n<template>\n <div class=\"dk-style-input\">\n <div v-if=\"!loading\" class=\"p-5px\">\n <el-collapse v-if=\"!props.isDrawer\" v-model=\"activeNames\">\n <el-collapse-item v-for=\"(item, key) in _components\" :key=\"key\" title=\"\" :name=\"key\">\n <template #title>\n {{ item.title }}\n </template>\n <component\n :is=\"item.name\"\n v-if=\"activeNames.includes(key)\"\n v-model=\"values[item.name]\"\n v-bind=\"item.props\"\n @change=\"onChange\"\n />\n </el-collapse-item>\n </el-collapse>\n <div v-else>\n <el-button type=\"primary\" plain style=\"width: 100%\" @click=\"drawer = true\">{{ props.drawerText }}</el-button>\n <el-drawer v-model=\"drawer\" v-bind=\"props.drawerProps\">\n <el-collapse v-model=\"activeNames\">\n <el-collapse-item v-for=\"(item, key) in _components\" :key=\"key\" title=\"\" :name=\"key\">\n <template #title>\n {{ item.title }}\n </template>\n <component\n :is=\"item.name\"\n v-if=\"activeNames.includes(key)\"\n v-model=\"values[item.name]\"\n v-bind=\"item.props\"\n @change=\"onChange\"\n />\n </el-collapse-item>\n </el-collapse>\n </el-drawer>\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleInputProps } from './props'\nimport { onMounted, ref, watch } from 'vue'\n\n\nconst props = defineProps(styleInputProps)\nconst drawer = ref(false)\nconst activeNames = ref([0])\nconst values: any = ref({})\nconst loading = ref(true)\n\nconst emit = defineEmits(['update:modelValue'])\nconst onChange = () => {\n const obj: any = {}\n Object.keys(values.value).forEach((key) => {\n Object.keys(values.value[key]).forEach((k) => {\n obj[k] = values.value[key][k]\n })\n })\n emit('update:modelValue', obj)\n}\n\nconst _components: any = ref([])\nconst init = () => {\n _components.value = props.components.filter((item: any) => {\n console.log('item.name', item.name)\n return !props.hideComponents.includes(item.name)\n })\n const obj: any = {}\n _components.value.forEach((item: any) => {\n const params = item.params\n const paramsObj: any = {}\n Object.keys(params).forEach((key) => {\n const param = params[key]\n if (props.modelValue[param]) {\n paramsObj[param] = props.modelValue[param]\n }\n })\n obj[item.name] = paramsObj\n })\n values.value = obj\n loading.value = false\n}\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n {\n deep: true,\n }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAgDD,IAAM,MAAA,MAAA,GAAS,IAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAM,WAAc,GAAA,GAAA,CAAI,CAAC,CAAC,CAAC,CAAA,CAAA;AAC3B,IAAM,MAAA,MAAA,GAAc,GAAI,CAAA,EAAE,CAAA,CAAA;AAC1B,IAAM,MAAA,OAAA,GAAU,IAAI,IAAI,CAAA,CAAA;AAGxB,IAAA,MAAM,WAAW,MAAM;AACrB,MAAA,MAAM,MAAW,EAAC,CAAA;AAClB,MAAA,MAAA,CAAO,KAAK,MAAO,CAAA,KAAK,CAAE,CAAA,OAAA,CAAQ,CAAC,GAAQ,KAAA;AACzC,QAAO,MAAA,CAAA,IAAA,CAAK,OAAO,KAAM,CAAA,GAAG,CAAC,CAAE,CAAA,OAAA,CAAQ,CAAC,CAAM,KAAA;AAC5C,UAAA,GAAA,CAAI,CAAC,CAAI,GAAA,MAAA,CAAO,KAAM,CAAA,GAAG,EAAE,CAAC,CAAA,CAAA;AAAA,SAC7B,CAAA,CAAA;AAAA,OACF,CAAA,CAAA;AACD,MAAA,IAAA,CAAK,qBAAqB,GAAG,CAAA,CAAA;AAAA,KAC/B,CAAA;AAEA,IAAM,MAAA,WAAA,GAAmB,GAAI,CAAA,EAAE,CAAA,CAAA;AAC/B,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,WAAA,CAAY,KAAQ,GAAA,KAAA,CAAM,UAAW,CAAA,MAAA,CAAO,CAAC,IAAc,KAAA;AACzD,QAAQ,OAAA,CAAA,GAAA,CAAI,WAAa,EAAA,IAAA,CAAK,IAAI,CAAA,CAAA;AAClC,QAAA,OAAO,CAAC,KAAA,CAAM,cAAe,CAAA,QAAA,CAAS,KAAK,IAAI,CAAA,CAAA;AAAA,OAChD,CAAA,CAAA;AACD,MAAA,MAAM,MAAW,EAAC,CAAA;AAClB,MAAY,WAAA,CAAA,KAAA,CAAM,OAAQ,CAAA,CAAC,IAAc,KAAA;AACvC,QAAA,MAAM,SAAS,IAAK,CAAA,MAAA,CAAA;AACpB,QAAA,MAAM,YAAiB,EAAC,CAAA;AACxB,QAAA,MAAA,CAAO,IAAK,CAAA,MAAM,CAAE,CAAA,OAAA,CAAQ,CAAC,GAAQ,KAAA;AACnC,UAAM,MAAA,KAAA,GAAQ,OAAO,GAAG,CAAA,CAAA;AACxB,UAAI,IAAA,KAAA,CAAM,UAAW,CAAA,KAAK,CAAG,EAAA;AAC3B,YAAA,SAAA,CAAU,KAAK,CAAA,GAAI,KAAM,CAAA,UAAA,CAAW,KAAK,CAAA,CAAA;AAAA,WAC3C;AAAA,SACD,CAAA,CAAA;AACD,QAAI,GAAA,CAAA,IAAA,CAAK,IAAI,CAAI,GAAA,SAAA,CAAA;AAAA,OAClB,CAAA,CAAA;AACD,MAAA,MAAA,CAAO,KAAQ,GAAA,GAAA,CAAA;AACf,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAAA,KAClB,CAAA;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,8 +4,8 @@ export declare const StyleBoxInput: import("@vipl520/utils").WithInstall<import(
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
height: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
default:
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
9
|
};
|
|
10
10
|
help: {
|
|
11
11
|
type: StringConstructor;
|
|
@@ -17,8 +17,8 @@ export declare const StyleBoxInput: import("@vipl520/utils").WithInstall<import(
|
|
|
17
17
|
default: () => {};
|
|
18
18
|
};
|
|
19
19
|
height: {
|
|
20
|
-
type: NumberConstructor;
|
|
21
|
-
default:
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
|
+
default: string;
|
|
22
22
|
};
|
|
23
23
|
help: {
|
|
24
24
|
type: StringConstructor;
|
|
@@ -29,7 +29,7 @@ export declare const StyleBoxInput: import("@vipl520/utils").WithInstall<import(
|
|
|
29
29
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
modelValue: Record<string, any>;
|
|
32
|
-
height: number;
|
|
32
|
+
height: string | number;
|
|
33
33
|
help: string;
|
|
34
34
|
}, {}>>;
|
|
35
35
|
export default StyleBoxInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../src/style-box-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const styleBoxInputProps = {\n modelValue: {\n type: Object,\n default: () => ({}),\n },\n height: {\n type: Number,\n default:
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../src/style-box-input/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const styleBoxInputProps = {\n modelValue: {\n type: Object,\n default: () => ({}),\n },\n height: {\n type: [Number, String],\n default: 'auto',\n },\n help: {\n type: String,\n default: '可以双击对应位置来配置内外边距和宽度高度,也支持通过描点拖拽增加,支持单位(px、rem、%、auto)',\n },\n}\n\nexport type StyleBoxInputProps = ExtractPropTypes<typeof styleBoxInputProps>\n"],"names":[],"mappings":";;AAEO,MAAM,kBAAqB,GAAA;AAAA,EAChC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,mQAAA;AAAA,GACX;AACF;;;;"}
|
|
@@ -4,8 +4,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
height: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
default:
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
9
|
};
|
|
10
10
|
help: {
|
|
11
11
|
type: StringConstructor;
|
|
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
default: () => {};
|
|
18
18
|
};
|
|
19
19
|
height: {
|
|
20
|
-
type: NumberConstructor;
|
|
21
|
-
default:
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
|
+
default: string;
|
|
22
22
|
};
|
|
23
23
|
help: {
|
|
24
24
|
type: StringConstructor;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
modelValue: Record<string, any>;
|
|
32
|
-
height: number;
|
|
32
|
+
height: string | number;
|
|
33
33
|
help: string;
|
|
34
34
|
}, {}>;
|
|
35
35
|
export default _default;
|
|
@@ -6,6 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var props = require('./props.js');
|
|
7
7
|
var html = require('./html.js');
|
|
8
8
|
var utils = require('@vipl520/utils');
|
|
9
|
+
var core = require('@vueuse/core');
|
|
9
10
|
|
|
10
11
|
const _hoisted_1 = { class: "dk-style-box-input" };
|
|
11
12
|
const _hoisted_2 = { class: "header" };
|
|
@@ -14,50 +15,46 @@ const _hoisted_4 = { class: "float-right cursor-pointer" };
|
|
|
14
15
|
const _hoisted_5 = { class: "name-header-operations" };
|
|
15
16
|
const _hoisted_6 = { class: "name-header-operations" };
|
|
16
17
|
const _hoisted_7 = { class: "name-header-operations" };
|
|
17
|
-
const _hoisted_8 = ["title"];
|
|
18
|
-
const _hoisted_9 = ["
|
|
19
|
-
const _hoisted_10 = ["
|
|
20
|
-
const _hoisted_11 =
|
|
21
|
-
const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode(
|
|
18
|
+
const _hoisted_8 = ["title", "onClick"];
|
|
19
|
+
const _hoisted_9 = ["onUpdate:modelValue", "onBlur"];
|
|
20
|
+
const _hoisted_10 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
|
21
|
+
const _hoisted_11 = /* @__PURE__ */ vue.createElementVNode(
|
|
22
22
|
"div",
|
|
23
23
|
{ style: { "position": "absolute", "display": "none", "width": "100%", "height": "100%" } },
|
|
24
24
|
null,
|
|
25
25
|
-1
|
|
26
26
|
/* HOISTED */
|
|
27
27
|
);
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
28
|
+
const _hoisted_12 = { class: "anchor-wrapper" };
|
|
29
|
+
const _hoisted_13 = ["onMousedown"];
|
|
30
|
+
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode(
|
|
31
31
|
"span",
|
|
32
32
|
{ class: "title" },
|
|
33
33
|
" \u5916\u8FB9\u8DDD ",
|
|
34
34
|
-1
|
|
35
35
|
/* HOISTED */
|
|
36
36
|
);
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const _hoisted_23 = /* @__PURE__ */ vue.createElementVNode(
|
|
37
|
+
const _hoisted_15 = { class: "thumnail border" };
|
|
38
|
+
const _hoisted_16 = ["title", "onClick"];
|
|
39
|
+
const _hoisted_17 = ["onUpdate:modelValue", "onBlur"];
|
|
40
|
+
const _hoisted_18 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
|
41
|
+
const _hoisted_19 = { class: "anchor-wrapper" };
|
|
42
|
+
const _hoisted_20 = ["onMousedown"];
|
|
43
|
+
const _hoisted_21 = /* @__PURE__ */ vue.createElementVNode(
|
|
45
44
|
"span",
|
|
46
45
|
{ class: "title" },
|
|
47
46
|
" \u5185\u8FB9\u8DDD ",
|
|
48
47
|
-1
|
|
49
48
|
/* HOISTED */
|
|
50
49
|
);
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const _hoisted_26 = /* @__PURE__ */ vue.createElementVNode(
|
|
50
|
+
const _hoisted_22 = { class: "title" };
|
|
51
|
+
const _hoisted_23 = /* @__PURE__ */ vue.createElementVNode(
|
|
54
52
|
"span",
|
|
55
53
|
null,
|
|
56
54
|
" x ",
|
|
57
55
|
-1
|
|
58
56
|
/* HOISTED */
|
|
59
57
|
);
|
|
60
|
-
const _hoisted_27 = { class: "content-unit right-0" };
|
|
61
58
|
const __default__ = vue.defineComponent({
|
|
62
59
|
name: "DkStyleBoxInput"
|
|
63
60
|
});
|
|
@@ -87,13 +84,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
84
|
width: props.modelValue.width || "",
|
|
88
85
|
height: props.modelValue.height || ""
|
|
89
86
|
});
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
()
|
|
94
|
-
|
|
87
|
+
const box = vue.ref(null);
|
|
88
|
+
const { width } = core.useElementSize(box);
|
|
89
|
+
const height = vue.computed(() => {
|
|
90
|
+
console.log("props.height", props.height);
|
|
91
|
+
if (props.height === "auto") {
|
|
92
|
+
const h = width.value / 1.8;
|
|
93
|
+
return h > 300 ? 300 : h;
|
|
94
|
+
} else {
|
|
95
|
+
return props.height;
|
|
95
96
|
}
|
|
96
|
-
);
|
|
97
|
+
});
|
|
97
98
|
vue.watch(
|
|
98
99
|
() => props.modelValue,
|
|
99
100
|
(newVal, oldVal) => {
|
|
@@ -186,17 +187,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
187
|
stopChangeBound.value = handleMouseUp.bind(event);
|
|
187
188
|
document.addEventListener("mouseup", stopChangeBound.value);
|
|
188
189
|
dragging.value = true;
|
|
189
|
-
const height2 = props.height;
|
|
190
190
|
const wrapperElement = document.querySelector(".wrapper");
|
|
191
|
-
const
|
|
191
|
+
const width2 = wrapperElement ? wrapperElement.offsetWidth : 0;
|
|
192
192
|
const multiples = {
|
|
193
193
|
margin: 0.9,
|
|
194
194
|
padding: 0.9 * 0.7
|
|
195
195
|
};
|
|
196
196
|
const { clientX, clientY } = event;
|
|
197
|
-
const setCursorAndDimensions = (cursor, left, top,
|
|
197
|
+
const setCursorAndDimensions = (cursor, left, top, width3, height2) => {
|
|
198
198
|
document.body.style.cursor = cursor;
|
|
199
|
-
Object.assign(positionStyle, { left, top, width:
|
|
199
|
+
Object.assign(positionStyle, { left, top, width: width3, height: height2, display: "block" });
|
|
200
200
|
};
|
|
201
201
|
startPosition.x = clientX;
|
|
202
202
|
startPosition.y = clientY;
|
|
@@ -204,16 +204,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
204
204
|
setCursorAndDimensions(
|
|
205
205
|
"ew-resize",
|
|
206
206
|
clientX + "px",
|
|
207
|
-
clientY -
|
|
207
|
+
clientY - height.value * 0.5 * multiples[type] + "px",
|
|
208
208
|
"0.1px",
|
|
209
|
-
|
|
209
|
+
height.value * multiples[type] + "px"
|
|
210
210
|
);
|
|
211
211
|
} else {
|
|
212
212
|
setCursorAndDimensions(
|
|
213
213
|
"ns-resize",
|
|
214
|
-
clientX -
|
|
214
|
+
clientX - width2 * 0.5 * multiples[type] + "px",
|
|
215
215
|
clientY + "px",
|
|
216
|
-
|
|
216
|
+
width2 * multiples[type] + "px",
|
|
217
217
|
"0.1px"
|
|
218
218
|
);
|
|
219
219
|
}
|
|
@@ -392,9 +392,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
392
392
|
vue.createElementVNode(
|
|
393
393
|
"div",
|
|
394
394
|
{
|
|
395
|
+
ref_key: "box",
|
|
396
|
+
ref: box,
|
|
395
397
|
tabindex: "0",
|
|
396
398
|
class: "wrapper",
|
|
397
|
-
style: vue.normalizeStyle([{ "margin-top": "10px" }, { height:
|
|
399
|
+
style: vue.normalizeStyle([{ "margin-top": "10px" }, { height: height.value + "px" }])
|
|
398
400
|
},
|
|
399
401
|
[
|
|
400
402
|
vue.createElementVNode(
|
|
@@ -414,11 +416,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
414
416
|
return vue.openBlock(), vue.createElementBlock("div", { key }, [
|
|
415
417
|
vue.createElementVNode("span", {
|
|
416
418
|
title: item.title,
|
|
417
|
-
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`)
|
|
419
|
+
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
|
420
|
+
onClick: ($event) => onDblclick(item.value, key)
|
|
418
421
|
}, [
|
|
419
|
-
vue.createElementVNode(
|
|
420
|
-
|
|
421
|
-
|
|
422
|
+
vue.createElementVNode(
|
|
423
|
+
"span",
|
|
424
|
+
null,
|
|
425
|
+
vue.toDisplayString(getValue(styles[item.value])),
|
|
426
|
+
1
|
|
427
|
+
/* TEXT */
|
|
428
|
+
)
|
|
422
429
|
], 10, _hoisted_8),
|
|
423
430
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
424
431
|
ref_for: true,
|
|
@@ -427,7 +434,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
427
434
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
|
428
435
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
|
429
436
|
onBlur: ($event) => onBlur(item.value)
|
|
430
|
-
}, null, 42,
|
|
437
|
+
}, null, 42, _hoisted_9), [
|
|
431
438
|
[vue.vModelText, styles[item.value]]
|
|
432
439
|
]),
|
|
433
440
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
|
@@ -439,15 +446,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
439
446
|
style: vue.normalizeStyle(item.svg.style),
|
|
440
447
|
class: "esm-modal-svg",
|
|
441
448
|
innerHTML: item.svg.content
|
|
442
|
-
}, null, 12,
|
|
449
|
+
}, null, 12, _hoisted_10))
|
|
443
450
|
]);
|
|
444
451
|
}),
|
|
445
452
|
128
|
|
446
453
|
/* KEYED_FRAGMENT */
|
|
447
454
|
))
|
|
448
455
|
]),
|
|
449
|
-
|
|
450
|
-
vue.createElementVNode("div",
|
|
456
|
+
_hoisted_11,
|
|
457
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
451
458
|
(vue.openBlock(), vue.createElementBlock(
|
|
452
459
|
vue.Fragment,
|
|
453
460
|
null,
|
|
@@ -458,16 +465,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
458
465
|
onMousemove: handleMouseMove,
|
|
459
466
|
onMousedown: ($event) => handleMouseDown("margin", item, $event),
|
|
460
467
|
onMouseup: handleMouseUp
|
|
461
|
-
}, null, 42,
|
|
468
|
+
}, null, 42, _hoisted_13);
|
|
462
469
|
}),
|
|
463
470
|
64
|
|
464
471
|
/* STABLE_FRAGMENT */
|
|
465
472
|
))
|
|
466
473
|
]),
|
|
467
|
-
|
|
474
|
+
_hoisted_14,
|
|
468
475
|
vue.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
|
|
469
476
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
|
|
470
|
-
vue.createElementVNode("div",
|
|
477
|
+
vue.createElementVNode("div", _hoisted_15, [
|
|
471
478
|
vue.createElementVNode(
|
|
472
479
|
"div",
|
|
473
480
|
{
|
|
@@ -484,12 +491,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
484
491
|
return vue.openBlock(), vue.createElementBlock("div", { key }, [
|
|
485
492
|
vue.createElementVNode("span", {
|
|
486
493
|
title: item.title,
|
|
487
|
-
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`)
|
|
494
|
+
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
|
495
|
+
onClick: ($event) => onDblclick(item.value, key + 4)
|
|
488
496
|
}, [
|
|
489
|
-
vue.createElementVNode(
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
497
|
+
vue.createElementVNode(
|
|
498
|
+
"span",
|
|
499
|
+
null,
|
|
500
|
+
vue.toDisplayString(getValue(styles[item.value])),
|
|
501
|
+
1
|
|
502
|
+
/* TEXT */
|
|
503
|
+
)
|
|
504
|
+
], 10, _hoisted_16),
|
|
493
505
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
494
506
|
ref_for: true,
|
|
495
507
|
ref_key: "inputField",
|
|
@@ -497,7 +509,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
497
509
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
|
498
510
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
|
499
511
|
onBlur: ($event) => onBlur(item.value)
|
|
500
|
-
}, null, 42,
|
|
512
|
+
}, null, 42, _hoisted_17), [
|
|
501
513
|
[vue.vModelText, styles[item.value]]
|
|
502
514
|
]),
|
|
503
515
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
|
@@ -509,14 +521,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
509
521
|
style: vue.normalizeStyle(item.svg.style),
|
|
510
522
|
class: "esm-modal-svg",
|
|
511
523
|
innerHTML: item.svg.content
|
|
512
|
-
}, null, 12,
|
|
524
|
+
}, null, 12, _hoisted_18))
|
|
513
525
|
]);
|
|
514
526
|
}),
|
|
515
527
|
128
|
|
516
528
|
/* KEYED_FRAGMENT */
|
|
517
529
|
))
|
|
518
530
|
]),
|
|
519
|
-
vue.createElementVNode("div",
|
|
531
|
+
vue.createElementVNode("div", _hoisted_19, [
|
|
520
532
|
(vue.openBlock(), vue.createElementBlock(
|
|
521
533
|
vue.Fragment,
|
|
522
534
|
null,
|
|
@@ -527,13 +539,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
527
539
|
onMousemove: handleMouseMove,
|
|
528
540
|
onMousedown: ($event) => handleMouseDown("padding", item, $event),
|
|
529
541
|
onMouseup: handleMouseUp
|
|
530
|
-
}, null, 42,
|
|
542
|
+
}, null, 42, _hoisted_20);
|
|
531
543
|
}),
|
|
532
544
|
64
|
|
533
545
|
/* STABLE_FRAGMENT */
|
|
534
546
|
))
|
|
535
547
|
]),
|
|
536
|
-
|
|
548
|
+
_hoisted_21,
|
|
537
549
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD END"),
|
|
538
550
|
vue.createElementVNode(
|
|
539
551
|
"div",
|
|
@@ -543,16 +555,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
543
555
|
onMouseleave: _cache[10] || (_cache[10] = ($event) => onMouseMove("widthHeight", "leave", $event))
|
|
544
556
|
},
|
|
545
557
|
[
|
|
546
|
-
vue.createElementVNode("span",
|
|
547
|
-
vue.createElementVNode("span",
|
|
558
|
+
vue.createElementVNode("span", _hoisted_22, [
|
|
559
|
+
vue.createElementVNode("span", {
|
|
560
|
+
class: "content-unit left-0",
|
|
561
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onDblclick("width", 9))
|
|
562
|
+
}, [
|
|
548
563
|
vue.createElementVNode(
|
|
549
564
|
"em",
|
|
550
|
-
|
|
551
|
-
onMouseenter: _cache[3] || (_cache[3] = ($event) => onDblclick("width", 9))
|
|
552
|
-
},
|
|
565
|
+
null,
|
|
553
566
|
vue.toDisplayString(getValue(styles["width"])),
|
|
554
|
-
|
|
555
|
-
/* TEXT
|
|
567
|
+
1
|
|
568
|
+
/* TEXT */
|
|
556
569
|
)
|
|
557
570
|
]),
|
|
558
571
|
vue.withDirectives(vue.createElementVNode(
|
|
@@ -570,16 +583,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
570
583
|
), [
|
|
571
584
|
[vue.vModelText, styles.width]
|
|
572
585
|
]),
|
|
573
|
-
|
|
574
|
-
vue.createElementVNode("span",
|
|
586
|
+
_hoisted_23,
|
|
587
|
+
vue.createElementVNode("span", {
|
|
588
|
+
class: "content-unit right-0",
|
|
589
|
+
onClick: _cache[6] || (_cache[6] = ($event) => onDblclick("height", 9))
|
|
590
|
+
}, [
|
|
575
591
|
vue.createElementVNode(
|
|
576
592
|
"em",
|
|
577
|
-
|
|
578
|
-
onMouseenter: _cache[6] || (_cache[6] = ($event) => onDblclick("height", 9))
|
|
579
|
-
},
|
|
593
|
+
null,
|
|
580
594
|
vue.toDisplayString(getValue(styles["height"])),
|
|
581
|
-
|
|
582
|
-
/* TEXT
|
|
595
|
+
1
|
|
596
|
+
/* TEXT */
|
|
583
597
|
)
|
|
584
598
|
]),
|
|
585
599
|
vue.withDirectives(vue.createElementVNode(
|