@vipl520/dk-ui 1.0.45 → 1.0.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +16 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1368 -525
- 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 +1365 -526
- package/dist/tags.json +14 -0
- package/dist/web-types.json +69 -1
- package/es/dialog/src/dialog.vue2.mjs +1 -1
- package/es/dialog/src/dialog.vue2.mjs.map +1 -1
- package/es/form/index.d.ts +3 -15
- package/es/form/src/form.vue.d.ts +2 -10
- package/es/form/src/form.vue2.mjs +1 -0
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/form/src/props.d.ts +1 -5
- package/es/form/src/props.mjs +1 -5
- package/es/form/src/props.mjs.map +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.mjs +8 -2
- package/es/index.mjs.map +1 -1
- package/es/index.scss +2 -0
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
- 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 +2 -0
- package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/es/style-input/src/style-input.vue2.mjs +10 -1
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/es/table/src/components/FieldRender.vue2.mjs +1 -1
- package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
- package/es/uni-icon/index.d.ts +174 -0
- package/es/uni-icon/index.mjs +8 -0
- package/es/uni-icon/index.mjs.map +1 -0
- package/es/uni-icon/src/props.d.ts +24 -0
- package/es/uni-icon/src/props.mjs +25 -0
- package/es/uni-icon/src/props.mjs.map +1 -0
- package/es/uni-icon/src/uni-icon.vue.d.ts +57 -0
- package/es/uni-icon/src/uni-icon.vue.mjs +7 -0
- package/es/uni-icon/src/uni-icon.vue.mjs.map +1 -0
- package/es/uni-icon/src/uni-icon.vue2.mjs +43 -0
- package/es/uni-icon/src/uni-icon.vue2.mjs.map +1 -0
- package/es/uni-icon/style/index.css +1 -0
- package/es/uni-icon/style/index.scss +18 -0
- package/es/uni-icon/style/uniicons.css +1 -0
- package/es/uni-icon/style/uniicons.scss +663 -0
- package/es/uni-icon/style/uniicons_file_vue.d.ts +4 -0
- package/es/uni-icon/style/uniicons_file_vue.mjs +649 -0
- package/es/uni-icon/style/uniicons_file_vue.mjs.map +1 -0
- package/es/uni-icon-input/index.d.ts +17 -0
- package/es/uni-icon-input/index.mjs +8 -0
- package/es/uni-icon-input/index.mjs.map +1 -0
- package/es/uni-icon-input/src/props.d.ts +11 -0
- package/es/uni-icon-input/src/props.mjs +11 -0
- package/es/uni-icon-input/src/props.mjs.map +1 -0
- package/es/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
- package/es/uni-icon-input/src/uni-icon-input.vue.mjs +7 -0
- package/es/uni-icon-input/src/uni-icon-input.vue.mjs.map +1 -0
- package/es/uni-icon-input/src/uni-icon-input.vue2.mjs +112 -0
- package/es/uni-icon-input/src/uni-icon-input.vue2.mjs.map +1 -0
- package/es/uni-icon-input/style/index.css +1 -0
- package/es/uni-icon-input/style/index.scss +13 -0
- package/lib/dialog/src/dialog.vue2.js +1 -1
- package/lib/dialog/src/dialog.vue2.js.map +1 -1
- package/lib/form/index.d.ts +3 -15
- package/lib/form/src/form.vue.d.ts +2 -10
- package/lib/form/src/form.vue2.js +1 -0
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/form/src/props.d.ts +1 -5
- package/lib/form/src/props.js +1 -5
- package/lib/form/src/props.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +13 -3
- package/lib/index.js.map +1 -1
- package/lib/index.scss +2 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
- 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 +2 -0
- package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/lib/style-input/src/style-input.vue2.js +9 -0
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/lib/table/src/components/FieldRender.vue2.js +1 -1
- package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
- package/lib/uni-icon/index.d.ts +174 -0
- package/lib/uni-icon/index.js +14 -0
- package/lib/uni-icon/index.js.map +1 -0
- package/lib/uni-icon/src/props.d.ts +24 -0
- package/lib/uni-icon/src/props.js +27 -0
- package/lib/uni-icon/src/props.js.map +1 -0
- package/lib/uni-icon/src/uni-icon.vue.d.ts +57 -0
- package/lib/uni-icon/src/uni-icon.vue.js +11 -0
- package/lib/uni-icon/src/uni-icon.vue.js.map +1 -0
- package/lib/uni-icon/src/uni-icon.vue2.js +47 -0
- package/lib/uni-icon/src/uni-icon.vue2.js.map +1 -0
- package/lib/uni-icon/style/index.css +1 -0
- package/lib/uni-icon/style/index.scss +18 -0
- package/lib/uni-icon/style/uniicons.css +1 -0
- package/lib/uni-icon/style/uniicons.scss +663 -0
- package/lib/uni-icon/style/uniicons_file_vue.d.ts +4 -0
- package/lib/uni-icon/style/uniicons_file_vue.js +651 -0
- package/lib/uni-icon/style/uniicons_file_vue.js.map +1 -0
- package/lib/uni-icon-input/index.d.ts +17 -0
- package/lib/uni-icon-input/index.js +14 -0
- package/lib/uni-icon-input/index.js.map +1 -0
- package/lib/uni-icon-input/src/props.d.ts +11 -0
- package/lib/uni-icon-input/src/props.js +13 -0
- package/lib/uni-icon-input/src/props.js.map +1 -0
- package/lib/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
- package/lib/uni-icon-input/src/uni-icon-input.vue.js +11 -0
- package/lib/uni-icon-input/src/uni-icon-input.vue.js.map +1 -0
- package/lib/uni-icon-input/src/uni-icon-input.vue2.js +116 -0
- package/lib/uni-icon-input/src/uni-icon-input.vue2.js.map +1 -0
- package/lib/uni-icon-input/style/index.css +1 -0
- package/lib/uni-icon-input/style/index.scss +13 -0
- package/package.json +2 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var utils = require('@vipl520/utils');
|
6
|
+
var uniIconInput = require('./src/uni-icon-input.vue.js');
|
7
|
+
var props = require('./src/props.js');
|
8
|
+
|
9
|
+
const UniIconInput = utils.withInstall(uniIconInput.default);
|
10
|
+
|
11
|
+
exports.uniIconInputProps = props.uniIconInputProps;
|
12
|
+
exports.UniIconInput = UniIconInput;
|
13
|
+
exports.default = UniIconInput;
|
14
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/uni-icon-input/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _UniIconInput from './src/uni-icon-input.vue'\n\nexport const UniIconInput = withInstall(_UniIconInput)\nexport default UniIconInput\n\nexport * from './src/props'\n"],"names":["withInstall","_UniIconInput"],"mappings":";;;;;;;;AAGa,MAAA,YAAA,GAAeA,kBAAYC,oBAAa;;;;;;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const uniIconInputProps: {
|
3
|
+
/**
|
4
|
+
* 类型定义
|
5
|
+
*/
|
6
|
+
type: {
|
7
|
+
type: import("vue").PropType<string>;
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
export type UniIconInputProps = ExtractPropTypes<typeof uniIconInputProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../src/uni-icon-input/src/props.ts"],"sourcesContent":["import { makeStringProp } from 'vant/es/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const uniIconInputProps = {\n /**\n * 类型定义\n */\n type: makeStringProp(''),\n}\n\nexport type UniIconInputProps = ExtractPropTypes<typeof uniIconInputProps>\n"],"names":["makeStringProp"],"mappings":";;;;AAGO,MAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,IAAA,EAAMA,qBAAe,EAAE,CAAA;AACzB;;;;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
default: string;
|
4
|
+
type: StringConstructor;
|
5
|
+
};
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
modelValue: {
|
8
|
+
default: string;
|
9
|
+
type: StringConstructor;
|
10
|
+
};
|
11
|
+
}>> & {
|
12
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
13
|
+
}, {
|
14
|
+
modelValue: string;
|
15
|
+
}, {}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var uniIconInput_vue_vue_type_script_setup_true_lang = require('./uni-icon-input.vue2.js');
|
6
|
+
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
7
|
+
|
8
|
+
var _UniIconInput = /* @__PURE__ */ _pluginVue_exportHelper.default(uniIconInput_vue_vue_type_script_setup_true_lang.default, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\uni-icon-input\\src\\uni-icon-input.vue"]]);
|
9
|
+
|
10
|
+
exports.default = _UniIconInput;
|
11
|
+
//# sourceMappingURL=uni-icon-input.vue.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uni-icon-input.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var vue = require('vue');
|
6
|
+
var uniicons_file_vue = require('../../uni-icon/style/uniicons_file_vue.js');
|
7
|
+
|
8
|
+
const _hoisted_1 = { class: "dk-uni-icon-input" };
|
9
|
+
const _hoisted_2 = {
|
10
|
+
key: 0,
|
11
|
+
class: "uni-icon-content"
|
12
|
+
};
|
13
|
+
const _hoisted_3 = { class: "hover:border-blue border-1px border-solid border-white cursor-pointer hover:color-blue" };
|
14
|
+
const __default__ = vue.defineComponent({
|
15
|
+
name: "DkUniIconInput"
|
16
|
+
});
|
17
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
18
|
+
...__default__,
|
19
|
+
props: {
|
20
|
+
modelValue: {
|
21
|
+
default: "",
|
22
|
+
type: String
|
23
|
+
}
|
24
|
+
},
|
25
|
+
emits: ["update:modelValue"],
|
26
|
+
setup(__props, { emit }) {
|
27
|
+
const props = __props;
|
28
|
+
const show = vue.ref(false);
|
29
|
+
const icon = vue.ref(props.modelValue);
|
30
|
+
const updateIcon = (value) => {
|
31
|
+
icon.value = value;
|
32
|
+
emit("update:modelValue", value);
|
33
|
+
show.value = false;
|
34
|
+
};
|
35
|
+
return (_ctx, _cache) => {
|
36
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
37
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
38
|
+
const _component_DkUniIcon = vue.resolveComponent("DkUniIcon");
|
39
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
40
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
41
|
+
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
42
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
43
|
+
vue.createVNode(_component_el_input, {
|
44
|
+
modelValue: icon.value,
|
45
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => icon.value = $event)
|
46
|
+
}, {
|
47
|
+
append: vue.withCtx(() => [
|
48
|
+
vue.createVNode(_component_el_button, {
|
49
|
+
onClick: _cache[0] || (_cache[0] = ($event) => show.value = true)
|
50
|
+
}, {
|
51
|
+
default: vue.withCtx(() => [
|
52
|
+
vue.createTextVNode("\u9009\u62E9")
|
53
|
+
]),
|
54
|
+
_: 1
|
55
|
+
/* STABLE */
|
56
|
+
})
|
57
|
+
]),
|
58
|
+
_: 1
|
59
|
+
/* STABLE */
|
60
|
+
}, 8, ["modelValue"]),
|
61
|
+
icon.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
62
|
+
vue.createVNode(_component_DkUniIcon, {
|
63
|
+
type: icon.value,
|
64
|
+
size: 48
|
65
|
+
}, null, 8, ["type"])
|
66
|
+
])) : vue.createCommentVNode("v-if", true),
|
67
|
+
vue.createVNode(_component_el_dialog, {
|
68
|
+
modelValue: show.value,
|
69
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => show.value = $event),
|
70
|
+
title: "\u9009\u62E9\u56FE\u6807",
|
71
|
+
width: "1000px"
|
72
|
+
}, {
|
73
|
+
default: vue.withCtx(() => [
|
74
|
+
vue.createVNode(_component_el_row, { gutter: 20 }, {
|
75
|
+
default: vue.withCtx(() => [
|
76
|
+
(vue.openBlock(true), vue.createElementBlock(
|
77
|
+
vue.Fragment,
|
78
|
+
null,
|
79
|
+
vue.renderList(vue.unref(uniicons_file_vue.fontData).length, (key) => {
|
80
|
+
return vue.openBlock(), vue.createBlock(_component_el_col, {
|
81
|
+
key,
|
82
|
+
span: 2,
|
83
|
+
onClick: ($event) => updateIcon(vue.unref(uniicons_file_vue.fontData)[key]?.font_class)
|
84
|
+
}, {
|
85
|
+
default: vue.withCtx(() => [
|
86
|
+
vue.createElementVNode("div", _hoisted_3, [
|
87
|
+
vue.createVNode(_component_DkUniIcon, {
|
88
|
+
type: vue.unref(uniicons_file_vue.fontData)[key]?.font_class,
|
89
|
+
size: 36,
|
90
|
+
color: "#666",
|
91
|
+
class: "p2"
|
92
|
+
}, null, 8, ["type"])
|
93
|
+
])
|
94
|
+
]),
|
95
|
+
_: 2
|
96
|
+
/* DYNAMIC */
|
97
|
+
}, 1032, ["onClick"]);
|
98
|
+
}),
|
99
|
+
128
|
100
|
+
/* KEYED_FRAGMENT */
|
101
|
+
))
|
102
|
+
]),
|
103
|
+
_: 1
|
104
|
+
/* STABLE */
|
105
|
+
})
|
106
|
+
]),
|
107
|
+
_: 1
|
108
|
+
/* STABLE */
|
109
|
+
}, 8, ["modelValue"])
|
110
|
+
]);
|
111
|
+
};
|
112
|
+
}
|
113
|
+
});
|
114
|
+
|
115
|
+
exports.default = _sfc_main;
|
116
|
+
//# sourceMappingURL=uni-icon-input.vue2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uni-icon-input.vue2.js","sources":["../../../src/uni-icon-input/src/uni-icon-input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkUniIconInput',\n});\n</script>\n<template>\n <div class=\"dk-uni-icon-input\">\n <el-input v-model=\"icon\">\n <template #append>\n <el-button @click=\"show = true\">选择</el-button>\n </template>\n </el-input>\n <div v-if=\"icon\" class=\"uni-icon-content\">\n <DkUniIcon :type=\"icon\" :size=\"48\"></DkUniIcon>\n </div>\n <el-dialog v-model=\"show\" title=\"选择图标\" width=\"1000px\">\n <el-row :gutter=\"20\">\n <el-col v-for=\"key in fontData.length\" :key=\"key\" :span=\"2\" @click=\"updateIcon(fontData[key]?.font_class)\">\n <div class=\"hover:border-blue border-1px border-solid border-white cursor-pointer hover:color-blue\">\n <DkUniIcon :type=\"fontData[key]?.font_class\" :size=\"36\" color=\"#666\" class=\"p2\"></DkUniIcon>\n </div>\n </el-col>\n </el-row>\n </el-dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { fontData } from '../../uni-icon/style/uniicons_file_vue.js'\n\n\nconst show = ref(false)\nconst props = defineProps({\n modelValue: {\n default: '',\n type: String,\n },\n})\n\nconst emit = defineEmits(['update:modelValue'])\nconst icon = ref(props.modelValue)\n\nconst updateIcon = (value: string) => {\n icon.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,gBAAA;AACR,CAAC,CAAA,CAAA;;;;;;;;;;;;AA6BD,IAAM,MAAA,IAAA,GAAOC,QAAI,KAAK,CAAA,CAAA;AAStB,IAAM,MAAA,IAAA,GAAOA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAEjC,IAAM,MAAA,UAAA,GAAa,CAAC,KAAkB,KAAA;AACpC,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AACb,MAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,MAAA,IAAA,CAAK,KAAQ,GAAA,KAAA,CAAA;AAAA,KACf,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.dk-uni-icon-input .uni-icon-content{margin-top:5px;border:1px solid #ccc;width:80px;height:80px;display:flex;align-items:center;justify-content:center}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vipl520/dk-ui",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.47",
|
4
4
|
"description": "多客怪兽框架核心组件,支持diy、crud动态表格、上传组件等",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "es/index.mjs",
|
@@ -101,6 +101,7 @@
|
|
101
101
|
"rollup-plugin-esbuild": "^5.0.0",
|
102
102
|
"rollup-plugin-polyfill-node": "^0.12.0",
|
103
103
|
"rollup-plugin-postcss": "^4.0.2",
|
104
|
+
"rollup-plugin-url": "^3.0.1",
|
104
105
|
"sass": "^1.64.1",
|
105
106
|
"tsx": "^3.12.7",
|
106
107
|
"typescript": "^5.1.6",
|