@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
@@ -0,0 +1,67 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
var elementPlus = require('element-plus');
|
7
|
+
|
8
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
9
|
+
__name: "url-input-table",
|
10
|
+
props: {
|
11
|
+
item: {
|
12
|
+
default: () => {
|
13
|
+
return {};
|
14
|
+
},
|
15
|
+
type: Object
|
16
|
+
}
|
17
|
+
},
|
18
|
+
emits: ["onChooseUrl"],
|
19
|
+
setup(__props, { emit }) {
|
20
|
+
const props = __props;
|
21
|
+
vue.defineComponent({
|
22
|
+
name: "DkUrlInputTable"
|
23
|
+
});
|
24
|
+
const DkTableRef = vue.ref();
|
25
|
+
const selection = vue.computed(() => DkTableRef?.value?.DkTable?.table?.selection || []);
|
26
|
+
vue.watch(
|
27
|
+
() => selection.value.length,
|
28
|
+
() => {
|
29
|
+
console.log(selection);
|
30
|
+
if (selection.value.length > 1) {
|
31
|
+
elementPlus.ElMessage({
|
32
|
+
message: "\u9009\u62E9\u591A\u4E2A\u53EA\u6709\u6700\u540E\u4E00\u4E2A\u751F\u6548",
|
33
|
+
type: "warning"
|
34
|
+
});
|
35
|
+
}
|
36
|
+
const val = selection.value[selection.value.length - 1];
|
37
|
+
if (val) {
|
38
|
+
const url = val[props.item.urlField] || props.item.urlRule.replace("{pkField}", val[props.item.pkField]);
|
39
|
+
emit("onChooseUrl", url);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
);
|
43
|
+
return (_ctx, _cache) => {
|
44
|
+
const _component_dk_table = vue.resolveComponent("dk-table");
|
45
|
+
return vue.openBlock(), vue.createBlock(_component_dk_table, {
|
46
|
+
ref_key: "DkTableRef",
|
47
|
+
ref: DkTableRef,
|
48
|
+
"table-api": __props.item.tableUrl,
|
49
|
+
"cache-table": __props.item.cacheTable,
|
50
|
+
height: "300px"
|
51
|
+
}, {
|
52
|
+
cate_id_slot: vue.withCtx(({ row }) => [
|
53
|
+
vue.createTextVNode(
|
54
|
+
vue.toDisplayString(row.category?.name),
|
55
|
+
1
|
56
|
+
/* TEXT */
|
57
|
+
)
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
/* STABLE */
|
61
|
+
}, 8, ["table-api", "cache-table"]);
|
62
|
+
};
|
63
|
+
}
|
64
|
+
});
|
65
|
+
|
66
|
+
exports.default = _sfc_main;
|
67
|
+
//# sourceMappingURL=url-input-table.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input-table.vue2.js","sources":["../../../src/url-input/src/url-input-table.vue"],"sourcesContent":["<template>\n <dk-table ref=\"DkTableRef\" :table-api=\"item.tableUrl\" :cache-table=\"item.cacheTable\" height=\"300px\">\n <template #cate_id_slot=\"{ row }\">{{ row.category?.name }}</template>\n </dk-table>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, defineComponent, onMounted, ref, watch } from 'vue'\nimport { ElMessage } from 'element-plus'\ndefineComponent({\n name: 'DkUrlInputTable',\n})\nconst props = defineProps({\n item: {\n default: () => {\n return {}\n },\n type: Object,\n },\n})\n\nconst DkTableRef = ref()\nconst selection = computed(() => DkTableRef?.value?.DkTable?.table?.selection || [])\nconst emit = defineEmits(['onChooseUrl'])\n\nwatch(\n () => selection.value.length,\n () => {\n console.log(selection)\n if (selection.value.length > 1) {\n ElMessage({\n message: '选择多个只有最后一个生效',\n type: 'warning',\n })\n }\n const val = selection.value[selection.value.length - 1]\n if (val) {\n const url = val[props.item.urlField] || props.item.urlRule.replace('{pkField}', val[props.item.pkField])\n emit('onChooseUrl', url)\n }\n }\n)\n</script>\n\n<style scoped></style>\n"],"names":["defineComponent","ref","computed","watch","ElMessage"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,IAAgBA,mBAAA,CAAA;AAAA,MACd,IAAM,EAAA,iBAAA;AAAA,KACP,CAAA,CAAA;AAUD,IAAA,MAAM,aAAaC,OAAI,EAAA,CAAA;AACvB,IAAM,MAAA,SAAA,GAAYC,aAAS,MAAM,UAAA,EAAY,OAAO,OAAS,EAAA,KAAA,EAAO,SAAa,IAAA,EAAE,CAAA,CAAA;AAGnF,IAAAC,SAAA;AAAA,MACE,MAAM,UAAU,KAAM,CAAA,MAAA;AAAA,MACtB,MAAM;AACJ,QAAA,OAAA,CAAQ,IAAI,SAAS,CAAA,CAAA;AACrB,QAAI,IAAA,SAAA,CAAU,KAAM,CAAA,MAAA,GAAS,CAAG,EAAA;AAC9B,UAAUC,qBAAA,CAAA;AAAA,YACR,OAAS,EAAA,0EAAA;AAAA,YACT,IAAM,EAAA,SAAA;AAAA,WACP,CAAA,CAAA;AAAA,SACH;AACA,QAAA,MAAM,MAAM,SAAU,CAAA,KAAA,CAAM,SAAU,CAAA,KAAA,CAAM,SAAS,CAAC,CAAA,CAAA;AACtD,QAAA,IAAI,GAAK,EAAA;AACP,UAAA,MAAM,GAAM,GAAA,GAAA,CAAI,KAAM,CAAA,IAAA,CAAK,QAAQ,CAAK,IAAA,KAAA,CAAM,IAAK,CAAA,OAAA,CAAQ,QAAQ,WAAa,EAAA,GAAA,CAAI,KAAM,CAAA,IAAA,CAAK,OAAO,CAAC,CAAA,CAAA;AACvG,UAAA,IAAA,CAAK,eAAe,GAAG,CAAA,CAAA;AAAA,SACzB;AAAA,OACF;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
jumpMinApp: {
|
7
|
+
default: boolean;
|
8
|
+
type: BooleanConstructor;
|
9
|
+
};
|
10
|
+
urlData: {
|
11
|
+
default: () => never[];
|
12
|
+
type: ArrayConstructor;
|
13
|
+
};
|
14
|
+
}, {}, 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
|
+
modelValue: {
|
16
|
+
default: string;
|
17
|
+
type: StringConstructor;
|
18
|
+
};
|
19
|
+
jumpMinApp: {
|
20
|
+
default: boolean;
|
21
|
+
type: BooleanConstructor;
|
22
|
+
};
|
23
|
+
urlData: {
|
24
|
+
default: () => never[];
|
25
|
+
type: ArrayConstructor;
|
26
|
+
};
|
27
|
+
}>> & {
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
29
|
+
}, {
|
30
|
+
modelValue: string;
|
31
|
+
urlData: unknown[];
|
32
|
+
jumpMinApp: boolean;
|
33
|
+
}, {}>;
|
34
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var urlInput_vue_vue_type_script_setup_true_lang = require('./url-input.vue2.js');
|
6
|
+
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
var _UrlInput = /* @__PURE__ */ _pluginVue_exportHelper.default(urlInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\url-input\\src\\url-input.vue"]]);
|
9
|
+
|
10
|
+
exports.default = _UrlInput;
|
11
|
+
//# sourceMappingURL=url-input.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
var urlInputContent = require('./url-input-content.vue.js');
|
7
|
+
var props = require('./props.js');
|
8
|
+
|
9
|
+
const _hoisted_1 = { class: "dk-url-input" };
|
10
|
+
const __default__ = vue.defineComponent({
|
11
|
+
name: "DkUrlInput"
|
12
|
+
});
|
13
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
14
|
+
...__default__,
|
15
|
+
props: props.urlInputProps,
|
16
|
+
emits: ["update:modelValue"],
|
17
|
+
setup(__props, { emit }) {
|
18
|
+
const props = __props;
|
19
|
+
const show = vue.ref(false);
|
20
|
+
const url = vue.ref(props.modelValue);
|
21
|
+
const updateUrl = (value) => {
|
22
|
+
url.value = value;
|
23
|
+
emit("update:modelValue", value);
|
24
|
+
show.value = false;
|
25
|
+
};
|
26
|
+
return (_ctx, _cache) => {
|
27
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
28
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
29
|
+
const _component_dk_dialog = vue.resolveComponent("dk-dialog");
|
30
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
31
|
+
vue.createVNode(_component_el_input, {
|
32
|
+
modelValue: url.value,
|
33
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => url.value = $event)
|
34
|
+
}, {
|
35
|
+
append: vue.withCtx(() => [
|
36
|
+
vue.createVNode(_component_el_button, {
|
37
|
+
onClick: _cache[0] || (_cache[0] = ($event) => show.value = true)
|
38
|
+
}, {
|
39
|
+
default: vue.withCtx(() => [
|
40
|
+
vue.createTextVNode("\u9009\u62E9")
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
/* STABLE */
|
44
|
+
})
|
45
|
+
]),
|
46
|
+
_: 1
|
47
|
+
/* STABLE */
|
48
|
+
}, 8, ["modelValue"]),
|
49
|
+
vue.createVNode(_component_dk_dialog, {
|
50
|
+
modelValue: show.value,
|
51
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => show.value = $event),
|
52
|
+
title: "\u9009\u62E9\u94FE\u63A5",
|
53
|
+
width: "1000px",
|
54
|
+
"append-to-body": ""
|
55
|
+
}, {
|
56
|
+
default: vue.withCtx(() => [
|
57
|
+
show.value ? (vue.openBlock(), vue.createBlock(urlInputContent.default, {
|
58
|
+
key: 0,
|
59
|
+
"url-data": _ctx.urlData,
|
60
|
+
"jump-min-app": _ctx.jumpMinApp,
|
61
|
+
onSubmit: updateUrl
|
62
|
+
}, null, 8, ["url-data", "jump-min-app"])) : vue.createCommentVNode("v-if", true)
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
/* STABLE */
|
66
|
+
}, 8, ["modelValue"])
|
67
|
+
]);
|
68
|
+
};
|
69
|
+
}
|
70
|
+
});
|
71
|
+
|
72
|
+
exports.default = _sfc_main;
|
73
|
+
//# sourceMappingURL=url-input.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url-input.vue2.js","sources":["../../../src/url-input/src/url-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkUrlInput',\n});\n</script>\n<template>\n <div class=\"dk-url-input\">\n <el-input v-model=\"url\">\n <template #append>\n <el-button @click=\"show = true\">选择</el-button>\n </template>\n </el-input>\n <dk-dialog v-model=\"show\" title=\"选择链接\" width=\"1000px\" append-to-body>\n <DkUrlInputContent\n v-if=\"show\"\n :url-data=\"urlData\"\n :jump-min-app=\"jumpMinApp\"\n @submit=\"updateUrl\"\n ></DkUrlInputContent>\n </dk-dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport DkUrlInputContent from './url-input-content.vue'\nimport { urlInputProps } from './props'\n\n\nconst show = ref(false)\n\nconst props = defineProps(urlInputProps)\n\nconst emit = defineEmits(['update:modelValue'])\nconst url = ref(props.modelValue)\nconst updateUrl = (value: string) => {\n url.value = value\n emit('update:modelValue', value)\n show.value = false\n}\n</script>\n\n<style></style>\n"],"names":["__MACROS_defineComponent","ref"],"mappings":";;;;;;;;;AAEA,MAA6B,cAAAA,mBAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,YAAA;AACR,CAAC,CAAA,CAAA;;;;;;;AA0BD,IAAM,MAAA,IAAA,GAAOC,QAAI,KAAK,CAAA,CAAA;AAKtB,IAAM,MAAA,GAAA,GAAMA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAChC,IAAM,MAAA,SAAA,GAAY,CAAC,KAAkB,KAAA;AACnC,MAAA,GAAA,CAAI,KAAQ,GAAA,KAAA,CAAA;AACZ,MAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AAAA,KACf,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.dk-url-input-content .url-list{display:flex;flex-wrap:wrap}.dk-url-input-content .url-list .url-box{padding:7px 30px;margin-right:10px;margin-bottom:10px;font-size:13px;font-weight:400;color:rgba(0,0,0,.85);text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fafafa;border-radius:3px}.dk-url-input-content .url-list .url-box:hover{color:#333;background-color:var(--el-color-primary-light-9)}.dk-url-input-content .url-list .url-box.choose{color:#fff;background-color:var(--el-color-primary)}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* stylelint-disable */
|
2
|
+
.dk-url-input {
|
3
|
+
}
|
4
|
+
|
5
|
+
.dk-url-input-content {
|
6
|
+
.url-list {
|
7
|
+
display: -webkit-box;
|
8
|
+
display: -ms-flexbox;
|
9
|
+
display: flex;
|
10
|
+
flex-wrap: wrap;
|
11
|
+
|
12
|
+
.url-box {
|
13
|
+
padding: 7px 30px;
|
14
|
+
margin-right: 10px;
|
15
|
+
margin-bottom: 10px;
|
16
|
+
font-size: 13px;
|
17
|
+
font-weight: 400;
|
18
|
+
color: rgb(0 0 0 / 85%);
|
19
|
+
text-align: center;
|
20
|
+
cursor: pointer;
|
21
|
+
user-select: none;
|
22
|
+
background: #fafafa;
|
23
|
+
border-radius: 3px;
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
color: #333;
|
27
|
+
background-color: var(--el-color-primary-light-9);
|
28
|
+
}
|
29
|
+
|
30
|
+
&.choose {
|
31
|
+
color: #fff;
|
32
|
+
background-color: var(--el-color-primary);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
/* stylelint-enable */
|