@vipl520/dk-ui 1.0.53 → 1.0.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +8 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2036 -1431
- 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 +2035 -1432
- package/dist/tags.json +7 -0
- package/dist/web-types.json +35 -1
- package/es/attachment/src/attachment.vue2.mjs +7 -1
- package/es/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +2 -0
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
- package/es/form/src/form.vue2.mjs +0 -1
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/group/src/group.vue2.mjs +14 -1
- package/es/group/src/group.vue2.mjs.map +1 -1
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +23 -21
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
- package/es/icon/style/index.css +0 -1
- package/es/icon/style/index.scss +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -2
- package/es/index.mjs.map +1 -1
- package/es/index.scss +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs +114 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs.map +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +7 -1
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +76 -62
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/min/common/index.mjs +4 -2
- package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -1
- package/es/page-diy/src/props.mjs +1 -1
- package/es/page-diy/src/props.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs +66 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs.map +1 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +7 -2
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +59 -30
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/index.mjs +3 -1
- package/es/page-diy/src/views/min/index.mjs.map +1 -1
- package/es/page-diy/style/drag-tool.css +1 -1
- package/es/page-diy/style/drag-tool.scss +4 -0
- package/es/page-diy/style/index.css +1 -1
- package/es/page-diy/style/minViews/index.scss +8 -0
- package/es/style-box-input/src/style-box-input.vue2.mjs +200 -130
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-box-input/style/index.css +1 -1
- package/es/style-box-input/style/index.scss +13 -3
- package/es/style-font-input/src/style-font-input.vue2.mjs +105 -272
- package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
- package/es/style-input/src/style-input.vue2.mjs +1 -0
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
- package/es/test/index.d.ts +4 -2
- package/es/test/src/test.vue.d.ts +4 -2
- package/es/test/src/test.vue2.mjs +14 -3
- package/es/test/src/test.vue2.mjs.map +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/es/uni-icon/style/index.css +1 -1
- package/es/uni-icon/style/index.scss +1 -1
- package/es/url-input/index.d.ts +35 -0
- package/es/url-input/index.mjs +8 -0
- package/es/url-input/index.mjs.map +1 -0
- package/es/url-input/src/props.d.ts +16 -0
- package/es/url-input/src/props.mjs +13 -0
- package/es/url-input/src/props.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue.d.ts +25 -0
- package/es/url-input/src/url-input-content.vue.mjs +7 -0
- package/es/url-input/src/url-input-content.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue2.mjs +301 -0
- package/es/url-input/src/url-input-content.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue.d.ts +16 -0
- package/es/url-input/src/url-input-table.vue.mjs +7 -0
- package/es/url-input/src/url-input-table.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue2.mjs +63 -0
- package/es/url-input/src/url-input-table.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input.vue.d.ts +34 -0
- package/es/url-input/src/url-input.vue.mjs +7 -0
- package/es/url-input/src/url-input.vue.mjs.map +1 -0
- package/es/url-input/src/url-input.vue2.mjs +69 -0
- package/es/url-input/src/url-input.vue2.mjs.map +1 -0
- package/es/url-input/style/index.css +1 -0
- package/es/url-input/style/index.scss +38 -0
- package/lib/attachment/src/attachment.vue2.js +7 -1
- package/lib/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js +2 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
- package/lib/form/src/form.vue2.js +0 -1
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/group/src/group.vue2.js +14 -1
- package/lib/group/src/group.vue2.js.map +1 -1
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js +23 -21
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
- package/lib/icon/style/index.css +0 -1
- package/lib/icon/style/index.scss +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/index.scss +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js +118 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js.map +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +7 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +76 -62
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/min/common/index.js +4 -2
- package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -1
- package/lib/page-diy/src/props.js +1 -1
- package/lib/page-diy/src/props.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js +70 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js.map +1 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +7 -2
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js +58 -29
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/index.js +3 -1
- package/lib/page-diy/src/views/min/index.js.map +1 -1
- package/lib/page-diy/style/drag-tool.css +1 -1
- package/lib/page-diy/style/drag-tool.scss +4 -0
- package/lib/page-diy/style/index.css +1 -1
- package/lib/page-diy/style/minViews/index.scss +8 -0
- package/lib/style-box-input/src/style-box-input.vue2.js +199 -129
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-box-input/style/index.css +1 -1
- package/lib/style-box-input/style/index.scss +13 -3
- package/lib/style-font-input/src/style-font-input.vue2.js +105 -272
- package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
- package/lib/style-input/src/style-input.vue2.js +1 -0
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
- package/lib/test/index.d.ts +4 -2
- package/lib/test/src/test.vue.d.ts +4 -2
- package/lib/test/src/test.vue2.js +14 -3
- package/lib/test/src/test.vue2.js.map +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/lib/uni-icon/style/index.css +1 -1
- package/lib/uni-icon/style/index.scss +1 -1
- package/lib/url-input/index.d.ts +35 -0
- package/lib/url-input/index.js +14 -0
- package/lib/url-input/index.js.map +1 -0
- package/lib/url-input/src/props.d.ts +16 -0
- package/lib/url-input/src/props.js +15 -0
- package/lib/url-input/src/props.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue.d.ts +25 -0
- package/lib/url-input/src/url-input-content.vue.js +11 -0
- package/lib/url-input/src/url-input-content.vue.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue2.js +305 -0
- package/lib/url-input/src/url-input-content.vue2.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue.d.ts +16 -0
- package/lib/url-input/src/url-input-table.vue.js +11 -0
- package/lib/url-input/src/url-input-table.vue.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue2.js +67 -0
- package/lib/url-input/src/url-input-table.vue2.js.map +1 -0
- package/lib/url-input/src/url-input.vue.d.ts +34 -0
- package/lib/url-input/src/url-input.vue.js +11 -0
- package/lib/url-input/src/url-input.vue.js.map +1 -0
- package/lib/url-input/src/url-input.vue2.js +73 -0
- package/lib/url-input/src/url-input.vue2.js.map +1 -0
- package/lib/url-input/style/index.css +1 -0
- package/lib/url-input/style/index.scss +38 -0
- package/package.json +1 -1
@@ -17,8 +17,7 @@ const _hoisted_5 = {
|
|
17
17
|
class: "m-r-5px m-b-5px"
|
18
18
|
};
|
19
19
|
const _hoisted_6 = { class: "m-r-5px m-b-5px" };
|
20
|
-
const _hoisted_7 = { class: "m-
|
21
|
-
const _hoisted_8 = { class: "m-b-5px" };
|
20
|
+
const _hoisted_7 = { class: "m-b-5px" };
|
22
21
|
const __default__ = vue.defineComponent({
|
23
22
|
name: "DkStyleFontInput"
|
24
23
|
});
|
@@ -88,8 +87,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
88
87
|
const _component_el_option = vue.resolveComponent("el-option");
|
89
88
|
const _component_el_select = vue.resolveComponent("el-select");
|
90
89
|
const _component_dk_icon = vue.resolveComponent("dk-icon");
|
91
|
-
const
|
92
|
-
const _component_el_radio_group = vue.resolveComponent("el-radio-group");
|
90
|
+
const _component_el_button_group = vue.resolveComponent("el-button-group");
|
93
91
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
94
92
|
vue.createCommentVNode(" \u989C\u8272\u3001\u5B57\u53F7\u3001\u7C97\u7EC6\u3001\u98CE\u683C\u3001\u88C5\u9970"),
|
95
93
|
vue.createElementVNode("div", _hoisted_2, [
|
@@ -126,291 +124,126 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
126
124
|
_: 1
|
127
125
|
/* STABLE */
|
128
126
|
}),
|
129
|
-
vue.
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
vue.
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
vue.createVNode(_component_el_select, {
|
209
|
-
modelValue: styles.fontWeight,
|
210
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => styles.fontWeight = $event),
|
211
|
-
"remote-show-suffix": false,
|
212
|
-
placeholder: "\u7C97\u7EC6",
|
213
|
-
"allow-create": "",
|
214
|
-
filterable: true
|
127
|
+
vue.createElementVNode("div", _hoisted_4, [
|
128
|
+
vue.createVNode(_component_el_select, {
|
129
|
+
modelValue: styles.fontSize,
|
130
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => styles.fontSize = $event),
|
131
|
+
"remote-show-suffix": false,
|
132
|
+
placeholder: "\u5B57\u53F7",
|
133
|
+
"allow-create": "",
|
134
|
+
clearable: "",
|
135
|
+
filterable: true
|
136
|
+
}, {
|
137
|
+
default: vue.withCtx(() => [
|
138
|
+
(vue.openBlock(), vue.createElementBlock(
|
139
|
+
vue.Fragment,
|
140
|
+
null,
|
141
|
+
vue.renderList(["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "40px", "48px"], (item) => {
|
142
|
+
return vue.createVNode(_component_el_option, {
|
143
|
+
key: item,
|
144
|
+
label: item,
|
145
|
+
value: item
|
146
|
+
}, null, 8, ["label", "value"]);
|
147
|
+
}),
|
148
|
+
64
|
149
|
+
/* STABLE_FRAGMENT */
|
150
|
+
))
|
151
|
+
]),
|
152
|
+
_: 1
|
153
|
+
/* STABLE */
|
154
|
+
}, 8, ["modelValue"])
|
155
|
+
]),
|
156
|
+
vue.createElementVNode("div", _hoisted_5, [
|
157
|
+
vue.createVNode(_component_el_select, {
|
158
|
+
modelValue: styles.fontWeight,
|
159
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => styles.fontWeight = $event),
|
160
|
+
"remote-show-suffix": false,
|
161
|
+
placeholder: "\u7C97\u7EC6",
|
162
|
+
"allow-create": "",
|
163
|
+
clearable: "",
|
164
|
+
filterable: true
|
165
|
+
}, {
|
166
|
+
default: vue.withCtx(() => [
|
167
|
+
(vue.openBlock(), vue.createElementBlock(
|
168
|
+
vue.Fragment,
|
169
|
+
null,
|
170
|
+
vue.renderList(WeightValues, (item) => {
|
171
|
+
return vue.createVNode(_component_el_option, {
|
172
|
+
key: item.value,
|
173
|
+
label: item.label,
|
174
|
+
value: item.value
|
175
|
+
}, null, 8, ["label", "value"]);
|
176
|
+
}),
|
177
|
+
64
|
178
|
+
/* STABLE_FRAGMENT */
|
179
|
+
))
|
180
|
+
]),
|
181
|
+
_: 1
|
182
|
+
/* STABLE */
|
183
|
+
}, 8, ["modelValue"])
|
184
|
+
]),
|
185
|
+
vue.createElementVNode("div", _hoisted_6, [
|
186
|
+
vue.createVNode(_component_el_button, {
|
187
|
+
type: styles.fontStyle ? "primary" : "",
|
188
|
+
onClick: _cache[4] || (_cache[4] = ($event) => styles.fontStyle ? styles.fontStyle = "" : styles.fontStyle = "italic")
|
189
|
+
}, {
|
190
|
+
default: vue.withCtx(() => [
|
191
|
+
vue.createVNode(_component_dk_icon, {
|
192
|
+
icon: "radix-icons:font-italic",
|
193
|
+
title: "\u6587\u5B57\u503E\u659C"
|
194
|
+
})
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
/* STABLE */
|
198
|
+
}, 8, ["type"])
|
199
|
+
]),
|
200
|
+
vue.createElementVNode("div", _hoisted_7, [
|
201
|
+
vue.createVNode(_component_el_button_group, null, {
|
202
|
+
default: vue.withCtx(() => [
|
203
|
+
vue.createVNode(_component_el_button, {
|
204
|
+
type: styles.textDecoration == "underline" ? "primary" : "",
|
205
|
+
onClick: _cache[5] || (_cache[5] = ($event) => styles.textDecoration == "underline" ? styles.textDecoration = "" : styles.textDecoration = "underline")
|
215
206
|
}, {
|
216
207
|
default: vue.withCtx(() => [
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
vue.renderList(WeightValues, (item) => {
|
221
|
-
return vue.createVNode(_component_el_option, {
|
222
|
-
key: item.value,
|
223
|
-
label: item.label,
|
224
|
-
value: item.value
|
225
|
-
}, null, 8, ["label", "value"]);
|
226
|
-
}),
|
227
|
-
64
|
228
|
-
/* STABLE_FRAGMENT */
|
229
|
-
))
|
230
|
-
]),
|
231
|
-
_: 1
|
232
|
-
/* STABLE */
|
233
|
-
}, 8, ["modelValue"])
|
234
|
-
])
|
235
|
-
]),
|
236
|
-
_: 1
|
237
|
-
/* STABLE */
|
238
|
-
}),
|
239
|
-
vue.createVNode(_component_el_tooltip, {
|
240
|
-
placement: "top-end",
|
241
|
-
trigger: "hover",
|
242
|
-
"show-after": showAfter,
|
243
|
-
"hide-after": hideAfter
|
244
|
-
}, {
|
245
|
-
content: vue.withCtx(() => [
|
246
|
-
vue.createTextVNode(" \u6587\u5B57\u7C97\u7EC6 "),
|
247
|
-
vue.createVNode(_component_el_button, {
|
248
|
-
size: "small",
|
249
|
-
icon: "Refresh",
|
250
|
-
color: "var(--el-text-color-primary)",
|
251
|
-
disabled: styles.fontWeight === "",
|
252
|
-
onClick: _cache[6] || (_cache[6] = ($event) => clear("fontWeight"))
|
253
|
-
}, {
|
254
|
-
default: vue.withCtx(() => [
|
255
|
-
vue.createTextVNode("\u91CD\u7F6E")
|
256
|
-
]),
|
257
|
-
_: 1
|
258
|
-
/* STABLE */
|
259
|
-
}, 8, ["disabled"])
|
260
|
-
]),
|
261
|
-
default: vue.withCtx(() => [
|
262
|
-
vue.createElementVNode("div", _hoisted_6, [
|
263
|
-
vue.createVNode(_component_el_radio_group, {
|
264
|
-
modelValue: styles.fontWeight,
|
265
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => styles.fontWeight = $event)
|
266
|
-
}, {
|
267
|
-
default: vue.withCtx(() => [
|
268
|
-
vue.createVNode(_component_el_radio_button, { value: "bold" }, {
|
269
|
-
default: vue.withCtx(() => [
|
270
|
-
vue.createVNode(_component_dk_icon, {
|
271
|
-
icon: "radix-icons:font-bold",
|
272
|
-
title: "\u6587\u5B57\u52A0\u7C97"
|
273
|
-
})
|
274
|
-
]),
|
275
|
-
_: 1
|
276
|
-
/* STABLE */
|
277
|
-
}),
|
278
|
-
vue.createVNode(_component_el_radio_button, { value: "lighter" }, {
|
279
|
-
default: vue.withCtx(() => [
|
280
|
-
vue.createVNode(_component_dk_icon, {
|
281
|
-
icon: "clarity:font-size-line",
|
282
|
-
title: "\u6587\u5B57\u9ED8\u8BA4"
|
283
|
-
})
|
284
|
-
]),
|
285
|
-
_: 1
|
286
|
-
/* STABLE */
|
208
|
+
vue.createVNode(_component_dk_icon, {
|
209
|
+
icon: "radix-icons:underline",
|
210
|
+
title: "\u4E0B\u5212\u7EBF"
|
287
211
|
})
|
288
212
|
]),
|
289
213
|
_: 1
|
290
214
|
/* STABLE */
|
291
|
-
}, 8, ["
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
/* STABLE */
|
296
|
-
}),
|
297
|
-
vue.createVNode(_component_el_tooltip, {
|
298
|
-
placement: "top-end",
|
299
|
-
class: "m-r-5px",
|
300
|
-
trigger: "hover",
|
301
|
-
"show-after": showAfter,
|
302
|
-
"hide-after": hideAfter
|
303
|
-
}, {
|
304
|
-
content: vue.withCtx(() => [
|
305
|
-
vue.createTextVNode(" \u6587\u5B57\u98CE\u683C "),
|
306
|
-
vue.createVNode(_component_el_button, {
|
307
|
-
size: "small",
|
308
|
-
icon: "Refresh",
|
309
|
-
color: "var(--el-text-color-primary)",
|
310
|
-
disabled: styles.fontStyle === "",
|
311
|
-
onClick: _cache[8] || (_cache[8] = ($event) => clear("fontStyle"))
|
312
|
-
}, {
|
313
|
-
default: vue.withCtx(() => [
|
314
|
-
vue.createTextVNode("\u91CD\u7F6E")
|
315
|
-
]),
|
316
|
-
_: 1
|
317
|
-
/* STABLE */
|
318
|
-
}, 8, ["disabled"])
|
319
|
-
]),
|
320
|
-
default: vue.withCtx(() => [
|
321
|
-
vue.createElementVNode("div", _hoisted_7, [
|
322
|
-
vue.createVNode(_component_el_radio_group, {
|
323
|
-
modelValue: styles.fontStyle,
|
324
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => styles.fontStyle = $event)
|
215
|
+
}, 8, ["type"]),
|
216
|
+
vue.createVNode(_component_el_button, {
|
217
|
+
type: styles.textDecoration == "line-through" ? "primary" : "",
|
218
|
+
onClick: _cache[6] || (_cache[6] = ($event) => styles.textDecoration == "line-through" ? styles.textDecoration = "" : styles.textDecoration = "line-through")
|
325
219
|
}, {
|
326
220
|
default: vue.withCtx(() => [
|
327
|
-
vue.createVNode(
|
328
|
-
|
329
|
-
|
330
|
-
icon: "radix-icons:font-italic",
|
331
|
-
title: "\u6587\u5B57\u503E\u659C"
|
332
|
-
})
|
333
|
-
]),
|
334
|
-
_: 1
|
335
|
-
/* STABLE */
|
221
|
+
vue.createVNode(_component_dk_icon, {
|
222
|
+
icon: "radix-icons:strikethrough",
|
223
|
+
title: "\u5220\u9664\u7EBF"
|
336
224
|
})
|
337
225
|
]),
|
338
226
|
_: 1
|
339
227
|
/* STABLE */
|
340
|
-
}, 8, ["
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
/* STABLE */
|
345
|
-
}),
|
346
|
-
vue.createVNode(_component_el_tooltip, {
|
347
|
-
placement: "top-end",
|
348
|
-
trigger: "hover",
|
349
|
-
"show-after": showAfter,
|
350
|
-
"hide-after": hideAfter
|
351
|
-
}, {
|
352
|
-
content: vue.withCtx(() => [
|
353
|
-
vue.createTextVNode(" \u6587\u5B57\u88C5\u9970 "),
|
354
|
-
vue.createVNode(_component_el_button, {
|
355
|
-
size: "small",
|
356
|
-
icon: "Refresh",
|
357
|
-
color: "var(--el-text-color-primary)",
|
358
|
-
disabled: styles.textDecoration === "",
|
359
|
-
onClick: _cache[10] || (_cache[10] = ($event) => clear("textDecoration"))
|
360
|
-
}, {
|
361
|
-
default: vue.withCtx(() => [
|
362
|
-
vue.createTextVNode("\u91CD\u7F6E")
|
363
|
-
]),
|
364
|
-
_: 1
|
365
|
-
/* STABLE */
|
366
|
-
}, 8, ["disabled"])
|
367
|
-
]),
|
368
|
-
default: vue.withCtx(() => [
|
369
|
-
vue.createElementVNode("div", _hoisted_8, [
|
370
|
-
vue.createVNode(_component_el_radio_group, {
|
371
|
-
modelValue: styles.textDecoration,
|
372
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => styles.textDecoration = $event)
|
228
|
+
}, 8, ["type"]),
|
229
|
+
vue.createVNode(_component_el_button, {
|
230
|
+
type: styles.textDecoration == "wavy underline" ? "primary" : "",
|
231
|
+
onClick: _cache[7] || (_cache[7] = ($event) => styles.textDecoration == "wavy underline" ? styles.textDecoration = "" : styles.textDecoration = "wavy underline")
|
373
232
|
}, {
|
374
233
|
default: vue.withCtx(() => [
|
375
|
-
vue.createVNode(
|
376
|
-
|
377
|
-
|
378
|
-
icon: "radix-icons:underline",
|
379
|
-
title: "\u4E0B\u5212\u7EBF"
|
380
|
-
})
|
381
|
-
]),
|
382
|
-
_: 1
|
383
|
-
/* STABLE */
|
384
|
-
}),
|
385
|
-
vue.createVNode(_component_el_radio_button, { value: "line-through" }, {
|
386
|
-
default: vue.withCtx(() => [
|
387
|
-
vue.createVNode(_component_dk_icon, {
|
388
|
-
icon: "radix-icons:strikethrough",
|
389
|
-
title: "\u5220\u9664\u7EBF"
|
390
|
-
})
|
391
|
-
]),
|
392
|
-
_: 1
|
393
|
-
/* STABLE */
|
394
|
-
}),
|
395
|
-
vue.createVNode(_component_el_radio_button, { value: "wavy underline" }, {
|
396
|
-
default: vue.withCtx(() => [
|
397
|
-
vue.createVNode(_component_dk_icon, {
|
398
|
-
icon: "mdi:format-underline-wavy",
|
399
|
-
title: "\u6CE2\u6D6A\u7EBF"
|
400
|
-
})
|
401
|
-
]),
|
402
|
-
_: 1
|
403
|
-
/* STABLE */
|
234
|
+
vue.createVNode(_component_dk_icon, {
|
235
|
+
icon: "mdi:format-underline-wavy",
|
236
|
+
title: "\u6CE2\u6D6A\u7EBF"
|
404
237
|
})
|
405
238
|
]),
|
406
239
|
_: 1
|
407
240
|
/* STABLE */
|
408
|
-
}, 8, ["
|
409
|
-
])
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
241
|
+
}, 8, ["type"])
|
242
|
+
]),
|
243
|
+
_: 1
|
244
|
+
/* STABLE */
|
245
|
+
})
|
246
|
+
]),
|
414
247
|
vue.createVNode(_component_el_tooltip, {
|
415
248
|
placement: "top",
|
416
249
|
trigger: "hover",
|
@@ -424,7 +257,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
424
257
|
plain: "",
|
425
258
|
icon: "Delete",
|
426
259
|
class: "m-l-5px m-b-5px",
|
427
|
-
onClick: _cache[
|
260
|
+
onClick: _cache[8] || (_cache[8] = ($event) => clear("all"))
|
428
261
|
})
|
429
262
|
]),
|
430
263
|
_: 1
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style-font-input.vue2.js","sources":["../../../src/style-font-input/src/style-font-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleFontInput',\n});\n</script>\n<template>\n <div class=\"dk-style-font-input\">\n <!-- 颜色、字号、粗细、风格、装饰-->\n <div style=\"display: flex; flex-flow: wrap; align-items: center\">\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 文字颜色\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.color === ''\"\n @click=\"clear('color')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div class=\"m-b-5px\">\n <el-color-picker v-model=\"styles.color\"></el-color-picker>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 字号\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.fontSize === ''\"\n @click=\"clear('fontSize')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div style=\"width: 100px\" class=\"m-b-5px\">\n <el-select\n v-model=\"styles.fontSize\"\n :remote-show-suffix=\"false\"\n placeholder=\"字号\"\n allow-create\n :filterable=\"true\"\n >\n <el-option\n v-for=\"item in ['12px', '14px', '16px', '18px', '20px', '24px', '28px', '32px', '36px', '40px', '48px']\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 粗细\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.fontWeight === ''\"\n @click=\"clear('fontWeight')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div style=\"width: 100px\" class=\"m-r-5px m-b-5px\">\n <el-select\n v-model=\"styles.fontWeight\"\n :remote-show-suffix=\"false\"\n placeholder=\"粗细\"\n allow-create\n :filterable=\"true\"\n >\n <el-option\n v-for=\"item in WeightValues\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\"\n ></el-option>\n </el-select>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 文字粗细\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.fontWeight === ''\"\n @click=\"clear('fontWeight')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div class=\"m-r-5px m-b-5px\">\n <el-radio-group v-model=\"styles.fontWeight\">\n <el-radio-button value=\"bold\">\n <dk-icon icon=\"radix-icons:font-bold\" title=\"文字加粗\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"lighter\">\n <dk-icon icon=\"clarity:font-size-line\" title=\"文字默认\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top-end\" class=\"m-r-5px\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 文字风格\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.fontStyle === ''\"\n @click=\"clear('fontStyle')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div class=\"m-r-5px m-b-5px\">\n <el-radio-group v-model=\"styles.fontStyle\">\n <el-radio-button value=\"italic\">\n <dk-icon icon=\"radix-icons:font-italic\" title=\"文字倾斜\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 文字装饰\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.textDecoration === ''\"\n @click=\"clear('textDecoration')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div class=\"m-b-5px\">\n <el-radio-group v-model=\"styles.textDecoration\">\n <el-radio-button value=\"underline\">\n <dk-icon icon=\"radix-icons:underline\" title=\"下划线\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"line-through\">\n <dk-icon icon=\"radix-icons:strikethrough\" title=\"删除线\"></dk-icon>\n </el-radio-button>\n <el-radio-button value=\"wavy underline\">\n <dk-icon icon=\"mdi:format-underline-wavy\" title=\"波浪线\"></dk-icon>\n </el-radio-button>\n </el-radio-group>\n </div>\n </template>\n </el-tooltip>\n <el-tooltip placement=\"top\" trigger=\"hover\" content=\"全部重置\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #default>\n <el-button type=\"danger\" plain icon=\"Delete\" class=\"m-l-5px m-b-5px\" @click=\"clear('all')\"></el-button>\n </template>\n </el-tooltip>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleFontInputProps } from './props'\nimport { reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleFontInputProps)\n\nconst showAfter = 400\nconst hideAfter = 100\n\nconst styles: any = reactive({\n color: props.modelValue.color || '',\n fontSize: props.modelValue.fontSize || '',\n fontWeight: props.modelValue.fontWeight || '',\n fontStyle: props.modelValue.fontStyle || '',\n textDecoration: props.modelValue.textDecoration || '',\n})\n\nconst emit = defineEmits(['update:modelValue', 'change'])\nwatch(styles, (val) => {\n const _styles = Object.keys(styles).reduce((acc: any, key) => {\n if (styles[key] !== '') {\n acc[key] = styles[key]\n }\n return acc\n }, {})\n emit('update:modelValue', _styles)\n emit('change', _styles)\n})\n\nwatch(\n () => props.modelValue,\n () => {\n // styles.color = props.modelValue.color || ''\n // styles.fontSize = props.modelValue.fontSize || ''\n // styles.fontWeight = props.modelValue.fontWeight || ''\n // styles.fontStyle = props.modelValue.fontStyle || ''\n // styles.textDecoration = props.modelValue.textDecoration || ''\n const propertiesToWatch = ['color', 'fontSize', 'fontWeight', 'fontStyle', 'textDecoration']\n propertiesToWatch.forEach((property) => {\n styles[property] = props.modelValue[property] || ''\n })\n },\n { deep: true }\n)\n\nconst WeightValues = [\n { label: '普通', value: 'normal' },\n { label: '加粗', value: 'bold' },\n { label: '更粗', value: 'bolder' },\n { label: '更细', value: 'lighter' },\n { label: '100', value: '100' },\n { label: '200', value: '200' },\n { label: '300', value: '300' },\n { label: '400', value: '400' },\n { label: '500', value: '500' },\n { label: '600', value: '600' },\n { label: '700', value: '700' },\n { label: '800', value: '800' },\n { label: '900', value: '900' },\n]\n\nconst clear = (type: string) => {\n if (type === 'all') {\n Object.keys(styles).forEach((key) => {\n styles[key] = ''\n })\n } else {\n styles[type] = ''\n }\n}\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAwLD,IAAA,MAAM,SAAY,GAAA,GAAA,CAAA;AAClB,IAAA,MAAM,SAAY,GAAA,GAAA,CAAA;AAElB,IAAA,MAAM,SAAcC,YAAS,CAAA;AAAA,MAC3B,KAAA,EAAO,KAAM,CAAA,UAAA,CAAW,KAAS,IAAA,EAAA;AAAA,MACjC,QAAA,EAAU,KAAM,CAAA,UAAA,CAAW,QAAY,IAAA,EAAA;AAAA,MACvC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"style-font-input.vue2.js","sources":["../../../src/style-font-input/src/style-font-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleFontInput',\n});\n</script>\n<template>\n <div class=\"dk-style-font-input\">\n <!-- 颜色、字号、粗细、风格、装饰-->\n <div style=\"display: flex; flex-flow: wrap; align-items: center\">\n <el-tooltip placement=\"top-end\" trigger=\"hover\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #content>\n 文字颜色\n <el-button\n size=\"small\"\n icon=\"Refresh\"\n color=\"var(--el-text-color-primary)\"\n :disabled=\"styles.color === ''\"\n @click=\"clear('color')\"\n >重置</el-button\n >\n </template>\n <!-- -->\n <template #default>\n <div class=\"m-b-5px\">\n <el-color-picker v-model=\"styles.color\"></el-color-picker>\n </div>\n </template>\n </el-tooltip>\n <div style=\"width: 100px\" class=\"m-b-5px\">\n <el-select\n v-model=\"styles.fontSize\"\n :remote-show-suffix=\"false\"\n placeholder=\"字号\"\n allow-create\n clearable\n :filterable=\"true\"\n >\n <el-option\n v-for=\"item in ['12px', '14px', '16px', '18px', '20px', '24px', '28px', '32px', '36px', '40px', '48px']\"\n :key=\"item\"\n :label=\"item\"\n :value=\"item\"\n />\n </el-select>\n </div>\n <div style=\"width: 100px\" class=\"m-r-5px m-b-5px\">\n <el-select\n v-model=\"styles.fontWeight\"\n :remote-show-suffix=\"false\"\n placeholder=\"粗细\"\n allow-create\n clearable\n :filterable=\"true\"\n >\n <el-option v-for=\"item in WeightValues\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\"></el-option>\n </el-select>\n </div>\n <div class=\"m-r-5px m-b-5px\">\n <el-button\n :type=\"styles.fontStyle ? 'primary' : ''\"\n @click=\"styles.fontStyle ? (styles.fontStyle = '') : (styles.fontStyle = 'italic')\"\n >\n <dk-icon icon=\"radix-icons:font-italic\" title=\"文字倾斜\"></dk-icon>\n </el-button>\n </div>\n <div class=\"m-b-5px\">\n <el-button-group>\n <el-button\n :type=\"styles.textDecoration == 'underline' ? 'primary' : ''\"\n @click=\"\n styles.textDecoration == 'underline'\n ? (styles.textDecoration = '')\n : (styles.textDecoration = 'underline')\n \"\n >\n <dk-icon icon=\"radix-icons:underline\" title=\"下划线\"></dk-icon>\n </el-button>\n <el-button\n :type=\"styles.textDecoration == 'line-through' ? 'primary' : ''\"\n @click=\"\n styles.textDecoration == 'line-through'\n ? (styles.textDecoration = '')\n : (styles.textDecoration = 'line-through')\n \"\n >\n <dk-icon icon=\"radix-icons:strikethrough\" title=\"删除线\"></dk-icon>\n </el-button>\n <el-button\n :type=\"styles.textDecoration == 'wavy underline' ? 'primary' : ''\"\n @click=\"\n styles.textDecoration == 'wavy underline'\n ? (styles.textDecoration = '')\n : (styles.textDecoration = 'wavy underline')\n \"\n >\n <dk-icon icon=\"mdi:format-underline-wavy\" title=\"波浪线\"></dk-icon>\n </el-button>\n </el-button-group>\n </div>\n <el-tooltip placement=\"top\" trigger=\"hover\" content=\"全部重置\" :show-after=\"showAfter\" :hide-after=\"hideAfter\">\n <template #default>\n <el-button type=\"danger\" plain icon=\"Delete\" class=\"m-l-5px m-b-5px\" @click=\"clear('all')\"></el-button>\n </template>\n </el-tooltip>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { styleFontInputProps } from './props'\nimport { reactive, watch } from 'vue'\n\n\n\nconst props = defineProps(styleFontInputProps)\n\nconst showAfter = 400\nconst hideAfter = 100\n\nconst styles: any = reactive({\n color: props.modelValue.color || '',\n fontSize: props.modelValue.fontSize || '',\n fontWeight: props.modelValue.fontWeight || '',\n fontStyle: props.modelValue.fontStyle || '',\n textDecoration: props.modelValue.textDecoration || '',\n})\n\nconst emit = defineEmits(['update:modelValue', 'change'])\nwatch(styles, (val) => {\n const _styles = Object.keys(styles).reduce((acc: any, key) => {\n if (styles[key] !== '') {\n acc[key] = styles[key]\n }\n return acc\n }, {})\n emit('update:modelValue', _styles)\n emit('change', _styles)\n})\n\nwatch(\n () => props.modelValue,\n () => {\n // styles.color = props.modelValue.color || ''\n // styles.fontSize = props.modelValue.fontSize || ''\n // styles.fontWeight = props.modelValue.fontWeight || ''\n // styles.fontStyle = props.modelValue.fontStyle || ''\n // styles.textDecoration = props.modelValue.textDecoration || ''\n const propertiesToWatch = ['color', 'fontSize', 'fontWeight', 'fontStyle', 'textDecoration']\n propertiesToWatch.forEach((property) => {\n styles[property] = props.modelValue[property] || ''\n })\n },\n { deep: true }\n)\n\nconst WeightValues = [\n { label: '普通', value: 'normal' },\n { label: '加粗', value: 'bold' },\n { label: '更粗', value: 'bolder' },\n { label: '更细', value: 'lighter' },\n { label: '100', value: '100' },\n { label: '200', value: '200' },\n { label: '300', value: '300' },\n { label: '400', value: '400' },\n { label: '500', value: '500' },\n { label: '600', value: '600' },\n { label: '700', value: '700' },\n { label: '800', value: '800' },\n { label: '900', value: '900' },\n]\n\nconst clear = (type: string) => {\n if (type === 'all') {\n Object.keys(styles).forEach((key) => {\n styles[key] = ''\n })\n } else {\n styles[type] = ''\n }\n}\n</script>\n"],"names":["__MACROS_defineComponent","reactive","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,kBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAiHD,IAAA,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AACnC,UAAA,MAAA,CAAO,GAAG,CAAI,GAAA,EAAA,CAAA;AAAA,SACf,CAAA,CAAA;AAAA,OACI,MAAA;AACL,QAAA,MAAA,CAAO,IAAI,CAAI,GAAA,EAAA,CAAA;AAAA,OACjB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -116,6 +116,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
116
116
|
type: "primary",
|
117
117
|
plain: "",
|
118
118
|
style: { "width": "100%" },
|
119
|
+
size: "small",
|
119
120
|
onClick: _cache[1] || (_cache[1] = ($event) => drawer.value = true)
|
120
121
|
}, {
|
121
122
|
default: vue.withCtx(() => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style-input.vue2.js","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\"
|
1
|
+
{"version":3,"file":"style-input.vue2.js","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%\" size=\"small\" @click=\"drawer = true\">\n {{ props.drawerText }}\n </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 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","ref","watch","onMounted"],"mappings":";;;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,cAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAkDD,IAAM,MAAA,MAAA,GAASC,QAAI,KAAK,CAAA,CAAA;AACxB,IAAA,MAAM,WAAc,GAAAA,OAAA,CAAI,CAAC,CAAC,CAAC,CAAA,CAAA;AAC3B,IAAM,MAAA,MAAA,GAAcA,OAAI,CAAA,EAAE,CAAA,CAAA;AAC1B,IAAM,MAAA,OAAA,GAAUA,QAAI,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,GAAmBA,OAAI,CAAA,EAAE,CAAA,CAAA;AAC/B,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -22,7 +22,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
22
22
|
const shadows = vue.ref([]);
|
23
23
|
const activeName = vue.ref("1");
|
24
24
|
const addShadow = () => {
|
25
|
-
shadows.value.push("
|
25
|
+
shadows.value.push("2px 2px 3px 2px #E7E5E5FF");
|
26
26
|
activeName.value = shadows.value.length - 1 + "";
|
27
27
|
};
|
28
28
|
const delShadow = (index) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style-shadow-input.vue2.js","sources":["../../../src/style-shadow-input/src/style-shadow-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowInput',\n});\n</script>\n<template>\n <div class=\"dk-style-shadow-input\">\n <el-collapse v-if=\"type === 'collapse'\" v-model=\"activeName\" accordion>\n <el-collapse-item v-for=\"(item, key) in shadows\" :key=\"key\" :title=\"item\" :name=\"key + ''\">\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-collapse-item>\n </el-collapse>\n <ul v-else class=\"shadow-list\">\n <li v-for=\"(item, key) in shadows\" :key=\"key\">\n <el-input v-model=\"shadows[key]\" disabled>\n <template #append>\n <el-popover placement=\"right-start\" title=\"\" width=\"380\" trigger=\"click\">\n <template #reference>\n <el-button>设置</el-button>\n </template>\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-popover>\n </template>\n </el-input>\n <dk-icon class=\"close-shadow\" icon=\"Close\" hover-color=\"#f00\" @click=\"delShadow(key)\"></dk-icon>\n </li>\n </ul>\n <el-button class=\"m-t-10px w-100%\" @click=\"addShadow\">\n <dk-icon icon=\"Plus\"></dk-icon>\n </el-button>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { shadowInputProps } from './props'\nimport { computed, onMounted, ref, watch } from 'vue'\n\n\n\nconst props = defineProps(shadowInputProps)\n\nconst shadows: any = ref([])\n\nconst activeName = ref('1')\nconst addShadow = () => {\n shadows.value.push('
|
1
|
+
{"version":3,"file":"style-shadow-input.vue2.js","sources":["../../../src/style-shadow-input/src/style-shadow-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkStyleShadowInput',\n});\n</script>\n<template>\n <div class=\"dk-style-shadow-input\">\n <el-collapse v-if=\"type === 'collapse'\" v-model=\"activeName\" accordion>\n <el-collapse-item v-for=\"(item, key) in shadows\" :key=\"key\" :title=\"item\" :name=\"key + ''\">\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-collapse-item>\n </el-collapse>\n <ul v-else class=\"shadow-list\">\n <li v-for=\"(item, key) in shadows\" :key=\"key\">\n <el-input v-model=\"shadows[key]\" disabled>\n <template #append>\n <el-popover placement=\"right-start\" title=\"\" width=\"380\" trigger=\"click\">\n <template #reference>\n <el-button>设置</el-button>\n </template>\n <dk-style-shadow-content v-model=\"shadows[key]\"></dk-style-shadow-content>\n </el-popover>\n </template>\n </el-input>\n <dk-icon class=\"close-shadow\" icon=\"Close\" hover-color=\"#f00\" @click=\"delShadow(key)\"></dk-icon>\n </li>\n </ul>\n <el-button class=\"m-t-10px w-100%\" @click=\"addShadow\">\n <dk-icon icon=\"Plus\"></dk-icon>\n </el-button>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { shadowInputProps } from './props'\nimport { computed, onMounted, ref, watch } from 'vue'\n\n\n\nconst props = defineProps(shadowInputProps)\n\nconst shadows: any = ref([])\n\nconst activeName = ref('1')\nconst addShadow = () => {\n shadows.value.push('2px 2px 3px 2px #E7E5E5FF')\n activeName.value = shadows.value.length - 1 + ''\n}\n\nconst delShadow = (index: number) => {\n shadows.value.splice(index, 1)\n}\n\nconst init = () => {\n if (props.modelValue.boxShadow) {\n shadows.value = props.modelValue.boxShadow.split(',')\n }\n}\n\nconst emit = defineEmits(['update:modelValue', 'change'])\n\nconst boxShadow = computed(() => {\n return shadows.value.join(',')\n})\n\nwatch(boxShadow, (n, o) => {\n emit('update:modelValue', { boxShadow: boxShadow.value })\n emit('change', { boxShadow: boxShadow.value })\n})\n\nwatch(\n () => props.modelValue,\n () => {\n init()\n },\n { deep: true }\n)\n\nonMounted(() => {\n init()\n})\n</script>\n"],"names":["__MACROS_defineComponent","ref","computed","watch","onMounted"],"mappings":";;;;;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,oBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AAsCD,IAAM,MAAA,OAAA,GAAeC,OAAI,CAAA,EAAE,CAAA,CAAA;AAE3B,IAAM,MAAA,UAAA,GAAaA,QAAI,GAAG,CAAA,CAAA;AAC1B,IAAA,MAAM,YAAY,MAAM;AACtB,MAAQ,OAAA,CAAA,KAAA,CAAM,KAAK,2BAA2B,CAAA,CAAA;AAC9C,MAAA,UAAA,CAAW,KAAQ,GAAA,OAAA,CAAQ,KAAM,CAAA,MAAA,GAAS,CAAI,GAAA,EAAA,CAAA;AAAA,KAChD,CAAA;AAEA,IAAM,MAAA,SAAA,GAAY,CAAC,KAAkB,KAAA;AACnC,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAO,CAAA,KAAA,EAAO,CAAC,CAAA,CAAA;AAAA,KAC/B,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAI,IAAA,KAAA,CAAM,WAAW,SAAW,EAAA;AAC9B,QAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAM,UAAW,CAAA,SAAA,CAAU,MAAM,GAAG,CAAA,CAAA;AAAA,OACtD;AAAA,KACF,CAAA;AAIA,IAAM,MAAA,SAAA,GAAYC,aAAS,MAAM;AAC/B,MAAO,OAAA,OAAA,CAAQ,KAAM,CAAA,IAAA,CAAK,GAAG,CAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAMC,SAAA,CAAA,SAAA,EAAW,CAAC,CAAA,EAAG,CAAM,KAAA;AACzB,MAAA,IAAA,CAAK,mBAAqB,EAAA,EAAE,SAAW,EAAA,SAAA,CAAU,OAAO,CAAA,CAAA;AACxD,MAAA,IAAA,CAAK,QAAU,EAAA,EAAE,SAAW,EAAA,SAAA,CAAU,OAAO,CAAA,CAAA;AAAA,KAC9C,CAAA,CAAA;AAED,IAAAA,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,MAAM;AACJ,QAAK,IAAA,EAAA,CAAA;AAAA,OACP;AAAA,MACA,EAAE,MAAM,IAAK,EAAA;AAAA,KACf,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAK,IAAA,EAAA,CAAA;AAAA,KACN,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/test/index.d.ts
CHANGED
@@ -7,7 +7,7 @@ export declare const Test: import("@vipl520/utils").WithInstall<import("vue").De
|
|
7
7
|
default: string;
|
8
8
|
type: StringConstructor;
|
9
9
|
};
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChooseUrl"[], "onChooseUrl", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
11
11
|
type: {
|
12
12
|
type: import("vue").PropType<string>;
|
13
13
|
default: string;
|
@@ -16,7 +16,9 @@ export declare const Test: import("@vipl520/utils").WithInstall<import("vue").De
|
|
16
16
|
default: string;
|
17
17
|
type: StringConstructor;
|
18
18
|
};
|
19
|
-
}
|
19
|
+
}>> & {
|
20
|
+
onOnChooseUrl?: ((...args: any[]) => any) | undefined;
|
21
|
+
}, {
|
20
22
|
type: string;
|
21
23
|
test: string;
|
22
24
|
}, {}>>;
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
default: string;
|
8
8
|
type: StringConstructor;
|
9
9
|
};
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChooseUrl"[], "onChooseUrl", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
11
11
|
type: {
|
12
12
|
type: import("vue").PropType<string>;
|
13
13
|
default: string;
|
@@ -16,7 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
default: string;
|
17
17
|
type: StringConstructor;
|
18
18
|
};
|
19
|
-
}
|
19
|
+
}>> & {
|
20
|
+
onOnChooseUrl?: ((...args: any[]) => any) | undefined;
|
21
|
+
}, {
|
20
22
|
type: string;
|
21
23
|
test: string;
|
22
24
|
}, {}>;
|