@cynnie/ui-element 0.1.0
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/README.md +35 -0
- package/dist/ProButton-BfUxqs4G.js +53 -0
- package/dist/ProButton-BfUxqs4G.js.map +1 -0
- package/dist/ProCheckboxGroup-BbooVQg4.js +52 -0
- package/dist/ProCheckboxGroup-BbooVQg4.js.map +1 -0
- package/dist/ProConfirmButton-BiZ2aUaM.js +49 -0
- package/dist/ProConfirmButton-BiZ2aUaM.js.map +1 -0
- package/dist/ProDescriptions-DerGI86i.js +46 -0
- package/dist/ProDescriptions-DerGI86i.js.map +1 -0
- package/dist/ProFormBuilder-DDzUy-ZE.js +473 -0
- package/dist/ProFormBuilder-DDzUy-ZE.js.map +1 -0
- package/dist/ProInput-BnjX-7sv.js +40 -0
- package/dist/ProInput-BnjX-7sv.js.map +1 -0
- package/dist/ProModal-CTIpMv3y.js +63 -0
- package/dist/ProModal-CTIpMv3y.js.map +1 -0
- package/dist/ProRadioGroup-CXhwhi2P.js +52 -0
- package/dist/ProRadioGroup-CXhwhi2P.js.map +1 -0
- package/dist/ProSelect-DH8Nm5LN.js +401 -0
- package/dist/ProSelect-DH8Nm5LN.js.map +1 -0
- package/dist/ProTable-DXAnL7FT.js +166 -0
- package/dist/ProTable-DXAnL7FT.js.map +1 -0
- package/dist/_Uint8Array-CZRAGBxP.js +608 -0
- package/dist/_Uint8Array-CZRAGBxP.js.map +1 -0
- package/dist/components/ProButton/ProCountdownButton.vue.d.ts +28 -0
- package/dist/components/ProButton/index.js +2 -0
- package/dist/components/ProButton/index.vue.d.ts +25 -0
- package/dist/components/ProCheckboxGroup/index.js +2 -0
- package/dist/components/ProCheckboxGroup/index.vue.d.ts +18 -0
- package/dist/components/ProConfirmButton/index.js +2 -0
- package/dist/components/ProConfirmButton/index.vue.d.ts +25 -0
- package/dist/components/ProDescriptions/index.js +2 -0
- package/dist/components/ProDescriptions/index.vue.d.ts +36 -0
- package/dist/components/ProFormBuilder/index.js +2 -0
- package/dist/components/ProFormBuilder/index.vue.d.ts +38 -0
- package/dist/components/ProInput/index.js +2 -0
- package/dist/components/ProInput/index.vue.d.ts +28 -0
- package/dist/components/ProModal/index.js +2 -0
- package/dist/components/ProModal/index.vue.d.ts +32 -0
- package/dist/components/ProRadioGroup/index.js +2 -0
- package/dist/components/ProRadioGroup/index.vue.d.ts +18 -0
- package/dist/components/ProSelect/index.js +2 -0
- package/dist/components/ProSelect/index.vue.d.ts +33 -0
- package/dist/components/ProTable/ProTableForm.vue.d.ts +86 -0
- package/dist/components/ProTable/index.js +2 -0
- package/dist/components/ProTable/index.vue.d.ts +36 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/openDialog-BfikyMPD.js +79 -0
- package/dist/openDialog-BfikyMPD.js.map +1 -0
- package/dist/utils/openDialog.d.ts +24 -0
- package/dist/utils/openDialog.js +2 -0
- package/dist/utils/uiMessage.d.ts +9 -0
- package/package.json +96 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProSelect-DH8Nm5LN.js","names":["isObject","defineProperty","identity","constant","shortOut","baseSetToString","apply","Symbol","isArray","isArguments","isFlattenable","baseFlatten","setToString","overRest","flatten","objectTag","hasOwnProperty","isObjectLike","baseGetTag","getPrototype","copyObject","keys","copyObject","keysIn","root","copyObject","getSymbols","copyObject","getSymbolsIn","Uint8Array","cloneArrayBuffer","Symbol","cloneArrayBuffer","boolTag","dateTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","cloneArrayBuffer","cloneDataView","cloneTypedArray","cloneRegExp","cloneSymbol","isPrototype","baseCreate","getPrototype","mapTag","isObjectLike","getTag","nodeUtil","baseUnary","baseIsMap","setTag","isObjectLike","getTag","nodeUtil","baseUnary","baseIsSet","CLONE_DEEP_FLAG","CLONE_FLAT_FLAG","CLONE_SYMBOLS_FLAG","isObject","isArray","initCloneArray","copyArray","getTag","isBuffer","cloneBuffer","initCloneObject","copySymbolsIn","baseAssignIn","copySymbols","baseAssign","initCloneByTag","Stack","isSet","isMap","key","getAllKeysIn","getAllKeys","keysIn","keys","baseGet","baseSlice","castPath","parent","toKey","last","isPlainObject","flatRest","arrayMap","castPath","getAllKeysIn","baseClone","customOmitClone","$attrs","$slots"],"sources":["../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_flatRest.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/last.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_parent.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_customOmitClone.js","../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/omit.js","../src/components/ProSelect/index.vue","../src/components/ProSelect/index.vue"],"sourcesContent":["import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nexport default baseCreate;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nexport default apply;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nexport default copyArray;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nexport default shortOut;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nexport default constant;\n","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nexport default baseSetToString;\n","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nexport default setToString;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nexport default arrayEach;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nexport default overRest;\n","import Symbol from './_Symbol.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nexport default isFlattenable;\n","import arrayPush from './_arrayPush.js';\nimport isFlattenable from './_isFlattenable.js';\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nexport default baseFlatten;\n","import baseFlatten from './_baseFlatten.js';\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nexport default flatten;\n","import flatten from './flatten.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nexport default flatRest;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nexport default baseSlice;\n","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nexport default baseAssign;\n","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nexport default baseAssignIn;\n","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nexport default cloneBuffer;\n","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nexport default copySymbols;\n","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nexport default copySymbolsIn;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nexport default initCloneArray;\n","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nexport default cloneArrayBuffer;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nexport default cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nexport default cloneRegExp;\n","import Symbol from './_Symbol.js';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nexport default cloneSymbol;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nexport default initCloneByTag;\n","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nexport default initCloneObject;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nexport default baseIsMap;\n","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nexport default isMap;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nexport default baseIsSet;\n","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nexport default isSet;\n","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\nimport keysIn from './keysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nexport default baseClone;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nexport default last;\n","import baseGet from './_baseGet.js';\nimport baseSlice from './_baseSlice.js';\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nexport default parent;\n","import castPath from './_castPath.js';\nimport last from './last.js';\nimport parent from './_parent.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\n\nexport default baseUnset;\n","import isPlainObject from './isPlainObject.js';\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n}\n\nexport default customOmitClone;\n","import arrayMap from './_arrayMap.js';\nimport baseClone from './_baseClone.js';\nimport baseUnset from './_baseUnset.js';\nimport castPath from './_castPath.js';\nimport copyObject from './_copyObject.js';\nimport customOmitClone from './_customOmitClone.js';\nimport flatRest from './_flatRest.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n});\n\nexport default omit;\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { omit } from \"lodash-es\";\nimport { useOptions } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProSelect\",\n inheritAttrs: false,\n});\n\nconst props = defineProps<{\n /** 选项数据源:静态数组 / 字符串数组 / 返回数组的函数(远程字典) */\n options?: any;\n /** options 里 label / value 的字段名,元素不是 {label, value} 结构时用 */\n labelField?: string;\n valueField?: string;\n /** 远程字典的依赖值,变化时自动重新拉取 */\n deps?: any;\n /** 是否多选(与 ui-antd 的 multiple 布尔写法对齐,el-select 原生支持) */\n multiple?: boolean;\n}>();\n\nconst model = defineModel<any>();\n\nconst { options: innerOptions, isLoading } = useOptions({\n options: computed(() => props.options),\n deps: computed(() => props.deps),\n});\n\nfunction toOption(item: any) {\n if (item && typeof item === \"object\" && \"label\" in item) return item;\n return {\n label: props.labelField ? item[props.labelField] : item,\n value: props.valueField ? item[props.valueField] : item,\n };\n}\n</script>\n\n<template>\n <el-select\n v-bind=\"{ ...$attrs, ...omit(props, ['options', 'labelField', 'valueField', 'deps']) }\"\n v-model=\"model\"\n :loading=\"isLoading || undefined\"\n >\n <el-option v-for=\"opt in innerOptions.map(toOption)\" :key=\"opt.value\" :label=\"opt.label\" :value=\"opt.value\" />\n <template v-for=\"(_, name) in $slots\" #[name]=\"slotProps\" :key=\"name\">\n <slot :name=\"name\" v-bind=\"slotProps\"></slot>\n </template>\n </el-select>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { omit } from \"lodash-es\";\nimport { useOptions } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProSelect\",\n inheritAttrs: false,\n});\n\nconst props = defineProps<{\n /** 选项数据源:静态数组 / 字符串数组 / 返回数组的函数(远程字典) */\n options?: any;\n /** options 里 label / value 的字段名,元素不是 {label, value} 结构时用 */\n labelField?: string;\n valueField?: string;\n /** 远程字典的依赖值,变化时自动重新拉取 */\n deps?: any;\n /** 是否多选(与 ui-antd 的 multiple 布尔写法对齐,el-select 原生支持) */\n multiple?: boolean;\n}>();\n\nconst model = defineModel<any>();\n\nconst { options: innerOptions, isLoading } = useOptions({\n options: computed(() => props.options),\n deps: computed(() => props.deps),\n});\n\nfunction toOption(item: any) {\n if (item && typeof item === \"object\" && \"label\" in item) return item;\n return {\n label: props.labelField ? item[props.labelField] : item,\n value: props.valueField ? item[props.valueField] : item,\n };\n}\n</script>\n\n<template>\n <el-select\n v-bind=\"{ ...$attrs, ...omit(props, ['options', 'labelField', 'valueField', 'deps']) }\"\n v-model=\"model\"\n :loading=\"isLoading || undefined\"\n >\n <el-option v-for=\"opt in innerOptions.map(toOption)\" :key=\"opt.value\" :label=\"opt.label\" :value=\"opt.value\" />\n <template v-for=\"(_, name) in $slots\" #[name]=\"slotProps\" :key=\"name\">\n <slot :name=\"name\" v-bind=\"slotProps\"></slot>\n </template>\n </el-select>\n</template>\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"mappings":";;;AAGA,IAAI,eAAe,OAAO;AA0B1B,IAAA,sBAhBkB,WAAW;CAC3B,SAAS,SAAS;AAClB,QAAO,SAAS,OAAO;AACrB,MAAI,CAACA,iBAAS,MAAM,CAClB,QAAO,EAAE;AAEX,MAAI,aACF,QAAO,aAAa,MAAM;AAE5B,SAAO,YAAY;EACnB,IAAI,SAAS,IAAI,QAAM;AACvB,SAAO,YAAY,KAAA;AACnB,SAAO;;GAER;ACjBH,SAAS,MAAM,MAAM,SAAS,MAAM;AAClC,SAAQ,KAAK,QAAb;EACE,KAAK,EAAG,QAAO,KAAK,KAAK,QAAQ;EACjC,KAAK,EAAG,QAAO,KAAK,KAAK,SAAS,KAAK,GAAG;EAC1C,KAAK,EAAG,QAAO,KAAK,KAAK,SAAS,KAAK,IAAI,KAAK,GAAG;EACnD,KAAK,EAAG,QAAO,KAAK,KAAK,SAAS,KAAK,IAAI,KAAK,IAAI,KAAK,GA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AA,MAAA,WAArF,MAAA,aAAY,CAAC,IAAI,SAAQ,GAAhC,QAAG;yBAArB,YAA8G,sBAAA;MAAxD,KAAK,IAAI;MAAQ,OAAO,IAAI;MAAQ,OAAO,IAAI;;;;kBACvEC,KAAAA,SAAZ,GAAG,SAAI;;KAAc;kBAAQ,cAAS,CACtD,WAA6C,KAAA,QAAhC,MAAI,eAAA,mBAAU,UAAS,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { t as ProFormBuilder_default } from "./ProFormBuilder-DDzUy-ZE.js";
|
|
2
|
+
import { t as openDialog } from "./openDialog-BfikyMPD.js";
|
|
3
|
+
import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDirective, shallowRef, useModel, useTemplateRef, withCtx, withDirectives } from "vue";
|
|
4
|
+
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
+
var ProTableForm_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
name: "ProTableForm",
|
|
7
|
+
__name: "ProTableForm",
|
|
8
|
+
props: {
|
|
9
|
+
formItems: {},
|
|
10
|
+
rules: {},
|
|
11
|
+
formData: {},
|
|
12
|
+
requestApi: { type: Function }
|
|
13
|
+
},
|
|
14
|
+
setup(__props, { expose: __expose }) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const data = ref({ ...props.formData });
|
|
17
|
+
const formRef = useTemplateRef("formRef");
|
|
18
|
+
__expose({ async submit() {
|
|
19
|
+
await formRef.value.validate();
|
|
20
|
+
return props.requestApi({ ...data.value });
|
|
21
|
+
} });
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(ProFormBuilder_default, {
|
|
24
|
+
ref_key: "formRef",
|
|
25
|
+
ref: formRef,
|
|
26
|
+
modelValue: data.value,
|
|
27
|
+
"form-items": _ctx.formItems,
|
|
28
|
+
rules: _ctx.rules
|
|
29
|
+
}, null, 8, [
|
|
30
|
+
"modelValue",
|
|
31
|
+
"form-items",
|
|
32
|
+
"rules"
|
|
33
|
+
]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var _hoisted_1 = { style: { "margin-bottom": "20px" } };
|
|
38
|
+
var ProTable_default = /* @__PURE__ */ defineComponent({
|
|
39
|
+
name: "ProTable",
|
|
40
|
+
__name: "index",
|
|
41
|
+
props: /* @__PURE__ */ mergeModels({
|
|
42
|
+
apis: {},
|
|
43
|
+
rowKey: {},
|
|
44
|
+
beforeCreate: { type: Function },
|
|
45
|
+
columns: {},
|
|
46
|
+
formItems: {},
|
|
47
|
+
rules: {}
|
|
48
|
+
}, {
|
|
49
|
+
"queryParams": { default: () => ({}) },
|
|
50
|
+
"queryParamsModifiers": {}
|
|
51
|
+
}),
|
|
52
|
+
emits: ["update:queryParams"],
|
|
53
|
+
setup(__props, { expose: __expose }) {
|
|
54
|
+
const props = __props;
|
|
55
|
+
const key = props.rowKey || "id";
|
|
56
|
+
const queryParams = useModel(__props, "queryParams");
|
|
57
|
+
const { get, create, update, remove } = props.apis;
|
|
58
|
+
const dataSource = ref([]);
|
|
59
|
+
const isLoading = ref(false);
|
|
60
|
+
function loadData() {
|
|
61
|
+
isLoading.value = true;
|
|
62
|
+
get(queryParams.value).then((res) => {
|
|
63
|
+
dataSource.value = res.data;
|
|
64
|
+
}).finally(() => {
|
|
65
|
+
isLoading.value = false;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const selectedRowKeys = ref([]);
|
|
69
|
+
const selectedRow = shallowRef();
|
|
70
|
+
function onSelectChange(rows) {
|
|
71
|
+
selectedRowKeys.value = rows.map((row) => row[key]);
|
|
72
|
+
selectedRow.value = rows[0];
|
|
73
|
+
}
|
|
74
|
+
loadData();
|
|
75
|
+
function openForm(data) {
|
|
76
|
+
openDialog(ProTableForm_default, {
|
|
77
|
+
requestApi: data[key] ? update : create,
|
|
78
|
+
formItems: props.formItems,
|
|
79
|
+
rules: props.rules,
|
|
80
|
+
formData: data
|
|
81
|
+
}, {
|
|
82
|
+
title: data[key] ? "修改" : "新增",
|
|
83
|
+
onOk: () => {
|
|
84
|
+
loadData();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
async function handleCreate() {
|
|
89
|
+
openForm({});
|
|
90
|
+
}
|
|
91
|
+
function handleUpdate() {
|
|
92
|
+
openForm(selectedRow.value);
|
|
93
|
+
}
|
|
94
|
+
function handleRemove() {
|
|
95
|
+
ElMessageBox.confirm("确定删除吗?", "提示", { type: "warning" }).then(() => {
|
|
96
|
+
remove(selectedRowKeys.value).then(loadData).catch(() => {
|
|
97
|
+
ElMessage.error("删除失败");
|
|
98
|
+
});
|
|
99
|
+
}).catch(() => {});
|
|
100
|
+
}
|
|
101
|
+
__expose({ refresh: loadData });
|
|
102
|
+
return (_ctx, _cache) => {
|
|
103
|
+
const _component_el_button = resolveComponent("el-button");
|
|
104
|
+
const _component_el_input = resolveComponent("el-input");
|
|
105
|
+
const _component_el_space = resolveComponent("el-space");
|
|
106
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
107
|
+
const _component_el_table = resolveComponent("el-table");
|
|
108
|
+
const _directive_loading = resolveDirective("loading");
|
|
109
|
+
return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [createVNode(_component_el_space, { wrap: "" }, {
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
createVNode(_component_el_button, {
|
|
112
|
+
type: "primary",
|
|
113
|
+
onClick: handleCreate
|
|
114
|
+
}, {
|
|
115
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [createTextVNode("新增")])),
|
|
116
|
+
_: 1,
|
|
117
|
+
__: [1]
|
|
118
|
+
}),
|
|
119
|
+
createVNode(_component_el_button, {
|
|
120
|
+
type: "primary",
|
|
121
|
+
onClick: handleUpdate
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode("修改")])),
|
|
124
|
+
_: 1,
|
|
125
|
+
__: [2]
|
|
126
|
+
}),
|
|
127
|
+
createVNode(_component_el_button, {
|
|
128
|
+
type: "danger",
|
|
129
|
+
disabled: !selectedRowKeys.value.length,
|
|
130
|
+
onClick: handleRemove
|
|
131
|
+
}, {
|
|
132
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [createTextVNode("删除")])),
|
|
133
|
+
_: 1,
|
|
134
|
+
__: [3]
|
|
135
|
+
}, 8, ["disabled"]),
|
|
136
|
+
renderSlot(_ctx.$slots, "search"),
|
|
137
|
+
createVNode(_component_el_input, {
|
|
138
|
+
modelValue: queryParams.value.keyword,
|
|
139
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => queryParams.value.keyword = $event),
|
|
140
|
+
style: { "width": "220px" },
|
|
141
|
+
onChange: loadData
|
|
142
|
+
}, null, 8, ["modelValue"])
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
})]), withDirectives((openBlock(), createBlock(_component_el_table, {
|
|
146
|
+
data: dataSource.value,
|
|
147
|
+
onSelectionChange: onSelectChange
|
|
148
|
+
}, {
|
|
149
|
+
default: withCtx(() => [createVNode(_component_el_table_column, {
|
|
150
|
+
type: "selection",
|
|
151
|
+
width: "55"
|
|
152
|
+
}), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (col) => {
|
|
153
|
+
return openBlock(), createBlock(_component_el_table_column, {
|
|
154
|
+
key: col.dataIndex,
|
|
155
|
+
prop: col.dataIndex,
|
|
156
|
+
label: col.title
|
|
157
|
+
}, null, 8, ["prop", "label"]);
|
|
158
|
+
}), 128))]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["data"])), [[_directive_loading, isLoading.value]])]);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
export { ProTableForm_default as n, ProTable_default as t };
|
|
165
|
+
|
|
166
|
+
//# sourceMappingURL=ProTable-DXAnL7FT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProTable-DXAnL7FT.js","names":["formItems","rules","columns"],"sources":["../src/components/ProTable/ProTableForm.vue","../src/components/ProTable/ProTableForm.vue","../src/components/ProTable/index.vue","../src/components/ProTable/index.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref, useTemplateRef } from \"vue\";\nimport ProFormBuilder from \"../ProFormBuilder/index.vue\";\nimport type { FormInstance } from \"element-plus\";\nimport type { FormItem, FormRules } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProTableForm\",\n});\n\nconst props = defineProps<{\n formItems: FormItem[];\n rules?: FormRules;\n formData: Record<string, any>;\n requestApi: (data: Record<string, any>) => Promise<any>;\n}>();\n\nconst data = ref<Record<string, any>>({ ...props.formData });\nconst formRef = useTemplateRef<FormInstance>(\"formRef\");\n\ndefineExpose({\n async submit() {\n await formRef.value.validate();\n return props.requestApi({\n ...data.value,\n });\n },\n});\n</script>\n\n<template>\n <ProFormBuilder ref=\"formRef\" :modelValue=\"data\" :form-items=\"formItems\" :rules=\"rules\" />\n</template>\n","<script setup lang=\"ts\">\nimport { ref, useTemplateRef } from \"vue\";\nimport ProFormBuilder from \"../ProFormBuilder/index.vue\";\nimport type { FormInstance } from \"element-plus\";\nimport type { FormItem, FormRules } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProTableForm\",\n});\n\nconst props = defineProps<{\n formItems: FormItem[];\n rules?: FormRules;\n formData: Record<string, any>;\n requestApi: (data: Record<string, any>) => Promise<any>;\n}>();\n\nconst data = ref<Record<string, any>>({ ...props.formData });\nconst formRef = useTemplateRef<FormInstance>(\"formRef\");\n\ndefineExpose({\n async submit() {\n await formRef.value.validate();\n return props.requestApi({\n ...data.value,\n });\n },\n});\n</script>\n\n<template>\n <ProFormBuilder ref=\"formRef\" :modelValue=\"data\" :form-items=\"formItems\" :rules=\"rules\" />\n</template>\n","<script setup lang=\"ts\">\nimport { ref, shallowRef } from \"vue\";\nimport { ElMessage, ElMessageBox } from \"element-plus\";\nimport { openDialog } from \"../../utils/openDialog\";\nimport ProTableForm from \"./ProTableForm.vue\";\nimport type { PageApis, TableColumn, FormItem, FormRules } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProTable\",\n});\n\nconst props = defineProps<{\n apis: PageApis;\n rowKey?: string;\n beforeCreate?: () => Promise<Record<string, any>>;\n columns: TableColumn[];\n formItems: FormItem[];\n rules?: FormRules;\n}>();\n\nconst key = props.rowKey || \"id\";\n\nconst queryParams = defineModel<any>(\"queryParams\", { default: () => ({}) });\n\nconst { get, create, update, remove } = props.apis;\nconst dataSource = ref<any[]>([]);\nconst isLoading = ref(false);\nfunction loadData() {\n isLoading.value = true;\n get(queryParams.value)\n .then((res) => {\n dataSource.value = res.data;\n })\n .finally(() => {\n isLoading.value = false;\n });\n}\n\nconst selectedRowKeys = ref<any[]>([]);\n\nconst selectedRow = shallowRef<Record<string, any>>();\nfunction onSelectChange(rows: any[]) {\n // el-table 的选择模型是行数组,转成「keys + 单行」与 antd 版对齐\n selectedRowKeys.value = rows.map((row) => row[key]);\n selectedRow.value = rows[0];\n}\n\nloadData();\n\nfunction openForm(data: Record<string, any>) {\n openDialog(\n ProTableForm,\n {\n requestApi: data[key] ? update : create,\n formItems: props.formItems,\n rules: props.rules,\n formData: data,\n },\n {\n title: data[key] ? \"修改\" : \"新增\",\n onOk: () => {\n loadData();\n },\n },\n );\n}\n\nasync function handleCreate() {\n openForm({});\n}\nfunction handleUpdate() {\n openForm(selectedRow.value);\n}\nfunction handleRemove() {\n ElMessageBox.confirm(\"确定删除吗?\", \"提示\", { type: \"warning\" })\n .then(() => {\n remove(selectedRowKeys.value)\n .then(loadData)\n .catch(() => {\n ElMessage.error(\"删除失败\");\n });\n })\n .catch(() => {});\n}\n\ndefineExpose({\n refresh: loadData,\n});\n</script>\n\n<template>\n <div>\n <div style=\"margin-bottom: 20px\">\n <el-space wrap>\n <el-button type=\"primary\" @click=\"handleCreate\">新增</el-button>\n <el-button type=\"primary\" @click=\"handleUpdate\">修改</el-button>\n <el-button type=\"danger\" :disabled=\"!selectedRowKeys.length\" @click=\"handleRemove\">删除</el-button>\n <slot name=\"search\"></slot>\n <el-input v-model=\"queryParams.keyword\" style=\"width: 220px\" @change=\"loadData\"></el-input>\n </el-space>\n </div>\n\n <el-table\n v-loading=\"isLoading\"\n :data=\"dataSource\"\n @selection-change=\"onSelectChange\"\n >\n <el-table-column type=\"selection\" width=\"55\" />\n <el-table-column\n v-for=\"col in columns\"\n :key=\"col.dataIndex\"\n :prop=\"col.dataIndex\"\n :label=\"col.title\"\n />\n </el-table>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { ref, shallowRef } from \"vue\";\nimport { ElMessage, ElMessageBox } from \"element-plus\";\nimport { openDialog } from \"../../utils/openDialog\";\nimport ProTableForm from \"./ProTableForm.vue\";\nimport type { PageApis, TableColumn, FormItem, FormRules } from \"@cynnie/ui-core\";\n\ndefineOptions({\n name: \"ProTable\",\n});\n\nconst props = defineProps<{\n apis: PageApis;\n rowKey?: string;\n beforeCreate?: () => Promise<Record<string, any>>;\n columns: TableColumn[];\n formItems: FormItem[];\n rules?: FormRules;\n}>();\n\nconst key = props.rowKey || \"id\";\n\nconst queryParams = defineModel<any>(\"queryParams\", { default: () => ({}) });\n\nconst { get, create, update, remove } = props.apis;\nconst dataSource = ref<any[]>([]);\nconst isLoading = ref(false);\nfunction loadData() {\n isLoading.value = true;\n get(queryParams.value)\n .then((res) => {\n dataSource.value = res.data;\n })\n .finally(() => {\n isLoading.value = false;\n });\n}\n\nconst selectedRowKeys = ref<any[]>([]);\n\nconst selectedRow = shallowRef<Record<string, any>>();\nfunction onSelectChange(rows: any[]) {\n // el-table 的选择模型是行数组,转成「keys + 单行」与 antd 版对齐\n selectedRowKeys.value = rows.map((row) => row[key]);\n selectedRow.value = rows[0];\n}\n\nloadData();\n\nfunction openForm(data: Record<string, any>) {\n openDialog(\n ProTableForm,\n {\n requestApi: data[key] ? update : create,\n formItems: props.formItems,\n rules: props.rules,\n formData: data,\n },\n {\n title: data[key] ? \"修改\" : \"新增\",\n onOk: () => {\n loadData();\n },\n },\n );\n}\n\nasync function handleCreate() {\n openForm({});\n}\nfunction handleUpdate() {\n openForm(selectedRow.value);\n}\nfunction handleRemove() {\n ElMessageBox.confirm(\"确定删除吗?\", \"提示\", { type: \"warning\" })\n .then(() => {\n remove(selectedRowKeys.value)\n .then(loadData)\n .catch(() => {\n ElMessage.error(\"删除失败\");\n });\n })\n .catch(() => {});\n}\n\ndefineExpose({\n refresh: loadData,\n});\n</script>\n\n<template>\n <div>\n <div style=\"margin-bottom: 20px\">\n <el-space wrap>\n <el-button type=\"primary\" @click=\"handleCreate\">新增</el-button>\n <el-button type=\"primary\" @click=\"handleUpdate\">修改</el-button>\n <el-button type=\"danger\" :disabled=\"!selectedRowKeys.length\" @click=\"handleRemove\">删除</el-button>\n <slot name=\"search\"></slot>\n <el-input v-model=\"queryParams.keyword\" style=\"width: 220px\" @change=\"loadData\"></el-input>\n </el-space>\n </div>\n\n <el-table\n v-loading=\"isLoading\"\n :data=\"dataSource\"\n @selection-change=\"onSelectChange\"\n >\n <el-table-column type=\"selection\" width=\"55\" />\n <el-table-column\n v-for=\"col in columns\"\n :key=\"col.dataIndex\"\n :prop=\"col.dataIndex\"\n :label=\"col.title\"\n />\n </el-table>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;ECUA,MAAM,QAAQ;EAOd,MAAM,OAAO,IAAyB,EAAE,GAAG,MAAM,UAAU,CAAC;EAC5D,MAAM,UAAU,eAA6B,UAAU;AAEvD,WAAa,EACX,MAAM,SAAS;AACb,SAAM,QAAQ,MAAM,UAAU;AAC9B,UAAO,MAAM,WAAW,EACtB,GAAG,KAAK,OACT,CAAC;KAEL,CAAC;;uBAIA,YAA0F,wBAAA;aAAtE;IAAJ,KAAI;IAAW,YAAY,KAAA;IAAO,cAAYA,KAAAA;IAAY,OAAOC,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