icarys-fc-vant 1.0.7 → 1.0.8
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.esm.js +2 -2
- package/dist/index.js +8 -34
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* icarys-fc-vant v1.0.
|
|
2
|
+
* icarys-fc-vant v1.0.7
|
|
3
3
|
* (c) 2024 lvyanrui
|
|
4
4
|
* Github https://github.com/your-username/icarys-form-create-vant
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -1882,7 +1882,7 @@ function install(FormCreate) {
|
|
|
1882
1882
|
function VantFormCreate() {
|
|
1883
1883
|
return FormCreateFactory$1({
|
|
1884
1884
|
ui: 'process.env.UI',
|
|
1885
|
-
version: '"1.0.
|
|
1885
|
+
version: '"1.0.7"',
|
|
1886
1886
|
manager,
|
|
1887
1887
|
extendApi,
|
|
1888
1888
|
install,
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* icarys-fc-vant v1.0.
|
|
2
|
+
* icarys-fc-vant v1.0.7
|
|
3
3
|
* (c) 2024 lvyanrui
|
|
4
4
|
* Github https://github.com/your-username/icarys-form-create-vant
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
7
|
(function (global, factory) {
|
|
8
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@form-create/component-subform/src/index'), require('vue'), require('@form-create/utils/lib/type'), require('dayjs'), require('@form-create/utils/lib/toarray'), require('@form-create/utils/lib/deepextend'), require('@form-create/utils/lib/extend'), require('@form-create/utils'), require('@form-create/core/src/index'), require('@form-create/utils/lib/mergeprops'), require('vant'), require('@form-create/core/src/frame/util'), require('@form-create/utils/lib/debounce'), require('@form-create/utils/lib/toline'), require('@form-create/utils/lib/console'), require('@form-create/utils/lib/tocase'), require('@form-create/utils/lib/json'), require('@form-create/utils/lib/modify'), require('@form-create/utils/lib/unique'), require('@form-create/utils/lib/tostring'), require('@form-create/utils/lib/deepset'), require('@form-create/utils/lib/mitt')) :
|
|
9
|
-
typeof define === 'function' && define.amd ? define(['exports', '@form-create/component-subform/src/index', 'vue', '@form-create/utils/lib/type', 'dayjs', '@form-create/utils/lib/toarray', '@form-create/utils/lib/deepextend', '@form-create/utils/lib/extend', '@form-create/utils', '@form-create/core/src/index', '@form-create/utils/lib/mergeprops', 'vant', '@form-create/core/src/frame/util', '@form-create/utils/lib/debounce', '@form-create/utils/lib/toline', '@form-create/utils/lib/console', '@form-create/utils/lib/tocase', '@form-create/utils/lib/json', '@form-create/utils/lib/modify', '@form-create/utils/lib/unique', '@form-create/utils/lib/tostring', '@form-create/utils/lib/deepset', '@form-create/utils/lib/mitt'], factory) :
|
|
10
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.icarysFormCreateVant = {}, global.subForm, global.Vue, global.is$1, global.dayjs, global.toArray$1, global.deepExtend$1, global.extend$1, global.utils, global.FormCreateFactory$1, global.mergeProps, global.vant, global.util, global.debounce$1, global.toLine$1, global.console$1, global.toCase, global.json, global.modify, global.unique$1, global.toString$1, global.deepSet$1, global.Mitt));
|
|
11
|
-
})(this, (function (exports, subForm, vue, is$1, dayjs, toArray$1, deepExtend$1, extend$1, utils, FormCreateFactory$1, mergeProps, vant, util, debounce$1, toLine$1, console$1, toCase, json, modify, unique$1, toString$1, deepSet$1, Mitt) { 'use strict';
|
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@form-create/component-subform/src/index'), require('vue'), require('@form-create/utils/lib/type'), require('dayjs'), require('@form-create/utils/lib/toarray'), require('@form-create/utils/lib/deepextend'), require('@form-create/utils/lib/extend'), require('@form-create/utils'), require('@form-create/core/src/index'), require('@form-create/utils/lib/mergeprops'), require('vant'), require('../node_modules/style-inject/dist/style-inject.es.js'), require('@form-create/core/src/frame/util'), require('@form-create/utils/lib/debounce'), require('@form-create/utils/lib/toline'), require('@form-create/utils/lib/console'), require('@form-create/utils/lib/tocase'), require('@form-create/utils/lib/json'), require('@form-create/utils/lib/modify'), require('@form-create/utils/lib/unique'), require('@form-create/utils/lib/tostring'), require('@form-create/utils/lib/deepset'), require('@form-create/utils/lib/mitt')) :
|
|
9
|
+
typeof define === 'function' && define.amd ? define(['exports', '@form-create/component-subform/src/index', 'vue', '@form-create/utils/lib/type', 'dayjs', '@form-create/utils/lib/toarray', '@form-create/utils/lib/deepextend', '@form-create/utils/lib/extend', '@form-create/utils', '@form-create/core/src/index', '@form-create/utils/lib/mergeprops', 'vant', '../node_modules/style-inject/dist/style-inject.es', '@form-create/core/src/frame/util', '@form-create/utils/lib/debounce', '@form-create/utils/lib/toline', '@form-create/utils/lib/console', '@form-create/utils/lib/tocase', '@form-create/utils/lib/json', '@form-create/utils/lib/modify', '@form-create/utils/lib/unique', '@form-create/utils/lib/tostring', '@form-create/utils/lib/deepset', '@form-create/utils/lib/mitt'], factory) :
|
|
10
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.icarysFormCreateVant = {}, global.subForm, global.Vue, global.is$1, global.dayjs, global.toArray$1, global.deepExtend$1, global.extend$1, global.utils, global.FormCreateFactory$1, global.mergeProps, global.vant, global.styleInject, global.util, global.debounce$1, global.toLine$1, global.console$1, global.toCase, global.json, global.modify, global.unique$1, global.toString$1, global.deepSet$1, global.Mitt));
|
|
11
|
+
})(this, (function (exports, subForm, vue, is$1, dayjs, toArray$1, deepExtend$1, extend$1, utils, FormCreateFactory$1, mergeProps, vant, styleInject, util, debounce$1, toLine$1, console$1, toCase, json, modify, unique$1, toString$1, deepSet$1, Mitt) { 'use strict';
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
var extend__default = /*#__PURE__*/_interopDefaultLegacy(extend$1);
|
|
21
21
|
var FormCreateFactory__default = /*#__PURE__*/_interopDefaultLegacy(FormCreateFactory$1);
|
|
22
22
|
var mergeProps__default = /*#__PURE__*/_interopDefaultLegacy(mergeProps);
|
|
23
|
+
var styleInject__default = /*#__PURE__*/_interopDefaultLegacy(styleInject);
|
|
23
24
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce$1);
|
|
24
25
|
var toLine__default = /*#__PURE__*/_interopDefaultLegacy(toLine$1);
|
|
25
26
|
var toCase__default = /*#__PURE__*/_interopDefaultLegacy(toCase);
|
|
@@ -1638,35 +1639,8 @@
|
|
|
1638
1639
|
}
|
|
1639
1640
|
};
|
|
1640
1641
|
|
|
1641
|
-
function styleInject(css, ref) {
|
|
1642
|
-
if ( ref === void 0 ) ref = {};
|
|
1643
|
-
var insertAt = ref.insertAt;
|
|
1644
|
-
|
|
1645
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
1646
|
-
|
|
1647
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1648
|
-
var style = document.createElement('style');
|
|
1649
|
-
style.type = 'text/css';
|
|
1650
|
-
|
|
1651
|
-
if (insertAt === 'top') {
|
|
1652
|
-
if (head.firstChild) {
|
|
1653
|
-
head.insertBefore(style, head.firstChild);
|
|
1654
|
-
} else {
|
|
1655
|
-
head.appendChild(style);
|
|
1656
|
-
}
|
|
1657
|
-
} else {
|
|
1658
|
-
head.appendChild(style);
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
if (style.styleSheet) {
|
|
1662
|
-
style.styleSheet.cssText = css;
|
|
1663
|
-
} else {
|
|
1664
|
-
style.appendChild(document.createTextNode(css));
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
1642
|
var css_248z = ".form-create-m {\n width: 100%;\n}\n\n.form-create-m.is-preview .fc-clock, .form-create-m .fc-none {\n display: none !important;\n}\n\n.form-create-m .fc-form-item:after {\n content: ' ' !important;\n display: block !important;\n}\n\n.form-create-m .fc-form-item .van-cell:not(.fc-form-item):after {\n display: none !important;\n}\n\n.form-create-m .fc-form-item .van-cell:not(.fc-form-item) {\n padding: 0;\n}\n\n.form-create-m .fc-form-item .fc-form-item {\n padding-left: 0;\n padding-right: 0;\n --van-padding-md: 0;\n}\n\n.form-create-m .fc-reset-btn {\n margin-top: 12px;\n}\n\n.form-create-m .fc-form-title {\n display: inline-flex;\n align-items: center;\n}\n\n.form-create-m.is-preview .van-field__label--required:before {\n display: none;\n}\n\n._fc-m-group{\n display: flex;\n align-items: flex-end;\n min-height: 38px;\n justify-content: center;\n flex-direction: column;\n width: 100%;\n}\n\n._fc-m-group-disabled ._fc-m-group-btn, ._fc-m-group-disabled ._fc-m-group-add{\n cursor: not-allowed;\n}\n\n._fc-m-group-handle {\n display: flex;\n flex-direction: row;\n position: absolute;\n bottom: -15px;\n right: 30px;\n border-radius: 15px;\n border: 1px dashed #d9d9d9;\n padding: 3px 8px;\n background-color: #ffffff;\n transform: scale(1.1);\n}\n\n._fc-m-group-btn{\n cursor: pointer;\n}\n\n._fc-m-group-idx {\n position: absolute;\n bottom: -15px;\n left: 10px;\n width: 30px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #eee;\n border-radius: 15px;\n font-weight: 700;\n}\n\n._fc-m-group-handle ._fc-m-group-btn + ._fc-m-group-btn {\n margin-left: 7px;\n}\n\n._fc-m-group-container{\n position: relative;\n display: flex;\n flex-direction: column;\n border: 1px dashed #d9d9d9;\n border-radius: 5px;\n margin-bottom: 25px;\n padding: 5px 5px 25px;\n width: 100%;\n box-sizing: border-box;\n}\n\n._fc-m-group-arrow {\n position: relative;\n width: 20px;\n height: 20px;\n}\n\n._fc-m-group-arrow::before {\n content: \"\";\n position: absolute;\n top: 8px;\n left: 5px;\n width: 9px;\n height: 9px;\n border-left: 2px solid #999;\n border-top: 2px solid #999;\n}\n._fc-m-group-arrow::before {\n transform: rotate(45deg);\n}\n\n._fc-m-group-arrow._fc-m-group-down {\n transform: rotate(180deg);\n}\n\n._fc-m-group-plus-minus {\n width: 20px;\n height: 20px;\n position: relative;\n cursor: pointer;\n}\n\n._fc-m-group-plus-minus::before,\n._fc-m-group-plus-minus::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 2px;\n background-color: #409eff;\n transform: translate(-50%, -50%);\n}\n\n._fc-m-group-plus-minus::before {\n transform: translate(-50%, -50%) rotate(90deg);\n}\n\n._fc-m-group-plus-minus._fc-m-group-minus::before {\n display: none;\n}\n._fc-m-group-plus-minus._fc-m-group-minus::after {\n background-color: #f56c6c;\n}\n\n._fc-m-group-add{\n cursor: pointer;\n width: 25px;\n height: 25px;\n border: 1px solid rgb(64 158 255 / 50%);\n border-radius: 15px;\n transform: scale(1.1);\n}\n\n._fc-m-group-add._fc-m-group-plus-minus::before, ._fc-m-group-add._fc-m-group-plus-minus::after {\n width: 50%;\n}\n\n/* ===== Card 类型样式 ===== */\n/* 主容器 */\n._fc-m-group._fc-m-group-card {\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 16px;\n}\n\n/* 禁用状态 */\n._fc-m-group._fc-m-group-card._fc-m-group-disabled ._fc-m-group-btn,\n._fc-m-group._fc-m-group-card._fc-m-group-disabled ._fc-m-group-add {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n/* 卡片容器 */\n._fc-m-group._fc-m-group-card ._fc-m-group-container {\n position: relative;\n background: #ffffff;\n border: 1px solid #f0f0f0;\n border-radius: 6px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n}\n\n/* 卡片头部 */\n._fc-m-group._fc-m-group-card ._fc-m-group-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px 12px;\n border-bottom: 1px solid #f0f0f0;\n background: #fafafa;\n}\n\n/* 序号标签 */\n._fc-m-group._fc-m-group-card ._fc-m-group-idx {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n background: #f0f0f0;\n color: #666666;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 500;\n margin-right: 12px;\n flex-shrink: 0;\n position: static;\n border: 1px solid #e0e0e0;\n}\n\n/* 标题区域 */\n._fc-m-group._fc-m-group-card ._fc-m-group-title {\n flex: 1;\n font-size: 14px;\n font-weight: 500;\n color: rgba(0, 0, 0, 0.85);\n line-height: 1.5715;\n text-align: left;\n}\n\n/* 操作按钮组 - 头部右侧 */\n._fc-m-group._fc-m-group-card ._fc-m-group-handle {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-left: 12px;\n flex-shrink: 0;\n position: static;\n bottom: auto;\n right: auto;\n border-radius: 0;\n border: none;\n padding: 0;\n background-color: transparent;\n flex-direction: row;\n transform: none;\n}\n\n/* 按钮基础样式 */\n._fc-m-group._fc-m-group-card ._fc-m-group-btn {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n color: rgba(0, 0, 0, 0.45);\n position: relative;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-btn:hover {\n color: #1890ff;\n border-color: #1890ff;\n background: #f0f8ff;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-btn:active {\n color: #096dd9;\n border-color: #096dd9;\n}\n\n/* 箭头按钮 */\n._fc-m-group._fc-m-group-card ._fc-m-group-arrow {\n position: relative;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-arrow::before {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 5px;\n height: 5px;\n border-left: 1px solid currentColor;\n border-top: 1px solid currentColor;\n transform: translate(-50%, -50%) rotate(45deg);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-arrow._fc-m-group-down {\n transform: rotate(180deg);\n}\n\n/* 合并的上下箭头按钮 */\n._fc-m-group._fc-m-group-card ._fc-m-group-sort {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 24px;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort::before,\n._fc-m-group._fc-m-group-card ._fc-m-group-sort::after {\n content: \"\";\n position: absolute;\n left: 50%;\n width: 4px;\n height: 4px;\n border-left: 1px solid currentColor;\n border-top: 1px solid currentColor;\n transform: translateX(-50%);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort::before {\n top: 6px;\n transform: translateX(-50%) rotate(45deg);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort::after {\n bottom: 6px;\n transform: translateX(-50%) rotate(225deg);\n}\n\n/* 合并按钮的上下点击区域 */\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-up,\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-down {\n position: absolute;\n left: 0;\n right: 0;\n height: 12px;\n cursor: pointer;\n z-index: 1;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-up {\n top: 0;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-down {\n bottom: 0;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-up:hover,\n._fc-m-group._fc-m-group-card ._fc-m-group-sort-down:hover {\n background: rgba(24, 144, 255, 0.1);\n}\n\n/* 加减按钮 */\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus {\n position: relative;\n background: #409eff;\n border-color: #409eff;\n color: white;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus:hover {\n background: #66b1ff;\n border-color: #66b1ff;\n color: white;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus::before,\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 8px;\n height: 1px;\n background-color: currentColor;\n transform: translate(-50%, -50%);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus::before {\n transform: translate(-50%, -50%) rotate(90deg);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus {\n background: #f56c6c;\n border-color: #f56c6c;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus:hover {\n background: #f78989;\n border-color: #f78989;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-plus-minus._fc-m-group-minus::before {\n display: none;\n}\n\n/* 表单内容区域 */\n._fc-m-group._fc-m-group-card ._fc-m-group-content {\n padding: 20px;\n}\n\n/* 添加按钮 - 与加号按钮风格一致 */\n._fc-m-group._fc-m-group-card ._fc-m-group-add {\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n color: rgba(0, 0, 0, 0.45);\n position: relative;\n transform: none;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-add:hover {\n color: #409eff;\n border-color: #409eff;\n background: #f0f8ff;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus {\n width: 24px;\n height: 24px;\n background: #409eff;\n border-color: #409eff;\n color: white;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus:hover {\n background: #66b1ff;\n border-color: #66b1ff;\n color: white;\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus::before,\n._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 8px;\n height: 1px;\n background-color: currentColor;\n transform: translate(-50%, -50%);\n}\n\n._fc-m-group._fc-m-group-card ._fc-m-group-add._fc-m-group-plus-minus::before {\n transform: translate(-50%, -50%) rotate(90deg);\n}\n\n/* 空状态样式 */\n._fc-m-group._fc-m-group-card ._fc-m-group-empty {\n text-align: center;\n padding: 40px 20px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n\n/* 响应式设计 */\n@media (max-width: 768px) {\n ._fc-m-group._fc-m-group-card ._fc-m-group-container {\n margin: 0 -8px;\n border-radius: 0;\n border-left: none;\n border-right: none;\n }\n\n ._fc-m-group._fc-m-group-card ._fc-m-group-header {\n padding: 12px 16px 8px;\n }\n\n ._fc-m-group._fc-m-group-card ._fc-m-group-content {\n padding: 16px;\n }\n\n ._fc-m-group._fc-m-group-card ._fc-m-group-handle {\n gap: 2px;\n }\n\n ._fc-m-group._fc-m-group-card ._fc-m-group-btn {\n width: 22px;\n height: 22px;\n }\n}\n\n\n";
|
|
1669
|
-
|
|
1643
|
+
styleInject__default["default"](css_248z);
|
|
1670
1644
|
|
|
1671
1645
|
function tidyBtnProp(btn, def) {
|
|
1672
1646
|
if (is__default["default"].Boolean(btn)) btn = {
|
|
@@ -1909,7 +1883,7 @@
|
|
|
1909
1883
|
function VantFormCreate() {
|
|
1910
1884
|
return FormCreateFactory__default["default"]({
|
|
1911
1885
|
ui: 'process.env.UI',
|
|
1912
|
-
version: '"1.0.
|
|
1886
|
+
version: '"1.0.7"',
|
|
1913
1887
|
manager,
|
|
1914
1888
|
extendApi,
|
|
1915
1889
|
install,
|